Package io.hstream.internal
Class BatchedRecord.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BatchedRecord.Builder>
-
- io.hstream.internal.BatchedRecord.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,BatchedRecordOrBuilder
,Cloneable
- Enclosing class:
- BatchedRecord
public static final class BatchedRecord.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchedRecord.Builder> implements BatchedRecordOrBuilder
Protobuf typehstream.server.BatchedRecord
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchedRecord
build()
BatchedRecord
buildPartial()
BatchedRecord.Builder
clear()
BatchedRecord.Builder
clearBatchSize()
Required batchSize records the number of compressed HStreamRecords in the current batch.BatchedRecord.Builder
clearCompressionType()
.hstream.server.CompressionType compressionType = 1;
BatchedRecord.Builder
clearPayload()
serialized BatchHStreamRecordsBatchedRecord.Builder
clearPublishTime()
Required.int
getBatchSize()
Required batchSize records the number of compressed HStreamRecords in the current batch.CompressionType
getCompressionType()
.hstream.server.CompressionType compressionType = 1;
int
getCompressionTypeValue()
.hstream.server.CompressionType compressionType = 1;
BatchedRecord
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.ByteString
getPayload()
serialized BatchHStreamRecordscom.google.protobuf.Timestamp
getPublishTime()
Required.com.google.protobuf.Timestamp.Builder
getPublishTimeBuilder()
Required.com.google.protobuf.TimestampOrBuilder
getPublishTimeOrBuilder()
Required.boolean
hasPublishTime()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BatchedRecord.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BatchedRecord.Builder
mergeFrom(com.google.protobuf.Message other)
BatchedRecord.Builder
mergeFrom(BatchedRecord other)
BatchedRecord.Builder
mergePublishTime(com.google.protobuf.Timestamp value)
Required.BatchedRecord.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BatchedRecord.Builder
setBatchSize(int value)
Required batchSize records the number of compressed HStreamRecords in the current batch.BatchedRecord.Builder
setCompressionType(CompressionType value)
.hstream.server.CompressionType compressionType = 1;
BatchedRecord.Builder
setCompressionTypeValue(int value)
.hstream.server.CompressionType compressionType = 1;
BatchedRecord.Builder
setPayload(com.google.protobuf.ByteString value)
serialized BatchHStreamRecordsBatchedRecord.Builder
setPublishTime(com.google.protobuf.Timestamp value)
Required.BatchedRecord.Builder
setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue)
Required.BatchedRecord.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchedRecord.Builder>
-
clear
public BatchedRecord.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.GeneratedMessageV3.Builder<BatchedRecord.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.GeneratedMessageV3.Builder<BatchedRecord.Builder>
-
getDefaultInstanceForType
public BatchedRecord getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchedRecord build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchedRecord buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public BatchedRecord.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchedRecord.Builder>
-
mergeFrom
public BatchedRecord.Builder mergeFrom(BatchedRecord other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchedRecord.Builder>
-
mergeFrom
public BatchedRecord.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<BatchedRecord.Builder>
- Throws:
IOException
-
getCompressionTypeValue
public int getCompressionTypeValue()
.hstream.server.CompressionType compressionType = 1;
- Specified by:
getCompressionTypeValue
in interfaceBatchedRecordOrBuilder
- Returns:
- The enum numeric value on the wire for compressionType.
-
setCompressionTypeValue
public BatchedRecord.Builder setCompressionTypeValue(int value)
.hstream.server.CompressionType compressionType = 1;
- Parameters:
value
- The enum numeric value on the wire for compressionType to set.- Returns:
- This builder for chaining.
-
getCompressionType
public CompressionType getCompressionType()
.hstream.server.CompressionType compressionType = 1;
- Specified by:
getCompressionType
in interfaceBatchedRecordOrBuilder
- Returns:
- The compressionType.
-
setCompressionType
public BatchedRecord.Builder setCompressionType(CompressionType value)
.hstream.server.CompressionType compressionType = 1;
- Parameters:
value
- The compressionType to set.- Returns:
- This builder for chaining.
-
clearCompressionType
public BatchedRecord.Builder clearCompressionType()
.hstream.server.CompressionType compressionType = 1;
- Returns:
- This builder for chaining.
-
hasPublishTime
public boolean hasPublishTime()
Required. The time at which the message was published, populated by the server.
.google.protobuf.Timestamp publishTime = 2;
- Specified by:
hasPublishTime
in interfaceBatchedRecordOrBuilder
- Returns:
- Whether the publishTime field is set.
-
getPublishTime
public com.google.protobuf.Timestamp getPublishTime()
Required. The time at which the message was published, populated by the server.
.google.protobuf.Timestamp publishTime = 2;
- Specified by:
getPublishTime
in interfaceBatchedRecordOrBuilder
- Returns:
- The publishTime.
-
setPublishTime
public BatchedRecord.Builder setPublishTime(com.google.protobuf.Timestamp value)
Required. The time at which the message was published, populated by the server.
.google.protobuf.Timestamp publishTime = 2;
-
setPublishTime
public BatchedRecord.Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue)
Required. The time at which the message was published, populated by the server.
.google.protobuf.Timestamp publishTime = 2;
-
mergePublishTime
public BatchedRecord.Builder mergePublishTime(com.google.protobuf.Timestamp value)
Required. The time at which the message was published, populated by the server.
.google.protobuf.Timestamp publishTime = 2;
-
clearPublishTime
public BatchedRecord.Builder clearPublishTime()
Required. The time at which the message was published, populated by the server.
.google.protobuf.Timestamp publishTime = 2;
-
getPublishTimeBuilder
public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder()
Required. The time at which the message was published, populated by the server.
.google.protobuf.Timestamp publishTime = 2;
-
getPublishTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder()
Required. The time at which the message was published, populated by the server.
.google.protobuf.Timestamp publishTime = 2;
- Specified by:
getPublishTimeOrBuilder
in interfaceBatchedRecordOrBuilder
-
getBatchSize
public int getBatchSize()
Required batchSize records the number of compressed HStreamRecords in the current batch. This field allows the server to build the RecordId correctly without decompression after reading the data from the store.
uint32 batchSize = 3;
- Specified by:
getBatchSize
in interfaceBatchedRecordOrBuilder
- Returns:
- The batchSize.
-
setBatchSize
public BatchedRecord.Builder setBatchSize(int value)
Required batchSize records the number of compressed HStreamRecords in the current batch. This field allows the server to build the RecordId correctly without decompression after reading the data from the store.
uint32 batchSize = 3;
- Parameters:
value
- The batchSize to set.- Returns:
- This builder for chaining.
-
clearBatchSize
public BatchedRecord.Builder clearBatchSize()
Required batchSize records the number of compressed HStreamRecords in the current batch. This field allows the server to build the RecordId correctly without decompression after reading the data from the store.
uint32 batchSize = 3;
- Returns:
- This builder for chaining.
-
getPayload
public com.google.protobuf.ByteString getPayload()
serialized BatchHStreamRecords
bytes payload = 4;
- Specified by:
getPayload
in interfaceBatchedRecordOrBuilder
- Returns:
- The payload.
-
setPayload
public BatchedRecord.Builder setPayload(com.google.protobuf.ByteString value)
serialized BatchHStreamRecords
bytes payload = 4;
- Parameters:
value
- The payload to set.- Returns:
- This builder for chaining.
-
clearPayload
public BatchedRecord.Builder clearPayload()
serialized BatchHStreamRecords
bytes payload = 4;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final BatchedRecord.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchedRecord.Builder>
-
mergeUnknownFields
public final BatchedRecord.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchedRecord.Builder>
-
-