Package s2.v1
Class AppendInput.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<AppendInput.Builder>
-
- s2.v1.AppendInput.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,AppendInputOrBuilder
- Enclosing class:
- AppendInput
public static final class AppendInput.Builder extends com.google.protobuf.GeneratedMessage.Builder<AppendInput.Builder> implements AppendInputOrBuilder
Payload of an Append request message.
Protobuf types2.v1.AppendInput
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AppendInput.BuilderaddAllRecords(java.lang.Iterable<? extends AppendRecord> values)Batch of records to append atomically, which must contain at least one record, and no more than 1000.AppendInput.BuilderaddRecords(int index, AppendRecord value)Batch of records to append atomically, which must contain at least one record, and no more than 1000.AppendInput.BuilderaddRecords(int index, AppendRecord.Builder builderForValue)Batch of records to append atomically, which must contain at least one record, and no more than 1000.AppendInput.BuilderaddRecords(AppendRecord value)Batch of records to append atomically, which must contain at least one record, and no more than 1000.AppendInput.BuilderaddRecords(AppendRecord.Builder builderForValue)Batch of records to append atomically, which must contain at least one record, and no more than 1000.AppendRecord.BuilderaddRecordsBuilder()Batch of records to append atomically, which must contain at least one record, and no more than 1000.AppendRecord.BuilderaddRecordsBuilder(int index)Batch of records to append atomically, which must contain at least one record, and no more than 1000.AppendInputbuild()AppendInputbuildPartial()AppendInput.Builderclear()AppendInput.BuilderclearFencingToken()Enforce a fencing token which must have been previously set by a `fence` command record.AppendInput.BuilderclearMatchSeqNum()Enforce that the sequence number issued to the first record matches.AppendInput.BuilderclearRecords()Batch of records to append atomically, which must contain at least one record, and no more than 1000.AppendInputgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetFencingToken()Enforce a fencing token which must have been previously set by a `fence` command record.com.google.protobuf.ByteStringgetFencingTokenBytes()Enforce a fencing token which must have been previously set by a `fence` command record.longgetMatchSeqNum()Enforce that the sequence number issued to the first record matches.AppendRecordgetRecords(int index)Batch of records to append atomically, which must contain at least one record, and no more than 1000.AppendRecord.BuildergetRecordsBuilder(int index)Batch of records to append atomically, which must contain at least one record, and no more than 1000.java.util.List<AppendRecord.Builder>getRecordsBuilderList()Batch of records to append atomically, which must contain at least one record, and no more than 1000.intgetRecordsCount()Batch of records to append atomically, which must contain at least one record, and no more than 1000.java.util.List<AppendRecord>getRecordsList()Batch of records to append atomically, which must contain at least one record, and no more than 1000.AppendRecordOrBuildergetRecordsOrBuilder(int index)Batch of records to append atomically, which must contain at least one record, and no more than 1000.java.util.List<? extends AppendRecordOrBuilder>getRecordsOrBuilderList()Batch of records to append atomically, which must contain at least one record, and no more than 1000.booleanhasFencingToken()Enforce a fencing token which must have been previously set by a `fence` command record.booleanhasMatchSeqNum()Enforce that the sequence number issued to the first record matches.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AppendInput.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AppendInput.BuildermergeFrom(com.google.protobuf.Message other)AppendInput.BuildermergeFrom(AppendInput other)AppendInput.BuilderremoveRecords(int index)Batch of records to append atomically, which must contain at least one record, and no more than 1000.AppendInput.BuildersetFencingToken(java.lang.String value)Enforce a fencing token which must have been previously set by a `fence` command record.AppendInput.BuildersetFencingTokenBytes(com.google.protobuf.ByteString value)Enforce a fencing token which must have been previously set by a `fence` command record.AppendInput.BuildersetMatchSeqNum(long value)Enforce that the sequence number issued to the first record matches.AppendInput.BuildersetRecords(int index, AppendRecord value)Batch of records to append atomically, which must contain at least one record, and no more than 1000.AppendInput.BuildersetRecords(int index, AppendRecord.Builder builderForValue)Batch of records to append atomically, which must contain at least one record, and no more than 1000.-
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<AppendInput.Builder>
-
clear
public AppendInput.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<AppendInput.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<AppendInput.Builder>
-
getDefaultInstanceForType
public AppendInput getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AppendInput build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AppendInput buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public AppendInput.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AppendInput.Builder>
-
mergeFrom
public AppendInput.Builder mergeFrom(AppendInput other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AppendInput.Builder>
-
mergeFrom
public AppendInput.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<AppendInput.Builder>- Throws:
java.io.IOException
-
getRecordsList
public java.util.List<AppendRecord> getRecordsList()
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;- Specified by:
getRecordsListin interfaceAppendInputOrBuilder
-
getRecordsCount
public int getRecordsCount()
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;- Specified by:
getRecordsCountin interfaceAppendInputOrBuilder
-
getRecords
public AppendRecord getRecords(int index)
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;- Specified by:
getRecordsin interfaceAppendInputOrBuilder
-
setRecords
public AppendInput.Builder setRecords(int index, AppendRecord value)
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;
-
setRecords
public AppendInput.Builder setRecords(int index, AppendRecord.Builder builderForValue)
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;
-
addRecords
public AppendInput.Builder addRecords(AppendRecord value)
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;
-
addRecords
public AppendInput.Builder addRecords(int index, AppendRecord value)
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;
-
addRecords
public AppendInput.Builder addRecords(AppendRecord.Builder builderForValue)
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;
-
addRecords
public AppendInput.Builder addRecords(int index, AppendRecord.Builder builderForValue)
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;
-
addAllRecords
public AppendInput.Builder addAllRecords(java.lang.Iterable<? extends AppendRecord> values)
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;
-
clearRecords
public AppendInput.Builder clearRecords()
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;
-
removeRecords
public AppendInput.Builder removeRecords(int index)
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;
-
getRecordsBuilder
public AppendRecord.Builder getRecordsBuilder(int index)
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;
-
getRecordsOrBuilder
public AppendRecordOrBuilder getRecordsOrBuilder(int index)
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;- Specified by:
getRecordsOrBuilderin interfaceAppendInputOrBuilder
-
getRecordsOrBuilderList
public java.util.List<? extends AppendRecordOrBuilder> getRecordsOrBuilderList()
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;- Specified by:
getRecordsOrBuilderListin interfaceAppendInputOrBuilder
-
addRecordsBuilder
public AppendRecord.Builder addRecordsBuilder()
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;
-
addRecordsBuilder
public AppendRecord.Builder addRecordsBuilder(int index)
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;
-
getRecordsBuilderList
public java.util.List<AppendRecord.Builder> getRecordsBuilderList()
Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1MiB of metered bytes.
repeated .s2.v1.AppendRecord records = 1;
-
hasMatchSeqNum
public boolean hasMatchSeqNum()
Enforce that the sequence number issued to the first record matches.
optional uint64 match_seq_num = 2;- Specified by:
hasMatchSeqNumin interfaceAppendInputOrBuilder- Returns:
- Whether the matchSeqNum field is set.
-
getMatchSeqNum
public long getMatchSeqNum()
Enforce that the sequence number issued to the first record matches.
optional uint64 match_seq_num = 2;- Specified by:
getMatchSeqNumin interfaceAppendInputOrBuilder- Returns:
- The matchSeqNum.
-
setMatchSeqNum
public AppendInput.Builder setMatchSeqNum(long value)
Enforce that the sequence number issued to the first record matches.
optional uint64 match_seq_num = 2;- Parameters:
value- The matchSeqNum to set.- Returns:
- This builder for chaining.
-
clearMatchSeqNum
public AppendInput.Builder clearMatchSeqNum()
Enforce that the sequence number issued to the first record matches.
optional uint64 match_seq_num = 2;- Returns:
- This builder for chaining.
-
hasFencingToken
public boolean hasFencingToken()
Enforce a fencing token which must have been previously set by a `fence` command record.
optional string fencing_token = 3;- Specified by:
hasFencingTokenin interfaceAppendInputOrBuilder- Returns:
- Whether the fencingToken field is set.
-
getFencingToken
public java.lang.String getFencingToken()
Enforce a fencing token which must have been previously set by a `fence` command record.
optional string fencing_token = 3;- Specified by:
getFencingTokenin interfaceAppendInputOrBuilder- Returns:
- The fencingToken.
-
getFencingTokenBytes
public com.google.protobuf.ByteString getFencingTokenBytes()
Enforce a fencing token which must have been previously set by a `fence` command record.
optional string fencing_token = 3;- Specified by:
getFencingTokenBytesin interfaceAppendInputOrBuilder- Returns:
- The bytes for fencingToken.
-
setFencingToken
public AppendInput.Builder setFencingToken(java.lang.String value)
Enforce a fencing token which must have been previously set by a `fence` command record.
optional string fencing_token = 3;- Parameters:
value- The fencingToken to set.- Returns:
- This builder for chaining.
-
clearFencingToken
public AppendInput.Builder clearFencingToken()
Enforce a fencing token which must have been previously set by a `fence` command record.
optional string fencing_token = 3;- Returns:
- This builder for chaining.
-
setFencingTokenBytes
public AppendInput.Builder setFencingTokenBytes(com.google.protobuf.ByteString value)
Enforce a fencing token which must have been previously set by a `fence` command record.
optional string fencing_token = 3;- Parameters:
value- The bytes for fencingToken to set.- Returns:
- This builder for chaining.
-
-