public final class TimeTarget extends GeneratedMessageV3 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 Fields
public static final int EVENT_TIME_FIELD_NUMBER
Field Value
public static final int PUBLISH_TIME_FIELD_NUMBER
Field Value
Static Methods
public static TimeTarget getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static TimeTarget.Builder newBuilder()
Returns
public static TimeTarget.Builder newBuilder(TimeTarget prototype)
Parameter
Returns
public static TimeTarget parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TimeTarget parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TimeTarget parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static TimeTarget parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TimeTarget parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static TimeTarget parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TimeTarget parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TimeTarget parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TimeTarget parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TimeTarget parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TimeTarget parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static TimeTarget parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<TimeTarget> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public TimeTarget getDefaultInstanceForType()
Returns
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 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 Parser<TimeTarget> getParserForType()
Returns
Overrides
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 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 int getSerializedSize()
Returns
Overrides
public TimeTarget.TimeCase getTimeCase()
Returns
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public TimeTarget.Builder newBuilderForType()
Returns
protected TimeTarget.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public TimeTarget.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions