Package com.google.cloud.compute.v1
Class ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder>
com.google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder
- All Implemented Interfaces:
ResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ResourcePolicySnapshotSchedulePolicySnapshotProperties
public static final class ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder>
implements ResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder
Specified snapshot properties for scheduled snapshots created by this policy.Protobuf type
google.cloud.compute.v1.ResourcePolicySnapshotSchedulePolicySnapshotProperties-
Method Summary
Modifier and TypeMethodDescriptionaddAllStorageLocations(Iterable<String> values) Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).addStorageLocations(String value) Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).addStorageLocationsBytes(com.google.protobuf.ByteString value) Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).build()clear()Chain name that the snapshot is created in.Indication to perform a 'guest aware' snapshot.Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).booleancontainsLabels(String key) Labels to apply to scheduled snapshots.Chain name that the snapshot is created in.com.google.protobuf.ByteStringChain name that the snapshot is created in.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIndication to perform a 'guest aware' snapshot.Deprecated.intLabels to apply to scheduled snapshots.Labels to apply to scheduled snapshots.getLabelsOrDefault(String key, String defaultValue) Labels to apply to scheduled snapshots.getLabelsOrThrow(String key) Labels to apply to scheduled snapshots.Deprecated.getStorageLocations(int index) Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).com.google.protobuf.ByteStringgetStorageLocationsBytes(int index) Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).intCloud Storage bucket storage location of the auto snapshot (regional or multi-regional).com.google.protobuf.ProtocolStringListCloud Storage bucket storage location of the auto snapshot (regional or multi-regional).booleanChain name that the snapshot is created in.booleanIndication to perform a 'guest aware' snapshot.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllLabels(Map<String, String> values) Labels to apply to scheduled snapshots.Labels to apply to scheduled snapshots.removeLabels(String key) Labels to apply to scheduled snapshots.setChainName(String value) Chain name that the snapshot is created in.setChainNameBytes(com.google.protobuf.ByteString value) Chain name that the snapshot is created in.setGuestFlush(boolean value) Indication to perform a 'guest aware' snapshot.setStorageLocations(int index, String value) Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder>
-
mergeFrom
public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder>- Throws:
IOException
-
hasChainName
public boolean hasChainName()Chain name that the snapshot is created in.
optional string chain_name = 68644169;- Specified by:
hasChainNamein interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder- Returns:
- Whether the chainName field is set.
-
getChainName
Chain name that the snapshot is created in.
optional string chain_name = 68644169;- Specified by:
getChainNamein interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder- Returns:
- The chainName.
-
getChainNameBytes
public com.google.protobuf.ByteString getChainNameBytes()Chain name that the snapshot is created in.
optional string chain_name = 68644169;- Specified by:
getChainNameBytesin interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder- Returns:
- The bytes for chainName.
-
setChainName
Chain name that the snapshot is created in.
optional string chain_name = 68644169;- Parameters:
value- The chainName to set.- Returns:
- This builder for chaining.
-
clearChainName
Chain name that the snapshot is created in.
optional string chain_name = 68644169;- Returns:
- This builder for chaining.
-
setChainNameBytes
public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder setChainNameBytes(com.google.protobuf.ByteString value) Chain name that the snapshot is created in.
optional string chain_name = 68644169;- Parameters:
value- The bytes for chainName to set.- Returns:
- This builder for chaining.
-
hasGuestFlush
public boolean hasGuestFlush()Indication to perform a 'guest aware' snapshot.
optional bool guest_flush = 385550813;- Specified by:
hasGuestFlushin interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder- Returns:
- Whether the guestFlush field is set.
-
getGuestFlush
public boolean getGuestFlush()Indication to perform a 'guest aware' snapshot.
optional bool guest_flush = 385550813;- Specified by:
getGuestFlushin interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder- Returns:
- The guestFlush.
-
setGuestFlush
Indication to perform a 'guest aware' snapshot.
optional bool guest_flush = 385550813;- Parameters:
value- The guestFlush to set.- Returns:
- This builder for chaining.
-
clearGuestFlush
Indication to perform a 'guest aware' snapshot.
optional bool guest_flush = 385550813;- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:ResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilderLabels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty.
map<string, string> labels = 500195327;- Specified by:
getLabelsCountin interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder
-
containsLabels
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;- Specified by:
containsLabelsin interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder
-
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;- Specified by:
getLabelsMapin interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder
-
getLabelsOrDefault
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;- Specified by:
getLabelsOrDefaultin interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder
-
getLabelsOrThrow
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;- Specified by:
getLabelsOrThrowin interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder
-
clearLabels
-
removeLabels
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; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
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; -
putAllLabels
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; -
getStorageLocationsList
public com.google.protobuf.ProtocolStringList getStorageLocationsList()Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Specified by:
getStorageLocationsListin interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder- Returns:
- A list containing the storageLocations.
-
getStorageLocationsCount
public int getStorageLocationsCount()Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Specified by:
getStorageLocationsCountin interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder- Returns:
- The count of storageLocations.
-
getStorageLocations
Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Specified by:
getStorageLocationsin interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The storageLocations at the given index.
-
getStorageLocationsBytes
public com.google.protobuf.ByteString getStorageLocationsBytes(int index) Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Specified by:
getStorageLocationsBytesin interfaceResourcePolicySnapshotSchedulePolicySnapshotPropertiesOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the storageLocations at the given index.
-
setStorageLocations
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:
index- The index to set the value at.value- The storageLocations to set.- Returns:
- This builder for chaining.
-
addStorageLocations
public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder addStorageLocations(String value) Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Parameters:
value- The storageLocations to add.- Returns:
- This builder for chaining.
-
addAllStorageLocations
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;- Parameters:
values- The storageLocations to add.- Returns:
- This builder for chaining.
-
clearStorageLocations
Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Returns:
- This builder for chaining.
-
addStorageLocationsBytes
public ResourcePolicySnapshotSchedulePolicySnapshotProperties.Builder addStorageLocationsBytes(com.google.protobuf.ByteString value) Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).
repeated string storage_locations = 328005274;- Parameters:
value- The bytes of the storageLocations to add.- Returns:
- This builder for chaining.
-