Package com.google.cloud.alloydb.v1beta
Class BatchCreateInstancesMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchCreateInstancesMetadata.Builder>
com.google.cloud.alloydb.v1beta.BatchCreateInstancesMetadata.Builder
- All Implemented Interfaces:
BatchCreateInstancesMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchCreateInstancesMetadata
public static final class BatchCreateInstancesMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BatchCreateInstancesMetadata.Builder>
implements BatchCreateInstancesMetadataOrBuilder
Message for metadata that is specific to BatchCreateInstances API. NEXT_ID: 3Protobuf type
google.cloud.alloydb.v1beta.BatchCreateInstancesMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddAllInstanceTargets(Iterable<String> values) The instances being created in the API call.addInstanceTargets(String value) The instances being created in the API call.addInstanceTargetsBytes(com.google.protobuf.ByteString value) The instances being created in the API call.build()clear()The instances being created in the API call.booleanA map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intA map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.getInstanceStatusesOrDefault(String key, BatchCreateInstanceStatus defaultValue) A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.getInstanceTargets(int index) The instances being created in the API call.com.google.protobuf.ByteStringgetInstanceTargetsBytes(int index) The instances being created in the API call.intThe instances being created in the API call.com.google.protobuf.ProtocolStringListThe instances being created in the API call.Deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.putInstanceStatuses(String key, BatchCreateInstanceStatus value) A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.setInstanceTargets(int index, String value) The instances being created in the API call.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<BatchCreateInstancesMetadata.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<BatchCreateInstancesMetadata.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BatchCreateInstancesMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BatchCreateInstancesMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BatchCreateInstancesMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchCreateInstancesMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BatchCreateInstancesMetadata.Builder>
-
mergeFrom
public BatchCreateInstancesMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchCreateInstancesMetadata.Builder>- Throws:
IOException
-
getInstanceTargetsList
public com.google.protobuf.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;- Specified by:
getInstanceTargetsListin interfaceBatchCreateInstancesMetadataOrBuilder- Returns:
- A list containing the instanceTargets.
-
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;- Specified by:
getInstanceTargetsCountin interfaceBatchCreateInstancesMetadataOrBuilder- Returns:
- The count of instanceTargets.
-
getInstanceTargets
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;- Specified by:
getInstanceTargetsin interfaceBatchCreateInstancesMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The instanceTargets at the given index.
-
getInstanceTargetsBytes
public com.google.protobuf.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;- Specified by:
getInstanceTargetsBytesin interfaceBatchCreateInstancesMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instanceTargets at the given index.
-
setInstanceTargets
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:
index- The index to set the value at.value- The instanceTargets to set.- Returns:
- This builder for chaining.
-
addInstanceTargets
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:
value- The instanceTargets to add.- Returns:
- This builder for chaining.
-
addAllInstanceTargets
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:
values- The instanceTargets to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addInstanceTargetsBytes
public BatchCreateInstancesMetadata.Builder addInstanceTargetsBytes(com.google.protobuf.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;- Parameters:
value- The bytes of the instanceTargets to add.- Returns:
- This builder for chaining.
-
getInstanceStatusesCount
public int getInstanceStatusesCount()Description copied from interface:BatchCreateInstancesMetadataOrBuilderA 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;- Specified by:
getInstanceStatusesCountin interfaceBatchCreateInstancesMetadataOrBuilder
-
containsInstanceStatuses
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;- Specified by:
containsInstanceStatusesin interfaceBatchCreateInstancesMetadataOrBuilder
-
getInstanceStatuses
Deprecated.UsegetInstanceStatusesMap()instead.- Specified by:
getInstanceStatusesin interfaceBatchCreateInstancesMetadataOrBuilder
-
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;- Specified by:
getInstanceStatusesMapin interfaceBatchCreateInstancesMetadataOrBuilder
-
getInstanceStatusesOrDefault
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;- Specified by:
getInstanceStatusesOrDefaultin interfaceBatchCreateInstancesMetadataOrBuilder
-
getInstanceStatusesOrThrow
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;- Specified by:
getInstanceStatusesOrThrowin interfaceBatchCreateInstancesMetadataOrBuilder
-
clearInstanceStatuses
-
removeInstanceStatuses
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; -
getMutableInstanceStatuses
Deprecated.Use alternate mutation accessors instead. -
putInstanceStatuses
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.v1beta.BatchCreateInstanceStatus> instance_statuses = 2; -
putAllInstanceStatuses
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.v1beta.BatchCreateInstanceStatus> instance_statuses = 2; -
putInstanceStatusesBuilderIfAbsent
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;
-