Class StatusEvent.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StatusEvent.Builder>
com.google.cloud.batch.v1alpha.StatusEvent.Builder
All Implemented Interfaces:
StatusEventOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
StatusEvent

public static final class StatusEvent.Builder extends com.google.protobuf.GeneratedMessage.Builder<StatusEvent.Builder> implements StatusEventOrBuilder
 Status event.
 
Protobuf type google.cloud.batch.v1alpha.StatusEvent
  • 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<StatusEvent.Builder>
    • clear

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

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

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

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

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

      public StatusEvent.Builder mergeFrom(StatusEvent other)
    • isInitialized

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

      public StatusEvent.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<StatusEvent.Builder>
      Throws:
      IOException
    • getType

      public String getType()
       Type of the event.
       
      string type = 3;
      Specified by:
      getType in interface StatusEventOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Type of the event.
       
      string type = 3;
      Specified by:
      getTypeBytes in interface StatusEventOrBuilder
      Returns:
      The bytes for type.
    • setType

      public StatusEvent.Builder setType(String value)
       Type of the event.
       
      string type = 3;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public StatusEvent.Builder clearType()
       Type of the event.
       
      string type = 3;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public StatusEvent.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Type of the event.
       
      string type = 3;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Description of the event.
       
      string description = 1;
      Specified by:
      getDescription in interface StatusEventOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Description of the event.
       
      string description = 1;
      Specified by:
      getDescriptionBytes in interface StatusEventOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public StatusEvent.Builder setDescription(String value)
       Description of the event.
       
      string description = 1;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public StatusEvent.Builder clearDescription()
       Description of the event.
       
      string description = 1;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public StatusEvent.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Description of the event.
       
      string description = 1;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasEventTime

      public boolean hasEventTime()
       The time this event occurred.
       
      .google.protobuf.Timestamp event_time = 2;
      Specified by:
      hasEventTime in interface StatusEventOrBuilder
      Returns:
      Whether the eventTime field is set.
    • getEventTime

      public com.google.protobuf.Timestamp getEventTime()
       The time this event occurred.
       
      .google.protobuf.Timestamp event_time = 2;
      Specified by:
      getEventTime in interface StatusEventOrBuilder
      Returns:
      The eventTime.
    • setEventTime

      public StatusEvent.Builder setEventTime(com.google.protobuf.Timestamp value)
       The time this event occurred.
       
      .google.protobuf.Timestamp event_time = 2;
    • setEventTime

      public StatusEvent.Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time this event occurred.
       
      .google.protobuf.Timestamp event_time = 2;
    • mergeEventTime

      public StatusEvent.Builder mergeEventTime(com.google.protobuf.Timestamp value)
       The time this event occurred.
       
      .google.protobuf.Timestamp event_time = 2;
    • clearEventTime

      public StatusEvent.Builder clearEventTime()
       The time this event occurred.
       
      .google.protobuf.Timestamp event_time = 2;
    • getEventTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEventTimeBuilder()
       The time this event occurred.
       
      .google.protobuf.Timestamp event_time = 2;
    • getEventTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder()
       The time this event occurred.
       
      .google.protobuf.Timestamp event_time = 2;
      Specified by:
      getEventTimeOrBuilder in interface StatusEventOrBuilder
    • hasTaskExecution

      public boolean hasTaskExecution()
       Task Execution.
       This field is only defined for task-level status events where the task
       fails.
       
      .google.cloud.batch.v1alpha.TaskExecution task_execution = 4;
      Specified by:
      hasTaskExecution in interface StatusEventOrBuilder
      Returns:
      Whether the taskExecution field is set.
    • getTaskExecution

      public TaskExecution getTaskExecution()
       Task Execution.
       This field is only defined for task-level status events where the task
       fails.
       
      .google.cloud.batch.v1alpha.TaskExecution task_execution = 4;
      Specified by:
      getTaskExecution in interface StatusEventOrBuilder
      Returns:
      The taskExecution.
    • setTaskExecution

      public StatusEvent.Builder setTaskExecution(TaskExecution value)
       Task Execution.
       This field is only defined for task-level status events where the task
       fails.
       
      .google.cloud.batch.v1alpha.TaskExecution task_execution = 4;
    • setTaskExecution

      public StatusEvent.Builder setTaskExecution(TaskExecution.Builder builderForValue)
       Task Execution.
       This field is only defined for task-level status events where the task
       fails.
       
      .google.cloud.batch.v1alpha.TaskExecution task_execution = 4;
    • mergeTaskExecution

      public StatusEvent.Builder mergeTaskExecution(TaskExecution value)
       Task Execution.
       This field is only defined for task-level status events where the task
       fails.
       
      .google.cloud.batch.v1alpha.TaskExecution task_execution = 4;
    • clearTaskExecution

      public StatusEvent.Builder clearTaskExecution()
       Task Execution.
       This field is only defined for task-level status events where the task
       fails.
       
      .google.cloud.batch.v1alpha.TaskExecution task_execution = 4;
    • getTaskExecutionBuilder

      public TaskExecution.Builder getTaskExecutionBuilder()
       Task Execution.
       This field is only defined for task-level status events where the task
       fails.
       
      .google.cloud.batch.v1alpha.TaskExecution task_execution = 4;
    • getTaskExecutionOrBuilder

      public TaskExecutionOrBuilder getTaskExecutionOrBuilder()
       Task Execution.
       This field is only defined for task-level status events where the task
       fails.
       
      .google.cloud.batch.v1alpha.TaskExecution task_execution = 4;
      Specified by:
      getTaskExecutionOrBuilder in interface StatusEventOrBuilder
    • getTaskStateValue

      public int getTaskStateValue()
       Task State.
       This field is only defined for task-level status events.
       
      .google.cloud.batch.v1alpha.TaskStatus.State task_state = 5;
      Specified by:
      getTaskStateValue in interface StatusEventOrBuilder
      Returns:
      The enum numeric value on the wire for taskState.
    • setTaskStateValue

      public StatusEvent.Builder setTaskStateValue(int value)
       Task State.
       This field is only defined for task-level status events.
       
      .google.cloud.batch.v1alpha.TaskStatus.State task_state = 5;
      Parameters:
      value - The enum numeric value on the wire for taskState to set.
      Returns:
      This builder for chaining.
    • getTaskState

      public TaskStatus.State getTaskState()
       Task State.
       This field is only defined for task-level status events.
       
      .google.cloud.batch.v1alpha.TaskStatus.State task_state = 5;
      Specified by:
      getTaskState in interface StatusEventOrBuilder
      Returns:
      The taskState.
    • setTaskState

      public StatusEvent.Builder setTaskState(TaskStatus.State value)
       Task State.
       This field is only defined for task-level status events.
       
      .google.cloud.batch.v1alpha.TaskStatus.State task_state = 5;
      Parameters:
      value - The taskState to set.
      Returns:
      This builder for chaining.
    • clearTaskState

      public StatusEvent.Builder clearTaskState()
       Task State.
       This field is only defined for task-level status events.
       
      .google.cloud.batch.v1alpha.TaskStatus.State task_state = 5;
      Returns:
      This builder for chaining.