Class SnapshotSettingsStorageLocationSettings.Builder (1.46.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SnapshotSettingsStorageLocationSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder
Overrides

build()

public SnapshotSettingsStorageLocationSettings build()
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings

buildPartial()

public SnapshotSettingsStorageLocationSettings buildPartial()
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings

clear()

public SnapshotSettingsStorageLocationSettings.Builder clear()
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SnapshotSettingsStorageLocationSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder
Overrides

clearLocations()

public SnapshotSettingsStorageLocationSettings.Builder clearLocations()
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SnapshotSettingsStorageLocationSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder

This builder for chaining.

clone()

public SnapshotSettingsStorageLocationSettings.Builder clone()
Returns
TypeDescription
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 GCS bucket locations.

map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public SnapshotSettingsStorageLocationSettings getDefaultInstanceForType()
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLocations() (deprecated)

public Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getLocations()

Use #getLocationsMap() instead.

Returns
TypeDescription
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 GCS bucket locations.

map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;

Returns
TypeDescription
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 GCS bucket locations.

map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;

Returns
TypeDescription
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 GCS bucket locations.

map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;

Parameters
NameDescription
keyString
defaultValueSnapshotSettingsStorageLocationSettingsStorageLocationPreference
Returns
TypeDescription
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 GCS bucket locations.

map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;

Parameter
NameDescription
keyString
Returns
TypeDescription
SnapshotSettingsStorageLocationSettingsStorageLocationPreference

getMutableLocations() (deprecated)

public Map<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference> getMutableLocations()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the policy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SnapshotSettingsStorageLocationSettings other)

public SnapshotSettingsStorageLocationSettings.Builder mergeFrom(SnapshotSettingsStorageLocationSettings other)
Parameter
NameDescription
otherSnapshotSettingsStorageLocationSettings
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SnapshotSettingsStorageLocationSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SnapshotSettingsStorageLocationSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SnapshotSettingsStorageLocationSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder
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 GCS bucket locations.

map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;

Parameter
NameDescription
valuesMap<String,SnapshotSettingsStorageLocationSettingsStorageLocationPreference>
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder

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 GCS bucket locations.

map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;

Parameters
NameDescription
keyString
valueSnapshotSettingsStorageLocationSettingsStorageLocationPreference
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder

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 GCS bucket locations.

map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;

Parameter
NameDescription
keyString
Returns
TypeDescription
SnapshotSettingsStorageLocationSettingsStorageLocationPreference.Builder

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 GCS bucket locations.

map<string, .google.cloud.compute.v1.SnapshotSettingsStorageLocationSettingsStorageLocationPreference> locations = 413423454;

Parameter
NameDescription
keyString
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SnapshotSettingsStorageLocationSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder
Overrides

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
NameDescription
valueString

The policy to set.

Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for policy to set.

Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SnapshotSettingsStorageLocationSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SnapshotSettingsStorageLocationSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SnapshotSettingsStorageLocationSettings.Builder
Overrides