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()
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 |
Name |
Description |
values |
Iterable<String>
The instanceTargets to add.
|
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.
|
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.
|
public BatchCreateInstancesMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public BatchCreateInstancesMetadata build()
public BatchCreateInstancesMetadata buildPartial()
public BatchCreateInstancesMetadata.Builder clear()
Overrides
public BatchCreateInstancesMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public BatchCreateInstancesMetadata.Builder clearInstanceStatuses()
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;
public BatchCreateInstancesMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public BatchCreateInstancesMetadata.Builder clone()
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 |
Name |
Description |
key |
String
|
public BatchCreateInstancesMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Map<String,BatchCreateInstanceStatus> getInstanceStatuses()
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 |
Type |
Description |
int |
|
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;
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;
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 |
Name |
Description |
key |
String
|
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;
public Map<String,BatchCreateInstanceStatus> getMutableInstanceStatuses()
Use alternate mutation accessors instead.
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapField internalGetMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
protected MapField internalGetMutableMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
public final boolean isInitialized()
Overrides
public BatchCreateInstancesMetadata.Builder mergeFrom(BatchCreateInstancesMetadata other)
public BatchCreateInstancesMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public BatchCreateInstancesMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final BatchCreateInstancesMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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 |
Name |
Description |
key |
String
|
public BatchCreateInstancesMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
public BatchCreateInstancesMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final BatchCreateInstancesMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides