Class BatchCreateInstancesMetadata (0.17.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
Type Description
int

INSTANCE_TARGETS_FIELD_NUMBER

public static final int INSTANCE_TARGETS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BatchCreateInstancesMetadata getDefaultInstance()
Returns
Type Description
BatchCreateInstancesMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static BatchCreateInstancesMetadata.Builder newBuilder()
Returns
Type Description
BatchCreateInstancesMetadata.Builder

newBuilder(BatchCreateInstancesMetadata prototype)

public static BatchCreateInstancesMetadata.Builder newBuilder(BatchCreateInstancesMetadata prototype)
Parameter
Name Description
prototype BatchCreateInstancesMetadata
Returns
Type Description
BatchCreateInstancesMetadata.Builder

parseDelimitedFrom(InputStream input)

public static BatchCreateInstancesMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchCreateInstancesMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreateInstancesMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateInstancesMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BatchCreateInstancesMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BatchCreateInstancesMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BatchCreateInstancesMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateInstancesMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BatchCreateInstancesMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BatchCreateInstancesMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BatchCreateInstancesMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateInstancesMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BatchCreateInstancesMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BatchCreateInstancesMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreateInstancesMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateInstancesMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BatchCreateInstancesMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BatchCreateInstancesMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BatchCreateInstancesMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateInstancesMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BatchCreateInstancesMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BatchCreateInstancesMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BatchCreateInstancesMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateInstancesMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BatchCreateInstancesMetadata> parser()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public BatchCreateInstancesMetadata getDefaultInstanceForType()
Returns
Type Description
BatchCreateInstancesMetadata

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

getParserForType()

public Parser<BatchCreateInstancesMetadata> getParserForType()
Returns
Type Description
Parser<BatchCreateInstancesMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BatchCreateInstancesMetadata.Builder newBuilderForType()
Returns
Type Description
BatchCreateInstancesMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BatchCreateInstancesMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BatchCreateInstancesMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BatchCreateInstancesMetadata.Builder toBuilder()
Returns
Type Description
BatchCreateInstancesMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException