Package com.google.dataflow.v1beta3
Class PubsubLocation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
- com.google.dataflow.v1beta3.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 typegoogle.dataflow.v1beta3.PubsubLocation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PubsubLocation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PubsubLocation
build()
PubsubLocation
buildPartial()
PubsubLocation.Builder
clear()
PubsubLocation.Builder
clearDropLateData()
Indicates whether the pipeline allows late-arriving data.PubsubLocation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PubsubLocation.Builder
clearIdLabel()
If set, contains a pubsub label from which to extract record ids.PubsubLocation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PubsubLocation.Builder
clearSubscription()
A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"PubsubLocation.Builder
clearTimestampLabel()
If set, contains a pubsub label from which to extract record timestamps.PubsubLocation.Builder
clearTopic()
A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"PubsubLocation.Builder
clearTrackingSubscription()
If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.PubsubLocation.Builder
clearWithAttributes()
If true, then the client has requested to get pubsub attributes.PubsubLocation.Builder
clone()
PubsubLocation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getDropLateData()
Indicates whether the pipeline allows late-arriving data.String
getIdLabel()
If set, contains a pubsub label from which to extract record ids.com.google.protobuf.ByteString
getIdLabelBytes()
If set, contains a pubsub label from which to extract record ids.String
getSubscription()
A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"com.google.protobuf.ByteString
getSubscriptionBytes()
A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"String
getTimestampLabel()
If set, contains a pubsub label from which to extract record timestamps.com.google.protobuf.ByteString
getTimestampLabelBytes()
If set, contains a pubsub label from which to extract record timestamps.String
getTopic()
A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"com.google.protobuf.ByteString
getTopicBytes()
A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"String
getTrackingSubscription()
If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.com.google.protobuf.ByteString
getTrackingSubscriptionBytes()
If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.boolean
getWithAttributes()
If true, then the client has requested to get pubsub attributes.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
PubsubLocation.Builder
mergeFrom(PubsubLocation other)
PubsubLocation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PubsubLocation.Builder
mergeFrom(com.google.protobuf.Message other)
PubsubLocation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PubsubLocation.Builder
setDropLateData(boolean value)
Indicates whether the pipeline allows late-arriving data.PubsubLocation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PubsubLocation.Builder
setIdLabel(String value)
If set, contains a pubsub label from which to extract record ids.PubsubLocation.Builder
setIdLabelBytes(com.google.protobuf.ByteString value)
If set, contains a pubsub label from which to extract record ids.PubsubLocation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
PubsubLocation.Builder
setSubscription(String value)
A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"PubsubLocation.Builder
setSubscriptionBytes(com.google.protobuf.ByteString value)
A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"PubsubLocation.Builder
setTimestampLabel(String value)
If set, contains a pubsub label from which to extract record timestamps.PubsubLocation.Builder
setTimestampLabelBytes(com.google.protobuf.ByteString value)
If set, contains a pubsub label from which to extract record timestamps.PubsubLocation.Builder
setTopic(String value)
A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"PubsubLocation.Builder
setTopicBytes(com.google.protobuf.ByteString value)
A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"PubsubLocation.Builder
setTrackingSubscription(String value)
If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.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.PubsubLocation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PubsubLocation.Builder
setWithAttributes(boolean value)
If true, then the client has requested to get pubsub attributes.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
clear
public PubsubLocation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
getDefaultInstanceForType
public PubsubLocation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PubsubLocation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PubsubLocation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PubsubLocation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
setField
public PubsubLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
clearField
public PubsubLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
clearOneof
public PubsubLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
addRepeatedField
public PubsubLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
mergeFrom
public PubsubLocation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PubsubLocation.Builder>
-
mergeFrom
public PubsubLocation.Builder mergeFrom(PubsubLocation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfacePubsubLocationOrBuilder
- 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 interfacePubsubLocationOrBuilder
- 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 interfacePubsubLocationOrBuilder
- 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 interfacePubsubLocationOrBuilder
- 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 interfacePubsubLocationOrBuilder
- 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 interfacePubsubLocationOrBuilder
- 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 interfacePubsubLocationOrBuilder
- 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 interfacePubsubLocationOrBuilder
- 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 interfacePubsubLocationOrBuilder
- 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 interfacePubsubLocationOrBuilder
- 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 interfacePubsubLocationOrBuilder
- 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 interfacePubsubLocationOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
mergeUnknownFields
public final PubsubLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
-