Class OperationMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OperationMetadata.Builder>
com.google.cloud.edgecontainer.v1.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.GeneratedMessage.Builder<OperationMetadata.Builder>
implements OperationMetadataOrBuilder
Long-running operation metadata for Edge Container API methods.Protobuf type
google.cloud.edgecontainer.v1.OperationMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddAllWarnings(Iterable<String> values) Warnings that do not block the operation, but still hold relevant information for the end user to receive.addWarnings(String value) Warnings that do not block the operation, but still hold relevant information for the end user to receive.addWarningsBytes(com.google.protobuf.ByteString value) Warnings that do not block the operation, but still hold relevant information for the end user to receive.build()clear()API version used to start the operation.The time the operation was created.The time the operation finished running.Identifies whether the user has requested cancellation of the operation.Human-readable status of the operation, if any.Machine-readable status of the operation, if any.Server-defined resource path for the target of the operation.The verb executed by the operation.Warnings that do not block the operation, but still hold relevant information for the end user to receive.API version used to start the operation.com.google.protobuf.ByteStringAPI version used to start the operation.com.google.protobuf.TimestampThe time the operation was created.com.google.protobuf.Timestamp.BuilderThe time the operation was created.com.google.protobuf.TimestampOrBuilderThe time the operation was created.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe time the operation finished running.com.google.protobuf.Timestamp.BuilderThe time the operation finished running.com.google.protobuf.TimestampOrBuilderThe time the operation finished running.booleanIdentifies whether the user has requested cancellation of the operation.Human-readable status of the operation, if any.com.google.protobuf.ByteStringHuman-readable status of the operation, if any.Machine-readable status of the operation, if any.intMachine-readable status of the operation, if any.Server-defined resource path for the target of the operation.com.google.protobuf.ByteStringServer-defined resource path for the target of the operation.getVerb()The verb executed by the operation.com.google.protobuf.ByteStringThe verb executed by the operation.getWarnings(int index) Warnings that do not block the operation, but still hold relevant information for the end user to receive.com.google.protobuf.ByteStringgetWarningsBytes(int index) Warnings that do not block the operation, but still hold relevant information for the end user to receive.intWarnings that do not block the operation, but still hold relevant information for the end user to receive.com.google.protobuf.ProtocolStringListWarnings that do not block the operation, but still hold relevant information for the end user to receive.booleanThe time the operation was created.booleanThe time the operation finished running.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) The time the operation was created.mergeEndTime(com.google.protobuf.Timestamp value) The time the operation finished running.mergeFrom(OperationMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setApiVersion(String value) API version used to start the operation.setApiVersionBytes(com.google.protobuf.ByteString value) API version used to start the operation.setCreateTime(com.google.protobuf.Timestamp value) The time the operation was created.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The time the operation was created.setEndTime(com.google.protobuf.Timestamp value) The time the operation finished running.setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) The time the operation finished running.setRequestedCancellation(boolean value) Identifies whether the user has requested cancellation of the operation.setStatusMessage(String value) Human-readable status of the operation, if any.setStatusMessageBytes(com.google.protobuf.ByteString value) Human-readable status of the operation, if any.Machine-readable status of the operation, if any.setStatusReasonValue(int value) Machine-readable status of the operation, if any.Server-defined resource path for the target of the operation.setTargetBytes(com.google.protobuf.ByteString value) Server-defined resource path for the target of the operation.The verb executed by the operation.setVerbBytes(com.google.protobuf.ByteString value) The verb executed by the operation.setWarnings(int index, String value) Warnings that do not block the operation, but still hold relevant information for the end user to receive.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OperationMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<OperationMetadata.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.GeneratedMessage.Builder<OperationMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OperationMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OperationMetadata.Builder>
-
mergeFrom
public OperationMetadata.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<OperationMetadata.Builder>- Throws:
IOException
-
hasCreateTime
public boolean hasCreateTime()The time the operation was created.
.google.protobuf.Timestamp create_time = 1;- Specified by:
hasCreateTimein interfaceOperationMetadataOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()The time the operation was created.
.google.protobuf.Timestamp create_time = 1;- Specified by:
getCreateTimein interfaceOperationMetadataOrBuilder- Returns:
- The createTime.
-
setCreateTime
The time the operation was created.
.google.protobuf.Timestamp create_time = 1; -
setCreateTime
public OperationMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The time the operation was created.
.google.protobuf.Timestamp create_time = 1; -
mergeCreateTime
The time the operation was created.
.google.protobuf.Timestamp create_time = 1; -
clearCreateTime
The time the operation was created.
.google.protobuf.Timestamp create_time = 1; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()The time the operation was created.
.google.protobuf.Timestamp create_time = 1; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()The time the operation was created.
.google.protobuf.Timestamp create_time = 1;- Specified by:
getCreateTimeOrBuilderin interfaceOperationMetadataOrBuilder
-
hasEndTime
public boolean hasEndTime()The time the operation finished running.
.google.protobuf.Timestamp end_time = 2;- Specified by:
hasEndTimein interfaceOperationMetadataOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()The time the operation finished running.
.google.protobuf.Timestamp end_time = 2;- Specified by:
getEndTimein interfaceOperationMetadataOrBuilder- Returns:
- The endTime.
-
setEndTime
The time the operation finished running.
.google.protobuf.Timestamp end_time = 2; -
setEndTime
The time the operation finished running.
.google.protobuf.Timestamp end_time = 2; -
mergeEndTime
The time the operation finished running.
.google.protobuf.Timestamp end_time = 2; -
clearEndTime
The time the operation finished running.
.google.protobuf.Timestamp end_time = 2; -
getEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()The time the operation finished running.
.google.protobuf.Timestamp end_time = 2; -
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()The time the operation finished running.
.google.protobuf.Timestamp end_time = 2;- Specified by:
getEndTimeOrBuilderin interfaceOperationMetadataOrBuilder
-
getTarget
Server-defined resource path for the target of the operation.
string target = 3;- Specified by:
getTargetin interfaceOperationMetadataOrBuilder- Returns:
- The target.
-
getTargetBytes
public com.google.protobuf.ByteString getTargetBytes()Server-defined resource path for the target of the operation.
string target = 3;- Specified by:
getTargetBytesin interfaceOperationMetadataOrBuilder- Returns:
- The bytes for target.
-
setTarget
Server-defined resource path for the target of the operation.
string target = 3;- Parameters:
value- The target to set.- Returns:
- This builder for chaining.
-
clearTarget
Server-defined resource path for the target of the operation.
string target = 3;- Returns:
- This builder for chaining.
-
setTargetBytes
Server-defined resource path for the target of the operation.
string target = 3;- Parameters:
value- The bytes for target to set.- Returns:
- This builder for chaining.
-
getVerb
The verb executed by the operation.
string verb = 4;- Specified by:
getVerbin interfaceOperationMetadataOrBuilder- Returns:
- The verb.
-
getVerbBytes
public com.google.protobuf.ByteString getVerbBytes()The verb executed by the operation.
string verb = 4;- Specified by:
getVerbBytesin interfaceOperationMetadataOrBuilder- Returns:
- The bytes for verb.
-
setVerb
The verb executed by the operation.
string verb = 4;- Parameters:
value- The verb to set.- Returns:
- This builder for chaining.
-
clearVerb
The verb executed by the operation.
string verb = 4;- Returns:
- This builder for chaining.
-
setVerbBytes
The verb executed by the operation.
string verb = 4;- Parameters:
value- The bytes for verb to set.- Returns:
- This builder for chaining.
-
getStatusMessage
Human-readable status of the operation, if any.
string status_message = 5;- Specified by:
getStatusMessagein interfaceOperationMetadataOrBuilder- Returns:
- The statusMessage.
-
getStatusMessageBytes
public com.google.protobuf.ByteString getStatusMessageBytes()Human-readable status of the operation, if any.
string status_message = 5;- Specified by:
getStatusMessageBytesin interfaceOperationMetadataOrBuilder- Returns:
- The bytes for statusMessage.
-
setStatusMessage
Human-readable status of the operation, if any.
string status_message = 5;- Parameters:
value- The statusMessage to set.- Returns:
- This builder for chaining.
-
clearStatusMessage
Human-readable status of the operation, if any.
string status_message = 5;- Returns:
- This builder for chaining.
-
setStatusMessageBytes
Human-readable status of the operation, if any.
string status_message = 5;- Parameters:
value- The bytes for statusMessage to set.- Returns:
- This builder for chaining.
-
getRequestedCancellation
public boolean getRequestedCancellation()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;- Specified by:
getRequestedCancellationin interfaceOperationMetadataOrBuilder- Returns:
- The requestedCancellation.
-
setRequestedCancellation
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;- Parameters:
value- The requestedCancellation to set.- Returns:
- This builder for chaining.
-
clearRequestedCancellation
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;- Returns:
- This builder for chaining.
-
getApiVersion
API version used to start the operation.
string api_version = 7;- Specified by:
getApiVersionin interfaceOperationMetadataOrBuilder- Returns:
- The apiVersion.
-
getApiVersionBytes
public com.google.protobuf.ByteString getApiVersionBytes()API version used to start the operation.
string api_version = 7;- Specified by:
getApiVersionBytesin interfaceOperationMetadataOrBuilder- Returns:
- The bytes for apiVersion.
-
setApiVersion
API version used to start the operation.
string api_version = 7;- Parameters:
value- The apiVersion to set.- Returns:
- This builder for chaining.
-
clearApiVersion
API version used to start the operation.
string api_version = 7;- Returns:
- This builder for chaining.
-
setApiVersionBytes
API version used to start the operation.
string api_version = 7;- Parameters:
value- The bytes for apiVersion to set.- Returns:
- This builder for chaining.
-
getWarningsList
public com.google.protobuf.ProtocolStringList getWarningsList()Warnings that do not block the operation, but still hold relevant information for the end user to receive.
repeated string warnings = 8;- Specified by:
getWarningsListin interfaceOperationMetadataOrBuilder- Returns:
- A list containing the warnings.
-
getWarningsCount
public int getWarningsCount()Warnings that do not block the operation, but still hold relevant information for the end user to receive.
repeated string warnings = 8;- Specified by:
getWarningsCountin interfaceOperationMetadataOrBuilder- Returns:
- The count of warnings.
-
getWarnings
Warnings that do not block the operation, but still hold relevant information for the end user to receive.
repeated string warnings = 8;- Specified by:
getWarningsin interfaceOperationMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The warnings at the given index.
-
getWarningsBytes
public com.google.protobuf.ByteString getWarningsBytes(int index) Warnings that do not block the operation, but still hold relevant information for the end user to receive.
repeated string warnings = 8;- Specified by:
getWarningsBytesin interfaceOperationMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the warnings at the given index.
-
setWarnings
Warnings that do not block the operation, but still hold relevant information for the end user to receive.
repeated string warnings = 8;- Parameters:
index- The index to set the value at.value- The warnings to set.- Returns:
- This builder for chaining.
-
addWarnings
Warnings that do not block the operation, but still hold relevant information for the end user to receive.
repeated string warnings = 8;- Parameters:
value- The warnings to add.- Returns:
- This builder for chaining.
-
addAllWarnings
Warnings that do not block the operation, but still hold relevant information for the end user to receive.
repeated string warnings = 8;- Parameters:
values- The warnings to add.- Returns:
- This builder for chaining.
-
clearWarnings
Warnings that do not block the operation, but still hold relevant information for the end user to receive.
repeated string warnings = 8;- Returns:
- This builder for chaining.
-
addWarningsBytes
Warnings that do not block the operation, but still hold relevant information for the end user to receive.
repeated string warnings = 8;- Parameters:
value- The bytes of the warnings to add.- Returns:
- This builder for chaining.
-
getStatusReasonValue
public int getStatusReasonValue()Machine-readable status of the operation, if any.
.google.cloud.edgecontainer.v1.OperationMetadata.StatusReason status_reason = 9;- Specified by:
getStatusReasonValuein interfaceOperationMetadataOrBuilder- Returns:
- The enum numeric value on the wire for statusReason.
-
setStatusReasonValue
Machine-readable status of the operation, if any.
.google.cloud.edgecontainer.v1.OperationMetadata.StatusReason status_reason = 9;- Parameters:
value- The enum numeric value on the wire for statusReason to set.- Returns:
- This builder for chaining.
-
getStatusReason
Machine-readable status of the operation, if any.
.google.cloud.edgecontainer.v1.OperationMetadata.StatusReason status_reason = 9;- Specified by:
getStatusReasonin interfaceOperationMetadataOrBuilder- Returns:
- The statusReason.
-
setStatusReason
Machine-readable status of the operation, if any.
.google.cloud.edgecontainer.v1.OperationMetadata.StatusReason status_reason = 9;- Parameters:
value- The statusReason to set.- Returns:
- This builder for chaining.
-
clearStatusReason
Machine-readable status of the operation, if any.
.google.cloud.edgecontainer.v1.OperationMetadata.StatusReason status_reason = 9;- Returns:
- This builder for chaining.
-