Class Pubsub.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Pubsub.Builder>
com.google.cloud.eventarc.v1.Pubsub.Builder
All Implemented Interfaces:
PubsubOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Pubsub

public static final class Pubsub.Builder extends com.google.protobuf.GeneratedMessage.Builder<Pubsub.Builder> implements PubsubOrBuilder
 Represents a Pub/Sub transport.
 
Protobuf type google.cloud.eventarc.v1.Pubsub
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Output only.
    Optional.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Output only.
    com.google.protobuf.ByteString
    Output only.
    Optional.
    com.google.protobuf.ByteString
    Optional.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    Output only.
    setSubscriptionBytes(com.google.protobuf.ByteString value)
    Output only.
    Optional.
    setTopicBytes(com.google.protobuf.ByteString value)
    Optional.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<Pubsub.Builder>
    • clear

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

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

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

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

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

      public Pubsub.Builder mergeFrom(Pubsub other)
    • isInitialized

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

      public Pubsub.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<Pubsub.Builder>
      Throws:
      IOException
    • getTopic

      public String getTopic()
       Optional. The name of the Pub/Sub topic created and managed by Eventarc as
       a transport for the event delivery. Format:
       `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`.
      
       You can set an existing topic for triggers of the type
       `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide
       here is not deleted by Eventarc at trigger deletion.
       
      string topic = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTopic in interface PubsubOrBuilder
      Returns:
      The topic.
    • getTopicBytes

      public com.google.protobuf.ByteString getTopicBytes()
       Optional. The name of the Pub/Sub topic created and managed by Eventarc as
       a transport for the event delivery. Format:
       `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`.
      
       You can set an existing topic for triggers of the type
       `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide
       here is not deleted by Eventarc at trigger deletion.
       
      string topic = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTopicBytes in interface PubsubOrBuilder
      Returns:
      The bytes for topic.
    • setTopic

      public Pubsub.Builder setTopic(String value)
       Optional. The name of the Pub/Sub topic created and managed by Eventarc as
       a transport for the event delivery. Format:
       `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`.
      
       You can set an existing topic for triggers of the type
       `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide
       here is not deleted by Eventarc at trigger deletion.
       
      string topic = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The topic to set.
      Returns:
      This builder for chaining.
    • clearTopic

      public Pubsub.Builder clearTopic()
       Optional. The name of the Pub/Sub topic created and managed by Eventarc as
       a transport for the event delivery. Format:
       `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`.
      
       You can set an existing topic for triggers of the type
       `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide
       here is not deleted by Eventarc at trigger deletion.
       
      string topic = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setTopicBytes

      public Pubsub.Builder setTopicBytes(com.google.protobuf.ByteString value)
       Optional. The name of the Pub/Sub topic created and managed by Eventarc as
       a transport for the event delivery. Format:
       `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`.
      
       You can set an existing topic for triggers of the type
       `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide
       here is not deleted by Eventarc at trigger deletion.
       
      string topic = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for topic to set.
      Returns:
      This builder for chaining.
    • getSubscription

      public String getSubscription()
       Output only. The name of the Pub/Sub subscription created and managed by
       Eventarc as a transport for the event delivery. Format:
       `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
       
      string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSubscription in interface PubsubOrBuilder
      Returns:
      The subscription.
    • getSubscriptionBytes

      public com.google.protobuf.ByteString getSubscriptionBytes()
       Output only. The name of the Pub/Sub subscription created and managed by
       Eventarc as a transport for the event delivery. Format:
       `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
       
      string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSubscriptionBytes in interface PubsubOrBuilder
      Returns:
      The bytes for subscription.
    • setSubscription

      public Pubsub.Builder setSubscription(String value)
       Output only. The name of the Pub/Sub subscription created and managed by
       Eventarc as a transport for the event delivery. Format:
       `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
       
      string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The subscription to set.
      Returns:
      This builder for chaining.
    • clearSubscription

      public Pubsub.Builder clearSubscription()
       Output only. The name of the Pub/Sub subscription created and managed by
       Eventarc as a transport for the event delivery. Format:
       `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
       
      string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setSubscriptionBytes

      public Pubsub.Builder setSubscriptionBytes(com.google.protobuf.ByteString value)
       Output only. The name of the Pub/Sub subscription created and managed by
       Eventarc as a transport for the event delivery. Format:
       `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
       
      string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for subscription to set.
      Returns:
      This builder for chaining.