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.v1alpha.BatchCreateInstancesMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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
Returns
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
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
public BatchCreateInstancesMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public BatchCreateInstancesMetadata build()
Returns
public BatchCreateInstancesMetadata buildPartial()
Returns
public BatchCreateInstancesMetadata.Builder clear()
Returns
Overrides
public BatchCreateInstancesMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public BatchCreateInstancesMetadata.Builder clearInstanceStatuses()
Returns
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
public BatchCreateInstancesMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public BatchCreateInstancesMetadata.Builder clone()
Returns
Overrides
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.v1alpha.BatchCreateInstanceStatus> instance_statuses = 2;
Parameter
Returns
public BatchCreateInstancesMetadata getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public Map<String,BatchCreateInstanceStatus> getInstanceStatuses()
Returns
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.v1alpha.BatchCreateInstanceStatus> instance_statuses = 2;
Returns
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.v1alpha.BatchCreateInstanceStatus> instance_statuses = 2;
Returns
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.v1alpha.BatchCreateInstanceStatus> instance_statuses = 2;
Parameters
Returns
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.v1alpha.BatchCreateInstanceStatus> instance_statuses = 2;
Parameter
Returns
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.
|
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.
|
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.
|
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
public Map<String,BatchCreateInstanceStatus> getMutableInstanceStatuses()
Use alternate mutation accessors instead.
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
protected MapField internalGetMutableMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public BatchCreateInstancesMetadata.Builder mergeFrom(BatchCreateInstancesMetadata other)
Parameter
Returns
public BatchCreateInstancesMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public BatchCreateInstancesMetadata.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final BatchCreateInstancesMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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.v1alpha.BatchCreateInstanceStatus> instance_statuses = 2;
Parameter
Returns
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.v1alpha.BatchCreateInstanceStatus> instance_statuses = 2;
Parameters
Returns
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.v1alpha.BatchCreateInstanceStatus> instance_statuses = 2;
Parameter
Returns
public BatchCreateInstancesMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
public BatchCreateInstancesMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final BatchCreateInstancesMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides