Class JobNotification.Builder

  • All Implemented Interfaces:
    JobNotificationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    JobNotification

    public static final class JobNotification.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<JobNotification.Builder>
    implements JobNotificationOrBuilder
     Notification configurations.
     
    Protobuf type google.cloud.batch.v1.JobNotification
    • 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.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public String getPubsubTopic()
         The Pub/Sub topic where notifications like the job state changes
         will be published. The topic must exist in the same project as
         the job and billings will be charged to this project.
         If not specified, no Pub/Sub messages will be sent.
         Topic format: `projects/{project}/topics/{topic}`.
         
        string pubsub_topic = 1;
        Specified by:
        getPubsubTopic in interface JobNotificationOrBuilder
        Returns:
        The pubsubTopic.
      • getPubsubTopicBytes

        public com.google.protobuf.ByteString getPubsubTopicBytes()
         The Pub/Sub topic where notifications like the job state changes
         will be published. The topic must exist in the same project as
         the job and billings will be charged to this project.
         If not specified, no Pub/Sub messages will be sent.
         Topic format: `projects/{project}/topics/{topic}`.
         
        string pubsub_topic = 1;
        Specified by:
        getPubsubTopicBytes in interface JobNotificationOrBuilder
        Returns:
        The bytes for pubsubTopic.
      • setPubsubTopic

        public JobNotification.Builder setPubsubTopic​(String value)
         The Pub/Sub topic where notifications like the job state changes
         will be published. The topic must exist in the same project as
         the job and billings will be charged to this project.
         If not specified, no Pub/Sub messages will be sent.
         Topic format: `projects/{project}/topics/{topic}`.
         
        string pubsub_topic = 1;
        Parameters:
        value - The pubsubTopic to set.
        Returns:
        This builder for chaining.
      • clearPubsubTopic

        public JobNotification.Builder clearPubsubTopic()
         The Pub/Sub topic where notifications like the job state changes
         will be published. The topic must exist in the same project as
         the job and billings will be charged to this project.
         If not specified, no Pub/Sub messages will be sent.
         Topic format: `projects/{project}/topics/{topic}`.
         
        string pubsub_topic = 1;
        Returns:
        This builder for chaining.
      • setPubsubTopicBytes

        public JobNotification.Builder setPubsubTopicBytes​(com.google.protobuf.ByteString value)
         The Pub/Sub topic where notifications like the job state changes
         will be published. The topic must exist in the same project as
         the job and billings will be charged to this project.
         If not specified, no Pub/Sub messages will be sent.
         Topic format: `projects/{project}/topics/{topic}`.
         
        string pubsub_topic = 1;
        Parameters:
        value - The bytes for pubsubTopic to set.
        Returns:
        This builder for chaining.
      • hasMessage

        public boolean hasMessage()
         The attribute requirements of messages to be sent to this Pub/Sub topic.
         Without this field, no message will be sent.
         
        .google.cloud.batch.v1.JobNotification.Message message = 2;
        Specified by:
        hasMessage in interface JobNotificationOrBuilder
        Returns:
        Whether the message field is set.
      • getMessage

        public JobNotification.Message getMessage()
         The attribute requirements of messages to be sent to this Pub/Sub topic.
         Without this field, no message will be sent.
         
        .google.cloud.batch.v1.JobNotification.Message message = 2;
        Specified by:
        getMessage in interface JobNotificationOrBuilder
        Returns:
        The message.
      • setMessage

        public JobNotification.Builder setMessage​(JobNotification.Message value)
         The attribute requirements of messages to be sent to this Pub/Sub topic.
         Without this field, no message will be sent.
         
        .google.cloud.batch.v1.JobNotification.Message message = 2;
      • setMessage

        public JobNotification.Builder setMessage​(JobNotification.Message.Builder builderForValue)
         The attribute requirements of messages to be sent to this Pub/Sub topic.
         Without this field, no message will be sent.
         
        .google.cloud.batch.v1.JobNotification.Message message = 2;
      • mergeMessage

        public JobNotification.Builder mergeMessage​(JobNotification.Message value)
         The attribute requirements of messages to be sent to this Pub/Sub topic.
         Without this field, no message will be sent.
         
        .google.cloud.batch.v1.JobNotification.Message message = 2;
      • clearMessage

        public JobNotification.Builder clearMessage()
         The attribute requirements of messages to be sent to this Pub/Sub topic.
         Without this field, no message will be sent.
         
        .google.cloud.batch.v1.JobNotification.Message message = 2;
      • getMessageBuilder

        public JobNotification.Message.Builder getMessageBuilder()
         The attribute requirements of messages to be sent to this Pub/Sub topic.
         Without this field, no message will be sent.
         
        .google.cloud.batch.v1.JobNotification.Message message = 2;
      • setUnknownFields

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

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