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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TimeTarget
build()
TimeTarget
buildPartial()
TimeTarget.Builder
clear()
TimeTarget.Builder
clearEventTime()
Request the cursor of the first message with event time greater than or equal to `event_time`.TimeTarget.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TimeTarget.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TimeTarget.Builder
clearPublishTime()
Request the cursor of the first message with publish time greater than or equal to `publish_time`.TimeTarget.Builder
clearTime()
TimeTarget.Builder
clone()
TimeTarget
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Timestamp
getEventTime()
Request the cursor of the first message with event time greater than or equal to `event_time`.com.google.protobuf.Timestamp.Builder
getEventTimeBuilder()
Request the cursor of the first message with event time greater than or equal to `event_time`.com.google.protobuf.TimestampOrBuilder
getEventTimeOrBuilder()
Request the cursor of the first message with event time greater than or equal to `event_time`.com.google.protobuf.Timestamp
getPublishTime()
Request the cursor of the first message with publish time greater than or equal to `publish_time`.com.google.protobuf.Timestamp.Builder
getPublishTimeBuilder()
Request the cursor of the first message with publish time greater than or equal to `publish_time`.com.google.protobuf.TimestampOrBuilder
getPublishTimeOrBuilder()
Request the cursor of the first message with publish time greater than or equal to `publish_time`.TimeTarget.TimeCase
getTimeCase()
boolean
hasEventTime()
Request the cursor of the first message with event time greater than or equal to `event_time`.boolean
hasPublishTime()
Request the cursor of the first message with publish time greater than or equal to `publish_time`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
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`.TimeTarget.Builder
mergeFrom(TimeTarget other)
TimeTarget.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TimeTarget.Builder
mergeFrom(com.google.protobuf.Message other)
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`.TimeTarget.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
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`.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`.TimeTarget.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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`.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`.TimeTarget.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TimeTarget.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
clear
public TimeTarget.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
getDefaultInstanceForType
public TimeTarget getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TimeTarget build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TimeTarget buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TimeTarget.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
setField
public TimeTarget.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
clearField
public TimeTarget.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
clearOneof
public TimeTarget.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
setRepeatedField
public TimeTarget.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
addRepeatedField
public TimeTarget.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
mergeFrom
public TimeTarget.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TimeTarget.Builder>
-
mergeFrom
public TimeTarget.Builder mergeFrom(TimeTarget other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TimeTarget.Builder>
- Throws:
IOException
-
getTimeCase
public TimeTarget.TimeCase getTimeCase()
- Specified by:
getTimeCase
in 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:
hasPublishTime
in 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:
getPublishTime
in 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:
getPublishTimeOrBuilder
in 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:
hasEventTime
in 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:
getEventTime
in 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:
getEventTimeOrBuilder
in interfaceTimeTargetOrBuilder
-
setUnknownFields
public final TimeTarget.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
mergeUnknownFields
public final TimeTarget.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeTarget.Builder>
-
-