Class BatchCreateInstancesMetadata.Builder (0.43.0)

public static final class BatchCreateInstancesMetadata.Builder extends GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder> implements BatchCreateInstancesMetadataOrBuilder

Message for metadata that is specific to BatchCreateInstances API. NEXT_ID: 3

Protobuf type google.cloud.alloydb.v1beta.BatchCreateInstancesMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllInstanceTargets(Iterable<String> values)

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;

Parameter
Name Description
values Iterable<String>

The instanceTargets to add.

Returns
Type Description
BatchCreateInstancesMetadata.Builder

This builder for chaining.

addInstanceTargets(String value)

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;

Parameter
Name Description
value String

The instanceTargets to add.

Returns
Type Description
BatchCreateInstancesMetadata.Builder

This builder for chaining.

addInstanceTargetsBytes(ByteString value)

public BatchCreateInstancesMetadata.Builder addInstanceTargetsBytes(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;

Parameter
Name Description
value ByteString

The bytes of the instanceTargets to add.

Returns
Type Description
BatchCreateInstancesMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateInstancesMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchCreateInstancesMetadata.Builder
Overrides

build()

public BatchCreateInstancesMetadata build()
Returns
Type Description
BatchCreateInstancesMetadata

buildPartial()

public BatchCreateInstancesMetadata buildPartial()
Returns
Type Description
BatchCreateInstancesMetadata

clear()

public BatchCreateInstancesMetadata.Builder clear()
Returns
Type Description
BatchCreateInstancesMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchCreateInstancesMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchCreateInstancesMetadata.Builder
Overrides

clearInstanceStatuses()

public BatchCreateInstancesMetadata.Builder clearInstanceStatuses()
Returns
Type Description
BatchCreateInstancesMetadata.Builder

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
Type Description
BatchCreateInstancesMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateInstancesMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchCreateInstancesMetadata.Builder
Overrides

clone()

public BatchCreateInstancesMetadata.Builder clone()
Returns
Type Description
BatchCreateInstancesMetadata.Builder
Overrides

containsInstanceStatuses(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public BatchCreateInstancesMetadata getDefaultInstanceForType()
Returns
Type Description
BatchCreateInstancesMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstanceStatuses() (deprecated)

public Map<String,BatchCreateInstanceStatus> getInstanceStatuses()
Returns
Type Description
Map<String,BatchCreateInstanceStatus>

getInstanceStatusesCount()

public int getInstanceStatusesCount()

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;

Returns
Type Description
int

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;

Returns
Type Description
Map<String,BatchCreateInstanceStatus>

getInstanceStatusesOrDefault(String key, BatchCreateInstanceStatus defaultValue)

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;

Parameters
Name Description
key String
defaultValue BatchCreateInstanceStatus
Returns
Type Description
BatchCreateInstanceStatus

getInstanceStatusesOrThrow(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
BatchCreateInstanceStatus

getInstanceTargets(int index)

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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The instanceTargets at the given index.

getInstanceTargetsBytes(int index)

public 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;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the instanceTargets at the given index.

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;

Returns
Type Description
int

The count of instanceTargets.

getInstanceTargetsList()

public 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;

Returns
Type Description
ProtocolStringList

A list containing the instanceTargets.

getMutableInstanceStatuses() (deprecated)

public Map<String,BatchCreateInstanceStatus> getMutableInstanceStatuses()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,BatchCreateInstanceStatus>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreateInstancesMetadata other)

public BatchCreateInstancesMetadata.Builder mergeFrom(BatchCreateInstancesMetadata other)
Parameter
Name Description
other BatchCreateInstancesMetadata
Returns
Type Description
BatchCreateInstancesMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCreateInstancesMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateInstancesMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchCreateInstancesMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchCreateInstancesMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateInstancesMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchCreateInstancesMetadata.Builder
Overrides

putAllInstanceStatuses(Map<String,BatchCreateInstanceStatus> values)

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;

Parameter
Name Description
values Map<String,BatchCreateInstanceStatus>
Returns
Type Description
BatchCreateInstancesMetadata.Builder

putInstanceStatuses(String key, BatchCreateInstanceStatus value)

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;

Parameters
Name Description
key String
value BatchCreateInstanceStatus
Returns
Type Description
BatchCreateInstancesMetadata.Builder

putInstanceStatusesBuilderIfAbsent(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
BatchCreateInstanceStatus.Builder

removeInstanceStatuses(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
BatchCreateInstancesMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateInstancesMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchCreateInstancesMetadata.Builder
Overrides

setInstanceTargets(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The instanceTargets to set.

Returns
Type Description
BatchCreateInstancesMetadata.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BatchCreateInstancesMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchCreateInstancesMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateInstancesMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchCreateInstancesMetadata.Builder
Overrides