Class TimeTarget.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
- com.google.cloud.pubsublite.proto.TimeTarget.Builder
-
- All Implemented Interfaces:
TimeTargetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TimeTarget
public static final class TimeTarget.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder> implements TimeTargetOrBuilder
A target publish or event time. Can be used for seeking to or retrieving the corresponding cursor.
Protobuf typegoogle.cloud.pubsublite.v1.TimeTarget
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeTarget.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TimeTargetbuild()TimeTargetbuildPartial()TimeTarget.Builderclear()TimeTarget.BuilderclearEventTime()Request the cursor of the first message with event time greater than or equal to `event_time`.TimeTarget.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TimeTarget.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TimeTarget.BuilderclearPublishTime()Request the cursor of the first message with publish time greater than or equal to `publish_time`.TimeTarget.BuilderclearTime()TimeTarget.Builderclone()TimeTargetgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.TimestampgetEventTime()Request the cursor of the first message with event time greater than or equal to `event_time`.com.google.protobuf.Timestamp.BuildergetEventTimeBuilder()Request the cursor of the first message with event time greater than or equal to `event_time`.com.google.protobuf.TimestampOrBuildergetEventTimeOrBuilder()Request the cursor of the first message with event time greater than or equal to `event_time`.com.google.protobuf.TimestampgetPublishTime()Request the cursor of the first message with publish time greater than or equal to `publish_time`.com.google.protobuf.Timestamp.BuildergetPublishTimeBuilder()Request the cursor of the first message with publish time greater than or equal to `publish_time`.com.google.protobuf.TimestampOrBuildergetPublishTimeOrBuilder()Request the cursor of the first message with publish time greater than or equal to `publish_time`.TimeTarget.TimeCasegetTimeCase()booleanhasEventTime()Request the cursor of the first message with event time greater than or equal to `event_time`.booleanhasPublishTime()Request the cursor of the first message with publish time greater than or equal to `publish_time`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TimeTarget.BuildermergeEventTime(com.google.protobuf.Timestamp value)Request the cursor of the first message with event time greater than or equal to `event_time`.TimeTarget.BuildermergeFrom(TimeTarget other)TimeTarget.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TimeTarget.BuildermergeFrom(com.google.protobuf.Message other)TimeTarget.BuildermergePublishTime(com.google.protobuf.Timestamp value)Request the cursor of the first message with publish time greater than or equal to `publish_time`.TimeTarget.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TimeTarget.BuildersetEventTime(com.google.protobuf.Timestamp value)Request the cursor of the first message with event time greater than or equal to `event_time`.TimeTarget.BuildersetEventTime(com.google.protobuf.Timestamp.Builder builderForValue)Request the cursor of the first message with event time greater than or equal to `event_time`.TimeTarget.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TimeTarget.BuildersetPublishTime(com.google.protobuf.Timestamp value)Request the cursor of the first message with publish time greater than or equal to `publish_time`.TimeTarget.BuildersetPublishTime(com.google.protobuf.Timestamp.Builder builderForValue)Request the cursor of the first message with publish time greater than or equal to `publish_time`.TimeTarget.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TimeTarget.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
clear
public TimeTarget.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
getDefaultInstanceForType
public TimeTarget getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TimeTarget build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TimeTarget buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TimeTarget.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
setField
public TimeTarget.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
clearField
public TimeTarget.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
clearOneof
public TimeTarget.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
setRepeatedField
public TimeTarget.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
addRepeatedField
public TimeTarget.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
mergeFrom
public TimeTarget.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TimeTarget.Builder>
-
mergeFrom
public TimeTarget.Builder mergeFrom(TimeTarget other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
mergeFrom
public TimeTarget.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TimeTarget.Builder>- Throws:
IOException
-
getTimeCase
public TimeTarget.TimeCase getTimeCase()
- Specified by:
getTimeCasein interfaceTimeTargetOrBuilder
-
clearTime
public TimeTarget.Builder clearTime()
-
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;- Specified by:
hasPublishTimein interfaceTimeTargetOrBuilder- Returns:
- Whether the publishTime field is set.
-
getPublishTime
public com.google.protobuf.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;- Specified by:
getPublishTimein interfaceTimeTargetOrBuilder- Returns:
- The publishTime.
-
setPublishTime
public TimeTarget.Builder setPublishTime(com.google.protobuf.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;
-
setPublishTime
public TimeTarget.Builder setPublishTime(com.google.protobuf.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;
-
mergePublishTime
public TimeTarget.Builder mergePublishTime(com.google.protobuf.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;
-
clearPublishTime
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;
-
getPublishTimeBuilder
public com.google.protobuf.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;
-
getPublishTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getPublishTimeOrBuilderin interfaceTimeTargetOrBuilder
-
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;- Specified by:
hasEventTimein interfaceTimeTargetOrBuilder- Returns:
- Whether the eventTime field is set.
-
getEventTime
public com.google.protobuf.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;- Specified by:
getEventTimein interfaceTimeTargetOrBuilder- Returns:
- The eventTime.
-
setEventTime
public TimeTarget.Builder setEventTime(com.google.protobuf.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;
-
setEventTime
public TimeTarget.Builder setEventTime(com.google.protobuf.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;
-
mergeEventTime
public TimeTarget.Builder mergeEventTime(com.google.protobuf.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;
-
clearEventTime
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;
-
getEventTimeBuilder
public com.google.protobuf.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;
-
getEventTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getEventTimeOrBuilderin interfaceTimeTargetOrBuilder
-
setUnknownFields
public final TimeTarget.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
mergeUnknownFields
public final TimeTarget.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
-