Cloud Pub/Sub v1 API - Class SchemaSettings (3.9.1)

public sealed class SchemaSettings : IMessage<SchemaSettings>, IEquatable<SchemaSettings>, IDeepCloneable<SchemaSettings>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Pub/Sub v1 API class SchemaSettings.

Settings for validating messages published against a schema.

Inheritance

object > SchemaSettings

Namespace

Google.Cloud.PubSub.V1

Assembly

Google.Cloud.PubSub.V1.dll

Constructors

SchemaSettings()

public SchemaSettings()

SchemaSettings(SchemaSettings)

public SchemaSettings(SchemaSettings other)
Parameter
NameDescription
otherSchemaSettings

Properties

Encoding

public Encoding Encoding { get; set; }

The encoding of messages validated against schema.

Property Value
TypeDescription
Encoding

FirstRevisionId

public string FirstRevisionId { get; set; }

The minimum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against last_revision or any revision created before.

Property Value
TypeDescription
string

LastRevisionId

public string LastRevisionId { get; set; }

The maximum (inclusive) revision allowed for validating messages. If empty or not present, allow any revision to be validated against first_revision or any revision created after.

Property Value
TypeDescription
string

Schema

public string Schema { get; set; }

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.

Property Value
TypeDescription
string

SchemaAsSchemaName

public SchemaName SchemaAsSchemaName { get; set; }

SchemaName-typed view over the Schema resource name property.

Property Value
TypeDescription
SchemaName