Class MongodbChangeStreamPosition.Builder (1.102.0)

public static final class MongodbChangeStreamPosition.Builder extends GeneratedMessage.Builder<MongodbChangeStreamPosition.Builder> implements MongodbChangeStreamPositionOrBuilder

MongoDB change stream position

Protobuf type google.cloud.datastream.v1.MongodbChangeStreamPosition

Static Methods

getDescriptor()

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

Methods

build()

public MongodbChangeStreamPosition build()
Returns
Type Description
MongodbChangeStreamPosition

buildPartial()

public MongodbChangeStreamPosition buildPartial()
Returns
Type Description
MongodbChangeStreamPosition

clear()

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

clearStartTime()

public MongodbChangeStreamPosition.Builder clearStartTime()

Required. The timestamp to start change stream from.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MongodbChangeStreamPosition.Builder

getDefaultInstanceForType()

public MongodbChangeStreamPosition getDefaultInstanceForType()
Returns
Type Description
MongodbChangeStreamPosition

getDescriptorForType()

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

getStartTime()

public Timestamp getStartTime()

Required. The timestamp to start change stream from.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Required. The timestamp to start change stream from.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Required. The timestamp to start change stream from.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

hasStartTime()

public boolean hasStartTime()

Required. The timestamp to start change stream from.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MongodbChangeStreamPosition other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public MongodbChangeStreamPosition.Builder mergeStartTime(Timestamp value)

Required. The timestamp to start change stream from.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
MongodbChangeStreamPosition.Builder

setStartTime(Timestamp value)

public MongodbChangeStreamPosition.Builder setStartTime(Timestamp value)

Required. The timestamp to start change stream from.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
MongodbChangeStreamPosition.Builder

setStartTime(Timestamp.Builder builderForValue)

public MongodbChangeStreamPosition.Builder setStartTime(Timestamp.Builder builderForValue)

Required. The timestamp to start change stream from.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MongodbChangeStreamPosition.Builder