Class JobNotification.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<JobNotification.Builder>
com.google.cloud.batch.v1alpha.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.GeneratedMessage.Builder<JobNotification.Builder> implements JobNotificationOrBuilder
 Notification configurations.
 
Protobuf type google.cloud.batch.v1alpha.JobNotification
  • 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.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public JobNotification.Builder mergeFrom(JobNotification other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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 for the job, like state
       changes, will be published. If undefined, no Pub/Sub notifications
       are sent for this job.
      
       Specify the topic using the following format:
       `projects/{project}/topics/{topic}`.
       Notably, if you want to specify a Pub/Sub topic that is in a
       different project than the job, your administrator must grant your
       project's Batch service agent permission to publish to that topic.
      
       For more information about configuring Pub/Sub notifications for
       a job, see
       https://cloud.google.com/batch/docs/enable-notifications.
       
      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 for the job, like state
       changes, will be published. If undefined, no Pub/Sub notifications
       are sent for this job.
      
       Specify the topic using the following format:
       `projects/{project}/topics/{topic}`.
       Notably, if you want to specify a Pub/Sub topic that is in a
       different project than the job, your administrator must grant your
       project's Batch service agent permission to publish to that topic.
      
       For more information about configuring Pub/Sub notifications for
       a job, see
       https://cloud.google.com/batch/docs/enable-notifications.
       
      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 for the job, like state
       changes, will be published. If undefined, no Pub/Sub notifications
       are sent for this job.
      
       Specify the topic using the following format:
       `projects/{project}/topics/{topic}`.
       Notably, if you want to specify a Pub/Sub topic that is in a
       different project than the job, your administrator must grant your
       project's Batch service agent permission to publish to that topic.
      
       For more information about configuring Pub/Sub notifications for
       a job, see
       https://cloud.google.com/batch/docs/enable-notifications.
       
      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 for the job, like state
       changes, will be published. If undefined, no Pub/Sub notifications
       are sent for this job.
      
       Specify the topic using the following format:
       `projects/{project}/topics/{topic}`.
       Notably, if you want to specify a Pub/Sub topic that is in a
       different project than the job, your administrator must grant your
       project's Batch service agent permission to publish to that topic.
      
       For more information about configuring Pub/Sub notifications for
       a job, see
       https://cloud.google.com/batch/docs/enable-notifications.
       
      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 for the job, like state
       changes, will be published. If undefined, no Pub/Sub notifications
       are sent for this job.
      
       Specify the topic using the following format:
       `projects/{project}/topics/{topic}`.
       Notably, if you want to specify a Pub/Sub topic that is in a
       different project than the job, your administrator must grant your
       project's Batch service agent permission to publish to that topic.
      
       For more information about configuring Pub/Sub notifications for
       a job, see
       https://cloud.google.com/batch/docs/enable-notifications.
       
      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.v1alpha.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.v1alpha.JobNotification.Message message = 2;
      Specified by:
      getMessage in interface JobNotificationOrBuilder
      Returns:
      The message.
    • setMessage

       The attribute requirements of messages to be sent to this Pub/Sub topic.
       Without this field, no message will be sent.
       
      .google.cloud.batch.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.JobNotification.Message message = 2;
    • getMessageOrBuilder

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