Class BatchCreateInstancesMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchCreateInstancesMetadata.Builder>
com.google.cloud.alloydb.v1beta.BatchCreateInstancesMetadata.Builder
All Implemented Interfaces:
BatchCreateInstancesMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BatchCreateInstancesMetadata

public static final class BatchCreateInstancesMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchCreateInstancesMetadata.Builder> implements BatchCreateInstancesMetadataOrBuilder
 Message for metadata that is specific to BatchCreateInstances API.
 NEXT_ID: 3
 
Protobuf type google.cloud.alloydb.v1beta.BatchCreateInstancesMetadata
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BatchCreateInstancesMetadata.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BatchCreateInstancesMetadata.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BatchCreateInstancesMetadata.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<BatchCreateInstancesMetadata.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<BatchCreateInstancesMetadata.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public BatchCreateInstancesMetadata.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<BatchCreateInstancesMetadata.Builder>
      Throws:
      IOException
    • getInstanceTargetsList

      public com.google.protobuf.ProtocolStringList getInstanceTargetsList()
       The instances being created in the API call. Each string in this list
       is the server defined resource path for target instances in the request
       and for the format of each string, see the comment on the Instance.name
       field.
       
      repeated string instance_targets = 1;
      Specified by:
      getInstanceTargetsList in interface BatchCreateInstancesMetadataOrBuilder
      Returns:
      A list containing the instanceTargets.
    • getInstanceTargetsCount

      public int getInstanceTargetsCount()
       The instances being created in the API call. Each string in this list
       is the server defined resource path for target instances in the request
       and for the format of each string, see the comment on the Instance.name
       field.
       
      repeated string instance_targets = 1;
      Specified by:
      getInstanceTargetsCount in interface BatchCreateInstancesMetadataOrBuilder
      Returns:
      The count of instanceTargets.
    • getInstanceTargets

      public String getInstanceTargets(int index)
       The instances being created in the API call. Each string in this list
       is the server defined resource path for target instances in the request
       and for the format of each string, see the comment on the Instance.name
       field.
       
      repeated string instance_targets = 1;
      Specified by:
      getInstanceTargets in interface BatchCreateInstancesMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The instanceTargets at the given index.
    • getInstanceTargetsBytes

      public com.google.protobuf.ByteString getInstanceTargetsBytes(int index)
       The instances being created in the API call. Each string in this list
       is the server defined resource path for target instances in the request
       and for the format of each string, see the comment on the Instance.name
       field.
       
      repeated string instance_targets = 1;
      Specified by:
      getInstanceTargetsBytes in interface BatchCreateInstancesMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the instanceTargets at the given index.
    • setInstanceTargets

      public BatchCreateInstancesMetadata.Builder setInstanceTargets(int index, String value)
       The instances being created in the API call. Each string in this list
       is the server defined resource path for target instances in the request
       and for the format of each string, see the comment on the Instance.name
       field.
       
      repeated string instance_targets = 1;
      Parameters:
      index - The index to set the value at.
      value - The instanceTargets to set.
      Returns:
      This builder for chaining.
    • addInstanceTargets

      public BatchCreateInstancesMetadata.Builder addInstanceTargets(String value)
       The instances being created in the API call. Each string in this list
       is the server defined resource path for target instances in the request
       and for the format of each string, see the comment on the Instance.name
       field.
       
      repeated string instance_targets = 1;
      Parameters:
      value - The instanceTargets to add.
      Returns:
      This builder for chaining.
    • addAllInstanceTargets

      public BatchCreateInstancesMetadata.Builder addAllInstanceTargets(Iterable<String> values)
       The instances being created in the API call. Each string in this list
       is the server defined resource path for target instances in the request
       and for the format of each string, see the comment on the Instance.name
       field.
       
      repeated string instance_targets = 1;
      Parameters:
      values - The instanceTargets to add.
      Returns:
      This builder for chaining.
    • clearInstanceTargets

      public BatchCreateInstancesMetadata.Builder clearInstanceTargets()
       The instances being created in the API call. Each string in this list
       is the server defined resource path for target instances in the request
       and for the format of each string, see the comment on the Instance.name
       field.
       
      repeated string instance_targets = 1;
      Returns:
      This builder for chaining.
    • addInstanceTargetsBytes

      public BatchCreateInstancesMetadata.Builder addInstanceTargetsBytes(com.google.protobuf.ByteString value)
       The instances being created in the API call. Each string in this list
       is the server defined resource path for target instances in the request
       and for the format of each string, see the comment on the Instance.name
       field.
       
      repeated string instance_targets = 1;
      Parameters:
      value - The bytes of the instanceTargets to add.
      Returns:
      This builder for chaining.
    • getInstanceStatusesCount

      public int getInstanceStatusesCount()
      Description copied from interface: BatchCreateInstancesMetadataOrBuilder
       A map representing state of the instances involved in the
       BatchCreateInstances operation during the operation execution.
       The instance state will be in STATE_UNSPECIFIED state if the instance has
       not yet been picked up for processing.
       The key of the map is the name of the instance resource.
       For the format, see the comment on the Instance.name field.
       
      map<string, .google.cloud.alloydb.v1beta.BatchCreateInstanceStatus> instance_statuses = 2;
      Specified by:
      getInstanceStatusesCount in interface BatchCreateInstancesMetadataOrBuilder
    • containsInstanceStatuses

      public boolean containsInstanceStatuses(String key)
       A map representing state of the instances involved in the
       BatchCreateInstances operation during the operation execution.
       The instance state will be in STATE_UNSPECIFIED state if the instance has
       not yet been picked up for processing.
       The key of the map is the name of the instance resource.
       For the format, see the comment on the Instance.name field.
       
      map<string, .google.cloud.alloydb.v1beta.BatchCreateInstanceStatus> instance_statuses = 2;
      Specified by:
      containsInstanceStatuses in interface BatchCreateInstancesMetadataOrBuilder
    • getInstanceStatuses

      @Deprecated public Map<String,BatchCreateInstanceStatus> getInstanceStatuses()
      Deprecated.
      Specified by:
      getInstanceStatuses in interface BatchCreateInstancesMetadataOrBuilder
    • getInstanceStatusesMap

      public Map<String,BatchCreateInstanceStatus> getInstanceStatusesMap()
       A map representing state of the instances involved in the
       BatchCreateInstances operation during the operation execution.
       The instance state will be in STATE_UNSPECIFIED state if the instance has
       not yet been picked up for processing.
       The key of the map is the name of the instance resource.
       For the format, see the comment on the Instance.name field.
       
      map<string, .google.cloud.alloydb.v1beta.BatchCreateInstanceStatus> instance_statuses = 2;
      Specified by:
      getInstanceStatusesMap in interface BatchCreateInstancesMetadataOrBuilder
    • getInstanceStatusesOrDefault

      public BatchCreateInstanceStatus getInstanceStatusesOrDefault(String key, BatchCreateInstanceStatus defaultValue)
       A map representing state of the instances involved in the
       BatchCreateInstances operation during the operation execution.
       The instance state will be in STATE_UNSPECIFIED state if the instance has
       not yet been picked up for processing.
       The key of the map is the name of the instance resource.
       For the format, see the comment on the Instance.name field.
       
      map<string, .google.cloud.alloydb.v1beta.BatchCreateInstanceStatus> instance_statuses = 2;
      Specified by:
      getInstanceStatusesOrDefault in interface BatchCreateInstancesMetadataOrBuilder
    • getInstanceStatusesOrThrow

      public BatchCreateInstanceStatus getInstanceStatusesOrThrow(String key)
       A map representing state of the instances involved in the
       BatchCreateInstances operation during the operation execution.
       The instance state will be in STATE_UNSPECIFIED state if the instance has
       not yet been picked up for processing.
       The key of the map is the name of the instance resource.
       For the format, see the comment on the Instance.name field.
       
      map<string, .google.cloud.alloydb.v1beta.BatchCreateInstanceStatus> instance_statuses = 2;
      Specified by:
      getInstanceStatusesOrThrow in interface BatchCreateInstancesMetadataOrBuilder
    • clearInstanceStatuses

      public BatchCreateInstancesMetadata.Builder clearInstanceStatuses()
    • removeInstanceStatuses

      public BatchCreateInstancesMetadata.Builder removeInstanceStatuses(String key)
       A map representing state of the instances involved in the
       BatchCreateInstances operation during the operation execution.
       The instance state will be in STATE_UNSPECIFIED state if the instance has
       not yet been picked up for processing.
       The key of the map is the name of the instance resource.
       For the format, see the comment on the Instance.name field.
       
      map<string, .google.cloud.alloydb.v1beta.BatchCreateInstanceStatus> instance_statuses = 2;
    • getMutableInstanceStatuses

      @Deprecated public Map<String,BatchCreateInstanceStatus> getMutableInstanceStatuses()
      Deprecated.
      Use alternate mutation accessors instead.
    • putInstanceStatuses

      public BatchCreateInstancesMetadata.Builder putInstanceStatuses(String key, BatchCreateInstanceStatus value)
       A map representing state of the instances involved in the
       BatchCreateInstances operation during the operation execution.
       The instance state will be in STATE_UNSPECIFIED state if the instance has
       not yet been picked up for processing.
       The key of the map is the name of the instance resource.
       For the format, see the comment on the Instance.name field.
       
      map<string, .google.cloud.alloydb.v1beta.BatchCreateInstanceStatus> instance_statuses = 2;
    • putAllInstanceStatuses

       A map representing state of the instances involved in the
       BatchCreateInstances operation during the operation execution.
       The instance state will be in STATE_UNSPECIFIED state if the instance has
       not yet been picked up for processing.
       The key of the map is the name of the instance resource.
       For the format, see the comment on the Instance.name field.
       
      map<string, .google.cloud.alloydb.v1beta.BatchCreateInstanceStatus> instance_statuses = 2;
    • putInstanceStatusesBuilderIfAbsent

      public BatchCreateInstanceStatus.Builder putInstanceStatusesBuilderIfAbsent(String key)
       A map representing state of the instances involved in the
       BatchCreateInstances operation during the operation execution.
       The instance state will be in STATE_UNSPECIFIED state if the instance has
       not yet been picked up for processing.
       The key of the map is the name of the instance resource.
       For the format, see the comment on the Instance.name field.
       
      map<string, .google.cloud.alloydb.v1beta.BatchCreateInstanceStatus> instance_statuses = 2;