public static final class SnapshotSettingsAccessLocation.Builder extends GeneratedMessage.Builder<SnapshotSettingsAccessLocation.Builder> implements SnapshotSettingsAccessLocationOrBuilder
Protobuf type google.cloud.compute.v1.SnapshotSettingsAccessLocation
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public SnapshotSettingsAccessLocation build()
buildPartial()
public SnapshotSettingsAccessLocation buildPartial()
clear()
public SnapshotSettingsAccessLocation.Builder clear()
Overrides
clearLocations()
public SnapshotSettingsAccessLocation.Builder clearLocations()
clearPolicy()
public SnapshotSettingsAccessLocation.Builder clearPolicy()
Policy of which location is allowed to access snapshot.
Check the Policy enum for the list of possible values.
optional string policy = 91071794;
containsLocations(String key)
public boolean containsLocations(String key)
List of regions that can restore a regional
snapshot from the current region
map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454;
| Parameter |
| Name |
Description |
key |
String
|
getDefaultInstanceForType()
public SnapshotSettingsAccessLocation getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLocations() (deprecated)
public Map<String,SnapshotSettingsAccessLocationAccessLocationPreference> getLocations()
getLocationsCount()
public int getLocationsCount()
List of regions that can restore a regional
snapshot from the current region
map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454;
| Returns |
| Type |
Description |
int |
|
getLocationsMap()
public Map<String,SnapshotSettingsAccessLocationAccessLocationPreference> getLocationsMap()
List of regions that can restore a regional
snapshot from the current region
map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454;
getLocationsOrDefault(String key, SnapshotSettingsAccessLocationAccessLocationPreference defaultValue)
public SnapshotSettingsAccessLocationAccessLocationPreference getLocationsOrDefault(String key, SnapshotSettingsAccessLocationAccessLocationPreference defaultValue)
List of regions that can restore a regional
snapshot from the current region
map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454;
getLocationsOrThrow(String key)
public SnapshotSettingsAccessLocationAccessLocationPreference getLocationsOrThrow(String key)
List of regions that can restore a regional
snapshot from the current region
map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454;
| Parameter |
| Name |
Description |
key |
String
|
getMutableLocations() (deprecated)
public Map<String,SnapshotSettingsAccessLocationAccessLocationPreference> getMutableLocations()
Use alternate mutation accessors instead.
getPolicy()
public String getPolicy()
Policy of which location is allowed to access snapshot.
Check the Policy enum for the list of possible values.
optional string policy = 91071794;
| Returns |
| Type |
Description |
String |
The policy.
|
getPolicyBytes()
public ByteString getPolicyBytes()
Policy of which location is allowed to access snapshot.
Check the Policy enum for the list of possible values.
optional string policy = 91071794;
| Returns |
| Type |
Description |
ByteString |
The bytes for policy.
|
hasPolicy()
public boolean hasPolicy()
Policy of which location is allowed to access snapshot.
Check the Policy enum for the list of possible values.
optional string policy = 91071794;
| Returns |
| Type |
Description |
boolean |
Whether the policy field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SnapshotSettingsAccessLocation other)
public SnapshotSettingsAccessLocation.Builder mergeFrom(SnapshotSettingsAccessLocation other)
public SnapshotSettingsAccessLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SnapshotSettingsAccessLocation.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
putAllLocations(Map<String,SnapshotSettingsAccessLocationAccessLocationPreference> values)
public SnapshotSettingsAccessLocation.Builder putAllLocations(Map<String,SnapshotSettingsAccessLocationAccessLocationPreference> values)
List of regions that can restore a regional
snapshot from the current region
map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454;
putLocations(String key, SnapshotSettingsAccessLocationAccessLocationPreference value)
public SnapshotSettingsAccessLocation.Builder putLocations(String key, SnapshotSettingsAccessLocationAccessLocationPreference value)
List of regions that can restore a regional
snapshot from the current region
map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454;
putLocationsBuilderIfAbsent(String key)
public SnapshotSettingsAccessLocationAccessLocationPreference.Builder putLocationsBuilderIfAbsent(String key)
List of regions that can restore a regional
snapshot from the current region
map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454;
| Parameter |
| Name |
Description |
key |
String
|
removeLocations(String key)
public SnapshotSettingsAccessLocation.Builder removeLocations(String key)
List of regions that can restore a regional
snapshot from the current region
map<string, .google.cloud.compute.v1.SnapshotSettingsAccessLocationAccessLocationPreference> locations = 413423454;
| Parameter |
| Name |
Description |
key |
String
|
setPolicy(String value)
public SnapshotSettingsAccessLocation.Builder setPolicy(String value)
Policy of which location is allowed to access snapshot.
Check the Policy enum for the list of possible values.
optional string policy = 91071794;
| Parameter |
| Name |
Description |
value |
String
The policy to set.
|
setPolicyBytes(ByteString value)
public SnapshotSettingsAccessLocation.Builder setPolicyBytes(ByteString value)
Policy of which location is allowed to access snapshot.
Check the Policy enum for the list of possible values.
optional string policy = 91071794;
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for policy to set.
|