Class CreateSchemaRequest (2.4.0)

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

Request for the CreateSchema method.

Inheritance

Object > CreateSchemaRequest

Implements

Google.Protobuf.IMessage<CreateSchemaRequest>, IEquatable<CreateSchemaRequest>, Google.Protobuf.IDeepCloneable<CreateSchemaRequest>, Google.Protobuf.IBufferMessage, Google.Protobuf.IMessage

Namespace

Google.Cloud.PubSub.V1

Assembly

Google.Cloud.PubSub.V1.dll

Constructors

CreateSchemaRequest()

public CreateSchemaRequest()

CreateSchemaRequest(CreateSchemaRequest)

public CreateSchemaRequest(CreateSchemaRequest other)
Parameter
NameDescription
otherCreateSchemaRequest

Properties

Parent

public string Parent { get; set; }

Required. The name of the project in which to create the schema. Format is projects/{project-id}.

Property Value
TypeDescription
String

ParentAsProjectName

public ProjectName ParentAsProjectName { get; set; }

ProjectName-typed view over the Parent resource name property.

Property Value
TypeDescription
ProjectName

Schema

public Schema Schema { get; set; }

Required. The schema object to create.

This schema's name parameter is ignored. The schema object returned by CreateSchema will have a name made using the given parent and schema_id.

Property Value
TypeDescription
Schema

SchemaId

public string SchemaId { get; set; }

The ID to use for the schema, which will become the final component of the schema's resource name.

See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints.

Property Value
TypeDescription
String