Class TimeTarget.Builder (1.4.12)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimeTarget build()
Returns
TypeDescription
TimeTarget

buildPartial()

public TimeTarget buildPartial()
Returns
TypeDescription
TimeTarget

clear()

public TimeTarget.Builder clear()
Returns
TypeDescription
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
TypeDescription
TimeTarget.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public TimeTarget.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
TimeTarget.Builder

clearTime()

public TimeTarget.Builder clearTime()
Returns
TypeDescription
TimeTarget.Builder

clone()

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

getDefaultInstanceForType()

public TimeTarget getDefaultInstanceForType()
Returns
TypeDescription
TimeTarget

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getTimeCase()

public TimeTarget.TimeCase getTimeCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the publishTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

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

mergeFrom(TimeTarget other)

public TimeTarget.Builder mergeFrom(TimeTarget other)
Parameter
NameDescription
otherTimeTarget
Returns
TypeDescription
TimeTarget.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TimeTarget.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
TimeTarget.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public TimeTarget.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
TimeTarget.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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