public static final class SchemaInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<SchemaInfo.Builder> implements SchemaInfoOrBuilder
Schema information for record validation and interpretation.Protobuf type
kurrentdb.protocol.v2.streams.SchemaInfo| Modifier and Type | Method and Description |
|---|---|
SchemaInfo |
build() |
SchemaInfo |
buildPartial() |
SchemaInfo.Builder |
clear() |
SchemaInfo.Builder |
clearFormat()
The format of the data payload.
|
SchemaInfo.Builder |
clearId()
The identifier of the specific version of the schema that the record payload
conforms to.
|
SchemaInfo.Builder |
clearName()
The schema name (replaces the legacy "event type" concept).
|
SchemaInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
SchemaFormat |
getFormat()
The format of the data payload.
|
int |
getFormatValue()
The format of the data payload.
|
java.lang.String |
getId()
The identifier of the specific version of the schema that the record payload
conforms to.
|
com.google.protobuf.ByteString |
getIdBytes()
The identifier of the specific version of the schema that the record payload
conforms to.
|
java.lang.String |
getName()
The schema name (replaces the legacy "event type" concept).
|
com.google.protobuf.ByteString |
getNameBytes()
The schema name (replaces the legacy "event type" concept).
|
boolean |
hasId()
The identifier of the specific version of the schema that the record payload
conforms to.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SchemaInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SchemaInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
SchemaInfo.Builder |
mergeFrom(SchemaInfo other) |
SchemaInfo.Builder |
setFormat(SchemaFormat value)
The format of the data payload.
|
SchemaInfo.Builder |
setFormatValue(int value)
The format of the data payload.
|
SchemaInfo.Builder |
setId(java.lang.String value)
The identifier of the specific version of the schema that the record payload
conforms to.
|
SchemaInfo.Builder |
setIdBytes(com.google.protobuf.ByteString value)
The identifier of the specific version of the schema that the record payload
conforms to.
|
SchemaInfo.Builder |
setName(java.lang.String value)
The schema name (replaces the legacy "event type" concept).
|
SchemaInfo.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The schema name (replaces the legacy "event type" concept).
|
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, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SchemaInfo.Builder>public SchemaInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<SchemaInfo.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<SchemaInfo.Builder>public SchemaInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SchemaInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SchemaInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SchemaInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SchemaInfo.Builder>public SchemaInfo.Builder mergeFrom(SchemaInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<SchemaInfo.Builder>public SchemaInfo.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<SchemaInfo.Builder>java.io.IOExceptionpublic int getFormatValue()
The format of the data payload. Determines how the bytes in AppendRecord.data should be interpreted.
.kurrentdb.protocol.v2.streams.SchemaFormat format = 1;getFormatValue in interface SchemaInfoOrBuilderpublic SchemaInfo.Builder setFormatValue(int value)
The format of the data payload. Determines how the bytes in AppendRecord.data should be interpreted.
.kurrentdb.protocol.v2.streams.SchemaFormat format = 1;value - The enum numeric value on the wire for format to set.public SchemaFormat getFormat()
The format of the data payload. Determines how the bytes in AppendRecord.data should be interpreted.
.kurrentdb.protocol.v2.streams.SchemaFormat format = 1;getFormat in interface SchemaInfoOrBuilderpublic SchemaInfo.Builder setFormat(SchemaFormat value)
The format of the data payload. Determines how the bytes in AppendRecord.data should be interpreted.
.kurrentdb.protocol.v2.streams.SchemaFormat format = 1;value - The format to set.public SchemaInfo.Builder clearFormat()
The format of the data payload. Determines how the bytes in AppendRecord.data should be interpreted.
.kurrentdb.protocol.v2.streams.SchemaFormat format = 1;public java.lang.String getName()
The schema name (replaces the legacy "event type" concept). Identifies what kind of data this record contains. Common naming formats: - Kebab-case: "order-placed", "customer-registered" - URN format: "urn:kurrentdb:events:order-placed:v1" - Dotted namespace: "Teams.Player.V1", "Orders.OrderPlaced.V2" - Reverse domain: "com.acme.orders.placed"
string name = 2;getName in interface SchemaInfoOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The schema name (replaces the legacy "event type" concept). Identifies what kind of data this record contains. Common naming formats: - Kebab-case: "order-placed", "customer-registered" - URN format: "urn:kurrentdb:events:order-placed:v1" - Dotted namespace: "Teams.Player.V1", "Orders.OrderPlaced.V2" - Reverse domain: "com.acme.orders.placed"
string name = 2;getNameBytes in interface SchemaInfoOrBuilderpublic SchemaInfo.Builder setName(java.lang.String value)
The schema name (replaces the legacy "event type" concept). Identifies what kind of data this record contains. Common naming formats: - Kebab-case: "order-placed", "customer-registered" - URN format: "urn:kurrentdb:events:order-placed:v1" - Dotted namespace: "Teams.Player.V1", "Orders.OrderPlaced.V2" - Reverse domain: "com.acme.orders.placed"
string name = 2;value - The name to set.public SchemaInfo.Builder clearName()
The schema name (replaces the legacy "event type" concept). Identifies what kind of data this record contains. Common naming formats: - Kebab-case: "order-placed", "customer-registered" - URN format: "urn:kurrentdb:events:order-placed:v1" - Dotted namespace: "Teams.Player.V1", "Orders.OrderPlaced.V2" - Reverse domain: "com.acme.orders.placed"
string name = 2;public SchemaInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
The schema name (replaces the legacy "event type" concept). Identifies what kind of data this record contains. Common naming formats: - Kebab-case: "order-placed", "customer-registered" - URN format: "urn:kurrentdb:events:order-placed:v1" - Dotted namespace: "Teams.Player.V1", "Orders.OrderPlaced.V2" - Reverse domain: "com.acme.orders.placed"
string name = 2;value - The bytes for name to set.public boolean hasId()
The identifier of the specific version of the schema that the record payload conforms to. This should match a registered schema version in the system. Not necessary when not enforcing schema validation.
optional string id = 3;hasId in interface SchemaInfoOrBuilderpublic java.lang.String getId()
The identifier of the specific version of the schema that the record payload conforms to. This should match a registered schema version in the system. Not necessary when not enforcing schema validation.
optional string id = 3;getId in interface SchemaInfoOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
The identifier of the specific version of the schema that the record payload conforms to. This should match a registered schema version in the system. Not necessary when not enforcing schema validation.
optional string id = 3;getIdBytes in interface SchemaInfoOrBuilderpublic SchemaInfo.Builder setId(java.lang.String value)
The identifier of the specific version of the schema that the record payload conforms to. This should match a registered schema version in the system. Not necessary when not enforcing schema validation.
optional string id = 3;value - The id to set.public SchemaInfo.Builder clearId()
The identifier of the specific version of the schema that the record payload conforms to. This should match a registered schema version in the system. Not necessary when not enforcing schema validation.
optional string id = 3;public SchemaInfo.Builder setIdBytes(com.google.protobuf.ByteString value)
The identifier of the specific version of the schema that the record payload conforms to. This should match a registered schema version in the system. Not necessary when not enforcing schema validation.
optional string id = 3;value - The bytes for id to set.