Class BatchCreateInstancesMetadata.Builder (0.3.0)

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

Message for metadata that is specific to BatchCreateInstances API.

Protobuf type google.cloud.alloydb.v1.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.v1.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()

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.v1.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.v1.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.v1.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.v1.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()

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

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

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

Parameters
Name Description
key String
value BatchCreateInstanceStatus
Returns
Type Description
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
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