public final class AppendRecord extends com.google.protobuf.GeneratedMessage implements AppendRecordOrBuilder
Record to be appended to a stream.Protobuf type
kurrentdb.protocol.v2.streams.AppendRecord| Modifier and Type | Class and Description |
|---|---|
static class |
AppendRecord.Builder
Record to be appended to a stream.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DATA_FIELD_NUMBER |
static int |
PROPERTIES_FIELD_NUMBER |
static int |
RECORD_ID_FIELD_NUMBER |
static int |
SCHEMA_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsProperties(java.lang.String key)
A collection of properties providing additional information about the
record.
|
boolean |
equals(java.lang.Object obj) |
com.google.protobuf.ByteString |
getData()
The record payload as raw bytes.
|
static AppendRecord |
getDefaultInstance() |
AppendRecord |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<AppendRecord> |
getParserForType() |
java.util.Map<java.lang.String,com.google.protobuf.Value> |
getProperties()
Deprecated.
|
int |
getPropertiesCount()
A collection of properties providing additional information about the
record.
|
java.util.Map<java.lang.String,com.google.protobuf.Value> |
getPropertiesMap()
A collection of properties providing additional information about the
record.
|
com.google.protobuf.Value |
getPropertiesOrDefault(java.lang.String key,
com.google.protobuf.Value defaultValue)
A collection of properties providing additional information about the
record.
|
com.google.protobuf.Value |
getPropertiesOrThrow(java.lang.String key)
A collection of properties providing additional information about the
record.
|
java.lang.String |
getRecordId()
Unique identifier for this record (must be a valid UUID/GUID).
|
com.google.protobuf.ByteString |
getRecordIdBytes()
Unique identifier for this record (must be a valid UUID/GUID).
|
SchemaInfo |
getSchema()
Schema information for this record.
|
SchemaInfoOrBuilder |
getSchemaOrBuilder()
Schema information for this record.
|
int |
getSerializedSize() |
int |
hashCode() |
boolean |
hasRecordId()
Unique identifier for this record (must be a valid UUID/GUID).
|
boolean |
hasSchema()
Schema information for this record.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static AppendRecord.Builder |
newBuilder() |
static AppendRecord.Builder |
newBuilder(AppendRecord prototype) |
AppendRecord.Builder |
newBuilderForType() |
protected AppendRecord.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static AppendRecord |
parseDelimitedFrom(java.io.InputStream input) |
static AppendRecord |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AppendRecord |
parseFrom(byte[] data) |
static AppendRecord |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AppendRecord |
parseFrom(java.nio.ByteBuffer data) |
static AppendRecord |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AppendRecord |
parseFrom(com.google.protobuf.ByteString data) |
static AppendRecord |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AppendRecord |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AppendRecord |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AppendRecord |
parseFrom(java.io.InputStream input) |
static AppendRecord |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AppendRecord> |
parser() |
AppendRecord.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int RECORD_ID_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
public static final int SCHEMA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic boolean hasRecordId()
Unique identifier for this record (must be a valid UUID/GUID). If not provided, the server will generate a new one.
optional string record_id = 1;hasRecordId in interface AppendRecordOrBuilderpublic java.lang.String getRecordId()
Unique identifier for this record (must be a valid UUID/GUID). If not provided, the server will generate a new one.
optional string record_id = 1;getRecordId in interface AppendRecordOrBuilderpublic com.google.protobuf.ByteString getRecordIdBytes()
Unique identifier for this record (must be a valid UUID/GUID). If not provided, the server will generate a new one.
optional string record_id = 1;getRecordIdBytes in interface AppendRecordOrBuilderpublic int getPropertiesCount()
AppendRecordOrBuilderA collection of properties providing additional information about the record. Can contain user-defined or system propreties. System keys will be prefixed with "$" (e.g., "$timestamp"). User-defined keys MUST NOT start with "$". Common examples: User metadata: - "user-id": "12345" - "tenant": "acme-corp" - "source": "mobile-app" System metadata (with $ prefix): - "$trace-id": "4bf92f3577b34da6a3ce929d0e0e4736" // OpenTelemetry trace ID - "$span-id": "00f067aa0ba902b7" // OpenTelemetry span ID - "$timestamp": "2025-01-15T10:30:00.000Z" // ISO 8601 timestamp
map<string, .google.protobuf.Value> properties = 2;getPropertiesCount in interface AppendRecordOrBuilderpublic boolean containsProperties(java.lang.String key)
A collection of properties providing additional information about the record. Can contain user-defined or system propreties. System keys will be prefixed with "$" (e.g., "$timestamp"). User-defined keys MUST NOT start with "$". Common examples: User metadata: - "user-id": "12345" - "tenant": "acme-corp" - "source": "mobile-app" System metadata (with $ prefix): - "$trace-id": "4bf92f3577b34da6a3ce929d0e0e4736" // OpenTelemetry trace ID - "$span-id": "00f067aa0ba902b7" // OpenTelemetry span ID - "$timestamp": "2025-01-15T10:30:00.000Z" // ISO 8601 timestamp
map<string, .google.protobuf.Value> properties = 2;containsProperties in interface AppendRecordOrBuilder@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getProperties()
getPropertiesMap() instead.getProperties in interface AppendRecordOrBuilderpublic java.util.Map<java.lang.String,com.google.protobuf.Value> getPropertiesMap()
A collection of properties providing additional information about the record. Can contain user-defined or system propreties. System keys will be prefixed with "$" (e.g., "$timestamp"). User-defined keys MUST NOT start with "$". Common examples: User metadata: - "user-id": "12345" - "tenant": "acme-corp" - "source": "mobile-app" System metadata (with $ prefix): - "$trace-id": "4bf92f3577b34da6a3ce929d0e0e4736" // OpenTelemetry trace ID - "$span-id": "00f067aa0ba902b7" // OpenTelemetry span ID - "$timestamp": "2025-01-15T10:30:00.000Z" // ISO 8601 timestamp
map<string, .google.protobuf.Value> properties = 2;getPropertiesMap in interface AppendRecordOrBuilderpublic com.google.protobuf.Value getPropertiesOrDefault(java.lang.String key,
com.google.protobuf.Value defaultValue)
A collection of properties providing additional information about the record. Can contain user-defined or system propreties. System keys will be prefixed with "$" (e.g., "$timestamp"). User-defined keys MUST NOT start with "$". Common examples: User metadata: - "user-id": "12345" - "tenant": "acme-corp" - "source": "mobile-app" System metadata (with $ prefix): - "$trace-id": "4bf92f3577b34da6a3ce929d0e0e4736" // OpenTelemetry trace ID - "$span-id": "00f067aa0ba902b7" // OpenTelemetry span ID - "$timestamp": "2025-01-15T10:30:00.000Z" // ISO 8601 timestamp
map<string, .google.protobuf.Value> properties = 2;getPropertiesOrDefault in interface AppendRecordOrBuilderpublic com.google.protobuf.Value getPropertiesOrThrow(java.lang.String key)
A collection of properties providing additional information about the record. Can contain user-defined or system propreties. System keys will be prefixed with "$" (e.g., "$timestamp"). User-defined keys MUST NOT start with "$". Common examples: User metadata: - "user-id": "12345" - "tenant": "acme-corp" - "source": "mobile-app" System metadata (with $ prefix): - "$trace-id": "4bf92f3577b34da6a3ce929d0e0e4736" // OpenTelemetry trace ID - "$span-id": "00f067aa0ba902b7" // OpenTelemetry span ID - "$timestamp": "2025-01-15T10:30:00.000Z" // ISO 8601 timestamp
map<string, .google.protobuf.Value> properties = 2;getPropertiesOrThrow in interface AppendRecordOrBuilderpublic boolean hasSchema()
Schema information for this record.
.kurrentdb.protocol.v2.streams.SchemaInfo schema = 3;hasSchema in interface AppendRecordOrBuilderpublic SchemaInfo getSchema()
Schema information for this record.
.kurrentdb.protocol.v2.streams.SchemaInfo schema = 3;getSchema in interface AppendRecordOrBuilderpublic SchemaInfoOrBuilder getSchemaOrBuilder()
Schema information for this record.
.kurrentdb.protocol.v2.streams.SchemaInfo schema = 3;getSchemaOrBuilder in interface AppendRecordOrBuilderpublic com.google.protobuf.ByteString getData()
The record payload as raw bytes. The format specified in SchemaInfo determines how to interpret these bytes.
bytes data = 4;getData in interface AppendRecordOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AppendRecord parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AppendRecord parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AppendRecord parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AppendRecord parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AppendRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AppendRecord parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AppendRecord parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AppendRecord parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AppendRecord parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AppendRecord parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AppendRecord parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AppendRecord parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic AppendRecord.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AppendRecord.Builder newBuilder()
public static AppendRecord.Builder newBuilder(AppendRecord prototype)
public AppendRecord.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AppendRecord.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static AppendRecord getDefaultInstance()
public static com.google.protobuf.Parser<AppendRecord> parser()
public com.google.protobuf.Parser<AppendRecord> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic AppendRecord getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder