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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TimeTargetImplements
TimeTargetOrBuilderStatic Fields
EVENT_TIME_FIELD_NUMBER
public static final int EVENT_TIME_FIELD_NUMBER
Type | Description |
int |
PUBLISH_TIME_FIELD_NUMBER
public static final int PUBLISH_TIME_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static TimeTarget getDefaultInstance()
Type | Description |
TimeTarget |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static TimeTarget.Builder newBuilder()
Type | Description |
TimeTarget.Builder |
newBuilder(TimeTarget prototype)
public static TimeTarget.Builder newBuilder(TimeTarget prototype)
Name | Description |
prototype | TimeTarget |
Type | Description |
TimeTarget.Builder |
parseDelimitedFrom(InputStream input)
public static TimeTarget parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
TimeTarget |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TimeTarget parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TimeTarget |
Type | Description |
IOException |
parseFrom(byte[] data)
public static TimeTarget parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
TimeTarget |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TimeTarget parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TimeTarget |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static TimeTarget parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
TimeTarget |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TimeTarget parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TimeTarget |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static TimeTarget parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
TimeTarget |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TimeTarget parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TimeTarget |
Type | Description |
IOException |
parseFrom(InputStream input)
public static TimeTarget parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
TimeTarget |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TimeTarget parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TimeTarget |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static TimeTarget parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
TimeTarget |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TimeTarget parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TimeTarget |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<TimeTarget> parser()
Type | Description |
Parser<TimeTarget> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public TimeTarget getDefaultInstanceForType()
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;
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;
Type | Description |
TimestampOrBuilder |
getParserForType()
public Parser<TimeTarget> getParserForType()
Type | Description |
Parser<TimeTarget> |
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;
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;
Type | Description |
TimestampOrBuilder |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getTimeCase()
public TimeTarget.TimeCase getTimeCase()
Type | Description |
TimeTarget.TimeCase |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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;
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;
Type | Description |
boolean | Whether the publishTime field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public TimeTarget.Builder newBuilderForType()
Type | Description |
TimeTarget.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TimeTarget.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
TimeTarget.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public TimeTarget.Builder toBuilder()
Type | Description |
TimeTarget.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |