Class PubsubSnapshotMetadata.Builder (0.51.0)

public static final class PubsubSnapshotMetadata.Builder extends GeneratedMessageV3.Builder<PubsubSnapshotMetadata.Builder> implements PubsubSnapshotMetadataOrBuilder

Represents a Pubsub snapshot.

Protobuf type google.dataflow.v1beta3.PubsubSnapshotMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PubsubSnapshotMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PubsubSnapshotMetadata.Builder
Overrides

build()

public PubsubSnapshotMetadata build()
Returns
Type Description
PubsubSnapshotMetadata

buildPartial()

public PubsubSnapshotMetadata buildPartial()
Returns
Type Description
PubsubSnapshotMetadata

clear()

public PubsubSnapshotMetadata.Builder clear()
Returns
Type Description
PubsubSnapshotMetadata.Builder
Overrides

clearExpireTime()

public PubsubSnapshotMetadata.Builder clearExpireTime()

The expire time of the Pubsub snapshot.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
PubsubSnapshotMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public PubsubSnapshotMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PubsubSnapshotMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PubsubSnapshotMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PubsubSnapshotMetadata.Builder
Overrides

clearSnapshotName()

public PubsubSnapshotMetadata.Builder clearSnapshotName()

The name of the Pubsub snapshot.

string snapshot_name = 2;

Returns
Type Description
PubsubSnapshotMetadata.Builder

This builder for chaining.

clearTopicName()

public PubsubSnapshotMetadata.Builder clearTopicName()

The name of the Pubsub topic.

string topic_name = 1;

Returns
Type Description
PubsubSnapshotMetadata.Builder

This builder for chaining.

clone()

public PubsubSnapshotMetadata.Builder clone()
Returns
Type Description
PubsubSnapshotMetadata.Builder
Overrides

getDefaultInstanceForType()

public PubsubSnapshotMetadata getDefaultInstanceForType()
Returns
Type Description
PubsubSnapshotMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExpireTime()

public Timestamp getExpireTime()

The expire time of the Pubsub snapshot.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

The expire time of the Pubsub snapshot.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

The expire time of the Pubsub snapshot.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
TimestampOrBuilder

getSnapshotName()

public String getSnapshotName()

The name of the Pubsub snapshot.

string snapshot_name = 2;

Returns
Type Description
String

The snapshotName.

getSnapshotNameBytes()

public ByteString getSnapshotNameBytes()

The name of the Pubsub snapshot.

string snapshot_name = 2;

Returns
Type Description
ByteString

The bytes for snapshotName.

getTopicName()

public String getTopicName()

The name of the Pubsub topic.

string topic_name = 1;

Returns
Type Description
String

The topicName.

getTopicNameBytes()

public ByteString getTopicNameBytes()

The name of the Pubsub topic.

string topic_name = 1;

Returns
Type Description
ByteString

The bytes for topicName.

hasExpireTime()

public boolean hasExpireTime()

The expire time of the Pubsub snapshot.

.google.protobuf.Timestamp expire_time = 3;

Returns
Type Description
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpireTime(Timestamp value)

public PubsubSnapshotMetadata.Builder mergeExpireTime(Timestamp value)

The expire time of the Pubsub snapshot.

.google.protobuf.Timestamp expire_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
PubsubSnapshotMetadata.Builder

mergeFrom(PubsubSnapshotMetadata other)

public PubsubSnapshotMetadata.Builder mergeFrom(PubsubSnapshotMetadata other)
Parameter
Name Description
other PubsubSnapshotMetadata
Returns
Type Description
PubsubSnapshotMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PubsubSnapshotMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PubsubSnapshotMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PubsubSnapshotMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PubsubSnapshotMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PubsubSnapshotMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PubsubSnapshotMetadata.Builder
Overrides

setExpireTime(Timestamp value)

public PubsubSnapshotMetadata.Builder setExpireTime(Timestamp value)

The expire time of the Pubsub snapshot.

.google.protobuf.Timestamp expire_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
PubsubSnapshotMetadata.Builder

setExpireTime(Timestamp.Builder builderForValue)

public PubsubSnapshotMetadata.Builder setExpireTime(Timestamp.Builder builderForValue)

The expire time of the Pubsub snapshot.

.google.protobuf.Timestamp expire_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PubsubSnapshotMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PubsubSnapshotMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PubsubSnapshotMetadata.Builder
Overrides

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

public PubsubSnapshotMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PubsubSnapshotMetadata.Builder
Overrides

setSnapshotName(String value)

public PubsubSnapshotMetadata.Builder setSnapshotName(String value)

The name of the Pubsub snapshot.

string snapshot_name = 2;

Parameter
Name Description
value String

The snapshotName to set.

Returns
Type Description
PubsubSnapshotMetadata.Builder

This builder for chaining.

setSnapshotNameBytes(ByteString value)

public PubsubSnapshotMetadata.Builder setSnapshotNameBytes(ByteString value)

The name of the Pubsub snapshot.

string snapshot_name = 2;

Parameter
Name Description
value ByteString

The bytes for snapshotName to set.

Returns
Type Description
PubsubSnapshotMetadata.Builder

This builder for chaining.

setTopicName(String value)

public PubsubSnapshotMetadata.Builder setTopicName(String value)

The name of the Pubsub topic.

string topic_name = 1;

Parameter
Name Description
value String

The topicName to set.

Returns
Type Description
PubsubSnapshotMetadata.Builder

This builder for chaining.

setTopicNameBytes(ByteString value)

public PubsubSnapshotMetadata.Builder setTopicNameBytes(ByteString value)

The name of the Pubsub topic.

string topic_name = 1;

Parameter
Name Description
value ByteString

The bytes for topicName to set.

Returns
Type Description
PubsubSnapshotMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PubsubSnapshotMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PubsubSnapshotMetadata.Builder
Overrides