Class BatchCreateInstancesMetadata.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public BatchCreateInstancesMetadata 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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
      • 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;
      • 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

        public BatchCreateInstancesMetadata.Builder putAllInstanceStatuses​(Map<String,​BatchCreateInstanceStatus> values)
         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;