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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SnapshotGroupParameters.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SnapshotGroupParameters.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SnapshotGroupParameters.Builder>
    • getDefaultInstanceForType

      public SnapshotGroupParameters getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SnapshotGroupParameters build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SnapshotGroupParameters buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SnapshotGroupParameters.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SnapshotGroupParameters.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getReplicaZonesList in interface SnapshotGroupParametersOrBuilder
      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:
      getReplicaZonesCount in interface SnapshotGroupParametersOrBuilder
      Returns:
      The count of replicaZones.
    • getReplicaZones

      public String getReplicaZones(int index)
       URLs of the zones where disks should be replicated to. Only applicable
       for regional resources.
       
      repeated string replica_zones = 48438272;
      Specified by:
      getReplicaZones in interface SnapshotGroupParametersOrBuilder
      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:
      getReplicaZonesBytes in interface SnapshotGroupParametersOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the replicaZones at the given index.
    • setReplicaZones

      public SnapshotGroupParameters.Builder setReplicaZones(int index, String value)
       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

      public SnapshotGroupParameters.Builder addReplicaZones(String value)
       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

      public SnapshotGroupParameters.Builder addAllReplicaZones(Iterable<String> values)
       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

      public SnapshotGroupParameters.Builder 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

      public SnapshotGroupParameters.Builder addReplicaZonesBytes(com.google.protobuf.ByteString value)
       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:
      hasSourceSnapshotGroup in interface SnapshotGroupParametersOrBuilder
      Returns:
      Whether the sourceSnapshotGroup field is set.
    • getSourceSnapshotGroup

      public String 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:
      getSourceSnapshotGroup in interface SnapshotGroupParametersOrBuilder
      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:
      getSourceSnapshotGroupBytes in interface SnapshotGroupParametersOrBuilder
      Returns:
      The bytes for sourceSnapshotGroup.
    • setSourceSnapshotGroup

      public SnapshotGroupParameters.Builder setSourceSnapshotGroup(String 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 sourceSnapshotGroup to set.
      Returns:
      This builder for chaining.
    • clearSourceSnapshotGroup

      public SnapshotGroupParameters.Builder 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:
      hasType in interface SnapshotGroupParametersOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String 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:
      getType in interface SnapshotGroupParametersOrBuilder
      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:
      getTypeBytes in interface SnapshotGroupParametersOrBuilder
      Returns:
      The bytes for type.
    • setType

      public SnapshotGroupParameters.Builder setType(String value)
       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

      public SnapshotGroupParameters.Builder 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

      public SnapshotGroupParameters.Builder setTypeBytes(com.google.protobuf.ByteString value)
       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.