Class SchemaSettings (1.121.1)

public final class SchemaSettings extends GeneratedMessageV3 implements SchemaSettingsOrBuilder

Settings for validating messages published against a schema.

Protobuf type google.pubsub.v1.SchemaSettings

Static Fields

ENCODING_FIELD_NUMBER

public static final int ENCODING_FIELD_NUMBER
Field Value
TypeDescription
int

SCHEMA_FIELD_NUMBER

public static final int SCHEMA_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SchemaSettings getDefaultInstance()
Returns
TypeDescription
SchemaSettings

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SchemaSettings.Builder newBuilder()
Returns
TypeDescription
SchemaSettings.Builder

newBuilder(SchemaSettings prototype)

public static SchemaSettings.Builder newBuilder(SchemaSettings prototype)
Parameter
NameDescription
prototypeSchemaSettings
Returns
TypeDescription
SchemaSettings.Builder

parseDelimitedFrom(InputStream input)

public static SchemaSettings parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SchemaSettings
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SchemaSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchemaSettings
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SchemaSettings parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SchemaSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SchemaSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchemaSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SchemaSettings parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SchemaSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SchemaSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchemaSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SchemaSettings parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SchemaSettings
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SchemaSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchemaSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SchemaSettings parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SchemaSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SchemaSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchemaSettings
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SchemaSettings parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SchemaSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SchemaSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SchemaSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SchemaSettings> parser()
Returns
TypeDescription
Parser<SchemaSettings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SchemaSettings getDefaultInstanceForType()
Returns
TypeDescription
SchemaSettings

getEncoding()

public Encoding getEncoding()

The encoding of messages validated against schema.

.google.pubsub.v1.Encoding encoding = 2;

Returns
TypeDescription
Encoding

The encoding.

getEncodingValue()

public int getEncodingValue()

The encoding of messages validated against schema.

.google.pubsub.v1.Encoding encoding = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for encoding.

getParserForType()

public Parser<SchemaSettings> getParserForType()
Returns
TypeDescription
Parser<SchemaSettings>
Overrides

getSchema()

public String getSchema()

Required. The name of the schema that messages published should be validated against. Format is projects/{project}/schemas/{schema}. The value of this field will be deleted-schema if the schema has been deleted.

string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The schema.

getSchemaBytes()

public ByteString getSchemaBytes()

Required. The name of the schema that messages published should be validated against. Format is projects/{project}/schemas/{schema}. The value of this field will be deleted-schema if the schema has been deleted.

string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for schema.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SchemaSettings.Builder newBuilderForType()
Returns
TypeDescription
SchemaSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SchemaSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SchemaSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SchemaSettings.Builder toBuilder()
Returns
TypeDescription
SchemaSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException