Class ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder (1.54.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
Type Description
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
Name Description
values Iterable<String>

The storageLocations to add.

Returns
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The storageLocations to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the storageLocations to add.

Returns
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

build()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties build()
Returns
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties

buildPartial()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties buildPartial()
Returns
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties

clear()

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

clearChainName()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder clearChainName()

Chain name that the snapshot is created in.

optional string chain_name = 68644169;

Returns
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGuestFlush()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder clearGuestFlush()

Indication to perform a 'guest aware' snapshot.

optional bool guest_flush = 385550813;

Returns
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

clearLabels()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder clearLabels()
Returns
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

clone()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getChainName()

public String getChainName()

Chain name that the snapshot is created in.

optional string chain_name = 68644169;

Returns
Type Description
String

The chainName.

getChainNameBytes()

public ByteString getChainNameBytes()

Chain name that the snapshot is created in.

optional string chain_name = 68644169;

Returns
Type Description
ByteString

The bytes for chainName.

getDefaultInstanceForType()

public ResourcePolicySnapshotSchedulePolicySnapshotProperties getDefaultInstanceForType()
Returns
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties

getDescriptorForType()

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

getGuestFlush()

public boolean getGuestFlush()

Indication to perform a 'guest aware' snapshot.

optional bool guest_flush = 385550813;

Returns
Type Description
boolean

The guestFlush.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

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

A list containing the storageLocations.

hasChainName()

public boolean hasChainName()

Chain name that the snapshot is created in.

optional string chain_name = 68644169;

Returns
Type Description
boolean

Whether the chainName field is set.

hasGuestFlush()

public boolean hasGuestFlush()

Indication to perform a 'guest aware' snapshot.

optional bool guest_flush = 385550813;

Returns
Type Description
boolean

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Name Description
value String

The chainName to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for chainName to set.

Returns
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value boolean

The guestFlush to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The storageLocations to set.

Returns
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder
Overrides