public final class BatchCreateInstancesMetadata extends GeneratedMessageV3 implements BatchCreateInstancesMetadataOrBuilder
Message for metadata that is specific to BatchCreateInstances API.
Protobuf type google.cloud.alloydb.v1beta.BatchCreateInstancesMetadata
Static Fields
public static final int INSTANCE_STATUSES_FIELD_NUMBER
Field Value
public static final int INSTANCE_TARGETS_FIELD_NUMBER
Field Value
Static Methods
public static BatchCreateInstancesMetadata getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static BatchCreateInstancesMetadata.Builder newBuilder()
Returns
public static BatchCreateInstancesMetadata.Builder newBuilder(BatchCreateInstancesMetadata prototype)
Parameter
Returns
public static BatchCreateInstancesMetadata parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static BatchCreateInstancesMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchCreateInstancesMetadata parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
public static BatchCreateInstancesMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchCreateInstancesMetadata parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static BatchCreateInstancesMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchCreateInstancesMetadata parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static BatchCreateInstancesMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchCreateInstancesMetadata parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static BatchCreateInstancesMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static BatchCreateInstancesMetadata parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static BatchCreateInstancesMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<BatchCreateInstancesMetadata> parser()
Returns
Methods
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
Returns
public boolean equals(Object obj)
Parameter
Returns
Overrides
public BatchCreateInstancesMetadata getDefaultInstanceForType()
Returns
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.v1beta.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.v1beta.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.v1beta.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.v1beta.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 Parser<BatchCreateInstancesMetadata> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public BatchCreateInstancesMetadata.Builder newBuilderForType()
Returns
protected BatchCreateInstancesMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public BatchCreateInstancesMetadata.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions