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
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public TimeTarget.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public TimeTarget build()
Returns
public TimeTarget buildPartial()
Returns
public TimeTarget.Builder clear()
Returns
Overrides
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
public TimeTarget.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public TimeTarget.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
public TimeTarget.Builder clearTime()
Returns
public TimeTarget.Builder clone()
Returns
Overrides
public TimeTarget getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
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
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
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
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
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
public TimeTarget.TimeCase getTimeCase()
Returns
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
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
Returns
public TimeTarget.Builder mergeFrom(TimeTarget other)
Parameter
Returns
public TimeTarget.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public TimeTarget.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
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
Returns
public final TimeTarget.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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
public TimeTarget.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
public TimeTarget.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final TimeTarget.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides