Package s2.v1
Class AppendAck.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<AppendAck.Builder>
-
- s2.v1.AppendAck.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,AppendAckOrBuilder
- Enclosing class:
- AppendAck
public static final class AppendAck.Builder extends com.google.protobuf.GeneratedMessage.Builder<AppendAck.Builder> implements AppendAckOrBuilder
Success response message to an Append request.
Protobuf types2.v1.AppendAck
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AppendAck
build()
AppendAck
buildPartial()
AppendAck.Builder
clear()
AppendAck.Builder
clearEnd()
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended.AppendAck.Builder
clearStart()
Sequence number and timestamp of the first record that was appended.AppendAck.Builder
clearTail()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream.AppendAck
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
StreamPosition
getEnd()
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended.StreamPosition.Builder
getEndBuilder()
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended.StreamPositionOrBuilder
getEndOrBuilder()
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended.StreamPosition
getStart()
Sequence number and timestamp of the first record that was appended.StreamPosition.Builder
getStartBuilder()
Sequence number and timestamp of the first record that was appended.StreamPositionOrBuilder
getStartOrBuilder()
Sequence number and timestamp of the first record that was appended.StreamPosition
getTail()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream.StreamPosition.Builder
getTailBuilder()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream.StreamPositionOrBuilder
getTailOrBuilder()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream.boolean
hasEnd()
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended.boolean
hasStart()
Sequence number and timestamp of the first record that was appended.boolean
hasTail()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AppendAck.Builder
mergeEnd(StreamPosition value)
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended.AppendAck.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AppendAck.Builder
mergeFrom(com.google.protobuf.Message other)
AppendAck.Builder
mergeFrom(AppendAck other)
AppendAck.Builder
mergeStart(StreamPosition value)
Sequence number and timestamp of the first record that was appended.AppendAck.Builder
mergeTail(StreamPosition value)
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream.AppendAck.Builder
setEnd(StreamPosition value)
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended.AppendAck.Builder
setEnd(StreamPosition.Builder builderForValue)
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended.AppendAck.Builder
setStart(StreamPosition value)
Sequence number and timestamp of the first record that was appended.AppendAck.Builder
setStart(StreamPosition.Builder builderForValue)
Sequence number and timestamp of the first record that was appended.AppendAck.Builder
setTail(StreamPosition value)
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream.AppendAck.Builder
setTail(StreamPosition.Builder builderForValue)
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<AppendAck.Builder>
-
clear
public AppendAck.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.GeneratedMessage.Builder<AppendAck.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.GeneratedMessage.Builder<AppendAck.Builder>
-
getDefaultInstanceForType
public AppendAck getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AppendAck build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AppendAck buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public AppendAck.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AppendAck.Builder>
-
mergeFrom
public AppendAck.Builder mergeFrom(AppendAck other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<AppendAck.Builder>
-
mergeFrom
public AppendAck.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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<AppendAck.Builder>
- Throws:
java.io.IOException
-
hasStart
public boolean hasStart()
Sequence number and timestamp of the first record that was appended.
.s2.v1.StreamPosition start = 1;
- Specified by:
hasStart
in interfaceAppendAckOrBuilder
- Returns:
- Whether the start field is set.
-
getStart
public StreamPosition getStart()
Sequence number and timestamp of the first record that was appended.
.s2.v1.StreamPosition start = 1;
- Specified by:
getStart
in interfaceAppendAckOrBuilder
- Returns:
- The start.
-
setStart
public AppendAck.Builder setStart(StreamPosition value)
Sequence number and timestamp of the first record that was appended.
.s2.v1.StreamPosition start = 1;
-
setStart
public AppendAck.Builder setStart(StreamPosition.Builder builderForValue)
Sequence number and timestamp of the first record that was appended.
.s2.v1.StreamPosition start = 1;
-
mergeStart
public AppendAck.Builder mergeStart(StreamPosition value)
Sequence number and timestamp of the first record that was appended.
.s2.v1.StreamPosition start = 1;
-
clearStart
public AppendAck.Builder clearStart()
Sequence number and timestamp of the first record that was appended.
.s2.v1.StreamPosition start = 1;
-
getStartBuilder
public StreamPosition.Builder getStartBuilder()
Sequence number and timestamp of the first record that was appended.
.s2.v1.StreamPosition start = 1;
-
getStartOrBuilder
public StreamPositionOrBuilder getStartOrBuilder()
Sequence number and timestamp of the first record that was appended.
.s2.v1.StreamPosition start = 1;
- Specified by:
getStartOrBuilder
in interfaceAppendAckOrBuilder
-
hasEnd
public boolean hasEnd()
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended. The difference between `end.seq_num` and `start.seq_num` will be the number of records appended.
.s2.v1.StreamPosition end = 2;
- Specified by:
hasEnd
in interfaceAppendAckOrBuilder
- Returns:
- Whether the end field is set.
-
getEnd
public StreamPosition getEnd()
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended. The difference between `end.seq_num` and `start.seq_num` will be the number of records appended.
.s2.v1.StreamPosition end = 2;
- Specified by:
getEnd
in interfaceAppendAckOrBuilder
- Returns:
- The end.
-
setEnd
public AppendAck.Builder setEnd(StreamPosition value)
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended. The difference between `end.seq_num` and `start.seq_num` will be the number of records appended.
.s2.v1.StreamPosition end = 2;
-
setEnd
public AppendAck.Builder setEnd(StreamPosition.Builder builderForValue)
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended. The difference between `end.seq_num` and `start.seq_num` will be the number of records appended.
.s2.v1.StreamPosition end = 2;
-
mergeEnd
public AppendAck.Builder mergeEnd(StreamPosition value)
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended. The difference between `end.seq_num` and `start.seq_num` will be the number of records appended.
.s2.v1.StreamPosition end = 2;
-
clearEnd
public AppendAck.Builder clearEnd()
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended. The difference between `end.seq_num` and `start.seq_num` will be the number of records appended.
.s2.v1.StreamPosition end = 2;
-
getEndBuilder
public StreamPosition.Builder getEndBuilder()
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended. The difference between `end.seq_num` and `start.seq_num` will be the number of records appended.
.s2.v1.StreamPosition end = 2;
-
getEndOrBuilder
public StreamPositionOrBuilder getEndOrBuilder()
Sequence number of the last record that was appended + 1, and timestamp of the last record that was appended. The difference between `end.seq_num` and `start.seq_num` will be the number of records appended.
.s2.v1.StreamPosition end = 2;
- Specified by:
getEndOrBuilder
in interfaceAppendAckOrBuilder
-
hasTail
public boolean hasTail()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream. This can be greater than the `end` position in case of concurrent appends.
.s2.v1.StreamPosition tail = 3;
- Specified by:
hasTail
in interfaceAppendAckOrBuilder
- Returns:
- Whether the tail field is set.
-
getTail
public StreamPosition getTail()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream. This can be greater than the `end` position in case of concurrent appends.
.s2.v1.StreamPosition tail = 3;
- Specified by:
getTail
in interfaceAppendAckOrBuilder
- Returns:
- The tail.
-
setTail
public AppendAck.Builder setTail(StreamPosition value)
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream. This can be greater than the `end` position in case of concurrent appends.
.s2.v1.StreamPosition tail = 3;
-
setTail
public AppendAck.Builder setTail(StreamPosition.Builder builderForValue)
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream. This can be greater than the `end` position in case of concurrent appends.
.s2.v1.StreamPosition tail = 3;
-
mergeTail
public AppendAck.Builder mergeTail(StreamPosition value)
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream. This can be greater than the `end` position in case of concurrent appends.
.s2.v1.StreamPosition tail = 3;
-
clearTail
public AppendAck.Builder clearTail()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream. This can be greater than the `end` position in case of concurrent appends.
.s2.v1.StreamPosition tail = 3;
-
getTailBuilder
public StreamPosition.Builder getTailBuilder()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream. This can be greater than the `end` position in case of concurrent appends.
.s2.v1.StreamPosition tail = 3;
-
getTailOrBuilder
public StreamPositionOrBuilder getTailOrBuilder()
Sequence number that will be assigned to the next record on the stream, and timestamp of the last record on the stream. This can be greater than the `end` position in case of concurrent appends.
.s2.v1.StreamPosition tail = 3;
- Specified by:
getTailOrBuilder
in interfaceAppendAckOrBuilder
-
-