Class 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.GeneratedMessageV3.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.v1.JobNotification.Message
    • 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<JobNotification.Message.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.v1.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.v1.JobNotification.Type type = 1;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • clearType

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

        public int getNewJobStateValue()
         The new job state.
         
        .google.cloud.batch.v1.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.v1.JobStatus.State new_job_state = 2;
        Parameters:
        value - The enum numeric value on the wire for newJobState to set.
        Returns:
        This builder for chaining.
      • setNewJobState

        public JobNotification.Message.Builder setNewJobState​(JobStatus.State value)
         The new job state.
         
        .google.cloud.batch.v1.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.v1.JobStatus.State new_job_state = 2;
        Returns:
        This builder for chaining.
      • getNewTaskStateValue

        public int getNewTaskStateValue()
         The new task state.
         
        .google.cloud.batch.v1.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.v1.TaskStatus.State new_task_state = 3;
        Parameters:
        value - The enum numeric value on the wire for newTaskState to set.
        Returns:
        This builder for chaining.
      • setNewTaskState

        public JobNotification.Message.Builder setNewTaskState​(TaskStatus.State value)
         The new task state.
         
        .google.cloud.batch.v1.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.v1.TaskStatus.State new_task_state = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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