Package s2.v1alpha
Class AppendOutput.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<AppendOutput.Builder>
-
- s2.v1alpha.AppendOutput.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,AppendOutputOrBuilder
- Enclosing class:
- AppendOutput
public static final class AppendOutput.Builder extends com.google.protobuf.GeneratedMessage.Builder<AppendOutput.Builder> implements AppendOutputOrBuilder
Output from append response.
Protobuf types2.v1alpha.AppendOutput
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AppendOutputbuild()AppendOutputbuildPartial()AppendOutput.Builderclear()AppendOutput.BuilderclearEndSeqNum()Sequence number of last record appended + 1.AppendOutput.BuilderclearEndTimestamp()Timestamp of the last record appended.AppendOutput.BuilderclearLastTimestamp()Timestamp of the last durable record on the stream.AppendOutput.BuilderclearNextSeqNum()Tail of the stream, i.e.AppendOutput.BuilderclearStartSeqNum()Sequence number of first record appended.AppendOutput.BuilderclearStartTimestamp()Timestamp of the first record appended.AppendOutputgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetEndSeqNum()Sequence number of last record appended + 1.longgetEndTimestamp()Timestamp of the last record appended.longgetLastTimestamp()Timestamp of the last durable record on the stream.longgetNextSeqNum()Tail of the stream, i.e.longgetStartSeqNum()Sequence number of first record appended.longgetStartTimestamp()Timestamp of the first record appended.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AppendOutput.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AppendOutput.BuildermergeFrom(com.google.protobuf.Message other)AppendOutput.BuildermergeFrom(AppendOutput other)AppendOutput.BuildersetEndSeqNum(long value)Sequence number of last record appended + 1.AppendOutput.BuildersetEndTimestamp(long value)Timestamp of the last record appended.AppendOutput.BuildersetLastTimestamp(long value)Timestamp of the last durable record on the stream.AppendOutput.BuildersetNextSeqNum(long value)Tail of the stream, i.e.AppendOutput.BuildersetStartSeqNum(long value)Sequence number of first record appended.AppendOutput.BuildersetStartTimestamp(long value)Timestamp of the first record appended.-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AppendOutput.Builder>
-
clear
public AppendOutput.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AppendOutput.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.GeneratedMessage.Builder<AppendOutput.Builder>
-
getDefaultInstanceForType
public AppendOutput getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AppendOutput build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AppendOutput buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public AppendOutput.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AppendOutput.Builder>
-
mergeFrom
public AppendOutput.Builder mergeFrom(AppendOutput other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AppendOutput.Builder>
-
mergeFrom
public AppendOutput.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AppendOutput.Builder>- Throws:
java.io.IOException
-
getStartSeqNum
public long getStartSeqNum()
Sequence number of first record appended.
uint64 start_seq_num = 1;- Specified by:
getStartSeqNumin interfaceAppendOutputOrBuilder- Returns:
- The startSeqNum.
-
setStartSeqNum
public AppendOutput.Builder setStartSeqNum(long value)
Sequence number of first record appended.
uint64 start_seq_num = 1;- Parameters:
value- The startSeqNum to set.- Returns:
- This builder for chaining.
-
clearStartSeqNum
public AppendOutput.Builder clearStartSeqNum()
Sequence number of first record appended.
uint64 start_seq_num = 1;- Returns:
- This builder for chaining.
-
getStartTimestamp
public long getStartTimestamp()
Timestamp of the first record appended.
uint64 start_timestamp = 4;- Specified by:
getStartTimestampin interfaceAppendOutputOrBuilder- Returns:
- The startTimestamp.
-
setStartTimestamp
public AppendOutput.Builder setStartTimestamp(long value)
Timestamp of the first record appended.
uint64 start_timestamp = 4;- Parameters:
value- The startTimestamp to set.- Returns:
- This builder for chaining.
-
clearStartTimestamp
public AppendOutput.Builder clearStartTimestamp()
Timestamp of the first record appended.
uint64 start_timestamp = 4;- Returns:
- This builder for chaining.
-
getEndSeqNum
public long getEndSeqNum()
Sequence number of last record appended + 1. `end_seq_num - start_seq_num` will be the number of records in the batch.
uint64 end_seq_num = 2;- Specified by:
getEndSeqNumin interfaceAppendOutputOrBuilder- Returns:
- The endSeqNum.
-
setEndSeqNum
public AppendOutput.Builder setEndSeqNum(long value)
Sequence number of last record appended + 1. `end_seq_num - start_seq_num` will be the number of records in the batch.
uint64 end_seq_num = 2;- Parameters:
value- The endSeqNum to set.- Returns:
- This builder for chaining.
-
clearEndSeqNum
public AppendOutput.Builder clearEndSeqNum()
Sequence number of last record appended + 1. `end_seq_num - start_seq_num` will be the number of records in the batch.
uint64 end_seq_num = 2;- Returns:
- This builder for chaining.
-
getEndTimestamp
public long getEndTimestamp()
Timestamp of the last record appended.
uint64 end_timestamp = 5;- Specified by:
getEndTimestampin interfaceAppendOutputOrBuilder- Returns:
- The endTimestamp.
-
setEndTimestamp
public AppendOutput.Builder setEndTimestamp(long value)
Timestamp of the last record appended.
uint64 end_timestamp = 5;- Parameters:
value- The endTimestamp to set.- Returns:
- This builder for chaining.
-
clearEndTimestamp
public AppendOutput.Builder clearEndTimestamp()
Timestamp of the last record appended.
uint64 end_timestamp = 5;- Returns:
- This builder for chaining.
-
getNextSeqNum
public long getNextSeqNum()
Tail of the stream, i.e. sequence number that will be assigned to the next record. This can be greater than `end_seq_num` in case of concurrent appends.
uint64 next_seq_num = 3;- Specified by:
getNextSeqNumin interfaceAppendOutputOrBuilder- Returns:
- The nextSeqNum.
-
setNextSeqNum
public AppendOutput.Builder setNextSeqNum(long value)
Tail of the stream, i.e. sequence number that will be assigned to the next record. This can be greater than `end_seq_num` in case of concurrent appends.
uint64 next_seq_num = 3;- Parameters:
value- The nextSeqNum to set.- Returns:
- This builder for chaining.
-
clearNextSeqNum
public AppendOutput.Builder clearNextSeqNum()
Tail of the stream, i.e. sequence number that will be assigned to the next record. This can be greater than `end_seq_num` in case of concurrent appends.
uint64 next_seq_num = 3;- Returns:
- This builder for chaining.
-
getLastTimestamp
public long getLastTimestamp()
Timestamp of the last durable record on the stream.
uint64 last_timestamp = 6;- Specified by:
getLastTimestampin interfaceAppendOutputOrBuilder- Returns:
- The lastTimestamp.
-
setLastTimestamp
public AppendOutput.Builder setLastTimestamp(long value)
Timestamp of the last durable record on the stream.
uint64 last_timestamp = 6;- Parameters:
value- The lastTimestamp to set.- Returns:
- This builder for chaining.
-
clearLastTimestamp
public AppendOutput.Builder clearLastTimestamp()
Timestamp of the last durable record on the stream.
uint64 last_timestamp = 6;- Returns:
- This builder for chaining.
-
-