public static final class ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder extends GeneratedMessage.Builder<ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder> implements ResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilderSpecified snapshot properties for scheduled snapshots created by this policy.
Protobuf type
google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicySnapshotProperties
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ResourcePolicySnapshotSchedulePolicySnapshotProperties.BuilderStatic 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. |
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 |
StringThe 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 |
ByteStringThe 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 |
|
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. |
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 |
|
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. |
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 |
|
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 |
intThe 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 |
intThe 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for chainName to set. |
| Returns | |
|---|---|
| Type | Description |
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder |
This builder for chaining. |
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 |
booleanThe guestFlush to set. |
| Returns | |
|---|---|
| Type | Description |
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder |
This builder for chaining. |
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 |
intThe index to set the value at. |
value |
StringThe storageLocations to set. |
| Returns | |
|---|---|
| Type | Description |
ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder |
This builder for chaining. |