Class SnapshotSettingsStorageLocationSettings.Builder (1.88.0)

public static final class SnapshotSettingsStorageLocationSettings.Builder extends GeneratedMessageV3.Builder<SnapshotSettingsStorageLocationSettings.Builder> implements SnapshotSettingsStorageLocationSettingsOrBuilder

Protobuf type google.cloud.compute.v1.SnapshotSettingsStorageLocationSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SnapshotSettingsStorageLocationSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SnapshotSettingsStorageLocationSettings.Builder
Overrides

build()

public SnapshotSettingsStorageLocationSettings build()
Returns
Type Description
SnapshotSettingsStorageLocationSettings

buildPartial()

public SnapshotSettingsStorageLocationSettings buildPartial()
Returns
Type Description
SnapshotSettingsStorageLocationSettings

clear()

public SnapshotSettingsStorageLocationSettings.Builder clear()
Returns
Type Description
SnapshotSettingsStorageLocationSettings.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SnapshotSettingsStorageLocationSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SnapshotSettingsStorageLocationSettings.Builder
Overrides

clearLocations()

public SnapshotSettingsStorageLocationSettings.Builder clearLocations()
Returns
Type Description
SnapshotSettingsStorageLocationSettings.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SnapshotSettingsStorageLocationSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SnapshotSettingsStorageLocationSettings.Builder
Overrides

clearPolicy()

public SnapshotSettingsStorageLocationSettings.Builder clearPolicy()

The chosen location policy. Check the Policy enum for the list of possible values.

optional string policy = 91071794;

Returns
Type Description
SnapshotSettingsStorageLocationSettings.Builder

This builder for chaining.

clone()

public SnapshotSettingsStorageLocationSettings.Builder clone()
Returns
Type Description
SnapshotSettingsStorageLocationSettings.Builder
Overrides

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
Returns
Type Description
boolean

getDefaultInstanceForType()

public SnapshotSettingsStorageLocationSettings getDefaultInstanceForType()
Returns
Type Description
SnapshotSettingsStorageLocationSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLocations() (deprecated)

public Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getLocations()

Use #getLocationsMap() instead.

Returns
Type Description
Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference>

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;

Returns
Type Description
Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference>

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;

Parameters
Name Description
key String
defaultValue SnapshotSettingsStorageLocationSettingsStorageLocationPreference
Returns
Type Description
SnapshotSettingsStorageLocationSettingsStorageLocationPreference

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
Returns
Type Description
SnapshotSettingsStorageLocationSettingsStorageLocationPreference

getMutableLocations() (deprecated)

public Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getMutableLocations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference>

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
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.GeneratedMessageV3.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.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SnapshotSettingsStorageLocationSettings other)

public SnapshotSettingsStorageLocationSettings.Builder mergeFrom(SnapshotSettingsStorageLocationSettings other)
Parameter
Name Description
other SnapshotSettingsStorageLocationSettings
Returns
Type Description
SnapshotSettingsStorageLocationSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SnapshotSettingsStorageLocationSettings.Builder mergeFrom(CodedInputStream input