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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int EVENT_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int PUBLISH_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static TimeTarget getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static TimeTarget.Builder newBuilder()
public static TimeTarget.Builder newBuilder(TimeTarget prototype)
public static TimeTarget parseDelimitedFrom(InputStream input)
public static TimeTarget parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TimeTarget parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static TimeTarget parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TimeTarget parseFrom(ByteString data)
public static TimeTarget parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TimeTarget parseFrom(CodedInputStream input)
public static TimeTarget parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TimeTarget parseFrom(InputStream input)
public static TimeTarget parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TimeTarget parseFrom(ByteBuffer data)
public static TimeTarget parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<TimeTarget> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public TimeTarget getDefaultInstanceForType()
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.
|
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;
public Parser<TimeTarget> getParserForType()
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 |
---|
Type | Description |
Timestamp | The publishTime.
|
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;
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public TimeTarget.TimeCase getTimeCase()
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 |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public TimeTarget.Builder newBuilderForType()
protected TimeTarget.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public TimeTarget.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides