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

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
Name Description
other SchemaSettings

Properties

Encoding

public Encoding Encoding { get; set; }

Optional. The encoding of messages validated against schema.

Property Value
Type Description
Encoding

FirstRevisionId

public string FirstRevisionId { get; set; }

Optional. 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
Type Description
string

LastRevisionId

public string LastRevisionId { get; set; }

Optional. 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
Type Description
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
Type Description
string

SchemaAsSchemaName

public SchemaName SchemaAsSchemaName { get; set; }

SchemaName-typed view over the Schema resource name property.

Property Value
Type Description
SchemaName