Class TimeTarget (1.14.3)

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

Implements

TimeTargetOrBuilder

Static Fields

EVENT_TIME_FIELD_NUMBER

public static final int EVENT_TIME_FIELD_NUMBER
Field Value
Type Description
int

PUBLISH_TIME_FIELD_NUMBER

public static final int PUBLISH_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TimeTarget getDefaultInstance()
Returns
Type Description
TimeTarget

getDescriptor()

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

newBuilder()

public static TimeTarget.Builder newBuilder()
Returns
Type Description
TimeTarget.Builder

newBuilder(TimeTarget prototype)

public static TimeTarget.Builder newBuilder(TimeTarget prototype)
Parameter
Name Description
prototype TimeTarget
Returns
Type Description
TimeTarget.Builder

parseDelimitedFrom(InputStream input)

public static TimeTarget parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TimeTarget
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeTarget parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeTarget
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TimeTarget parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TimeTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TimeTarget parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TimeTarget parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TimeTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TimeTarget parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TimeTarget parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TimeTarget
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeTarget parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeTarget
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TimeTarget parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TimeTarget
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeTarget parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeTarget
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TimeTarget parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TimeTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TimeTarget parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeTarget
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TimeTarget> parser()
Returns
Type Description
Parser<TimeTarget>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public TimeTarget getDefaultInstanceForType()
Returns
Type Description
TimeTarget

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.

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

getParserForType()

public Parser<TimeTarget> getParserForType()
Returns
Type Description
Parser<TimeTarget>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TimeTarget.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TimeTarget.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException