Interface CreateSchemaRequestOrBuilder (1.132.2)

public interface CreateSchemaRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getParent()

public abstract String getParent()

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

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

Returns
Type Description
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

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

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

Returns
Type Description
ByteString

The bytes for parent.

getSchema()

public abstract Schema getSchema()

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.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Schema

The schema.

getSchemaId()

public abstract String getSchemaId()

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/pubsub-basics#resource_names for resource name constraints.

string schema_id = 3;

Returns
Type Description
String

The schemaId.

getSchemaIdBytes()

public abstract ByteString getSchemaIdBytes()

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/pubsub-basics#resource_names for resource name constraints.

string schema_id = 3;

Returns
Type Description
ByteString

The bytes for schemaId.

getSchemaOrBuilder()

public abstract SchemaOrBuilder getSchemaOrBuilder()

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.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SchemaOrBuilder

hasSchema()

public abstract boolean hasSchema()

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.

.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the schema field is set.