Class NotificationEndpoint.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NotificationEndpoint.Builder>
com.google.apps.events.subscriptions.v1beta.NotificationEndpoint.Builder
All Implemented Interfaces:
NotificationEndpointOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
NotificationEndpoint

public static final class NotificationEndpoint.Builder extends com.google.protobuf.GeneratedMessage.Builder<NotificationEndpoint.Builder> implements NotificationEndpointOrBuilder
 The endpoint where the subscription delivers events.
 
Protobuf type google.apps.events.subscriptions.v1beta.NotificationEndpoint
  • 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<NotificationEndpoint.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<NotificationEndpoint.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<NotificationEndpoint.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public NotificationEndpoint.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<NotificationEndpoint.Builder>
      Throws:
      IOException
    • getEndpointCase

      public NotificationEndpoint.EndpointCase getEndpointCase()
      Specified by:
      getEndpointCase in interface NotificationEndpointOrBuilder
    • clearEndpoint

      public NotificationEndpoint.Builder clearEndpoint()
    • hasPubsubTopic

      public boolean hasPubsubTopic()
       Immutable. The Pub/Sub topic that receives events for the subscription.
      
       Format: `projects/{project}/topics/{topic}`
      
      
       You must create the topic in the same Google Cloud project where
       you create this subscription.
      
       Note: The Workspace Events API uses [ordering
       keys](https://cloud.google.com/pubsub/docs/ordering) for the benefit of
       sequential events. If the Cloud Pub/Sub topic has a [message storage
       policy](https://cloud.google.com/pubsub/docs/resource-location-restriction#exceptions)
       configured to exclude the nearest Google Cloud region, publishing events
       with ordering keys will fail.
      
       When the topic receives events, the events are encoded as Pub/Sub
       messages. For details, see the [Google Cloud Pub/Sub Protocol Binding for
       CloudEvents](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md).
       
      string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      hasPubsubTopic in interface NotificationEndpointOrBuilder
      Returns:
      Whether the pubsubTopic field is set.
    • getPubsubTopic

      public String getPubsubTopic()
       Immutable. The Pub/Sub topic that receives events for the subscription.
      
       Format: `projects/{project}/topics/{topic}`
      
      
       You must create the topic in the same Google Cloud project where
       you create this subscription.
      
       Note: The Workspace Events API uses [ordering
       keys](https://cloud.google.com/pubsub/docs/ordering) for the benefit of
       sequential events. If the Cloud Pub/Sub topic has a [message storage
       policy](https://cloud.google.com/pubsub/docs/resource-location-restriction#exceptions)
       configured to exclude the nearest Google Cloud region, publishing events
       with ordering keys will fail.
      
       When the topic receives events, the events are encoded as Pub/Sub
       messages. For details, see the [Google Cloud Pub/Sub Protocol Binding for
       CloudEvents](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md).
       
      string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getPubsubTopic in interface NotificationEndpointOrBuilder
      Returns:
      The pubsubTopic.
    • getPubsubTopicBytes

      public com.google.protobuf.ByteString getPubsubTopicBytes()
       Immutable. The Pub/Sub topic that receives events for the subscription.
      
       Format: `projects/{project}/topics/{topic}`
      
      
       You must create the topic in the same Google Cloud project where
       you create this subscription.
      
       Note: The Workspace Events API uses [ordering
       keys](https://cloud.google.com/pubsub/docs/ordering) for the benefit of
       sequential events. If the Cloud Pub/Sub topic has a [message storage
       policy](https://cloud.google.com/pubsub/docs/resource-location-restriction#exceptions)
       configured to exclude the nearest Google Cloud region, publishing events
       with ordering keys will fail.
      
       When the topic receives events, the events are encoded as Pub/Sub
       messages. For details, see the [Google Cloud Pub/Sub Protocol Binding for
       CloudEvents](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md).
       
      string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getPubsubTopicBytes in interface NotificationEndpointOrBuilder
      Returns:
      The bytes for pubsubTopic.
    • setPubsubTopic

      public NotificationEndpoint.Builder setPubsubTopic(String value)
       Immutable. The Pub/Sub topic that receives events for the subscription.
      
       Format: `projects/{project}/topics/{topic}`
      
      
       You must create the topic in the same Google Cloud project where
       you create this subscription.
      
       Note: The Workspace Events API uses [ordering
       keys](https://cloud.google.com/pubsub/docs/ordering) for the benefit of
       sequential events. If the Cloud Pub/Sub topic has a [message storage
       policy](https://cloud.google.com/pubsub/docs/resource-location-restriction#exceptions)
       configured to exclude the nearest Google Cloud region, publishing events
       with ordering keys will fail.
      
       When the topic receives events, the events are encoded as Pub/Sub
       messages. For details, see the [Google Cloud Pub/Sub Protocol Binding for
       CloudEvents](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md).
       
      string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The pubsubTopic to set.
      Returns:
      This builder for chaining.
    • clearPubsubTopic

      public NotificationEndpoint.Builder clearPubsubTopic()
       Immutable. The Pub/Sub topic that receives events for the subscription.
      
       Format: `projects/{project}/topics/{topic}`
      
      
       You must create the topic in the same Google Cloud project where
       you create this subscription.
      
       Note: The Workspace Events API uses [ordering
       keys](https://cloud.google.com/pubsub/docs/ordering) for the benefit of
       sequential events. If the Cloud Pub/Sub topic has a [message storage
       policy](https://cloud.google.com/pubsub/docs/resource-location-restriction#exceptions)
       configured to exclude the nearest Google Cloud region, publishing events
       with ordering keys will fail.
      
       When the topic receives events, the events are encoded as Pub/Sub
       messages. For details, see the [Google Cloud Pub/Sub Protocol Binding for
       CloudEvents](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md).
       
      string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setPubsubTopicBytes

      public NotificationEndpoint.Builder setPubsubTopicBytes(com.google.protobuf.ByteString value)
       Immutable. The Pub/Sub topic that receives events for the subscription.
      
       Format: `projects/{project}/topics/{topic}`
      
      
       You must create the topic in the same Google Cloud project where
       you create this subscription.
      
       Note: The Workspace Events API uses [ordering
       keys](https://cloud.google.com/pubsub/docs/ordering) for the benefit of
       sequential events. If the Cloud Pub/Sub topic has a [message storage
       policy](https://cloud.google.com/pubsub/docs/resource-location-restriction#exceptions)
       configured to exclude the nearest Google Cloud region, publishing events
       with ordering keys will fail.
      
       When the topic receives events, the events are encoded as Pub/Sub
       messages. For details, see the [Google Cloud Pub/Sub Protocol Binding for
       CloudEvents](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md).
       
      string pubsub_topic = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for pubsubTopic to set.
      Returns:
      This builder for chaining.