Class TaskStatus.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TaskStatus.Builder>
com.google.cloud.tasks.v2beta2.TaskStatus.Builder
All Implemented Interfaces:
TaskStatusOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TaskStatus

public static final class TaskStatus.Builder extends com.google.protobuf.GeneratedMessage.Builder<TaskStatus.Builder> implements TaskStatusOrBuilder
 Status of the task.
 
Protobuf type google.cloud.tasks.v2beta2.TaskStatus
  • Method Details

    • getDescriptor

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

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

      public TaskStatus.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.GeneratedMessage.Builder<TaskStatus.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.GeneratedMessage.Builder<TaskStatus.Builder>
    • getDefaultInstanceForType

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

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

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

      public TaskStatus.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<TaskStatus.Builder>
    • mergeFrom

      public TaskStatus.Builder mergeFrom(TaskStatus other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TaskStatus.Builder>
    • mergeFrom

      public TaskStatus.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<TaskStatus.Builder>
      Throws:
      IOException
    • getAttemptDispatchCount

      public int getAttemptDispatchCount()
       Output only. The number of attempts dispatched.
      
       This count includes attempts which have been dispatched but haven't
       received a response.
       
      int32 attempt_dispatch_count = 1;
      Specified by:
      getAttemptDispatchCount in interface TaskStatusOrBuilder
      Returns:
      The attemptDispatchCount.
    • setAttemptDispatchCount

      public TaskStatus.Builder setAttemptDispatchCount(int value)
       Output only. The number of attempts dispatched.
      
       This count includes attempts which have been dispatched but haven't
       received a response.
       
      int32 attempt_dispatch_count = 1;
      Parameters:
      value - The attemptDispatchCount to set.
      Returns:
      This builder for chaining.
    • clearAttemptDispatchCount

      public TaskStatus.Builder clearAttemptDispatchCount()
       Output only. The number of attempts dispatched.
      
       This count includes attempts which have been dispatched but haven't
       received a response.
       
      int32 attempt_dispatch_count = 1;
      Returns:
      This builder for chaining.
    • getAttemptResponseCount

      public int getAttemptResponseCount()
       Output only. The number of attempts which have received a response.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      int32 attempt_response_count = 2;
      Specified by:
      getAttemptResponseCount in interface TaskStatusOrBuilder
      Returns:
      The attemptResponseCount.
    • setAttemptResponseCount

      public TaskStatus.Builder setAttemptResponseCount(int value)
       Output only. The number of attempts which have received a response.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      int32 attempt_response_count = 2;
      Parameters:
      value - The attemptResponseCount to set.
      Returns:
      This builder for chaining.
    • clearAttemptResponseCount

      public TaskStatus.Builder clearAttemptResponseCount()
       Output only. The number of attempts which have received a response.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      int32 attempt_response_count = 2;
      Returns:
      This builder for chaining.
    • hasFirstAttemptStatus

      public boolean hasFirstAttemptStatus()
       Output only. The status of the task's first attempt.
      
       Only
       [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time]
       will be set. The other
       [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is
       not retained by Cloud Tasks.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;
      Specified by:
      hasFirstAttemptStatus in interface TaskStatusOrBuilder
      Returns:
      Whether the firstAttemptStatus field is set.
    • getFirstAttemptStatus

      public AttemptStatus getFirstAttemptStatus()
       Output only. The status of the task's first attempt.
      
       Only
       [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time]
       will be set. The other
       [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is
       not retained by Cloud Tasks.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;
      Specified by:
      getFirstAttemptStatus in interface TaskStatusOrBuilder
      Returns:
      The firstAttemptStatus.
    • setFirstAttemptStatus

      public TaskStatus.Builder setFirstAttemptStatus(AttemptStatus value)
       Output only. The status of the task's first attempt.
      
       Only
       [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time]
       will be set. The other
       [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is
       not retained by Cloud Tasks.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;
    • setFirstAttemptStatus

      public TaskStatus.Builder setFirstAttemptStatus(AttemptStatus.Builder builderForValue)
       Output only. The status of the task's first attempt.
      
       Only
       [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time]
       will be set. The other
       [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is
       not retained by Cloud Tasks.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;
    • mergeFirstAttemptStatus

      public TaskStatus.Builder mergeFirstAttemptStatus(AttemptStatus value)
       Output only. The status of the task's first attempt.
      
       Only
       [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time]
       will be set. The other
       [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is
       not retained by Cloud Tasks.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;
    • clearFirstAttemptStatus

      public TaskStatus.Builder clearFirstAttemptStatus()
       Output only. The status of the task's first attempt.
      
       Only
       [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time]
       will be set. The other
       [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is
       not retained by Cloud Tasks.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;
    • getFirstAttemptStatusBuilder

      public AttemptStatus.Builder getFirstAttemptStatusBuilder()
       Output only. The status of the task's first attempt.
      
       Only
       [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time]
       will be set. The other
       [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is
       not retained by Cloud Tasks.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;
    • getFirstAttemptStatusOrBuilder

      public AttemptStatusOrBuilder getFirstAttemptStatusOrBuilder()
       Output only. The status of the task's first attempt.
      
       Only
       [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time]
       will be set. The other
       [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is
       not retained by Cloud Tasks.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;
      Specified by:
      getFirstAttemptStatusOrBuilder in interface TaskStatusOrBuilder
    • hasLastAttemptStatus

      public boolean hasLastAttemptStatus()
       Output only. The status of the task's last attempt.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;
      Specified by:
      hasLastAttemptStatus in interface TaskStatusOrBuilder
      Returns:
      Whether the lastAttemptStatus field is set.
    • getLastAttemptStatus

      public AttemptStatus getLastAttemptStatus()
       Output only. The status of the task's last attempt.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;
      Specified by:
      getLastAttemptStatus in interface TaskStatusOrBuilder
      Returns:
      The lastAttemptStatus.
    • setLastAttemptStatus

      public TaskStatus.Builder setLastAttemptStatus(AttemptStatus value)
       Output only. The status of the task's last attempt.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;
    • setLastAttemptStatus

      public TaskStatus.Builder setLastAttemptStatus(AttemptStatus.Builder builderForValue)
       Output only. The status of the task's last attempt.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;
    • mergeLastAttemptStatus

      public TaskStatus.Builder mergeLastAttemptStatus(AttemptStatus value)
       Output only. The status of the task's last attempt.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;
    • clearLastAttemptStatus

      public TaskStatus.Builder clearLastAttemptStatus()
       Output only. The status of the task's last attempt.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;
    • getLastAttemptStatusBuilder

      public AttemptStatus.Builder getLastAttemptStatusBuilder()
       Output only. The status of the task's last attempt.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;
    • getLastAttemptStatusOrBuilder

      public AttemptStatusOrBuilder getLastAttemptStatusOrBuilder()
       Output only. The status of the task's last attempt.
      
       This field is not calculated for [pull
       tasks][google.cloud.tasks.v2beta2.PullMessage].
       
      .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;
      Specified by:
      getLastAttemptStatusOrBuilder in interface TaskStatusOrBuilder