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.functions.v2alpha.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
Represents the metadata of the long-running operation.Protobuf type
google.cloud.functions.v2alpha.OperationMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddAllStages(Iterable<? extends Stage> values) Mechanism for reporting in-progress stagesMechanism for reporting in-progress stagesaddStages(int index, Stage.Builder builderForValue) Mechanism for reporting in-progress stagesMechanism for reporting in-progress stagesaddStages(Stage.Builder builderForValue) Mechanism for reporting in-progress stagesMechanism for reporting in-progress stagesaddStagesBuilder(int index) Mechanism for reporting in-progress stagesbuild()clear()API version used to start the operation.The build name of the function for create and update operations.Identifies whether the user has requested cancellation of the operation.The time the operation was created.The time the operation finished running.The operation type.The original request that started the operation.Mechanism for reporting in-progress stagesHuman-readable status of the operation, if any.Server-defined resource path for the target of the operation.Name of the verb executed by the operation.API version used to start the operation.com.google.protobuf.ByteStringAPI version used to start the operation.The build name of the function for create and update operations.com.google.protobuf.ByteStringThe build name of the function for create and update operations.booleanIdentifies whether the user has requested cancellation of 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.The operation type.intThe operation type.com.google.protobuf.AnyThe original request that started the operation.com.google.protobuf.Any.BuilderThe original request that started the operation.com.google.protobuf.AnyOrBuilderThe original request that started the operation.getStages(int index) Mechanism for reporting in-progress stagesgetStagesBuilder(int index) Mechanism for reporting in-progress stagesMechanism for reporting in-progress stagesintMechanism for reporting in-progress stagesMechanism for reporting in-progress stagesgetStagesOrBuilder(int index) Mechanism for reporting in-progress stagesList<? extends StageOrBuilder>Mechanism for reporting in-progress stagesHuman-readable status of the operation, if any.com.google.protobuf.ByteStringHuman-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()Name of the verb executed by the operation.com.google.protobuf.ByteStringName of the verb executed by the operation.booleanThe time the operation was created.booleanThe time the operation finished running.booleanThe original request that started the operation.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) mergeRequestResource(com.google.protobuf.Any value) The original request that started the operation.removeStages(int index) Mechanism for reporting in-progress stagessetApiVersion(String value) API version used to start the operation.setApiVersionBytes(com.google.protobuf.ByteString value) API version used to start the operation.setBuildName(String value) The build name of the function for create and update operations.setBuildNameBytes(com.google.protobuf.ByteString value) The build name of the function for create and update operations.setCancelRequested(boolean value) Identifies whether the user has requested cancellation of 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.setOperationType(OperationType value) The operation type.setOperationTypeValue(int value) The operation type.setRequestResource(com.google.protobuf.Any value) The original request that started the operation.setRequestResource(com.google.protobuf.Any.Builder builderForValue) The original request that started the operation.Mechanism for reporting in-progress stagessetStages(int index, Stage.Builder builderForValue) Mechanism for reporting in-progress stagessetStatusDetail(String value) Human-readable status of the operation, if any.setStatusDetailBytes(com.google.protobuf.ByteString value) Human-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.Name of the verb executed by the operation.setVerbBytes(com.google.protobuf.ByteString value) Name of the verb executed by the operation.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
Name of the verb executed by the operation.
string verb = 4;- Specified by:
getVerbin interfaceOperationMetadataOrBuilder- Returns:
- The verb.
-
getVerbBytes
public com.google.protobuf.ByteString getVerbBytes()Name of the verb executed by the operation.
string verb = 4;- Specified by:
getVerbBytesin interfaceOperationMetadataOrBuilder- Returns:
- The bytes for verb.
-
setVerb
Name of the verb executed by the operation.
string verb = 4;- Parameters:
value- The verb to set.- Returns:
- This builder for chaining.
-
clearVerb
Name of the verb executed by the operation.
string verb = 4;- Returns:
- This builder for chaining.
-
setVerbBytes
Name of the verb executed by the operation.
string verb = 4;- Parameters:
value- The bytes for verb to set.- Returns:
- This builder for chaining.
-
getStatusDetail
Human-readable status of the operation, if any.
string status_detail = 5;- Specified by:
getStatusDetailin interfaceOperationMetadataOrBuilder- Returns:
- The statusDetail.
-
getStatusDetailBytes
public com.google.protobuf.ByteString getStatusDetailBytes()Human-readable status of the operation, if any.
string status_detail = 5;- Specified by:
getStatusDetailBytesin interfaceOperationMetadataOrBuilder- Returns:
- The bytes for statusDetail.
-
setStatusDetail
Human-readable status of the operation, if any.
string status_detail = 5;- Parameters:
value- The statusDetail to set.- Returns:
- This builder for chaining.
-
clearStatusDetail
Human-readable status of the operation, if any.
string status_detail = 5;- Returns:
- This builder for chaining.
-
setStatusDetailBytes
Human-readable status of the operation, if any.
string status_detail = 5;- Parameters:
value- The bytes for statusDetail to set.- Returns:
- This builder for chaining.
-
getCancelRequested
public boolean getCancelRequested()Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [google.longrunning.Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
bool cancel_requested = 6;- Specified by:
getCancelRequestedin interfaceOperationMetadataOrBuilder- Returns:
- The cancelRequested.
-
setCancelRequested
Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [google.longrunning.Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
bool cancel_requested = 6;- Parameters:
value- The cancelRequested to set.- Returns:
- This builder for chaining.
-
clearCancelRequested
Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [google.longrunning.Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
bool cancel_requested = 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.
-
hasRequestResource
public boolean hasRequestResource()The original request that started the operation.
.google.protobuf.Any request_resource = 8;- Specified by:
hasRequestResourcein interfaceOperationMetadataOrBuilder- Returns:
- Whether the requestResource field is set.
-
getRequestResource
public com.google.protobuf.Any getRequestResource()The original request that started the operation.
.google.protobuf.Any request_resource = 8;- Specified by:
getRequestResourcein interfaceOperationMetadataOrBuilder- Returns:
- The requestResource.
-
setRequestResource
The original request that started the operation.
.google.protobuf.Any request_resource = 8; -
setRequestResource
public OperationMetadata.Builder setRequestResource(com.google.protobuf.Any.Builder builderForValue) The original request that started the operation.
.google.protobuf.Any request_resource = 8; -
mergeRequestResource
The original request that started the operation.
.google.protobuf.Any request_resource = 8; -
clearRequestResource
The original request that started the operation.
.google.protobuf.Any request_resource = 8; -
getRequestResourceBuilder
public com.google.protobuf.Any.Builder getRequestResourceBuilder()The original request that started the operation.
.google.protobuf.Any request_resource = 8; -
getRequestResourceOrBuilder
public com.google.protobuf.AnyOrBuilder getRequestResourceOrBuilder()The original request that started the operation.
.google.protobuf.Any request_resource = 8;- Specified by:
getRequestResourceOrBuilderin interfaceOperationMetadataOrBuilder
-
getStagesList
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9;- Specified by:
getStagesListin interfaceOperationMetadataOrBuilder
-
getStagesCount
public int getStagesCount()Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9;- Specified by:
getStagesCountin interfaceOperationMetadataOrBuilder
-
getStages
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9;- Specified by:
getStagesin interfaceOperationMetadataOrBuilder
-
setStages
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9; -
setStages
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9; -
addStages
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9; -
addStages
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9; -
addStages
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9; -
addStages
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9; -
addAllStages
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9; -
clearStages
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9; -
removeStages
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9; -
getStagesBuilder
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9; -
getStagesOrBuilder
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9;- Specified by:
getStagesOrBuilderin interfaceOperationMetadataOrBuilder
-
getStagesOrBuilderList
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9;- Specified by:
getStagesOrBuilderListin interfaceOperationMetadataOrBuilder
-
addStagesBuilder
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9; -
addStagesBuilder
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9; -
getStagesBuilderList
Mechanism for reporting in-progress stages
repeated .google.cloud.functions.v2alpha.Stage stages = 9; -
getBuildName
The build name of the function for create and update operations.
string build_name = 13;- Specified by:
getBuildNamein interfaceOperationMetadataOrBuilder- Returns:
- The buildName.
-
getBuildNameBytes
public com.google.protobuf.ByteString getBuildNameBytes()The build name of the function for create and update operations.
string build_name = 13;- Specified by:
getBuildNameBytesin interfaceOperationMetadataOrBuilder- Returns:
- The bytes for buildName.
-
setBuildName
The build name of the function for create and update operations.
string build_name = 13;- Parameters:
value- The buildName to set.- Returns:
- This builder for chaining.
-
clearBuildName
The build name of the function for create and update operations.
string build_name = 13;- Returns:
- This builder for chaining.
-
setBuildNameBytes
The build name of the function for create and update operations.
string build_name = 13;- Parameters:
value- The bytes for buildName to set.- Returns:
- This builder for chaining.
-
getOperationTypeValue
public int getOperationTypeValue()The operation type.
.google.cloud.functions.v2alpha.OperationType operation_type = 11;- Specified by:
getOperationTypeValuein interfaceOperationMetadataOrBuilder- Returns:
- The enum numeric value on the wire for operationType.
-
setOperationTypeValue
The operation type.
.google.cloud.functions.v2alpha.OperationType operation_type = 11;- Parameters:
value- The enum numeric value on the wire for operationType to set.- Returns:
- This builder for chaining.
-
getOperationType
The operation type.
.google.cloud.functions.v2alpha.OperationType operation_type = 11;- Specified by:
getOperationTypein interfaceOperationMetadataOrBuilder- Returns:
- The operationType.
-
setOperationType
The operation type.
.google.cloud.functions.v2alpha.OperationType operation_type = 11;- Parameters:
value- The operationType to set.- Returns:
- This builder for chaining.
-
clearOperationType
The operation type.
.google.cloud.functions.v2alpha.OperationType operation_type = 11;- Returns:
- This builder for chaining.
-