Class TimeTarget.Builder (1.13.3)

public static final class TimeTarget.Builder extends GeneratedMessageV3.Builder<TimeTarget.Builder> implements TimeTargetOrBuilder

A target publish or event time. Can be used for seeking to or retrieving the corresponding cursor.

Protobuf type google.cloud.pubsublite.v1.TimeTarget

Implements

TimeTargetOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimeTarget build()
Returns
Type Description
TimeTarget

buildPartial()

public TimeTarget buildPartial()
Returns
Type Description
TimeTarget

clear()

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

clearEventTime()

public TimeTarget.Builder clearEventTime()

Request the cursor of the first message with event time greater than or equal to event_time. If messages are missing an event time, the publish time is used as a fallback. As event times are user supplied, subsequent messages may have event times less than event_time and should be filtered by the client, if necessary.

.google.protobuf.Timestamp event_time = 2;

Returns
Type Description
TimeTarget.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPublishTime()

public TimeTarget.Builder clearPublishTime()

Request the cursor of the first message with publish time greater than or equal to publish_time. All messages thereafter are guaranteed to have publish times >= publish_time.

.google.protobuf.Timestamp publish_time = 1;

Returns
Type Description
TimeTarget.Builder

clearTime()

public TimeTarget.Builder clearTime()
Returns
Type Description
TimeTarget.Builder

clone()

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

getDefaultInstanceForType()

public TimeTarget getDefaultInstanceForType()
Returns
Type Description
TimeTarget

getDescriptorForType()

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

getEventTime()

public Timestamp getEventTime()

Request the cursor of the first message with event time greater than or equal to event_time. If messages are missing an event time, the publish time is used as a fallback. As event times are user supplied, subsequent messages may have event times less than event_time and should be filtered by the client, if necessary.

.google.protobuf.Timestamp event_time = 2;

Returns
Type Description
Timestamp

The eventTime.

getEventTimeBuilder()

public Timestamp.Builder getEventTimeBuilder()

Request the cursor of the first message with event time greater than or equal to event_time. If messages are missing an event time, the publish time is used as a fallback. As event times are user supplied, subsequent messages may have event times less than event_time and should be filtered by the client, if necessary.

.google.protobuf.Timestamp event_time = 2;

Returns
Type Description
Builder

getEventTimeOrBuilder()

public TimestampOrBuilder getEventTimeOrBuilder()

Request the cursor of the first message with event time greater than or equal to event_time. If messages are missing an event time, the publish time is used as a fallback. As event times are user supplied, subsequent messages may have event times less than event_time and should be filtered by the client, if necessary.

.google.protobuf.Timestamp event_time = 2;

Returns
Type Description
TimestampOrBuilder

getPublishTime()

public Timestamp getPublishTime()

Request the cursor of the first message with publish time greater than or equal to publish_time. All messages thereafter are guaranteed to have publish times >= publish_time.

.google.protobuf.Timestamp publish_time = 1;

Returns
Type Description
Timestamp

The publishTime.

getPublishTimeBuilder()

public Timestamp.Builder getPublishTimeBuilder()

Request the cursor of the first message with publish time greater than or equal to publish_time. All messages thereafter are guaranteed to have publish times >= publish_time.

.google.protobuf.Timestamp publish_time = 1;

Returns
Type Description
Builder

getPublishTimeOrBuilder()

public TimestampOrBuilder getPublishTimeOrBuilder()

Request the cursor of the first message with publish time greater than or equal to publish_time. All messages thereafter are guaranteed to have publish times >= publish_time.

.google.protobuf.Timestamp publish_time = 1;

Returns
Type Description
TimestampOrBuilder

getTimeCase()

public TimeTarget.TimeCase getTimeCase()
Returns
Type Description
TimeTarget.TimeCase

hasEventTime()

public boolean hasEventTime()

Request the cursor of the first message with event time greater than or equal to event_time. If messages are missing an event time, the publish time is used as a fallback. As event times are user supplied, subsequent messages may have event times less than event_time and should be filtered by the client, if necessary.

.google.protobuf.Timestamp event_time = 2;

Returns
Type Description
boolean

Whether the eventTime field is set.

hasPublishTime()

public boolean hasPublishTime()

Request the cursor of the first message with publish time greater than or equal to publish_time. All messages thereafter are guaranteed to have publish times >= publish_time.

.google.protobuf.Timestamp publish_time = 1;

Returns
Type Description
boolean

Whether the publishTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEventTime(Timestamp value)

public TimeTarget.Builder mergeEventTime(Timestamp value)

Request the cursor of the first message with event time greater than or equal to event_time. If messages are missing an event time, the publish time is used as a fallback. As event times are user supplied, subsequent messages may have event times less than event_time and should be filtered by the client, if necessary.

.google.protobuf.Timestamp event_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeTarget.Builder

mergeFrom(TimeTarget other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePublishTime(Timestamp value)

public TimeTarget.Builder mergePublishTime(Timestamp value)

Request the cursor of the first message with publish time greater than or equal to publish_time. All messages thereafter are guaranteed to have publish times >= publish_time.

.google.protobuf.Timestamp publish_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeTarget.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEventTime(Timestamp value)

public TimeTarget.Builder setEventTime(Timestamp value)

Request the cursor of the first message with event time greater than or equal to event_time. If messages are missing an event time, the publish time is used as a fallback. As event times are user supplied, subsequent messages may have event times less than event_time and should be filtered by the client, if necessary.

.google.protobuf.Timestamp event_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeTarget.Builder

setEventTime(Timestamp.Builder builderForValue)

public TimeTarget.Builder setEventTime(Timestamp.Builder builderForValue)

Request the cursor of the first message with event time greater than or equal to event_time. If messages are missing an event time, the publish time is used as a fallback. As event times are user supplied, subsequent messages may have event times less than event_time and should be filtered by the client, if necessary.

.google.protobuf.Timestamp event_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TimeTarget.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPublishTime(Timestamp value)

public TimeTarget.Builder setPublishTime(Timestamp value)

Request the cursor of the first message with publish time greater than or equal to publish_time. All messages thereafter are guaranteed to have publish times >= publish_time.

.google.protobuf.Timestamp publish_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
TimeTarget.Builder

setPublishTime(Timestamp.Builder builderForValue)

public TimeTarget.Builder setPublishTime(Timestamp.Builder builderForValue)

Request the cursor of the first message with publish time greater than or equal to publish_time. All messages thereafter are guaranteed to have publish times >= publish_time.

.google.protobuf.Timestamp publish_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TimeTarget.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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