Class JobNotification.Message.Builder

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

public static final class JobNotification.Message.Builder extends com.google.protobuf.GeneratedMessage.Builder<JobNotification.Message.Builder> implements JobNotification.MessageOrBuilder
 Message details.
 Describe the conditions under which messages will be sent.
 If no attribute is defined, no message will be sent by default.
 One message should specify either the job or the task level attributes,
 but not both. For example,
 job level: JOB_STATE_CHANGED and/or a specified new_job_state;
 task level: TASK_STATE_CHANGED and/or a specified new_task_state.
 
Protobuf type google.cloud.batch.v1alpha.JobNotification.Message
  • 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<JobNotification.Message.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<JobNotification.Message.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<JobNotification.Message.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public JobNotification.Message.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<JobNotification.Message.Builder>
      Throws:
      IOException
    • getTypeValue

      public int getTypeValue()
       The message type.
       
      .google.cloud.batch.v1alpha.JobNotification.Type type = 1;
      Specified by:
      getTypeValue in interface JobNotification.MessageOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public JobNotification.Message.Builder setTypeValue(int value)
       The message type.
       
      .google.cloud.batch.v1alpha.JobNotification.Type type = 1;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public JobNotification.Type getType()
       The message type.
       
      .google.cloud.batch.v1alpha.JobNotification.Type type = 1;
      Specified by:
      getType in interface JobNotification.MessageOrBuilder
      Returns:
      The type.
    • setType

       The message type.
       
      .google.cloud.batch.v1alpha.JobNotification.Type type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public JobNotification.Message.Builder clearType()
       The message type.
       
      .google.cloud.batch.v1alpha.JobNotification.Type type = 1;
      Returns:
      This builder for chaining.
    • getNewJobStateValue

      public int getNewJobStateValue()
       The new job state.
       
      .google.cloud.batch.v1alpha.JobStatus.State new_job_state = 2;
      Specified by:
      getNewJobStateValue in interface JobNotification.MessageOrBuilder
      Returns:
      The enum numeric value on the wire for newJobState.
    • setNewJobStateValue

      public JobNotification.Message.Builder setNewJobStateValue(int value)
       The new job state.
       
      .google.cloud.batch.v1alpha.JobStatus.State new_job_state = 2;
      Parameters:
      value - The enum numeric value on the wire for newJobState to set.
      Returns:
      This builder for chaining.
    • getNewJobState

      public JobStatus.State getNewJobState()
       The new job state.
       
      .google.cloud.batch.v1alpha.JobStatus.State new_job_state = 2;
      Specified by:
      getNewJobState in interface JobNotification.MessageOrBuilder
      Returns:
      The newJobState.
    • setNewJobState

      public JobNotification.Message.Builder setNewJobState(JobStatus.State value)
       The new job state.
       
      .google.cloud.batch.v1alpha.JobStatus.State new_job_state = 2;
      Parameters:
      value - The newJobState to set.
      Returns:
      This builder for chaining.
    • clearNewJobState

      public JobNotification.Message.Builder clearNewJobState()
       The new job state.
       
      .google.cloud.batch.v1alpha.JobStatus.State new_job_state = 2;
      Returns:
      This builder for chaining.
    • getNewTaskStateValue

      public int getNewTaskStateValue()
       The new task state.
       
      .google.cloud.batch.v1alpha.TaskStatus.State new_task_state = 3;
      Specified by:
      getNewTaskStateValue in interface JobNotification.MessageOrBuilder
      Returns:
      The enum numeric value on the wire for newTaskState.
    • setNewTaskStateValue

      public JobNotification.Message.Builder setNewTaskStateValue(int value)
       The new task state.
       
      .google.cloud.batch.v1alpha.TaskStatus.State new_task_state = 3;
      Parameters:
      value - The enum numeric value on the wire for newTaskState to set.
      Returns:
      This builder for chaining.
    • getNewTaskState

      public TaskStatus.State getNewTaskState()
       The new task state.
       
      .google.cloud.batch.v1alpha.TaskStatus.State new_task_state = 3;
      Specified by:
      getNewTaskState in interface JobNotification.MessageOrBuilder
      Returns:
      The newTaskState.
    • setNewTaskState

      public JobNotification.Message.Builder setNewTaskState(TaskStatus.State value)
       The new task state.
       
      .google.cloud.batch.v1alpha.TaskStatus.State new_task_state = 3;
      Parameters:
      value - The newTaskState to set.
      Returns:
      This builder for chaining.
    • clearNewTaskState

      public JobNotification.Message.Builder clearNewTaskState()
       The new task state.
       
      .google.cloud.batch.v1alpha.TaskStatus.State new_task_state = 3;
      Returns:
      This builder for chaining.