Class BulkInsertDiskResource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BulkInsertDiskResource.Builder>
com.google.cloud.compute.v1.BulkInsertDiskResource.Builder
All Implemented Interfaces:
BulkInsertDiskResourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BulkInsertDiskResource

public static final class BulkInsertDiskResource.Builder extends com.google.protobuf.GeneratedMessage.Builder<BulkInsertDiskResource.Builder> implements BulkInsertDiskResourceOrBuilder
 A transient resource used in compute.disks.bulkInsert and
 compute.regionDisks.bulkInsert. It is only used to process
 requests and is not persisted.
 
Protobuf type google.cloud.compute.v1.BulkInsertDiskResource
  • 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<BulkInsertDiskResource.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<BulkInsertDiskResource.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<BulkInsertDiskResource.Builder>
    • getDefaultInstanceForType

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

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

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

      public BulkInsertDiskResource.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<BulkInsertDiskResource.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<BulkInsertDiskResource.Builder>
    • mergeFrom

      public BulkInsertDiskResource.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<BulkInsertDiskResource.Builder>
      Throws:
      IOException
    • hasInstantSnapshotGroupParameters

      public boolean hasInstantSnapshotGroupParameters()
       The parameters for the instant snapshot group.
       
      optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623;
      Specified by:
      hasInstantSnapshotGroupParameters in interface BulkInsertDiskResourceOrBuilder
      Returns:
      Whether the instantSnapshotGroupParameters field is set.
    • getInstantSnapshotGroupParameters

      public InstantSnapshotGroupParameters getInstantSnapshotGroupParameters()
       The parameters for the instant snapshot group.
       
      optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623;
      Specified by:
      getInstantSnapshotGroupParameters in interface BulkInsertDiskResourceOrBuilder
      Returns:
      The instantSnapshotGroupParameters.
    • setInstantSnapshotGroupParameters

      public BulkInsertDiskResource.Builder setInstantSnapshotGroupParameters(InstantSnapshotGroupParameters value)
       The parameters for the instant snapshot group.
       
      optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623;
    • setInstantSnapshotGroupParameters

      public BulkInsertDiskResource.Builder setInstantSnapshotGroupParameters(InstantSnapshotGroupParameters.Builder builderForValue)
       The parameters for the instant snapshot group.
       
      optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623;
    • mergeInstantSnapshotGroupParameters

      public BulkInsertDiskResource.Builder mergeInstantSnapshotGroupParameters(InstantSnapshotGroupParameters value)
       The parameters for the instant snapshot group.
       
      optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623;
    • clearInstantSnapshotGroupParameters

      public BulkInsertDiskResource.Builder clearInstantSnapshotGroupParameters()
       The parameters for the instant snapshot group.
       
      optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623;
    • getInstantSnapshotGroupParametersBuilder

      public InstantSnapshotGroupParameters.Builder getInstantSnapshotGroupParametersBuilder()
       The parameters for the instant snapshot group.
       
      optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623;
    • getInstantSnapshotGroupParametersOrBuilder

      public InstantSnapshotGroupParametersOrBuilder getInstantSnapshotGroupParametersOrBuilder()
       The parameters for the instant snapshot group.
       
      optional .google.cloud.compute.v1.InstantSnapshotGroupParameters instant_snapshot_group_parameters = 17051623;
      Specified by:
      getInstantSnapshotGroupParametersOrBuilder in interface BulkInsertDiskResourceOrBuilder
    • hasSnapshotGroupParameters

      public boolean hasSnapshotGroupParameters()
       The parameters for the snapshot group. The usage of snapshot group feature
       is restricted.
       
      optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485;
      Specified by:
      hasSnapshotGroupParameters in interface BulkInsertDiskResourceOrBuilder
      Returns:
      Whether the snapshotGroupParameters field is set.
    • getSnapshotGroupParameters

      public SnapshotGroupParameters getSnapshotGroupParameters()
       The parameters for the snapshot group. The usage of snapshot group feature
       is restricted.
       
      optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485;
      Specified by:
      getSnapshotGroupParameters in interface BulkInsertDiskResourceOrBuilder
      Returns:
      The snapshotGroupParameters.
    • setSnapshotGroupParameters

      public BulkInsertDiskResource.Builder setSnapshotGroupParameters(SnapshotGroupParameters value)
       The parameters for the snapshot group. The usage of snapshot group feature
       is restricted.
       
      optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485;
    • setSnapshotGroupParameters

      public BulkInsertDiskResource.Builder setSnapshotGroupParameters(SnapshotGroupParameters.Builder builderForValue)
       The parameters for the snapshot group. The usage of snapshot group feature
       is restricted.
       
      optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485;
    • mergeSnapshotGroupParameters

      public BulkInsertDiskResource.Builder mergeSnapshotGroupParameters(SnapshotGroupParameters value)
       The parameters for the snapshot group. The usage of snapshot group feature
       is restricted.
       
      optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485;
    • clearSnapshotGroupParameters

      public BulkInsertDiskResource.Builder clearSnapshotGroupParameters()
       The parameters for the snapshot group. The usage of snapshot group feature
       is restricted.
       
      optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485;
    • getSnapshotGroupParametersBuilder

      public SnapshotGroupParameters.Builder getSnapshotGroupParametersBuilder()
       The parameters for the snapshot group. The usage of snapshot group feature
       is restricted.
       
      optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485;
    • getSnapshotGroupParametersOrBuilder

      public SnapshotGroupParametersOrBuilder getSnapshotGroupParametersOrBuilder()
       The parameters for the snapshot group. The usage of snapshot group feature
       is restricted.
       
      optional .google.cloud.compute.v1.SnapshotGroupParameters snapshot_group_parameters = 42252485;
      Specified by:
      getSnapshotGroupParametersOrBuilder in interface BulkInsertDiskResourceOrBuilder
    • hasSourceConsistencyGroupPolicy

      public boolean hasSourceConsistencyGroupPolicy()
       The URL of the DiskConsistencyGroupPolicy for the group of disks to clone.
       This may be a full or partial URL, such as:
      
      
       -
       https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy
      
       -
       projects/project/regions/region/resourcePolicies/resourcePolicy
      
       -
       regions/region/resourcePolicies/resourcePolicy
       
      optional string source_consistency_group_policy = 19616093;
      Specified by:
      hasSourceConsistencyGroupPolicy in interface BulkInsertDiskResourceOrBuilder
      Returns:
      Whether the sourceConsistencyGroupPolicy field is set.
    • getSourceConsistencyGroupPolicy

      public String getSourceConsistencyGroupPolicy()
       The URL of the DiskConsistencyGroupPolicy for the group of disks to clone.
       This may be a full or partial URL, such as:
      
      
       -
       https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy
      
       -
       projects/project/regions/region/resourcePolicies/resourcePolicy
      
       -
       regions/region/resourcePolicies/resourcePolicy
       
      optional string source_consistency_group_policy = 19616093;
      Specified by:
      getSourceConsistencyGroupPolicy in interface BulkInsertDiskResourceOrBuilder
      Returns:
      The sourceConsistencyGroupPolicy.
    • getSourceConsistencyGroupPolicyBytes

      public com.google.protobuf.ByteString getSourceConsistencyGroupPolicyBytes()
       The URL of the DiskConsistencyGroupPolicy for the group of disks to clone.
       This may be a full or partial URL, such as:
      
      
       -
       https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy
      
       -
       projects/project/regions/region/resourcePolicies/resourcePolicy
      
       -
       regions/region/resourcePolicies/resourcePolicy
       
      optional string source_consistency_group_policy = 19616093;
      Specified by:
      getSourceConsistencyGroupPolicyBytes in interface BulkInsertDiskResourceOrBuilder
      Returns:
      The bytes for sourceConsistencyGroupPolicy.
    • setSourceConsistencyGroupPolicy

      public BulkInsertDiskResource.Builder setSourceConsistencyGroupPolicy(String value)
       The URL of the DiskConsistencyGroupPolicy for the group of disks to clone.
       This may be a full or partial URL, such as:
      
      
       -
       https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy
      
       -
       projects/project/regions/region/resourcePolicies/resourcePolicy
      
       -
       regions/region/resourcePolicies/resourcePolicy
       
      optional string source_consistency_group_policy = 19616093;
      Parameters:
      value - The sourceConsistencyGroupPolicy to set.
      Returns:
      This builder for chaining.
    • clearSourceConsistencyGroupPolicy

      public BulkInsertDiskResource.Builder clearSourceConsistencyGroupPolicy()
       The URL of the DiskConsistencyGroupPolicy for the group of disks to clone.
       This may be a full or partial URL, such as:
      
      
       -
       https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy
      
       -
       projects/project/regions/region/resourcePolicies/resourcePolicy
      
       -
       regions/region/resourcePolicies/resourcePolicy
       
      optional string source_consistency_group_policy = 19616093;
      Returns:
      This builder for chaining.
    • setSourceConsistencyGroupPolicyBytes

      public BulkInsertDiskResource.Builder setSourceConsistencyGroupPolicyBytes(com.google.protobuf.ByteString value)
       The URL of the DiskConsistencyGroupPolicy for the group of disks to clone.
       This may be a full or partial URL, such as:
      
      
       -
       https://www.googleapis.com/compute/v1/projects/project/regions/region/resourcePolicies/resourcePolicy
      
       -
       projects/project/regions/region/resourcePolicies/resourcePolicy
      
       -
       regions/region/resourcePolicies/resourcePolicy
       
      optional string source_consistency_group_policy = 19616093;
      Parameters:
      value - The bytes for sourceConsistencyGroupPolicy to set.
      Returns:
      This builder for chaining.