public static final class SnapshotSettingsStorageLocationSettings.Builder extends GeneratedMessage.Builder<SnapshotSettingsStorageLocationSettings.Builder> implements SnapshotSettingsStorageLocationSettingsOrBuilder
Protobuf type google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings
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 SnapshotSettingsStorageLocationSettings build()
buildPartial()
public SnapshotSettingsStorageLocationSettings buildPartial()
clear()
public SnapshotSettingsStorageLocationSettings.Builder clear()
Overrides
clearLocations()
public SnapshotSettingsStorageLocationSettings.Builder clearLocations()
clearPolicy()
public SnapshotSettingsStorageLocationSettings.Builder clearPolicy()
The chosen location policy.
Check the Policy enum for the list of possible values.
optional string policy = 91071794;
containsLocations(String key)
public boolean containsLocations(String key)
When the policy is SPECIFIC_LOCATIONS, snapshots will be stored
in the locations listed in this field. Keys are Cloud Storage bucket
locations. Only one location can be specified.
map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;
| Parameter |
| Name |
Description |
key |
String
|
getDefaultInstanceForType()
public SnapshotSettingsStorageLocationSettings getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLocations() (deprecated)
public Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getLocations()
getLocationsCount()
public int getLocationsCount()
When the policy is SPECIFIC_LOCATIONS, snapshots will be stored
in the locations listed in this field. Keys are Cloud Storage bucket
locations. Only one location can be specified.
map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;
| Returns |
| Type |
Description |
int |
|
getLocationsMap()
public Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getLocationsMap()
When the policy is SPECIFIC_LOCATIONS, snapshots will be stored
in the locations listed in this field. Keys are Cloud Storage bucket
locations. Only one location can be specified.
map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;
getLocationsOrDefault(String key, SnapshotSettingsStorageLocationSettingsStorageLocationPreference defaultValue)
public SnapshotSettingsStorageLocationSettingsStorageLocationPreference getLocationsOrDefault(String key, SnapshotSettingsStorageLocationSettingsStorageLocationPreference defaultValue)
When the policy is SPECIFIC_LOCATIONS, snapshots will be stored
in the locations listed in this field. Keys are Cloud Storage bucket
locations. Only one location can be specified.
map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;
getLocationsOrThrow(String key)
public SnapshotSettingsStorageLocationSettingsStorageLocationPreference getLocationsOrThrow(String key)
When the policy is SPECIFIC_LOCATIONS, snapshots will be stored
in the locations listed in this field. Keys are Cloud Storage bucket
locations. Only one location can be specified.
map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;
| Parameter |
| Name |
Description |
key |
String
|
getMutableLocations() (deprecated)
public Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getMutableLocations()
Use alternate mutation accessors instead.
getPolicy()
public String getPolicy()
The chosen location policy.
Check the Policy enum for the list of possible values.
optional string policy = 91071794;
| Returns |
| Type |
Description |
String |
The policy.
|
getPolicyBytes()
public ByteString getPolicyBytes()
The chosen location policy.
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()
The chosen location policy.
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(SnapshotSettingsStorageLocationSettings other)
public SnapshotSettingsStorageLocationSettings.Builder mergeFrom(SnapshotSettingsStorageLocationSettings other)
public SnapshotSettingsStorageLocationSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SnapshotSettingsStorageLocationSettings.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
putAllLocations(Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> values)
public SnapshotSettingsStorageLocationSettings.Builder putAllLocations(Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> values)
When the policy is SPECIFIC_LOCATIONS, snapshots will be stored
in the locations listed in this field. Keys are Cloud Storage bucket
locations. Only one location can be specified.
map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;
putLocations(String key, SnapshotSettingsStorageLocationSettingsStorageLocationPreference value)
public SnapshotSettingsStorageLocationSettings.Builder putLocations(String key, SnapshotSettingsStorageLocationSettingsStorageLocationPreference value)
When the policy is SPECIFIC_LOCATIONS, snapshots will be stored
in the locations listed in this field. Keys are Cloud Storage bucket
locations. Only one location can be specified.
map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;
putLocationsBuilderIfAbsent(String key)
public SnapshotSettingsStorageLocationSettingsStorageLocationPreference.Builder putLocationsBuilderIfAbsent(String key)
When the policy is SPECIFIC_LOCATIONS, snapshots will be stored
in the locations listed in this field. Keys are Cloud Storage bucket
locations. Only one location can be specified.
map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;
| Parameter |
| Name |
Description |
key |
String
|
removeLocations(String key)
public SnapshotSettingsStorageLocationSettings.Builder removeLocations(String key)
When the policy is SPECIFIC_LOCATIONS, snapshots will be stored
in the locations listed in this field. Keys are Cloud Storage bucket
locations. Only one location can be specified.
map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;
| Parameter |
| Name |
Description |
key |
String
|
setPolicy(String value)
public SnapshotSettingsStorageLocationSettings.Builder setPolicy(String value)
The chosen location policy.
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 SnapshotSettingsStorageLocationSettings.Builder setPolicyBytes(ByteString value)
The chosen location policy.
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.
|