Package com.google.cloud.alloydb.v1alpha
Class OperationMetadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<OperationMetadata.Builder>
-
- com.google.cloud.alloydb.v1alpha.OperationMetadata.Builder
-
- All Implemented Interfaces:
OperationMetadataOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- OperationMetadata
public static final class OperationMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OperationMetadata.Builder> implements OperationMetadataOrBuilder
Represents the metadata of the long-running operation.
Protobuf typegoogle.cloud.alloydb.v1alpha.OperationMetadata
-
-
Method Summary
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<OperationMetadata.Builder>
-
clear
public OperationMetadata.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<OperationMetadata.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<OperationMetadata.Builder>
-
getDefaultInstanceForType
public OperationMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public OperationMetadata build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OperationMetadata buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OperationMetadata.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<OperationMetadata.Builder>
-
setField
public OperationMetadata.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<OperationMetadata.Builder>
-
clearField
public OperationMetadata.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<OperationMetadata.Builder>
-
clearOneof
public OperationMetadata.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<OperationMetadata.Builder>
-
setRepeatedField
public OperationMetadata.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<OperationMetadata.Builder>
-
addRepeatedField
public OperationMetadata.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<OperationMetadata.Builder>
-
mergeFrom
public OperationMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OperationMetadata.Builder>
-
mergeFrom
public OperationMetadata.Builder mergeFrom(OperationMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<OperationMetadata.Builder>
-
mergeFrom
public OperationMetadata.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<OperationMetadata.Builder>
- Throws:
IOException
-
getRequestSpecificCase
public OperationMetadata.RequestSpecificCase getRequestSpecificCase()
- Specified by:
getRequestSpecificCase
in interfaceOperationMetadataOrBuilder
-
clearRequestSpecific
public OperationMetadata.Builder clearRequestSpecific()
-
hasBatchCreateInstancesMetadata
public boolean hasBatchCreateInstancesMetadata()
Output only. BatchCreateInstances related metadata.
.google.cloud.alloydb.v1alpha.BatchCreateInstancesMetadata batch_create_instances_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasBatchCreateInstancesMetadata
in interfaceOperationMetadataOrBuilder
- Returns:
- Whether the batchCreateInstancesMetadata field is set.
-
getBatchCreateInstancesMetadata
public BatchCreateInstancesMetadata getBatchCreateInstancesMetadata()
Output only. BatchCreateInstances related metadata.
.google.cloud.alloydb.v1alpha.BatchCreateInstancesMetadata batch_create_instances_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getBatchCreateInstancesMetadata
in interfaceOperationMetadataOrBuilder
- Returns:
- The batchCreateInstancesMetadata.
-
setBatchCreateInstancesMetadata
public OperationMetadata.Builder setBatchCreateInstancesMetadata(BatchCreateInstancesMetadata value)
Output only. BatchCreateInstances related metadata.
.google.cloud.alloydb.v1alpha.BatchCreateInstancesMetadata batch_create_instances_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setBatchCreateInstancesMetadata
public OperationMetadata.Builder setBatchCreateInstancesMetadata(BatchCreateInstancesMetadata.Builder builderForValue)
Output only. BatchCreateInstances related metadata.
.google.cloud.alloydb.v1alpha.BatchCreateInstancesMetadata batch_create_instances_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeBatchCreateInstancesMetadata
public OperationMetadata.Builder mergeBatchCreateInstancesMetadata(BatchCreateInstancesMetadata value)
Output only. BatchCreateInstances related metadata.
.google.cloud.alloydb.v1alpha.BatchCreateInstancesMetadata batch_create_instances_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearBatchCreateInstancesMetadata
public OperationMetadata.Builder clearBatchCreateInstancesMetadata()
Output only. BatchCreateInstances related metadata.
.google.cloud.alloydb.v1alpha.BatchCreateInstancesMetadata batch_create_instances_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getBatchCreateInstancesMetadataBuilder
public BatchCreateInstancesMetadata.Builder getBatchCreateInstancesMetadataBuilder()
Output only. BatchCreateInstances related metadata.
.google.cloud.alloydb.v1alpha.BatchCreateInstancesMetadata batch_create_instances_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getBatchCreateInstancesMetadataOrBuilder
public BatchCreateInstancesMetadataOrBuilder getBatchCreateInstancesMetadataOrBuilder()
Output only. BatchCreateInstances related metadata.
.google.cloud.alloydb.v1alpha.BatchCreateInstancesMetadata batch_create_instances_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getBatchCreateInstancesMetadataOrBuilder
in interfaceOperationMetadataOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time the operation was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceOperationMetadataOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time the operation was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceOperationMetadataOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public OperationMetadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time the operation was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public OperationMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time the operation was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public OperationMetadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time the operation was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public OperationMetadata.Builder clearCreateTime()
Output only. The time the operation was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time the operation was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time the operation was created.
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceOperationMetadataOrBuilder
-
hasEndTime
public boolean hasEndTime()
Output only. The time the operation finished running.
.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasEndTime
in interfaceOperationMetadataOrBuilder
- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()
Output only. The time the operation finished running.
.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getEndTime
in interfaceOperationMetadataOrBuilder
- Returns:
- The endTime.
-
setEndTime
public OperationMetadata.Builder setEndTime(com.google.protobuf.Timestamp value)
Output only. The time the operation finished running.
.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setEndTime
public OperationMetadata.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time the operation finished running.
.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeEndTime
public OperationMetadata.Builder mergeEndTime(com.google.protobuf.Timestamp value)
Output only. The time the operation finished running.
.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearEndTime
public OperationMetadata.Builder clearEndTime()
Output only. The time the operation finished running.
.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
Output only. The time the operation finished running.
.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
Output only. The time the operation finished running.
.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getEndTimeOrBuilder
in interfaceOperationMetadataOrBuilder
-
getTarget
public String getTarget()
Output only. Server-defined resource path for the target of the operation.
string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getTarget
in interfaceOperationMetadataOrBuilder
- Returns:
- The target.
-
getTargetBytes
public com.google.protobuf.ByteString getTargetBytes()
Output only. Server-defined resource path for the target of the operation.
string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getTargetBytes
in interfaceOperationMetadataOrBuilder
- Returns:
- The bytes for target.
-
setTarget
public OperationMetadata.Builder setTarget(String value)
Output only. Server-defined resource path for the target of the operation.
string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The target to set.- Returns:
- This builder for chaining.
-
clearTarget
public OperationMetadata.Builder clearTarget()
Output only. Server-defined resource path for the target of the operation.
string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setTargetBytes
public OperationMetadata.Builder setTargetBytes(com.google.protobuf.ByteString value)
Output only. Server-defined resource path for the target of the operation.
string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for target to set.- Returns:
- This builder for chaining.
-
getVerb
public String getVerb()
Output only. Name of the verb executed by the operation.
string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getVerb
in interfaceOperationMetadataOrBuilder
- Returns:
- The verb.
-
getVerbBytes
public com.google.protobuf.ByteString getVerbBytes()
Output only. Name of the verb executed by the operation.
string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getVerbBytes
in interfaceOperationMetadataOrBuilder
- Returns:
- The bytes for verb.
-
setVerb
public OperationMetadata.Builder setVerb(String value)
Output only. Name of the verb executed by the operation.
string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The verb to set.- Returns:
- This builder for chaining.
-
clearVerb
public OperationMetadata.Builder clearVerb()
Output only. Name of the verb executed by the operation.
string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setVerbBytes
public OperationMetadata.Builder setVerbBytes(com.google.protobuf.ByteString value)
Output only. Name of the verb executed by the operation.
string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for verb to set.- Returns:
- This builder for chaining.
-
getStatusMessage
public String getStatusMessage()
Output only. Human-readable status of the operation, if any.
string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStatusMessage
in interfaceOperationMetadataOrBuilder
- Returns:
- The statusMessage.
-
getStatusMessageBytes
public com.google.protobuf.ByteString getStatusMessageBytes()
Output only. Human-readable status of the operation, if any.
string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStatusMessageBytes
in interfaceOperationMetadataOrBuilder
- Returns:
- The bytes for statusMessage.
-
setStatusMessage
public OperationMetadata.Builder setStatusMessage(String value)
Output only. Human-readable status of the operation, if any.
string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The statusMessage to set.- Returns:
- This builder for chaining.
-
clearStatusMessage
public OperationMetadata.Builder clearStatusMessage()
Output only. Human-readable status of the operation, if any.
string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setStatusMessageBytes
public OperationMetadata.Builder setStatusMessageBytes(com.google.protobuf.ByteString value)
Output only. Human-readable status of the operation, if any.
string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for statusMessage to set.- Returns:
- This builder for chaining.
-
getRequestedCancellation
public boolean getRequestedCancellation()
Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getRequestedCancellation
in interfaceOperationMetadataOrBuilder
- Returns:
- The requestedCancellation.
-
setRequestedCancellation
public OperationMetadata.Builder setRequestedCancellation(boolean value)
Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The requestedCancellation to set.- Returns:
- This builder for chaining.
-
clearRequestedCancellation
public OperationMetadata.Builder clearRequestedCancellation()
Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getApiVersion
public String getApiVersion()
Output only. API version used to start the operation.
string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getApiVersion
in interfaceOperationMetadataOrBuilder
- Returns:
- The apiVersion.
-
getApiVersionBytes
public com.google.protobuf.ByteString getApiVersionBytes()
Output only. API version used to start the operation.
string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getApiVersionBytes
in interfaceOperationMetadataOrBuilder
- Returns:
- The bytes for apiVersion.
-
setApiVersion
public OperationMetadata.Builder setApiVersion(String value)
Output only. API version used to start the operation.
string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The apiVersion to set.- Returns:
- This builder for chaining.
-
clearApiVersion
public OperationMetadata.Builder clearApiVersion()
Output only. API version used to start the operation.
string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setApiVersionBytes
public OperationMetadata.Builder setApiVersionBytes(com.google.protobuf.ByteString value)
Output only. API version used to start the operation.
string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for apiVersion to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final OperationMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OperationMetadata.Builder>
-
mergeUnknownFields
public final OperationMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OperationMetadata.Builder>
-
-