Package com.google.cloud.alloydb.v1beta
Class BatchCreateInstanceStatus.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>
-
- com.google.cloud.alloydb.v1beta.BatchCreateInstanceStatus.Builder
-
- All Implemented Interfaces:
BatchCreateInstanceStatusOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchCreateInstanceStatus
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 typegoogle.cloud.alloydb.v1beta.BatchCreateInstanceStatus
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchCreateInstanceStatus.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BatchCreateInstanceStatusbuild()BatchCreateInstanceStatusbuildPartial()BatchCreateInstanceStatus.Builderclear()BatchCreateInstanceStatus.BuilderclearError()The RPC status of the instance creation operation.BatchCreateInstanceStatus.BuilderclearErrorMsg()DEPRECATED - Use the error field instead.BatchCreateInstanceStatus.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BatchCreateInstanceStatus.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BatchCreateInstanceStatus.BuilderclearState()The current state of an instance involved in the batch create operation.BatchCreateInstanceStatus.BuilderclearType().google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;BatchCreateInstanceStatus.Builderclone()BatchCreateInstanceStatusgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.rpc.StatusgetError()The RPC status of the instance creation operation.com.google.rpc.Status.BuildergetErrorBuilder()The RPC status of the instance creation operation.StringgetErrorMsg()DEPRECATED - Use the error field instead.com.google.protobuf.ByteStringgetErrorMsgBytes()DEPRECATED - Use the error field instead.com.google.rpc.StatusOrBuildergetErrorOrBuilder()The RPC status of the instance creation operation.BatchCreateInstanceStatus.StategetState()The current state of an instance involved in the batch create operation.intgetStateValue()The current state of an instance involved in the batch create operation.Instance.InstanceTypegetType().google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;intgetTypeValue().google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;booleanhasError()The RPC status of the instance creation operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BatchCreateInstanceStatus.BuildermergeError(com.google.rpc.Status value)The RPC status of the instance creation operation.BatchCreateInstanceStatus.BuildermergeFrom(BatchCreateInstanceStatus other)BatchCreateInstanceStatus.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BatchCreateInstanceStatus.BuildermergeFrom(com.google.protobuf.Message other)BatchCreateInstanceStatus.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BatchCreateInstanceStatus.BuildersetError(com.google.rpc.Status value)The RPC status of the instance creation operation.BatchCreateInstanceStatus.BuildersetError(com.google.rpc.Status.Builder builderForValue)The RPC status of the instance creation operation.BatchCreateInstanceStatus.BuildersetErrorMsg(String value)DEPRECATED - Use the error field instead.BatchCreateInstanceStatus.BuildersetErrorMsgBytes(com.google.protobuf.ByteString value)DEPRECATED - Use the error field instead.BatchCreateInstanceStatus.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BatchCreateInstanceStatus.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BatchCreateInstanceStatus.BuildersetState(BatchCreateInstanceStatus.State value)The current state of an instance involved in the batch create operation.BatchCreateInstanceStatus.BuildersetStateValue(int value)The current state of an instance involved in the batch create operation.BatchCreateInstanceStatus.BuildersetType(Instance.InstanceType value).google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;BatchCreateInstanceStatus.BuildersetTypeValue(int value).google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;BatchCreateInstanceStatus.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, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>
-
clear
public BatchCreateInstanceStatus.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<BatchCreateInstanceStatus.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<BatchCreateInstanceStatus.Builder>
-
getDefaultInstanceForType
public BatchCreateInstanceStatus getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchCreateInstanceStatus build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchCreateInstanceStatus buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchCreateInstanceStatus.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<BatchCreateInstanceStatus.Builder>
-
setField
public BatchCreateInstanceStatus.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<BatchCreateInstanceStatus.Builder>
-
clearField
public BatchCreateInstanceStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>
-
clearOneof
public BatchCreateInstanceStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>
-
setRepeatedField
public BatchCreateInstanceStatus.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<BatchCreateInstanceStatus.Builder>
-
addRepeatedField
public BatchCreateInstanceStatus.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<BatchCreateInstanceStatus.Builder>
-
mergeFrom
public BatchCreateInstanceStatus.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchCreateInstanceStatus.Builder>
-
mergeFrom
public BatchCreateInstanceStatus.Builder mergeFrom(BatchCreateInstanceStatus other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>
-
mergeFrom
public BatchCreateInstanceStatus.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<BatchCreateInstanceStatus.Builder>- Throws:
IOException
-
getStateValue
public 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.v1beta.BatchCreateInstanceStatus.State state = 1;- Specified by:
getStateValuein interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public 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.v1beta.BatchCreateInstanceStatus.State state = 1;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
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.v1beta.BatchCreateInstanceStatus.State state = 1;- Specified by:
getStatein interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- The state.
-
setState
public 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.v1beta.BatchCreateInstanceStatus.State state = 1;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
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.v1beta.BatchCreateInstanceStatus.State state = 1;- Returns:
- This builder for chaining.
-
getErrorMsg
public String getErrorMsg()
DEPRECATED - Use the error field instead. Error, if any error occurred and is available, during instance creation.
string error_msg = 2;- Specified by:
getErrorMsgin interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- The errorMsg.
-
getErrorMsgBytes
public 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;- Specified by:
getErrorMsgBytesin interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- The bytes for errorMsg.
-
setErrorMsg
public 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;- Parameters:
value- The errorMsg to set.- Returns:
- This builder for chaining.
-
clearErrorMsg
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;- Returns:
- This builder for chaining.
-
setErrorMsgBytes
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;- Parameters:
value- The bytes for errorMsg to set.- Returns:
- This builder for chaining.
-
hasError
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;- Specified by:
hasErrorin interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- Whether the error field is set.
-
getError
public 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;- Specified by:
getErrorin interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- The error.
-
setError
public 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;
-
setError
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;
-
mergeError
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;
-
clearError
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;
-
getErrorBuilder
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;
-
getErrorOrBuilder
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;- Specified by:
getErrorOrBuilderin interfaceBatchCreateInstanceStatusOrBuilder
-
getTypeValue
public int getTypeValue()
.google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;- Specified by:
getTypeValuein interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public BatchCreateInstanceStatus.Builder setTypeValue(int value)
.google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public Instance.InstanceType getType()
.google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;- Specified by:
getTypein interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- The type.
-
setType
public BatchCreateInstanceStatus.Builder setType(Instance.InstanceType value)
.google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public BatchCreateInstanceStatus.Builder clearType()
.google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final BatchCreateInstanceStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>
-
mergeUnknownFields
public final BatchCreateInstanceStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateInstanceStatus.Builder>
-
-