public static final class TimeTarget.Builder extends GeneratedMessageV3.Builder<TimeTarget.Builder> 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.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public TimeTarget.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public TimeTarget build()
public TimeTarget buildPartial()
public TimeTarget.Builder clear()
Overrides
public TimeTarget.Builder clearEventTime()
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 TimeTarget.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public TimeTarget.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public TimeTarget.Builder clearPublishTime()
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 TimeTarget.Builder clearTime()
public TimeTarget.Builder clone()
Overrides
public TimeTarget getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 Timestamp.Builder getEventTimeBuilder()
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 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 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 Timestamp.Builder getPublishTimeBuilder()
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 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 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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public TimeTarget.Builder mergeEventTime(Timestamp value)
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 TimeTarget.Builder mergeFrom(TimeTarget other)
public TimeTarget.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public TimeTarget.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public TimeTarget.Builder mergePublishTime(Timestamp value)
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 final TimeTarget.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public TimeTarget.Builder setEventTime(Timestamp value)
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 TimeTarget.Builder setEventTime(Timestamp.Builder builderForValue)
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;
Parameter |
---|
Name | Description |
builderForValue | Builder
|
public TimeTarget.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public TimeTarget.Builder setPublishTime(Timestamp value)
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 TimeTarget.Builder setPublishTime(Timestamp.Builder builderForValue)
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;
Parameter |
---|
Name | Description |
builderForValue | Builder
|
public TimeTarget.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final TimeTarget.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides