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 AppendOutput
build()
AppendOutput
buildPartial()
AppendOutput.Builder
clear()
AppendOutput.Builder
clearEndSeqNum()
Sequence number of last record appended + 1.AppendOutput.Builder
clearEndTimestamp()
Timestamp of the last record appended.AppendOutput.Builder
clearLastTimestamp()
Timestamp of the last durable record on the stream.AppendOutput.Builder
clearNextSeqNum()
Tail of the stream, i.e.AppendOutput.Builder
clearStartSeqNum()
Sequence number of first record appended.AppendOutput.Builder
clearStartTimestamp()
Timestamp of the first record appended.AppendOutput
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getEndSeqNum()
Sequence number of last record appended + 1.long
getEndTimestamp()
Timestamp of the last record appended.long
getLastTimestamp()
Timestamp of the last durable record on the stream.long
getNextSeqNum()
Tail of the stream, i.e.long
getStartSeqNum()
Sequence number of first record appended.long
getStartTimestamp()
Timestamp of the first record appended.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AppendOutput.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AppendOutput.Builder
mergeFrom(com.google.protobuf.Message other)
AppendOutput.Builder
mergeFrom(AppendOutput other)
AppendOutput.Builder
setEndSeqNum(long value)
Sequence number of last record appended + 1.AppendOutput.Builder
setEndTimestamp(long value)
Timestamp of the last record appended.AppendOutput.Builder
setLastTimestamp(long value)
Timestamp of the last durable record on the stream.AppendOutput.Builder
setNextSeqNum(long value)
Tail of the stream, i.e.AppendOutput.Builder
setStartSeqNum(long value)
Sequence number of first record appended.AppendOutput.Builder
setStartTimestamp(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<AppendOutput.Builder>
-
clear
public AppendOutput.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<AppendOutput.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<AppendOutput.Builder>
-
getDefaultInstanceForType
public AppendOutput getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AppendOutput build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AppendOutput buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public AppendOutput.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AppendOutput.Builder>
-
mergeFrom
public AppendOutput.Builder mergeFrom(AppendOutput other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getStartSeqNum
in 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:
getStartTimestamp
in 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:
getEndSeqNum
in 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:
getEndTimestamp
in 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:
getNextSeqNum
in 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:
getLastTimestamp
in 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.
-
-