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.Builder
addAllInstanceTargets(Iterable<String> values)
The instances being created in the API call.BatchCreateInstancesMetadata.Builder
addInstanceTargets(String value)
The instances being created in the API call.BatchCreateInstancesMetadata.Builder
addInstanceTargetsBytes(com.google.protobuf.ByteString value)
The instances being created in the API call.BatchCreateInstancesMetadata.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BatchCreateInstancesMetadata
build()
BatchCreateInstancesMetadata
buildPartial()
BatchCreateInstancesMetadata.Builder
clear()
BatchCreateInstancesMetadata.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BatchCreateInstancesMetadata.Builder
clearInstanceStatuses()
BatchCreateInstancesMetadata.Builder
clearInstanceTargets()
The instances being created in the API call.BatchCreateInstancesMetadata.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BatchCreateInstancesMetadata.Builder
clone()
boolean
containsInstanceStatuses(String key)
A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.BatchCreateInstancesMetadata
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,BatchCreateInstanceStatus>
getInstanceStatuses()
Deprecated.int
getInstanceStatusesCount()
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.BatchCreateInstanceStatus
getInstanceStatusesOrDefault(String key, BatchCreateInstanceStatus defaultValue)
A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.BatchCreateInstanceStatus
getInstanceStatusesOrThrow(String key)
A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.String
getInstanceTargets(int index)
The instances being created in the API call.com.google.protobuf.ByteString
getInstanceTargetsBytes(int index)
The instances being created in the API call.int
getInstanceTargetsCount()
The instances being created in the API call.com.google.protobuf.ProtocolStringList
getInstanceTargetsList()
The instances being created in the API call.Map<String,BatchCreateInstanceStatus>
getMutableInstanceStatuses()
Deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
BatchCreateInstancesMetadata.Builder
mergeFrom(BatchCreateInstancesMetadata other)
BatchCreateInstancesMetadata.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BatchCreateInstancesMetadata.Builder
mergeFrom(com.google.protobuf.Message other)
BatchCreateInstancesMetadata.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BatchCreateInstancesMetadata.Builder
putAllInstanceStatuses(Map<String,BatchCreateInstanceStatus> values)
A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.BatchCreateInstancesMetadata.Builder
putInstanceStatuses(String key, BatchCreateInstanceStatus value)
A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.BatchCreateInstancesMetadata.Builder
removeInstanceStatuses(String key)
A map representing state of the instances involved in the BatchCreateInstances operation during the operation execution.BatchCreateInstancesMetadata.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BatchCreateInstancesMetadata.Builder
setInstanceTargets(int index, String value)
The instances being created in the API call.BatchCreateInstancesMetadata.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
BatchCreateInstancesMetadata.Builder
setUnknownFields(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
clear
public BatchCreateInstancesMetadata.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
getDefaultInstanceForType
public BatchCreateInstancesMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchCreateInstancesMetadata build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchCreateInstancesMetadata buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchCreateInstancesMetadata.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
setField
public BatchCreateInstancesMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
clearField
public BatchCreateInstancesMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
clearOneof
public BatchCreateInstancesMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
setRepeatedField
public BatchCreateInstancesMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
addRepeatedField
public BatchCreateInstancesMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
mergeFrom
public BatchCreateInstancesMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchCreateInstancesMetadata.Builder>
-
mergeFrom
public BatchCreateInstancesMetadata.Builder mergeFrom(BatchCreateInstancesMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getInstanceTargetsList
in 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:
getInstanceTargetsCount
in 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:
getInstanceTargets
in 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:
getInstanceTargetsBytes
in 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:BatchCreateInstancesMetadataOrBuilder
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:
getInstanceStatusesCount
in 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:
containsInstanceStatuses
in interfaceBatchCreateInstancesMetadataOrBuilder
-
getInstanceStatuses
@Deprecated public Map<String,BatchCreateInstanceStatus> getInstanceStatuses()
Deprecated.UsegetInstanceStatusesMap()
instead.- Specified by:
getInstanceStatuses
in 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:
getInstanceStatusesMap
in 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:
getInstanceStatusesOrDefault
in 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:
getInstanceStatusesOrThrow
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
mergeUnknownFields
public final BatchCreateInstancesMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstancesMetadata.Builder>
-
-