Class PubsubSnapshotMetadata.Builder (0.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PubsubSnapshotMetadata build()
Returns
TypeDescription
PubsubSnapshotMetadata

buildPartial()

public PubsubSnapshotMetadata buildPartial()
Returns
TypeDescription
PubsubSnapshotMetadata

clear()

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

clearExpireTime()

public PubsubSnapshotMetadata.Builder clearExpireTime()

The expire time of the Pubsub snapshot.

.google.protobuf.Timestamp expire_time = 3;

Returns
TypeDescription
PubsubSnapshotMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSnapshotName()

public PubsubSnapshotMetadata.Builder clearSnapshotName()

The name of the Pubsub snapshot.

string snapshot_name = 2;

Returns
TypeDescription
PubsubSnapshotMetadata.Builder

This builder for chaining.

clearTopicName()

public PubsubSnapshotMetadata.Builder clearTopicName()

The name of the Pubsub topic.

string topic_name = 1;

Returns
TypeDescription
PubsubSnapshotMetadata.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public PubsubSnapshotMetadata getDefaultInstanceForType()
Returns
TypeDescription
PubsubSnapshotMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpireTime()

public Timestamp getExpireTime()

The expire time of the Pubsub snapshot.

.google.protobuf.Timestamp expire_time = 3;

Returns
TypeDescription
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

The expire time of the Pubsub snapshot.

.google.protobuf.Timestamp expire_time = 3;

Returns
TypeDescription
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

The expire time of the Pubsub snapshot.

.google.protobuf.Timestamp expire_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getSnapshotName()

public String getSnapshotName()

The name of the Pubsub snapshot.

string snapshot_name = 2;

Returns
TypeDescription
String

The snapshotName.

getSnapshotNameBytes()

public ByteString getSnapshotNameBytes()

The name of the Pubsub snapshot.

string snapshot_name = 2;

Returns
TypeDescription
ByteString

The bytes for snapshotName.

getTopicName()

public String getTopicName()

The name of the Pubsub topic.

string topic_name = 1;

Returns
TypeDescription
String

The topicName.

getTopicNameBytes()

public ByteString getTopicNameBytes()

The name of the Pubsub topic.

string topic_name = 1;

Returns
TypeDescription
ByteString

The bytes for topicName.

hasExpireTime()

public boolean hasExpireTime()

The expire time of the Pubsub snapshot.

.google.protobuf.Timestamp expire_time = 3;

Returns
TypeDescription
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
PubsubSnapshotMetadata.Builder

mergeFrom(PubsubSnapshotMetadata other)

public PubsubSnapshotMetadata.Builder mergeFrom(PubsubSnapshotMetadata other)
Parameter
NameDescription
otherPubsubSnapshotMetadata
Returns
TypeDescription
PubsubSnapshotMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PubsubSnapshotMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
PubsubSnapshotMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSnapshotName(String value)

public PubsubSnapshotMetadata.Builder setSnapshotName(String value)

The name of the Pubsub snapshot.

string snapshot_name = 2;

Parameter
NameDescription
valueString

The snapshotName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for snapshotName to set.

Returns
TypeDescription
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
NameDescription
valueString

The topicName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for topicName to set.

Returns
TypeDescription
PubsubSnapshotMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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