Class 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 type google.cloud.tasks.v2.Attempt
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
      • clear

        public Attempt.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
      • getDefaultInstanceForType

        public Attempt getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Attempt build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Attempt buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Attempt.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
      • setField

        public Attempt.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                        Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
      • clearField

        public Attempt.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
      • clearOneof

        public Attempt.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
      • setRepeatedField

        public Attempt.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                int index,
                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
      • addRepeatedField

        public Attempt.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
      • mergeFrom

        public Attempt.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Attempt.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        hasScheduleTime in interface AttemptOrBuilder
        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:
        getScheduleTime in interface AttemptOrBuilder
        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:
        getScheduleTimeOrBuilder in interface AttemptOrBuilder
      • 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:
        hasDispatchTime in interface AttemptOrBuilder
        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:
        getDispatchTime in interface AttemptOrBuilder
        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:
        getDispatchTimeOrBuilder in interface AttemptOrBuilder
      • 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:
        hasResponseTime in interface AttemptOrBuilder
        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:
        getResponseTime in interface AttemptOrBuilder
        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:
        getResponseTimeOrBuilder in interface AttemptOrBuilder
      • 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:
        hasResponseStatus in interface AttemptOrBuilder
        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:
        getResponseStatus in interface AttemptOrBuilder
        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:
        getResponseStatusOrBuilder in interface AttemptOrBuilder
      • setUnknownFields

        public final Attempt.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>
      • mergeUnknownFields

        public final Attempt.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Attempt.Builder>