Class PubsubLocation.Builder (0.18.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PubsubLocation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PubsubLocation.Builder
Overrides

build()

public PubsubLocation build()
Returns
TypeDescription
PubsubLocation

buildPartial()

public PubsubLocation buildPartial()
Returns
TypeDescription
PubsubLocation

clear()

public PubsubLocation.Builder clear()
Returns
TypeDescription
PubsubLocation.Builder
Overrides

clearDropLateData()

public PubsubLocation.Builder clearDropLateData()

Indicates whether the pipeline allows late-arriving data.

bool drop_late_data = 5;

Returns
TypeDescription
PubsubLocation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PubsubLocation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PubsubLocation.Builder
Overrides

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
TypeDescription
PubsubLocation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PubsubLocation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PubsubLocation.Builder
Overrides

clearSubscription()

public PubsubLocation.Builder clearSubscription()

A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"

string subscription = 2;

Returns
TypeDescription
PubsubLocation.Builder

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
TypeDescription
PubsubLocation.Builder

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
TypeDescription
PubsubLocation.Builder

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
TypeDescription
PubsubLocation.Builder

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
TypeDescription
PubsubLocation.Builder

This builder for chaining.

clone()

public PubsubLocation.Builder clone()
Returns
TypeDescription
PubsubLocation.Builder
Overrides

getDefaultInstanceForType()

public PubsubLocation getDefaultInstanceForType()
Returns
TypeDescription
PubsubLocation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDropLateData()

public boolean getDropLateData()

Indicates whether the pipeline allows late-arriving data.

bool drop_late_data = 5;

Returns
TypeDescription
boolean

The dropLateData.

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;

Returns
TypeDescription
String

The idLabel.

getIdLabelBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for idLabel.

getSubscription()

public String getSubscription()

A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"

string subscription = 2;

Returns
TypeDescription
String

The subscription.

getSubscriptionBytes()

public ByteString getSubscriptionBytes()

A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"

string subscription = 2;

Returns
TypeDescription
ByteString

The bytes for subscription.

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;

Returns
TypeDescription
String

The timestampLabel.

getTimestampLabelBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for timestampLabel.

getTopic()

public String getTopic()

A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"

string topic = 1;

Returns
TypeDescription
String

The topic.

getTopicBytes()

public ByteString getTopicBytes()

A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"

string topic = 1;

Returns
TypeDescription
ByteString

The bytes for topic.

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;

Returns
TypeDescription
String

The trackingSubscription.

getTrackingSubscriptionBytes()

public ByteString getTrackingSubscriptionBytes()

If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.

string tracking_subscription = 6;

Returns
TypeDescription
ByteString

The bytes for trackingSubscription.

getWithAttributes()

public boolean getWithAttributes()

If true, then the client has requested to get pubsub attributes.

bool with_attributes = 7;

Returns
TypeDescription
boolean

The withAttributes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PubsubLocation other)

public PubsubLocation.Builder mergeFrom(PubsubLocation other)
Parameter
NameDescription
otherPubsubLocation
Returns
TypeDescription
PubsubLocation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PubsubLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PubsubLocation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PubsubLocation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PubsubLocation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PubsubLocation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PubsubLocation.Builder
Overrides

setDropLateData(boolean value)

public PubsubLocation.Builder setDropLateData(boolean value)

Indicates whether the pipeline allows late-arriving data.

bool drop_late_data = 5;

Parameter
NameDescription
valueboolean

The dropLateData to set.

Returns
TypeDescription
PubsubLocation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PubsubLocation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PubsubLocation.Builder
Overrides

setIdLabel(String value)

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;

Parameter
NameDescription
valueString

The idLabel to set.

Returns
TypeDescription
PubsubLocation.Builder

This builder for chaining.

setIdLabelBytes(ByteString value)

public PubsubLocation.Builder setIdLabelBytes(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;

Parameter
NameDescription
valueByteString

The bytes for idLabel to set.

Returns
TypeDescription
PubsubLocation.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PubsubLocation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PubsubLocation.Builder
Overrides

setSubscription(String value)

public PubsubLocation.Builder setSubscription(String value)

A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"

string subscription = 2;

Parameter
NameDescription
valueString

The subscription to set.

Returns
TypeDescription
PubsubLocation.Builder

This builder for chaining.

setSubscriptionBytes(ByteString value)

public PubsubLocation.Builder setSubscriptionBytes(ByteString value)

A pubsub subscription, in the form of "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"

string subscription = 2;

Parameter
NameDescription
valueByteString

The bytes for subscription to set.

Returns
TypeDescription
PubsubLocation.Builder

This builder for chaining.

setTimestampLabel(String value)

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;

Parameter
NameDescription
valueString

The timestampLabel to set.

Returns
TypeDescription
PubsubLocation.Builder

This builder for chaining.

setTimestampLabelBytes(ByteString value)

public PubsubLocation.Builder setTimestampLabelBytes(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;

Parameter
NameDescription
valueByteString

The bytes for timestampLabel to set.

Returns
TypeDescription
PubsubLocation.Builder

This builder for chaining.

setTopic(String value)

public PubsubLocation.Builder setTopic(String value)

A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"

string topic = 1;

Parameter
NameDescription
valueString

The topic to set.

Returns
TypeDescription
PubsubLocation.Builder

This builder for chaining.

setTopicBytes(ByteString value)

public PubsubLocation.Builder setTopicBytes(ByteString value)

A pubsub topic, in the form of "pubsub.googleapis.com/topics/<project-id>/<topic-name>"

string topic = 1;

Parameter
NameDescription
valueByteString

The bytes for topic to set.

Returns
TypeDescription
PubsubLocation.Builder

This builder for chaining.

setTrackingSubscription(String value)

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;

Parameter
NameDescription
valueString

The trackingSubscription to set.

Returns
TypeDescription
PubsubLocation.Builder

This builder for chaining.

setTrackingSubscriptionBytes(ByteString value)

public PubsubLocation.Builder setTrackingSubscriptionBytes(ByteString value)

If set, specifies the pubsub subscription that will be used for tracking custom time timestamps for watermark estimation.

string tracking_subscription = 6;

Parameter
NameDescription
valueByteString

The bytes for trackingSubscription to set.

Returns
TypeDescription
PubsubLocation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PubsubLocation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PubsubLocation.Builder
Overrides

setWithAttributes(boolean value)

public PubsubLocation.Builder setWithAttributes(boolean value)

If true, then the client has requested to get pubsub attributes.

bool with_attributes = 7;

Parameter
NameDescription
valueboolean

The withAttributes to set.

Returns
TypeDescription
PubsubLocation.Builder

This builder for chaining.