Package com.google.cloud.alloydb.v1
Class BatchCreateInstancesMetadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
- com.google.cloud.alloydb.v1.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.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder> implements BatchCreateInstancesMetadataOrBuilder
Message for metadata that is specific to BatchCreateInstances API. NEXT_ID: 3
Protobuf typegoogle.cloud.alloydb.v1.BatchCreateInstancesMetadata
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BatchCreateInstancesMetadata.BuilderaddAllInstanceTargets(Iterable<String> values)The instances being created in the API call.BatchCreateInstancesMetadata.BuilderaddInstanceTargets(String value)The instances being created in the API call.BatchCreateInstancesMetadata.BuilderaddInstanceTargetsBytes(com.google.protobuf.ByteString value)The instances being created in the API call.BatchCreateInstancesMetadata.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BatchCreateInstancesMetadatabuild()BatchCreateInstancesMetadatabuildPartial()BatchCreateInstancesMetadata.Builderclear()BatchCreateInstancesMetadata.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BatchCreateInstancesMetadata.BuilderclearInstanceStatuses()BatchCreateInstancesMetadata.BuilderclearInstanceTargets()The instances being created in the API call.BatchCreateInstancesMetadata.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BatchCreateInstancesMetadata.Builderclone()booleancontainsInstanceStatuses(String key)A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.BatchCreateInstancesMetadatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,BatchCreateInstanceStatus>getInstanceStatuses()Deprecated.intgetInstanceStatusesCount()A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.Map<String,BatchCreateInstanceStatus>getInstanceStatusesMap()A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.BatchCreateInstanceStatusgetInstanceStatusesOrDefault(String key, BatchCreateInstanceStatus defaultValue)A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.BatchCreateInstanceStatusgetInstanceStatusesOrThrow(String key)A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.StringgetInstanceTargets(int index)The instances being created in the API call.com.google.protobuf.ByteStringgetInstanceTargetsBytes(int index)The instances being created in the API call.intgetInstanceTargetsCount()The instances being created in the API call.com.google.protobuf.ProtocolStringListgetInstanceTargetsList()The instances being created in the API call.Map<String,BatchCreateInstanceStatus>getMutableInstanceStatuses()Deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()BatchCreateInstancesMetadata.BuildermergeFrom(BatchCreateInstancesMetadata other)BatchCreateInstancesMetadata.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BatchCreateInstancesMetadata.BuildermergeFrom(com.google.protobuf.Message other)BatchCreateInstancesMetadata.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BatchCreateInstancesMetadata.BuilderputAllInstanceStatuses(Map<String,BatchCreateInstanceStatus> values)A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.BatchCreateInstancesMetadata.BuilderputInstanceStatuses(String key, BatchCreateInstanceStatus value)A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.BatchCreateInstancesMetadata.BuilderremoveInstanceStatuses(String key)A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.BatchCreateInstancesMetadata.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BatchCreateInstancesMetadata.BuildersetInstanceTargets(int index, String value)The instances being created in the API call.BatchCreateInstancesMetadata.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BatchCreateInstancesMetadata.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
clear
public BatchCreateInstancesMetadata.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
getDefaultInstanceForType
public BatchCreateInstancesMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchCreateInstancesMetadata build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchCreateInstancesMetadata buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchCreateInstancesMetadata.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
setField
public BatchCreateInstancesMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
clearField
public BatchCreateInstancesMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
clearOneof
public BatchCreateInstancesMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
setRepeatedField
public BatchCreateInstancesMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
addRepeatedField
public BatchCreateInstancesMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
mergeFrom
public BatchCreateInstancesMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchCreateInstancesMetadata.Builder>
-
mergeFrom
public BatchCreateInstancesMetadata.Builder mergeFrom(BatchCreateInstancesMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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;- 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
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:
index- The index to set the value at.value- The instanceTargets to set.- Returns:
- This builder for chaining.
-
addInstanceTargets
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;- Parameters:
value- The instanceTargets to add.- Returns:
- This builder for chaining.
-
addAllInstanceTargets
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;- Parameters:
values- The instanceTargets to add.- Returns:
- This builder for chaining.
-
clearInstanceTargets
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;- 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.v1.BatchCreateInstanceStatus> instance_statuses = 2;- Specified by:
getInstanceStatusesCountin interfaceBatchCreateInstancesMetadataOrBuilder
-
containsInstanceStatuses
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.v1.BatchCreateInstanceStatus> instance_statuses = 2;- Specified by:
containsInstanceStatusesin interfaceBatchCreateInstancesMetadataOrBuilder
-
getInstanceStatuses
@Deprecated public Map<String,BatchCreateInstanceStatus> getInstanceStatuses()
Deprecated.UsegetInstanceStatusesMap()instead.- Specified by:
getInstanceStatusesin interfaceBatchCreateInstancesMetadataOrBuilder
-
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.v1.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.v1.BatchCreateInstanceStatus> instance_statuses = 2;- Specified by:
getInstanceStatusesOrDefaultin interfaceBatchCreateInstancesMetadataOrBuilder
-
getInstanceStatusesOrThrow
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.v1.BatchCreateInstanceStatus> instance_statuses = 2;- Specified by:
getInstanceStatusesOrThrowin interfaceBatchCreateInstancesMetadataOrBuilder
-
clearInstanceStatuses
public BatchCreateInstancesMetadata.Builder clearInstanceStatuses()
-
removeInstanceStatuses
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.v1.BatchCreateInstanceStatus> instance_statuses = 2;
-
getMutableInstanceStatuses
@Deprecated public Map<String,BatchCreateInstanceStatus> 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.v1.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.v1.BatchCreateInstanceStatus> instance_statuses = 2;
-
setUnknownFields
public final BatchCreateInstancesMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
mergeUnknownFields
public final BatchCreateInstancesMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
-