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.GeneratedMessage.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.GeneratedMessage.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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Indicates whether the pipeline allows late-arriving data.If true, then this location represents dynamic topics.If set, contains a pubsub label from which to extract record ids.A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"If set, contains a pubsub label from which to extract record timestamps.A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.If true, then the client has requested to get pubsub attributes.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIndicates whether the pipeline allows late-arriving data.booleanIf true, then this location represents dynamic topics.If set, contains a pubsub label from which to extract record ids.com.google.protobuf.ByteStringIf set, contains a pubsub label from which to extract record ids.A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"com.google.protobuf.ByteStringA pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"If set, contains a pubsub label from which to extract record timestamps.com.google.protobuf.ByteStringIf set, contains a pubsub label from which to extract record timestamps.getTopic()A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"com.google.protobuf.ByteStringA pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.com.google.protobuf.ByteStringIf set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.booleanIf true, then the client has requested to get pubsub attributes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PubsubLocation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDropLateData(boolean value) Indicates whether the pipeline allows late-arriving data.setDynamicDestinations(boolean value) If true, then this location represents dynamic topics.setIdLabel(String value) If set, contains a pubsub label from which to extract record ids.setIdLabelBytes(com.google.protobuf.ByteString value) If set, contains a pubsub label from which to extract record ids.setSubscription(String value) A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"setSubscriptionBytes(com.google.protobuf.ByteString value) A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"setTimestampLabel(String value) If set, contains a pubsub label from which to extract record timestamps.setTimestampLabelBytes(com.google.protobuf.ByteString value) If set, contains a pubsub label from which to extract record timestamps.A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"setTopicBytes(com.google.protobuf.ByteString value) A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"setTrackingSubscription(String value) If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.setTrackingSubscriptionBytes(com.google.protobuf.ByteString value) If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.setWithAttributes(boolean value) If true, then the client has requested to get pubsub attributes.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PubsubLocation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<PubsubLocation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PubsubLocation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"
string topic = 1;- Returns:
- This builder for chaining.
-
setTopicBytes
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
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
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
A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"
string subscription = 2;- Returns:
- This builder for chaining.
-
setSubscriptionBytes
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
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
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
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
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
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
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
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
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
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
Indicates whether the pipeline allows late-arriving data.
bool drop_late_data = 5;- Returns:
- This builder for chaining.
-
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
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
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
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
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
If true, then the client has requested to get pubsub attributes.
bool with_attributes = 7;- Returns:
- This builder for chaining.
-
getDynamicDestinations
public boolean getDynamicDestinations()If true, then this location represents dynamic topics.
bool dynamic_destinations = 8;- Specified by:
getDynamicDestinationsin interfacePubsubLocationOrBuilder- Returns:
- The dynamicDestinations.
-
setDynamicDestinations
If true, then this location represents dynamic topics.
bool dynamic_destinations = 8;- Parameters:
value- The dynamicDestinations to set.- Returns:
- This builder for chaining.
-
clearDynamicDestinations
If true, then this location represents dynamic topics.
bool dynamic_destinations = 8;- Returns:
- This builder for chaining.
-