Package com.google.cloud.compute.v1
Class SnapshotGroupParameters.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SnapshotGroupParameters.Builder>
com.google.cloud.compute.v1.SnapshotGroupParameters.Builder
- All Implemented Interfaces:
SnapshotGroupParametersOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SnapshotGroupParameters
public static final class SnapshotGroupParameters.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SnapshotGroupParameters.Builder>
implements SnapshotGroupParametersOrBuilder
Protobuf type
google.cloud.compute.v1.SnapshotGroupParameters-
Method Summary
Modifier and TypeMethodDescriptionaddAllReplicaZones(Iterable<String> values) URLs of the zones where disks should be replicated to.addReplicaZones(String value) URLs of the zones where disks should be replicated to.addReplicaZonesBytes(com.google.protobuf.ByteString value) URLs of the zones where disks should be replicated to.build()clear()URLs of the zones where disks should be replicated to.The source snapshot group used to create disks.URL of the disk type resource describing which disk type to use to create disks.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetReplicaZones(int index) URLs of the zones where disks should be replicated to.com.google.protobuf.ByteStringgetReplicaZonesBytes(int index) URLs of the zones where disks should be replicated to.intURLs of the zones where disks should be replicated to.com.google.protobuf.ProtocolStringListURLs of the zones where disks should be replicated to.The source snapshot group used to create disks.com.google.protobuf.ByteStringThe source snapshot group used to create disks.getType()URL of the disk type resource describing which disk type to use to create disks.com.google.protobuf.ByteStringURL of the disk type resource describing which disk type to use to create disks.booleanThe source snapshot group used to create disks.booleanhasType()URL of the disk type resource describing which disk type to use to create disks.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SnapshotGroupParameters other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setReplicaZones(int index, String value) URLs of the zones where disks should be replicated to.setSourceSnapshotGroup(String value) The source snapshot group used to create disks.setSourceSnapshotGroupBytes(com.google.protobuf.ByteString value) The source snapshot group used to create disks.URL of the disk type resource describing which disk type to use to create disks.setTypeBytes(com.google.protobuf.ByteString value) URL of the disk type resource describing which disk type to use to create disks.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SnapshotGroupParameters.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<SnapshotGroupParameters.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<SnapshotGroupParameters.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SnapshotGroupParameters.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SnapshotGroupParameters.Builder>
-
mergeFrom
public SnapshotGroupParameters.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<SnapshotGroupParameters.Builder>- Throws:
IOException
-
getReplicaZonesList
public com.google.protobuf.ProtocolStringList getReplicaZonesList()URLs of the zones where disks should be replicated to. Only applicable for regional resources.
repeated string replica_zones = 48438272;- Specified by:
getReplicaZonesListin interfaceSnapshotGroupParametersOrBuilder- Returns:
- A list containing the replicaZones.
-
getReplicaZonesCount
public int getReplicaZonesCount()URLs of the zones where disks should be replicated to. Only applicable for regional resources.
repeated string replica_zones = 48438272;- Specified by:
getReplicaZonesCountin interfaceSnapshotGroupParametersOrBuilder- Returns:
- The count of replicaZones.
-
getReplicaZones
URLs of the zones where disks should be replicated to. Only applicable for regional resources.
repeated string replica_zones = 48438272;- Specified by:
getReplicaZonesin interfaceSnapshotGroupParametersOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The replicaZones at the given index.
-
getReplicaZonesBytes
public com.google.protobuf.ByteString getReplicaZonesBytes(int index) URLs of the zones where disks should be replicated to. Only applicable for regional resources.
repeated string replica_zones = 48438272;- Specified by:
getReplicaZonesBytesin interfaceSnapshotGroupParametersOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the replicaZones at the given index.
-
setReplicaZones
URLs of the zones where disks should be replicated to. Only applicable for regional resources.
repeated string replica_zones = 48438272;- Parameters:
index- The index to set the value at.value- The replicaZones to set.- Returns:
- This builder for chaining.
-
addReplicaZones
URLs of the zones where disks should be replicated to. Only applicable for regional resources.
repeated string replica_zones = 48438272;- Parameters:
value- The replicaZones to add.- Returns:
- This builder for chaining.
-
addAllReplicaZones
URLs of the zones where disks should be replicated to. Only applicable for regional resources.
repeated string replica_zones = 48438272;- Parameters:
values- The replicaZones to add.- Returns:
- This builder for chaining.
-
clearReplicaZones
URLs of the zones where disks should be replicated to. Only applicable for regional resources.
repeated string replica_zones = 48438272;- Returns:
- This builder for chaining.
-
addReplicaZonesBytes
URLs of the zones where disks should be replicated to. Only applicable for regional resources.
repeated string replica_zones = 48438272;- Parameters:
value- The bytes of the replicaZones to add.- Returns:
- This builder for chaining.
-
hasSourceSnapshotGroup
public boolean hasSourceSnapshotGroup()The source snapshot group used to create disks. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup - projects/project/global/snapshotGroups/snapshotGroup - global/snapshotGroups/snapshotGroup
optional string source_snapshot_group = 225130728;- Specified by:
hasSourceSnapshotGroupin interfaceSnapshotGroupParametersOrBuilder- Returns:
- Whether the sourceSnapshotGroup field is set.
-
getSourceSnapshotGroup
The source snapshot group used to create disks. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup - projects/project/global/snapshotGroups/snapshotGroup - global/snapshotGroups/snapshotGroup
optional string source_snapshot_group = 225130728;- Specified by:
getSourceSnapshotGroupin interfaceSnapshotGroupParametersOrBuilder- Returns:
- The sourceSnapshotGroup.
-
getSourceSnapshotGroupBytes
public com.google.protobuf.ByteString getSourceSnapshotGroupBytes()The source snapshot group used to create disks. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup - projects/project/global/snapshotGroups/snapshotGroup - global/snapshotGroups/snapshotGroup
optional string source_snapshot_group = 225130728;- Specified by:
getSourceSnapshotGroupBytesin interfaceSnapshotGroupParametersOrBuilder- Returns:
- The bytes for sourceSnapshotGroup.
-
setSourceSnapshotGroup
The source snapshot group used to create disks. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup - projects/project/global/snapshotGroups/snapshotGroup - global/snapshotGroups/snapshotGroup
optional string source_snapshot_group = 225130728;- Parameters:
value- The sourceSnapshotGroup to set.- Returns:
- This builder for chaining.
-
clearSourceSnapshotGroup
The source snapshot group used to create disks. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup - projects/project/global/snapshotGroups/snapshotGroup - global/snapshotGroups/snapshotGroup
optional string source_snapshot_group = 225130728;- Returns:
- This builder for chaining.
-
setSourceSnapshotGroupBytes
public SnapshotGroupParameters.Builder setSourceSnapshotGroupBytes(com.google.protobuf.ByteString value) The source snapshot group used to create disks. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/global/snapshotGroups/snapshotGroup - projects/project/global/snapshotGroups/snapshotGroup - global/snapshotGroups/snapshotGroup
optional string source_snapshot_group = 225130728;- Parameters:
value- The bytes for sourceSnapshotGroup to set.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()URL of the disk type resource describing which disk type to use to create disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk types.
optional string type = 3575610;- Specified by:
hasTypein interfaceSnapshotGroupParametersOrBuilder- Returns:
- Whether the type field is set.
-
getType
URL of the disk type resource describing which disk type to use to create disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk types.
optional string type = 3575610;- Specified by:
getTypein interfaceSnapshotGroupParametersOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()URL of the disk type resource describing which disk type to use to create disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk types.
optional string type = 3575610;- Specified by:
getTypeBytesin interfaceSnapshotGroupParametersOrBuilder- Returns:
- The bytes for type.
-
setType
URL of the disk type resource describing which disk type to use to create disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk types.
optional string type = 3575610;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
URL of the disk type resource describing which disk type to use to create disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk types.
optional string type = 3575610;- Returns:
- This builder for chaining.
-
setTypeBytes
URL of the disk type resource describing which disk type to use to create disks. Provide this when creating the disk. For example:projects/project/zones/zone/diskTypes/pd-ssd. See Persistent disk types.
optional string type = 3575610;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-