public static final class AppendRecord.Builder extends com.google.protobuf.GeneratedMessage.Builder<AppendRecord.Builder> implements AppendRecordOrBuilder
Record to be appended to a stream.Protobuf type
kurrentdb.protocol.v2.streams.AppendRecord| Modifier and Type | Method and Description |
|---|---|
AppendRecord |
build() |
AppendRecord |
buildPartial() |
AppendRecord.Builder |
clear() |
AppendRecord.Builder |
clearData()
The record payload as raw bytes.
|
AppendRecord.Builder |
clearProperties() |
AppendRecord.Builder |
clearRecordId()
Unique identifier for this record (must be a valid UUID/GUID).
|
AppendRecord.Builder |
clearSchema()
Schema information for this record.
|
boolean |
containsProperties(java.lang.String key)
A collection of properties providing additional information about the
record.
|
com.google.protobuf.ByteString |
getData()
The record payload as raw bytes.
|
AppendRecord |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.util.Map<java.lang.String,com.google.protobuf.Value> |
getMutableProperties()
Deprecated.
|
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.
|
SchemaInfo.Builder |
getSchemaBuilder()
Schema information for this record.
|
SchemaInfoOrBuilder |
getSchemaOrBuilder()
Schema information for this record.
|
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) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
AppendRecord.Builder |
mergeFrom(AppendRecord other) |
AppendRecord.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AppendRecord.Builder |
mergeFrom(com.google.protobuf.Message other) |
AppendRecord.Builder |
mergeSchema(SchemaInfo value)
Schema information for this record.
|
AppendRecord.Builder |
putAllProperties(java.util.Map<java.lang.String,com.google.protobuf.Value> values)
A collection of properties providing additional information about the
record.
|
AppendRecord.Builder |
putProperties(java.lang.String key,
com.google.protobuf.Value value)
A collection of properties providing additional information about the
record.
|
com.google.protobuf.Value.Builder |
putPropertiesBuilderIfAbsent(java.lang.String key)
A collection of properties providing additional information about the
record.
|
AppendRecord.Builder |
removeProperties(java.lang.String key)
A collection of properties providing additional information about the
record.
|
AppendRecord.Builder |
setData(com.google.protobuf.ByteString value)
The record payload as raw bytes.
|
AppendRecord.Builder |
setRecordId(java.lang.String value)
Unique identifier for this record (must be a valid UUID/GUID).
|
AppendRecord.Builder |
setRecordIdBytes(com.google.protobuf.ByteString value)
Unique identifier for this record (must be a valid UUID/GUID).
|
AppendRecord.Builder |
setSchema(SchemaInfo.Builder builderForValue)
Schema information for this record.
|
AppendRecord.Builder |
setSchema(SchemaInfo value)
Schema information for this record.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AppendRecord.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AppendRecord.Builder>protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AppendRecord.Builder>public AppendRecord.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<AppendRecord.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AppendRecord.Builder>public AppendRecord getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AppendRecord build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AppendRecord buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AppendRecord.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AppendRecord.Builder>public AppendRecord.Builder mergeFrom(AppendRecord other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<AppendRecord.Builder>public AppendRecord.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AppendRecord.Builder>java.io.IOExceptionpublic 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 AppendRecord.Builder setRecordId(java.lang.String value)
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;value - The recordId to set.public AppendRecord.Builder clearRecordId()
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;public AppendRecord.Builder setRecordIdBytes(com.google.protobuf.ByteString value)
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;value - The bytes for recordId to set.public 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 AppendRecord.Builder clearProperties()
public AppendRecord.Builder removeProperties(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;@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getMutableProperties()
public AppendRecord.Builder putProperties(java.lang.String key, com.google.protobuf.Value value)
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;public AppendRecord.Builder putAllProperties(java.util.Map<java.lang.String,com.google.protobuf.Value> values)
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;public com.google.protobuf.Value.Builder putPropertiesBuilderIfAbsent(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;public 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 AppendRecord.Builder setSchema(SchemaInfo value)
Schema information for this record.
.kurrentdb.protocol.v2.streams.SchemaInfo schema = 3;public AppendRecord.Builder setSchema(SchemaInfo.Builder builderForValue)
Schema information for this record.
.kurrentdb.protocol.v2.streams.SchemaInfo schema = 3;public AppendRecord.Builder mergeSchema(SchemaInfo value)
Schema information for this record.
.kurrentdb.protocol.v2.streams.SchemaInfo schema = 3;public AppendRecord.Builder clearSchema()
Schema information for this record.
.kurrentdb.protocol.v2.streams.SchemaInfo schema = 3;public SchemaInfo.Builder getSchemaBuilder()
Schema information for this record.
.kurrentdb.protocol.v2.streams.SchemaInfo schema = 3;public 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 AppendRecord.Builder setData(com.google.protobuf.ByteString value)
The record payload as raw bytes. The format specified in SchemaInfo determines how to interpret these bytes.
bytes data = 4;value - The data to set.public AppendRecord.Builder clearData()
The record payload as raw bytes. The format specified in SchemaInfo determines how to interpret these bytes.
bytes data = 4;