Package com.google.cloud.tasks.v2
Class Attempt.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
-
- com.google.cloud.tasks.v2.Attempt.Builder
-
- All Implemented Interfaces:
AttemptOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Attempt
public static final class Attempt.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder> implements AttemptOrBuilder
The status of a task attempt.
Protobuf typegoogle.cloud.tasks.v2.Attempt
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Attempt.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Attemptbuild()AttemptbuildPartial()Attempt.Builderclear()Attempt.BuilderclearDispatchTime()Output only.Attempt.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Attempt.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Attempt.BuilderclearResponseStatus()Output only.Attempt.BuilderclearResponseTime()Output only.Attempt.BuilderclearScheduleTime()Output only.Attempt.Builderclone()AttemptgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.TimestampgetDispatchTime()Output only.com.google.protobuf.Timestamp.BuildergetDispatchTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetDispatchTimeOrBuilder()Output only.com.google.rpc.StatusgetResponseStatus()Output only.com.google.rpc.Status.BuildergetResponseStatusBuilder()Output only.com.google.rpc.StatusOrBuildergetResponseStatusOrBuilder()Output only.com.google.protobuf.TimestampgetResponseTime()Output only.com.google.protobuf.Timestamp.BuildergetResponseTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetResponseTimeOrBuilder()Output only.com.google.protobuf.TimestampgetScheduleTime()Output only.com.google.protobuf.Timestamp.BuildergetScheduleTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetScheduleTimeOrBuilder()Output only.booleanhasDispatchTime()Output only.booleanhasResponseStatus()Output only.booleanhasResponseTime()Output only.booleanhasScheduleTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Attempt.BuildermergeDispatchTime(com.google.protobuf.Timestamp value)Output only.Attempt.BuildermergeFrom(Attempt other)Attempt.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Attempt.BuildermergeFrom(com.google.protobuf.Message other)Attempt.BuildermergeResponseStatus(com.google.rpc.Status value)Output only.Attempt.BuildermergeResponseTime(com.google.protobuf.Timestamp value)Output only.Attempt.BuildermergeScheduleTime(com.google.protobuf.Timestamp value)Output only.Attempt.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Attempt.BuildersetDispatchTime(com.google.protobuf.Timestamp value)Output only.Attempt.BuildersetDispatchTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Attempt.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Attempt.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Attempt.BuildersetResponseStatus(com.google.rpc.Status value)Output only.Attempt.BuildersetResponseStatus(com.google.rpc.Status.Builder builderForValue)Output only.Attempt.BuildersetResponseTime(com.google.protobuf.Timestamp value)Output only.Attempt.BuildersetResponseTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Attempt.BuildersetScheduleTime(com.google.protobuf.Timestamp value)Output only.Attempt.BuildersetScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Attempt.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<Attempt.Builder>
-
clear
public Attempt.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<Attempt.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<Attempt.Builder>
-
getDefaultInstanceForType
public Attempt getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Attempt build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Attempt buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Attempt.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<Attempt.Builder>
-
setField
public Attempt.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<Attempt.Builder>
-
clearField
public Attempt.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
-
clearOneof
public Attempt.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
-
setRepeatedField
public Attempt.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<Attempt.Builder>
-
addRepeatedField
public Attempt.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<Attempt.Builder>
-
mergeFrom
public Attempt.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Attempt.Builder>
-
mergeFrom
public Attempt.Builder mergeFrom(Attempt other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
-
mergeFrom
public Attempt.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<Attempt.Builder>- Throws:
IOException
-
hasScheduleTime
public boolean hasScheduleTime()
Output only. The time that this attempt was scheduled. `schedule_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp schedule_time = 1;- Specified by:
hasScheduleTimein interfaceAttemptOrBuilder- Returns:
- Whether the scheduleTime field is set.
-
getScheduleTime
public com.google.protobuf.Timestamp getScheduleTime()
Output only. The time that this attempt was scheduled. `schedule_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp schedule_time = 1;- Specified by:
getScheduleTimein interfaceAttemptOrBuilder- Returns:
- The scheduleTime.
-
setScheduleTime
public Attempt.Builder setScheduleTime(com.google.protobuf.Timestamp value)
Output only. The time that this attempt was scheduled. `schedule_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp schedule_time = 1;
-
setScheduleTime
public Attempt.Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time that this attempt was scheduled. `schedule_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp schedule_time = 1;
-
mergeScheduleTime
public Attempt.Builder mergeScheduleTime(com.google.protobuf.Timestamp value)
Output only. The time that this attempt was scheduled. `schedule_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp schedule_time = 1;
-
clearScheduleTime
public Attempt.Builder clearScheduleTime()
Output only. The time that this attempt was scheduled. `schedule_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp schedule_time = 1;
-
getScheduleTimeBuilder
public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder()
Output only. The time that this attempt was scheduled. `schedule_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp schedule_time = 1;
-
getScheduleTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder()
Output only. The time that this attempt was scheduled. `schedule_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp schedule_time = 1;- Specified by:
getScheduleTimeOrBuilderin interfaceAttemptOrBuilder
-
hasDispatchTime
public boolean hasDispatchTime()
Output only. The time that this attempt was dispatched. `dispatch_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp dispatch_time = 2;- Specified by:
hasDispatchTimein interfaceAttemptOrBuilder- Returns:
- Whether the dispatchTime field is set.
-
getDispatchTime
public com.google.protobuf.Timestamp getDispatchTime()
Output only. The time that this attempt was dispatched. `dispatch_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp dispatch_time = 2;- Specified by:
getDispatchTimein interfaceAttemptOrBuilder- Returns:
- The dispatchTime.
-
setDispatchTime
public Attempt.Builder setDispatchTime(com.google.protobuf.Timestamp value)
Output only. The time that this attempt was dispatched. `dispatch_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp dispatch_time = 2;
-
setDispatchTime
public Attempt.Builder setDispatchTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time that this attempt was dispatched. `dispatch_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp dispatch_time = 2;
-
mergeDispatchTime
public Attempt.Builder mergeDispatchTime(com.google.protobuf.Timestamp value)
Output only. The time that this attempt was dispatched. `dispatch_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp dispatch_time = 2;
-
clearDispatchTime
public Attempt.Builder clearDispatchTime()
Output only. The time that this attempt was dispatched. `dispatch_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp dispatch_time = 2;
-
getDispatchTimeBuilder
public com.google.protobuf.Timestamp.Builder getDispatchTimeBuilder()
Output only. The time that this attempt was dispatched. `dispatch_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp dispatch_time = 2;
-
getDispatchTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder()
Output only. The time that this attempt was dispatched. `dispatch_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp dispatch_time = 2;- Specified by:
getDispatchTimeOrBuilderin interfaceAttemptOrBuilder
-
hasResponseTime
public boolean hasResponseTime()
Output only. The time that this attempt response was received. `response_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp response_time = 3;- Specified by:
hasResponseTimein interfaceAttemptOrBuilder- Returns:
- Whether the responseTime field is set.
-
getResponseTime
public com.google.protobuf.Timestamp getResponseTime()
Output only. The time that this attempt response was received. `response_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp response_time = 3;- Specified by:
getResponseTimein interfaceAttemptOrBuilder- Returns:
- The responseTime.
-
setResponseTime
public Attempt.Builder setResponseTime(com.google.protobuf.Timestamp value)
Output only. The time that this attempt response was received. `response_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp response_time = 3;
-
setResponseTime
public Attempt.Builder setResponseTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time that this attempt response was received. `response_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp response_time = 3;
-
mergeResponseTime
public Attempt.Builder mergeResponseTime(com.google.protobuf.Timestamp value)
Output only. The time that this attempt response was received. `response_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp response_time = 3;
-
clearResponseTime
public Attempt.Builder clearResponseTime()
Output only. The time that this attempt response was received. `response_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp response_time = 3;
-
getResponseTimeBuilder
public com.google.protobuf.Timestamp.Builder getResponseTimeBuilder()
Output only. The time that this attempt response was received. `response_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp response_time = 3;
-
getResponseTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder()
Output only. The time that this attempt response was received. `response_time` will be truncated to the nearest microsecond.
.google.protobuf.Timestamp response_time = 3;- Specified by:
getResponseTimeOrBuilderin interfaceAttemptOrBuilder
-
hasResponseStatus
public boolean hasResponseStatus()
Output only. The response from the worker for this attempt. If `response_time` is unset, then the task has not been attempted or is currently running and the `response_status` field is meaningless.
.google.rpc.Status response_status = 4;- Specified by:
hasResponseStatusin interfaceAttemptOrBuilder- Returns:
- Whether the responseStatus field is set.
-
getResponseStatus
public com.google.rpc.Status getResponseStatus()
Output only. The response from the worker for this attempt. If `response_time` is unset, then the task has not been attempted or is currently running and the `response_status` field is meaningless.
.google.rpc.Status response_status = 4;- Specified by:
getResponseStatusin interfaceAttemptOrBuilder- Returns:
- The responseStatus.
-
setResponseStatus
public Attempt.Builder setResponseStatus(com.google.rpc.Status value)
Output only. The response from the worker for this attempt. If `response_time` is unset, then the task has not been attempted or is currently running and the `response_status` field is meaningless.
.google.rpc.Status response_status = 4;
-
setResponseStatus
public Attempt.Builder setResponseStatus(com.google.rpc.Status.Builder builderForValue)
Output only. The response from the worker for this attempt. If `response_time` is unset, then the task has not been attempted or is currently running and the `response_status` field is meaningless.
.google.rpc.Status response_status = 4;
-
mergeResponseStatus
public Attempt.Builder mergeResponseStatus(com.google.rpc.Status value)
Output only. The response from the worker for this attempt. If `response_time` is unset, then the task has not been attempted or is currently running and the `response_status` field is meaningless.
.google.rpc.Status response_status = 4;
-
clearResponseStatus
public Attempt.Builder clearResponseStatus()
Output only. The response from the worker for this attempt. If `response_time` is unset, then the task has not been attempted or is currently running and the `response_status` field is meaningless.
.google.rpc.Status response_status = 4;
-
getResponseStatusBuilder
public com.google.rpc.Status.Builder getResponseStatusBuilder()
Output only. The response from the worker for this attempt. If `response_time` is unset, then the task has not been attempted or is currently running and the `response_status` field is meaningless.
.google.rpc.Status response_status = 4;
-
getResponseStatusOrBuilder
public com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder()
Output only. The response from the worker for this attempt. If `response_time` is unset, then the task has not been attempted or is currently running and the `response_status` field is meaningless.
.google.rpc.Status response_status = 4;- Specified by:
getResponseStatusOrBuilderin interfaceAttemptOrBuilder
-
setUnknownFields
public final Attempt.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
-
mergeUnknownFields
public final Attempt.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
-
-