Class BatchCreateInstancesMetadata (0.30.0)

public final class BatchCreateInstancesMetadata extends GeneratedMessageV3 implements BatchCreateInstancesMetadataOrBuilder

Message for metadata that is specific to BatchCreateInstances API. NEXT_ID: 3

Protobuf type google.cloud.alloydb.v1alpha.BatchCreateInstancesMetadata

Static Fields

INSTANCE_STATUSES_FIELD_NUMBER

public static final int INSTANCE_STATUSES_FIELD_NUMBER
Field Value
TypeDescription
int

INSTANCE_TARGETS_FIELD_NUMBER

public static final int INSTANCE_TARGETS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BatchCreateInstancesMetadata getDefaultInstance()
Returns
TypeDescription
BatchCreateInstancesMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static BatchCreateInstancesMetadata.Builder newBuilder()
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder

newBuilder(BatchCreateInstancesMetadata prototype)

public static BatchCreateInstancesMetadata.Builder newBuilder(BatchCreateInstancesMetadata prototype)
Parameter
NameDescription
prototypeBatchCreateInstancesMetadata
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder

parseDelimitedFrom(InputStream input)

public static BatchCreateInstancesMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchCreateInstancesMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreateInstancesMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateInstancesMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BatchCreateInstancesMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BatchCreateInstancesMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchCreateInstancesMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateInstancesMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchCreateInstancesMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BatchCreateInstancesMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchCreateInstancesMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateInstancesMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchCreateInstancesMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BatchCreateInstancesMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreateInstancesMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateInstancesMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BatchCreateInstancesMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BatchCreateInstancesMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreateInstancesMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateInstancesMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BatchCreateInstancesMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BatchCreateInstancesMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchCreateInstancesMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateInstancesMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BatchCreateInstancesMetadata> parser()
Returns
TypeDescription
Parser<BatchCreateInstancesMetadata>

Methods

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

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public BatchCreateInstancesMetadata getDefaultInstanceForType()
Returns
TypeDescription
BatchCreateInstancesMetadata

getInstanceStatuses() (deprecated)

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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.

getParserForType()

public Parser<BatchCreateInstancesMetadata> getParserForType()
Returns
TypeDescription
Parser<BatchCreateInstancesMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public BatchCreateInstancesMetadata.Builder newBuilderForType()
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BatchCreateInstancesMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public BatchCreateInstancesMetadata.Builder toBuilder()
Returns
TypeDescription
BatchCreateInstancesMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException