public static final class BatchCreateInstanceStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder> implements BatchCreateInstanceStatusOrBuilder
Message for current status of an instance in the BatchCreateInstances operation. For example, lets say a BatchCreateInstances workflow has 4 instances, Instance1 through Instance4. Lets also assume that 2 instances succeeded but the third failed to create and the 4th was never picked up for creation because of failure of the previous one. Then, resulting states would look something like: 1. Instance1 = ROLLED_BACK 2. Instance2 = ROLLED_BACK 3. Instance3 = FAILED 4. Instance4 = FAILED However, while the operation is running, the instance might be in other states including PENDING_CREATE, ACTIVE, DELETING and CREATING. The states / do not get further updated once the operation is done.Protobuf type
google.cloud.alloydb.v1.BatchCreateInstanceStatus| Modifier and Type | Method and Description |
|---|---|
BatchCreateInstanceStatus.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BatchCreateInstanceStatus |
build() |
BatchCreateInstanceStatus |
buildPartial() |
BatchCreateInstanceStatus.Builder |
clear() |
BatchCreateInstanceStatus.Builder |
clearError()
The RPC status of the instance creation operation.
|
BatchCreateInstanceStatus.Builder |
clearErrorMsg()
DEPRECATED - Use the error field instead.
|
BatchCreateInstanceStatus.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BatchCreateInstanceStatus.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BatchCreateInstanceStatus.Builder |
clearState()
The current state of an instance involved in the batch create operation.
|
BatchCreateInstanceStatus.Builder |
clearType()
.google.cloud.alloydb.v1.Instance.InstanceType type = 3; |
BatchCreateInstanceStatus.Builder |
clone() |
BatchCreateInstanceStatus |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.rpc.Status |
getError()
The RPC status of the instance creation operation.
|
com.google.rpc.Status.Builder |
getErrorBuilder()
The RPC status of the instance creation operation.
|
String |
getErrorMsg()
DEPRECATED - Use the error field instead.
|
com.google.protobuf.ByteString |
getErrorMsgBytes()
DEPRECATED - Use the error field instead.
|
com.google.rpc.StatusOrBuilder |
getErrorOrBuilder()
The RPC status of the instance creation operation.
|
BatchCreateInstanceStatus.State |
getState()
The current state of an instance involved in the batch create operation.
|
int |
getStateValue()
The current state of an instance involved in the batch create operation.
|
Instance.InstanceType |
getType()
.google.cloud.alloydb.v1.Instance.InstanceType type = 3; |
int |
getTypeValue()
.google.cloud.alloydb.v1.Instance.InstanceType type = 3; |
boolean |
hasError()
The RPC status of the instance creation operation.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BatchCreateInstanceStatus.Builder |
mergeError(com.google.rpc.Status value)
The RPC status of the instance creation operation.
|
BatchCreateInstanceStatus.Builder |
mergeFrom(BatchCreateInstanceStatus other) |
BatchCreateInstanceStatus.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BatchCreateInstanceStatus.Builder |
mergeFrom(com.google.protobuf.Message other) |
BatchCreateInstanceStatus.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BatchCreateInstanceStatus.Builder |
setError(com.google.rpc.Status.Builder builderForValue)
The RPC status of the instance creation operation.
|
BatchCreateInstanceStatus.Builder |
setError(com.google.rpc.Status value)
The RPC status of the instance creation operation.
|
BatchCreateInstanceStatus.Builder |
setErrorMsg(String value)
DEPRECATED - Use the error field instead.
|
BatchCreateInstanceStatus.Builder |
setErrorMsgBytes(com.google.protobuf.ByteString value)
DEPRECATED - Use the error field instead.
|
BatchCreateInstanceStatus.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BatchCreateInstanceStatus.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BatchCreateInstanceStatus.Builder |
setState(BatchCreateInstanceStatus.State value)
The current state of an instance involved in the batch create operation.
|
BatchCreateInstanceStatus.Builder |
setStateValue(int value)
The current state of an instance involved in the batch create operation.
|
BatchCreateInstanceStatus.Builder |
setType(Instance.InstanceType value)
.google.cloud.alloydb.v1.Instance.InstanceType type = 3; |
BatchCreateInstanceStatus.Builder |
setTypeValue(int value)
.google.cloud.alloydb.v1.Instance.InstanceType type = 3; |
BatchCreateInstanceStatus.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>public BatchCreateInstanceStatus.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>public BatchCreateInstanceStatus getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BatchCreateInstanceStatus build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BatchCreateInstanceStatus buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BatchCreateInstanceStatus.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>public BatchCreateInstanceStatus.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>public BatchCreateInstanceStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>public BatchCreateInstanceStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>public BatchCreateInstanceStatus.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>public BatchCreateInstanceStatus.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>public BatchCreateInstanceStatus.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BatchCreateInstanceStatus.Builder>public BatchCreateInstanceStatus.Builder mergeFrom(BatchCreateInstanceStatus other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>public BatchCreateInstanceStatus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BatchCreateInstanceStatus.Builder>IOExceptionpublic int getStateValue()
The current state of an instance involved in the batch create operation.
Once the operation is complete, the final state of the instances in the
LRO can be one of:
1. ACTIVE, indicating that instances were created successfully
2. FAILED, indicating that a particular instance failed creation
3. ROLLED_BACK indicating that although the instance was created
successfully, it had to be rolled back and deleted due to failure in
other steps of the workflow.
.google.cloud.alloydb.v1.BatchCreateInstanceStatus.State state = 1;getStateValue in interface BatchCreateInstanceStatusOrBuilderpublic BatchCreateInstanceStatus.Builder setStateValue(int value)
The current state of an instance involved in the batch create operation.
Once the operation is complete, the final state of the instances in the
LRO can be one of:
1. ACTIVE, indicating that instances were created successfully
2. FAILED, indicating that a particular instance failed creation
3. ROLLED_BACK indicating that although the instance was created
successfully, it had to be rolled back and deleted due to failure in
other steps of the workflow.
.google.cloud.alloydb.v1.BatchCreateInstanceStatus.State state = 1;value - The enum numeric value on the wire for state to set.public BatchCreateInstanceStatus.State getState()
The current state of an instance involved in the batch create operation.
Once the operation is complete, the final state of the instances in the
LRO can be one of:
1. ACTIVE, indicating that instances were created successfully
2. FAILED, indicating that a particular instance failed creation
3. ROLLED_BACK indicating that although the instance was created
successfully, it had to be rolled back and deleted due to failure in
other steps of the workflow.
.google.cloud.alloydb.v1.BatchCreateInstanceStatus.State state = 1;getState in interface BatchCreateInstanceStatusOrBuilderpublic BatchCreateInstanceStatus.Builder setState(BatchCreateInstanceStatus.State value)
The current state of an instance involved in the batch create operation.
Once the operation is complete, the final state of the instances in the
LRO can be one of:
1. ACTIVE, indicating that instances were created successfully
2. FAILED, indicating that a particular instance failed creation
3. ROLLED_BACK indicating that although the instance was created
successfully, it had to be rolled back and deleted due to failure in
other steps of the workflow.
.google.cloud.alloydb.v1.BatchCreateInstanceStatus.State state = 1;value - The state to set.public BatchCreateInstanceStatus.Builder clearState()
The current state of an instance involved in the batch create operation.
Once the operation is complete, the final state of the instances in the
LRO can be one of:
1. ACTIVE, indicating that instances were created successfully
2. FAILED, indicating that a particular instance failed creation
3. ROLLED_BACK indicating that although the instance was created
successfully, it had to be rolled back and deleted due to failure in
other steps of the workflow.
.google.cloud.alloydb.v1.BatchCreateInstanceStatus.State state = 1;public String getErrorMsg()
DEPRECATED - Use the error field instead. Error, if any error occurred and is available, during instance creation.
string error_msg = 2;getErrorMsg in interface BatchCreateInstanceStatusOrBuilderpublic com.google.protobuf.ByteString getErrorMsgBytes()
DEPRECATED - Use the error field instead. Error, if any error occurred and is available, during instance creation.
string error_msg = 2;getErrorMsgBytes in interface BatchCreateInstanceStatusOrBuilderpublic BatchCreateInstanceStatus.Builder setErrorMsg(String value)
DEPRECATED - Use the error field instead. Error, if any error occurred and is available, during instance creation.
string error_msg = 2;value - The errorMsg to set.public BatchCreateInstanceStatus.Builder clearErrorMsg()
DEPRECATED - Use the error field instead. Error, if any error occurred and is available, during instance creation.
string error_msg = 2;public BatchCreateInstanceStatus.Builder setErrorMsgBytes(com.google.protobuf.ByteString value)
DEPRECATED - Use the error field instead. Error, if any error occurred and is available, during instance creation.
string error_msg = 2;value - The bytes for errorMsg to set.public boolean hasError()
The RPC status of the instance creation operation. This field will be present if an error happened during the instance creation.
.google.rpc.Status error = 4;hasError in interface BatchCreateInstanceStatusOrBuilderpublic com.google.rpc.Status getError()
The RPC status of the instance creation operation. This field will be present if an error happened during the instance creation.
.google.rpc.Status error = 4;getError in interface BatchCreateInstanceStatusOrBuilderpublic BatchCreateInstanceStatus.Builder setError(com.google.rpc.Status value)
The RPC status of the instance creation operation. This field will be present if an error happened during the instance creation.
.google.rpc.Status error = 4;public BatchCreateInstanceStatus.Builder setError(com.google.rpc.Status.Builder builderForValue)
The RPC status of the instance creation operation. This field will be present if an error happened during the instance creation.
.google.rpc.Status error = 4;public BatchCreateInstanceStatus.Builder mergeError(com.google.rpc.Status value)
The RPC status of the instance creation operation. This field will be present if an error happened during the instance creation.
.google.rpc.Status error = 4;public BatchCreateInstanceStatus.Builder clearError()
The RPC status of the instance creation operation. This field will be present if an error happened during the instance creation.
.google.rpc.Status error = 4;public com.google.rpc.Status.Builder getErrorBuilder()
The RPC status of the instance creation operation. This field will be present if an error happened during the instance creation.
.google.rpc.Status error = 4;public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
The RPC status of the instance creation operation. This field will be present if an error happened during the instance creation.
.google.rpc.Status error = 4;getErrorOrBuilder in interface BatchCreateInstanceStatusOrBuilderpublic int getTypeValue()
.google.cloud.alloydb.v1.Instance.InstanceType type = 3;getTypeValue in interface BatchCreateInstanceStatusOrBuilderpublic BatchCreateInstanceStatus.Builder setTypeValue(int value)
.google.cloud.alloydb.v1.Instance.InstanceType type = 3;value - The enum numeric value on the wire for type to set.public Instance.InstanceType getType()
.google.cloud.alloydb.v1.Instance.InstanceType type = 3;getType in interface BatchCreateInstanceStatusOrBuilderpublic BatchCreateInstanceStatus.Builder setType(Instance.InstanceType value)
.google.cloud.alloydb.v1.Instance.InstanceType type = 3;value - The type to set.public BatchCreateInstanceStatus.Builder clearType()
.google.cloud.alloydb.v1.Instance.InstanceType type = 3;public final BatchCreateInstanceStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>public final BatchCreateInstanceStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>Copyright © 2025 Google LLC. All rights reserved.