Class PubsubLocation.Builder

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

    public static final class PubsubLocation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
    implements PubsubLocationOrBuilder
     Identifies a pubsub location to use for transferring data into or
     out of a streaming Dataflow job.
     
    Protobuf type google.dataflow.v1beta3.PubsubLocation
    • 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<PubsubLocation.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public String getTopic()
         A pubsub topic, in the form of
         "pubsub.googleapis.com/topics/<project-id>/<topic-name>"
         
        string topic = 1;
        Specified by:
        getTopic in interface PubsubLocationOrBuilder
        Returns:
        The topic.
      • getTopicBytes

        public com.google.protobuf.ByteString getTopicBytes()
         A pubsub topic, in the form of
         "pubsub.googleapis.com/topics/<project-id>/<topic-name>"
         
        string topic = 1;
        Specified by:
        getTopicBytes in interface PubsubLocationOrBuilder
        Returns:
        The bytes for topic.
      • setTopic

        public PubsubLocation.Builder setTopic​(String value)
         A pubsub topic, in the form of
         "pubsub.googleapis.com/topics/<project-id>/<topic-name>"
         
        string topic = 1;
        Parameters:
        value - The topic to set.
        Returns:
        This builder for chaining.
      • clearTopic

        public PubsubLocation.Builder clearTopic()
         A pubsub topic, in the form of
         "pubsub.googleapis.com/topics/<project-id>/<topic-name>"
         
        string topic = 1;
        Returns:
        This builder for chaining.
      • setTopicBytes

        public PubsubLocation.Builder setTopicBytes​(com.google.protobuf.ByteString value)
         A pubsub topic, in the form of
         "pubsub.googleapis.com/topics/<project-id>/<topic-name>"
         
        string topic = 1;
        Parameters:
        value - The bytes for topic to set.
        Returns:
        This builder for chaining.
      • getSubscription

        public String getSubscription()
         A pubsub subscription, in the form of
         "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"
         
        string subscription = 2;
        Specified by:
        getSubscription in interface PubsubLocationOrBuilder
        Returns:
        The subscription.
      • getSubscriptionBytes

        public com.google.protobuf.ByteString getSubscriptionBytes()
         A pubsub subscription, in the form of
         "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"
         
        string subscription = 2;
        Specified by:
        getSubscriptionBytes in interface PubsubLocationOrBuilder
        Returns:
        The bytes for subscription.
      • setSubscription

        public PubsubLocation.Builder setSubscription​(String value)
         A pubsub subscription, in the form of
         "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"
         
        string subscription = 2;
        Parameters:
        value - The subscription to set.
        Returns:
        This builder for chaining.
      • clearSubscription

        public PubsubLocation.Builder clearSubscription()
         A pubsub subscription, in the form of
         "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"
         
        string subscription = 2;
        Returns:
        This builder for chaining.
      • setSubscriptionBytes

        public PubsubLocation.Builder setSubscriptionBytes​(com.google.protobuf.ByteString value)
         A pubsub subscription, in the form of
         "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"
         
        string subscription = 2;
        Parameters:
        value - The bytes for subscription to set.
        Returns:
        This builder for chaining.
      • getTimestampLabel

        public String getTimestampLabel()
         If set, contains a pubsub label from which to extract record timestamps.
         If left empty, record timestamps will be generated upon arrival.
         
        string timestamp_label = 3;
        Specified by:
        getTimestampLabel in interface PubsubLocationOrBuilder
        Returns:
        The timestampLabel.
      • getTimestampLabelBytes

        public com.google.protobuf.ByteString getTimestampLabelBytes()
         If set, contains a pubsub label from which to extract record timestamps.
         If left empty, record timestamps will be generated upon arrival.
         
        string timestamp_label = 3;
        Specified by:
        getTimestampLabelBytes in interface PubsubLocationOrBuilder
        Returns:
        The bytes for timestampLabel.
      • setTimestampLabel

        public PubsubLocation.Builder setTimestampLabel​(String value)
         If set, contains a pubsub label from which to extract record timestamps.
         If left empty, record timestamps will be generated upon arrival.
         
        string timestamp_label = 3;
        Parameters:
        value - The timestampLabel to set.
        Returns:
        This builder for chaining.
      • clearTimestampLabel

        public PubsubLocation.Builder clearTimestampLabel()
         If set, contains a pubsub label from which to extract record timestamps.
         If left empty, record timestamps will be generated upon arrival.
         
        string timestamp_label = 3;
        Returns:
        This builder for chaining.
      • setTimestampLabelBytes

        public PubsubLocation.Builder setTimestampLabelBytes​(com.google.protobuf.ByteString value)
         If set, contains a pubsub label from which to extract record timestamps.
         If left empty, record timestamps will be generated upon arrival.
         
        string timestamp_label = 3;
        Parameters:
        value - The bytes for timestampLabel to set.
        Returns:
        This builder for chaining.
      • getIdLabel

        public String getIdLabel()
         If set, contains a pubsub label from which to extract record ids.
         If left empty, record deduplication will be strictly best effort.
         
        string id_label = 4;
        Specified by:
        getIdLabel in interface PubsubLocationOrBuilder
        Returns:
        The idLabel.
      • getIdLabelBytes

        public com.google.protobuf.ByteString getIdLabelBytes()
         If set, contains a pubsub label from which to extract record ids.
         If left empty, record deduplication will be strictly best effort.
         
        string id_label = 4;
        Specified by:
        getIdLabelBytes in interface PubsubLocationOrBuilder
        Returns:
        The bytes for idLabel.
      • setIdLabel

        public PubsubLocation.Builder setIdLabel​(String value)
         If set, contains a pubsub label from which to extract record ids.
         If left empty, record deduplication will be strictly best effort.
         
        string id_label = 4;
        Parameters:
        value - The idLabel to set.
        Returns:
        This builder for chaining.
      • clearIdLabel

        public PubsubLocation.Builder clearIdLabel()
         If set, contains a pubsub label from which to extract record ids.
         If left empty, record deduplication will be strictly best effort.
         
        string id_label = 4;
        Returns:
        This builder for chaining.
      • setIdLabelBytes

        public PubsubLocation.Builder setIdLabelBytes​(com.google.protobuf.ByteString value)
         If set, contains a pubsub label from which to extract record ids.
         If left empty, record deduplication will be strictly best effort.
         
        string id_label = 4;
        Parameters:
        value - The bytes for idLabel to set.
        Returns:
        This builder for chaining.
      • getDropLateData

        public boolean getDropLateData()
         Indicates whether the pipeline allows late-arriving data.
         
        bool drop_late_data = 5;
        Specified by:
        getDropLateData in interface PubsubLocationOrBuilder
        Returns:
        The dropLateData.
      • setDropLateData

        public PubsubLocation.Builder setDropLateData​(boolean value)
         Indicates whether the pipeline allows late-arriving data.
         
        bool drop_late_data = 5;
        Parameters:
        value - The dropLateData to set.
        Returns:
        This builder for chaining.
      • clearDropLateData

        public PubsubLocation.Builder clearDropLateData()
         Indicates whether the pipeline allows late-arriving data.
         
        bool drop_late_data = 5;
        Returns:
        This builder for chaining.
      • getTrackingSubscription

        public String getTrackingSubscription()
         If set, specifies the pubsub subscription that will be used for tracking
         custom time timestamps for watermark estimation.
         
        string tracking_subscription = 6;
        Specified by:
        getTrackingSubscription in interface PubsubLocationOrBuilder
        Returns:
        The trackingSubscription.
      • getTrackingSubscriptionBytes

        public com.google.protobuf.ByteString getTrackingSubscriptionBytes()
         If set, specifies the pubsub subscription that will be used for tracking
         custom time timestamps for watermark estimation.
         
        string tracking_subscription = 6;
        Specified by:
        getTrackingSubscriptionBytes in interface PubsubLocationOrBuilder
        Returns:
        The bytes for trackingSubscription.
      • setTrackingSubscription

        public PubsubLocation.Builder setTrackingSubscription​(String value)
         If set, specifies the pubsub subscription that will be used for tracking
         custom time timestamps for watermark estimation.
         
        string tracking_subscription = 6;
        Parameters:
        value - The trackingSubscription to set.
        Returns:
        This builder for chaining.
      • clearTrackingSubscription

        public PubsubLocation.Builder clearTrackingSubscription()
         If set, specifies the pubsub subscription that will be used for tracking
         custom time timestamps for watermark estimation.
         
        string tracking_subscription = 6;
        Returns:
        This builder for chaining.
      • setTrackingSubscriptionBytes

        public PubsubLocation.Builder setTrackingSubscriptionBytes​(com.google.protobuf.ByteString value)
         If set, specifies the pubsub subscription that will be used for tracking
         custom time timestamps for watermark estimation.
         
        string tracking_subscription = 6;
        Parameters:
        value - The bytes for trackingSubscription to set.
        Returns:
        This builder for chaining.
      • getWithAttributes

        public boolean getWithAttributes()
         If true, then the client has requested to get pubsub attributes.
         
        bool with_attributes = 7;
        Specified by:
        getWithAttributes in interface PubsubLocationOrBuilder
        Returns:
        The withAttributes.
      • setWithAttributes

        public PubsubLocation.Builder setWithAttributes​(boolean value)
         If true, then the client has requested to get pubsub attributes.
         
        bool with_attributes = 7;
        Parameters:
        value - The withAttributes to set.
        Returns:
        This builder for chaining.
      • clearWithAttributes

        public PubsubLocation.Builder clearWithAttributes()
         If true, then the client has requested to get pubsub attributes.
         
        bool with_attributes = 7;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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