Class ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder (1.49.0)

public static final class ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder extends GeneratedMessageV3.Builder<ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder> implements ResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder

Specified snapshot properties for scheduled snapshots created by this policy.

Protobuf type google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicySnapshotProperties

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllStorageLocations(Iterable<String> values)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder addAllStorageLocations(Iterable<String> values)

Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).

repeated string storage_locations = 328005274;

Parameter
NameDescription
valuesIterable<String>

The storageLocations to add.

Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addStorageLocations(String value)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder addStorageLocations(String value)

Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).

repeated string storage_locations = 328005274;

Parameter
NameDescription
valueString

The storageLocations to add.

Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

addStorageLocationsBytes(ByteString value)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder addStorageLocationsBytes(ByteString value)

Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).

repeated string storage_locations = 328005274;

Parameter
NameDescription
valueByteString

The bytes of the storageLocations to add.

Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

build()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties build()
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties

buildPartial()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties buildPartial()
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties

clear()

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

clearChainName()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder clearChainName()

Chain name that the snapshot is created in.

optional string chain_name = 68644169;

Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGuestFlush()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder clearGuestFlush()

Indication to perform a 'guest aware' snapshot.

optional bool guest_flush = 385550813;

Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

clearLabels()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder clearLabels()
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder
Overrides

clearStorageLocations()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder clearStorageLocations()

Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).

repeated string storage_locations = 328005274;

Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

clone()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder clone()
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getChainName()

public String getChainName()

Chain name that the snapshot is created in.

optional string chain_name = 68644169;

Returns
TypeDescription
String

The chainName.

getChainNameBytes()

public ByteString getChainNameBytes()

Chain name that the snapshot is created in.

optional string chain_name = 68644169;

Returns
TypeDescription
ByteString

The bytes for chainName.

getDefaultInstanceForType()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties getDefaultInstanceForType()
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGuestFlush()

public boolean getGuestFlush()

Indication to perform a 'guest aware' snapshot.

optional bool guest_flush = 385550813;

Returns
TypeDescription
boolean

The guestFlush.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getStorageLocations(int index)

public String getStorageLocations(int index)

Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).

repeated string storage_locations = 328005274;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The storageLocations at the given index.

getStorageLocationsBytes(int index)

public ByteString getStorageLocationsBytes(int index)

Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).

repeated string storage_locations = 328005274;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the storageLocations at the given index.

getStorageLocationsCount()

public int getStorageLocationsCount()

Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).

repeated string storage_locations = 328005274;

Returns
TypeDescription
int

The count of storageLocations.

getStorageLocationsList()

public ProtocolStringList getStorageLocationsList()

Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).

repeated string storage_locations = 328005274;

Returns
TypeDescription
ProtocolStringList

A list containing the storageLocations.

hasChainName()

public boolean hasChainName()

Chain name that the snapshot is created in.

optional string chain_name = 68644169;

Returns
TypeDescription
boolean

Whether the chainName field is set.

hasGuestFlush()

public boolean hasGuestFlush()

Indication to perform a 'guest aware' snapshot.

optional bool guest_flush = 385550813;

Returns
TypeDescription
boolean

Whether the guestFlush 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(ResourcePolicySnapshotSchedulePolicySnapshotProperties other)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder mergeFrom(ResourcePolicySnapshotSchedulePolicySnapshotProperties other)
Parameter
NameDescription
otherResourcePolicySnapshotSchedulePolicySnapshotProperties
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder
Overrides

putAllLabels(Map<String,String> values)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder putAllLabels(Map<String,String> values)

Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

putLabels(String key, String value)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder putLabels(String key, String value)

Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

removeLabels(String key)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder removeLabels(String key)

Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty.

map<string, string> labels = 500195327;

Parameter
NameDescription
keyString
Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

setChainName(String value)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder setChainName(String value)

Chain name that the snapshot is created in.

optional string chain_name = 68644169;

Parameter
NameDescription
valueString

The chainName to set.

Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

setChainNameBytes(ByteString value)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder setChainNameBytes(ByteString value)

Chain name that the snapshot is created in.

optional string chain_name = 68644169;

Parameter
NameDescription
valueByteString

The bytes for chainName to set.

Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGuestFlush(boolean value)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder setGuestFlush(boolean value)

Indication to perform a 'guest aware' snapshot.

optional bool guest_flush = 385550813;

Parameter
NameDescription
valueboolean

The guestFlush to set.

Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

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

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

setStorageLocations(int index, String value)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder setStorageLocations(int index, String value)

Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).

repeated string storage_locations = 328005274;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The storageLocations to set.

Returns
TypeDescription
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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