Package s2.v1alpha
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.v1alpha.AppendInput.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,AppendInputOrBuilder
- Enclosing class:
- AppendInput
public static final class AppendInput.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AppendInput.Builder>
implements AppendInputOrBuilder
Input for append requests.Protobuf type
s2.v1alpha.AppendInput
-
Method Summary
Modifier and TypeMethodDescriptionaddAllRecords
(Iterable<? extends AppendRecord> values) Batch of records to append atomically, which must contain at least one record, and no more than 1000.addRecords
(int index, AppendRecord value) Batch of records to append atomically, which must contain at least one record, and no more than 1000.addRecords
(int index, AppendRecord.Builder builderForValue) Batch of records to append atomically, which must contain at least one record, and no more than 1000.addRecords
(AppendRecord value) Batch of records to append atomically, which must contain at least one record, and no more than 1000.addRecords
(AppendRecord.Builder builderForValue) Batch of records to append atomically, which must contain at least one record, and no more than 1000.Batch of records to append atomically, which must contain at least one record, and no more than 1000.addRecordsBuilder
(int index) Batch of records to append atomically, which must contain at least one record, and no more than 1000.build()
clear()
Enforce a fencing token which must have been previously set by a `fence` command record.Enforce that the sequence number issued to the first record matches.Batch of records to append atomically, which must contain at least one record, and no more than 1000.Stream name.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.ByteString
Enforce a fencing token which must have been previously set by a `fence` command record.long
Enforce that the sequence number issued to the first record matches.getRecords
(int index) Batch of records to append atomically, which must contain at least one record, and no more than 1000.getRecordsBuilder
(int index) Batch of records to append atomically, which must contain at least one record, and no more than 1000.Batch of records to append atomically, which must contain at least one record, and no more than 1000.int
Batch of records to append atomically, which must contain at least one record, and no more than 1000.Batch of records to append atomically, which must contain at least one record, and no more than 1000.getRecordsOrBuilder
(int index) Batch of records to append atomically, which must contain at least one record, and no more than 1000.List<? extends AppendRecordOrBuilder>
Batch of records to append atomically, which must contain at least one record, and no more than 1000.Stream name.com.google.protobuf.ByteString
Stream name.boolean
Enforce a fencing token which must have been previously set by a `fence` command record.boolean
Enforce that the sequence number issued to the first record matches.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(AppendInput other) removeRecords
(int index) Batch of records to append atomically, which must contain at least one record, and no more than 1000.setFencingToken
(com.google.protobuf.ByteString value) Enforce a fencing token which must have been previously set by a `fence` command record.setMatchSeqNum
(long value) Enforce that the sequence number issued to the first record matches.setRecords
(int index, AppendRecord value) Batch of records to append atomically, which must contain at least one record, and no more than 1000.setRecords
(int index, AppendRecord.Builder builderForValue) Batch of records to append atomically, which must contain at least one record, and no more than 1000.Stream name.setStreamBytes
(com.google.protobuf.ByteString value) Stream name.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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<AppendInput.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<AppendInput.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<AppendInput.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AppendInput.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<AppendInput.Builder>
-
mergeFrom
public AppendInput.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<AppendInput.Builder>
- Throws:
IOException
-
getStream
Stream name. Optional for subsequent requests in the session.
string stream = 1;
- Specified by:
getStream
in interfaceAppendInputOrBuilder
- Returns:
- The stream.
-
getStreamBytes
public com.google.protobuf.ByteString getStreamBytes()Stream name. Optional for subsequent requests in the session.
string stream = 1;
- Specified by:
getStreamBytes
in interfaceAppendInputOrBuilder
- Returns:
- The bytes for stream.
-
setStream
Stream name. Optional for subsequent requests in the session.
string stream = 1;
- Parameters:
value
- The stream to set.- Returns:
- This builder for chaining.
-
clearStream
Stream name. Optional for subsequent requests in the session.
string stream = 1;
- Returns:
- This builder for chaining.
-
setStreamBytes
Stream name. Optional for subsequent requests in the session.
string stream = 1;
- Parameters:
value
- The bytes for stream to set.- Returns:
- This builder for chaining.
-
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.v1alpha.AppendRecord records = 2;
- Specified by:
getRecordsList
in 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.v1alpha.AppendRecord records = 2;
- Specified by:
getRecordsCount
in interfaceAppendInputOrBuilder
-
getRecords
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.v1alpha.AppendRecord records = 2;
- Specified by:
getRecords
in interfaceAppendInputOrBuilder
-
setRecords
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.v1alpha.AppendRecord records = 2;
-
setRecords
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.v1alpha.AppendRecord records = 2;
-
addRecords
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.v1alpha.AppendRecord records = 2;
-
addRecords
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.v1alpha.AppendRecord records = 2;
-
addRecords
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.v1alpha.AppendRecord records = 2;
-
addRecords
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.v1alpha.AppendRecord records = 2;
-
addAllRecords
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.v1alpha.AppendRecord records = 2;
-
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.v1alpha.AppendRecord records = 2;
-
removeRecords
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.v1alpha.AppendRecord records = 2;
-
getRecordsBuilder
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.v1alpha.AppendRecord records = 2;
-
getRecordsOrBuilder
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.v1alpha.AppendRecord records = 2;
- Specified by:
getRecordsOrBuilder
in interfaceAppendInputOrBuilder
-
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.v1alpha.AppendRecord records = 2;
- Specified by:
getRecordsOrBuilderList
in interfaceAppendInputOrBuilder
-
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.v1alpha.AppendRecord records = 2;
-
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.v1alpha.AppendRecord records = 2;
-
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.v1alpha.AppendRecord records = 2;
-
hasMatchSeqNum
public boolean hasMatchSeqNum()Enforce that the sequence number issued to the first record matches.
optional uint64 match_seq_num = 3;
- Specified by:
hasMatchSeqNum
in 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 = 3;
- Specified by:
getMatchSeqNum
in interfaceAppendInputOrBuilder
- Returns:
- The matchSeqNum.
-
setMatchSeqNum
Enforce that the sequence number issued to the first record matches.
optional uint64 match_seq_num = 3;
- Parameters:
value
- The matchSeqNum to set.- Returns:
- This builder for chaining.
-
clearMatchSeqNum
Enforce that the sequence number issued to the first record matches.
optional uint64 match_seq_num = 3;
- 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 bytes fencing_token = 4;
- Specified by:
hasFencingToken
in interfaceAppendInputOrBuilder
- Returns:
- Whether the fencingToken field is set.
-
getFencingToken
public com.google.protobuf.ByteString getFencingToken()Enforce a fencing token which must have been previously set by a `fence` command record.
optional bytes fencing_token = 4;
- Specified by:
getFencingToken
in interfaceAppendInputOrBuilder
- Returns:
- The fencingToken.
-
setFencingToken
Enforce a fencing token which must have been previously set by a `fence` command record.
optional bytes fencing_token = 4;
- Parameters:
value
- The fencingToken to set.- Returns:
- This builder for chaining.
-
clearFencingToken
Enforce a fencing token which must have been previously set by a `fence` command record.
optional bytes fencing_token = 4;
- Returns:
- This builder for chaining.
-