Class GenericProtobufNativeRecord
- java.lang.Object
-
- org.apache.pulsar.client.impl.schema.generic.GenericProtobufNativeRecord
-
- All Implemented Interfaces:
org.apache.pulsar.client.api.schema.GenericObject,org.apache.pulsar.client.api.schema.GenericRecord
public class GenericProtobufNativeRecord extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<org.apache.pulsar.client.api.schema.Field>fieldsprotected byte[]schemaVersion
-
Constructor Summary
Constructors Modifier Constructor Description protectedGenericProtobufNativeRecord(byte[] schemaVersion, com.google.protobuf.Descriptors.Descriptor msgDesc, java.util.List<org.apache.pulsar.client.api.schema.Field> fields, com.google.protobuf.DynamicMessage record)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetField(java.lang.String fieldName)java.util.List<org.apache.pulsar.client.api.schema.Field>getFields()java.lang.ObjectgetNativeObject()com.google.protobuf.DynamicMessagegetProtobufRecord()org.apache.pulsar.common.schema.SchemaTypegetSchemaType()byte[]getSchemaVersion()
-
-
-
Method Detail
-
getField
public java.lang.Object getField(java.lang.String fieldName)
-
getProtobufRecord
public com.google.protobuf.DynamicMessage getProtobufRecord()
-
getNativeObject
public java.lang.Object getNativeObject()
-
getSchemaType
public org.apache.pulsar.common.schema.SchemaType getSchemaType()
-
getSchemaVersion
public byte[] getSchemaVersion()
- Specified by:
getSchemaVersionin interfaceorg.apache.pulsar.client.api.schema.GenericRecord
-
getFields
public java.util.List<org.apache.pulsar.client.api.schema.Field> getFields()
- Specified by:
getFieldsin interfaceorg.apache.pulsar.client.api.schema.GenericRecord
-
-