Class TimeTarget (1.10.0)

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

PUBLISH_TIME_FIELD_NUMBER

public static final int PUBLISH_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TimeTarget getDefaultInstance()
Returns
TypeDescription
TimeTarget

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TimeTarget.Builder newBuilder()
Returns
TypeDescription
TimeTarget.Builder

newBuilder(TimeTarget prototype)

public static TimeTarget.Builder newBuilder(TimeTarget prototype)
Parameter
NameDescription
prototypeTimeTarget
Returns
TypeDescription
TimeTarget.Builder

parseDelimitedFrom(InputStream input)

public static TimeTarget parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TimeTarget
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeTarget parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeTarget
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TimeTarget parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TimeTarget
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TimeTarget parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeTarget
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TimeTarget parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TimeTarget
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TimeTarget parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeTarget
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TimeTarget parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TimeTarget
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeTarget parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeTarget
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TimeTarget parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TimeTarget
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeTarget parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeTarget
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TimeTarget parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TimeTarget
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TimeTarget parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimeTarget
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TimeTarget> parser()
Returns
TypeDescription
Parser<TimeTarget>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TimeTarget getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getParserForType()

public Parser<TimeTarget> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTimeCase()

public TimeTarget.TimeCase getTimeCase()
Returns
TypeDescription
TimeTarget.TimeCase

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TimeTarget.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TimeTarget.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException