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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PubsubLocationbuild()PubsubLocationbuildPartial()PubsubLocation.Builderclear()PubsubLocation.BuilderclearDropLateData()Indicates whether the pipeline allows late-arriving data.PubsubLocation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PubsubLocation.BuilderclearIdLabel()If set, contains a pubsub label from which to extract record ids.PubsubLocation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PubsubLocation.BuilderclearSubscription()A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"PubsubLocation.BuilderclearTimestampLabel()If set, contains a pubsub label from which to extract record timestamps.PubsubLocation.BuilderclearTopic()A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"PubsubLocation.BuilderclearTrackingSubscription()If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.PubsubLocation.BuilderclearWithAttributes()If true, then the client has requested to get pubsub attributes.PubsubLocation.Builderclone()PubsubLocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetDropLateData()Indicates whether the pipeline allows late-arriving data.StringgetIdLabel()If set, contains a pubsub label from which to extract record ids.com.google.protobuf.ByteStringgetIdLabelBytes()If set, contains a pubsub label from which to extract record ids.StringgetSubscription()A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"com.google.protobuf.ByteStringgetSubscriptionBytes()A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"StringgetTimestampLabel()If set, contains a pubsub label from which to extract record timestamps.com.google.protobuf.ByteStringgetTimestampLabelBytes()If set, contains a pubsub label from which to extract record timestamps.StringgetTopic()A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"com.google.protobuf.ByteStringgetTopicBytes()A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"StringgetTrackingSubscription()If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.com.google.protobuf.ByteStringgetTrackingSubscriptionBytes()If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.booleangetWithAttributes()If true, then the client has requested to get pubsub attributes.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PubsubLocation.BuildermergeFrom(PubsubLocation other)PubsubLocation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PubsubLocation.BuildermergeFrom(com.google.protobuf.Message other)PubsubLocation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PubsubLocation.BuildersetDropLateData(boolean value)Indicates whether the pipeline allows late-arriving data.PubsubLocation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PubsubLocation.BuildersetIdLabel(String value)If set, contains a pubsub label from which to extract record ids.PubsubLocation.BuildersetIdLabelBytes(com.google.protobuf.ByteString value)If set, contains a pubsub label from which to extract record ids.PubsubLocation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PubsubLocation.BuildersetSubscription(String value)A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"PubsubLocation.BuildersetSubscriptionBytes(com.google.protobuf.ByteString value)A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"PubsubLocation.BuildersetTimestampLabel(String value)If set, contains a pubsub label from which to extract record timestamps.PubsubLocation.BuildersetTimestampLabelBytes(com.google.protobuf.ByteString value)If set, contains a pubsub label from which to extract record timestamps.PubsubLocation.BuildersetTopic(String value)A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"PubsubLocation.BuildersetTopicBytes(com.google.protobuf.ByteString value)A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"PubsubLocation.BuildersetTrackingSubscription(String value)If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.PubsubLocation.BuildersetTrackingSubscriptionBytes(com.google.protobuf.ByteString value)If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.PubsubLocation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PubsubLocation.BuildersetWithAttributes(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
clear
public PubsubLocation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
getDefaultInstanceForType
public PubsubLocation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PubsubLocation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PubsubLocation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PubsubLocation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
setField
public PubsubLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
clearField
public PubsubLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
clearOneof
public PubsubLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
setRepeatedField
public PubsubLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
addRepeatedField
public PubsubLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
mergeFrom
public PubsubLocation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PubsubLocation.Builder>
-
mergeFrom
public PubsubLocation.Builder mergeFrom(PubsubLocation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getTopicin 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:
getTopicBytesin 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:
getSubscriptionin 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:
getSubscriptionBytesin 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:
getTimestampLabelin 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:
getTimestampLabelBytesin 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:
getIdLabelin 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:
getIdLabelBytesin 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:
getDropLateDatain 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:
getTrackingSubscriptionin 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:
getTrackingSubscriptionBytesin 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:
getWithAttributesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
mergeUnknownFields
public final PubsubLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PubsubLocation.Builder>
-
-