Package s2.v1alpha
Interface AppendInputOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AppendInput
,AppendInput.Builder
public interface AppendInputOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.protobuf.ByteString
getFencingToken()
Enforce a fencing token which must have been previously set by a `fence` command record.long
getMatchSeqNum()
Enforce that the sequence number issued to the first record matches.AppendRecord
getRecords(int index)
Batch of records to append atomically, which must contain at least one record, and no more than 1000.int
getRecordsCount()
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.AppendRecordOrBuilder
getRecordsOrBuilder(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.java.lang.String
getStream()
Stream name.com.google.protobuf.ByteString
getStreamBytes()
Stream name.boolean
hasFencingToken()
Enforce a fencing token which must have been previously set by a `fence` command record.boolean
hasMatchSeqNum()
Enforce that the sequence number issued to the first record matches.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getStream
java.lang.String getStream()
Stream name. Optional for subsequent requests in the session.
string stream = 1;
- Returns:
- The stream.
-
getStreamBytes
com.google.protobuf.ByteString getStreamBytes()
Stream name. Optional for subsequent requests in the session.
string stream = 1;
- Returns:
- The bytes for stream.
-
getRecordsList
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.v1alpha.AppendRecord records = 2;
-
getRecords
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.v1alpha.AppendRecord records = 2;
-
getRecordsCount
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;
-
getRecordsOrBuilderList
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.v1alpha.AppendRecord records = 2;
-
getRecordsOrBuilder
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.v1alpha.AppendRecord records = 2;
-
hasMatchSeqNum
boolean hasMatchSeqNum()
Enforce that the sequence number issued to the first record matches.
optional uint64 match_seq_num = 3;
- Returns:
- Whether the matchSeqNum field is set.
-
getMatchSeqNum
long getMatchSeqNum()
Enforce that the sequence number issued to the first record matches.
optional uint64 match_seq_num = 3;
- Returns:
- The matchSeqNum.
-
hasFencingToken
boolean hasFencingToken()
Enforce a fencing token which must have been previously set by a `fence` command record.
optional bytes fencing_token = 4;
- Returns:
- Whether the fencingToken field is set.
-
getFencingToken
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;
- Returns:
- The fencingToken.
-
-