Class BatchCreateInstancesMetadata.Builder (0.17.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.v1.BatchCreateInstancesMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The instanceTargets to add.

Returns
TypeDescription
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
NameDescription
valueString

The instanceTargets to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the instanceTargets to add.

Returns
TypeDescription
BatchCreateInstancesMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateInstancesMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder
Overrides

build()

public BatchCreateInstancesMetadata build()
Returns
TypeDescription
BatchCreateInstancesMetadata

buildPartial()

public BatchCreateInstancesMetadata buildPartial()
Returns
TypeDescription
BatchCreateInstancesMetadata

clear()

public BatchCreateInstancesMetadata.Builder clear()
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchCreateInstancesMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder
Overrides

clearInstanceStatuses()

public BatchCreateInstancesMetadata.Builder clearInstanceStatuses()
Returns
TypeDescription
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
TypeDescription
BatchCreateInstancesMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateInstancesMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder
Overrides

clone()

public BatchCreateInstancesMetadata.Builder clone()
Returns
TypeDescription
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.v1.BatchCreateInstanceStatus> instance_statuses = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public BatchCreateInstancesMetadata getDefaultInstanceForType()
Returns
TypeDescription
BatchCreateInstancesMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstanceStatuses()

public Map<String,BatchCreateInstanceStatus> getInstanceStatuses()
Returns
TypeDescription
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.v1.BatchCreateInstanceStatus> instance_statuses = 2;

Returns
TypeDescription
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.v1.BatchCreateInstanceStatus> instance_statuses = 2;

Returns
TypeDescription
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.v1.BatchCreateInstanceStatus> instance_statuses = 2;

Parameters
NameDescription
keyString
defaultValueBatchCreateInstanceStatus
Returns
TypeDescription
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.v1.BatchCreateInstanceStatus> instance_statuses = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the instanceTargets.

getMutableInstanceStatuses()

public Map<String,BatchCreateInstanceStatus> getMutableInstanceStatuses()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,BatchCreateInstanceStatus>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchCreateInstancesMetadata other)

public BatchCreateInstancesMetadata.Builder mergeFrom(BatchCreateInstancesMetadata other)
Parameter
NameDescription
otherBatchCreateInstancesMetadata
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCreateInstancesMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchCreateInstancesMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateInstancesMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1.BatchCreateInstanceStatus> instance_statuses = 2;

Parameter
NameDescription
valuesMap<String,BatchCreateInstanceStatus>
Returns
TypeDescription
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.v1.BatchCreateInstanceStatus> instance_statuses = 2;

Parameters
NameDescription
keyString
valueBatchCreateInstanceStatus
Returns
TypeDescription
BatchCreateInstancesMetadata.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.v1.BatchCreateInstanceStatus> instance_statuses = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateInstancesMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The instanceTargets to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateInstancesMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder
Overrides