Google Cloud Managed Kafka Schema Registry V1 Client - Class GetSchemaConfigRequest (0.1.1)

Reference documentation and code samples for the Google Cloud Managed Kafka Schema Registry V1 Client class GetSchemaConfigRequest.

Request for getting config.

Generated from protobuf message google.cloud.managedkafka.schemaregistry.v1.GetSchemaConfigRequest

Namespace

Google \ Cloud \ ManagedKafka \ SchemaRegistry \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. The resource name to get the config for. It can be either of following: * * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config: Get config at global level. * * projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config/{subject}: Get config for a specific subject.

↳ default_to_global bool

Optional. If true, the config will fall back to the config at the global level if no subject level config is found.

getName

Required. The resource name to get the config for. It can be either of following:

  • projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config: Get config at global level.
  • projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config/{subject}: Get config for a specific subject.
Returns
Type Description
string

setName

Required. The resource name to get the config for. It can be either of following:

  • projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config: Get config at global level.
  • projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config/{subject}: Get config for a specific subject.
Parameter
Name Description
var string
Returns
Type Description
$this

getDefaultToGlobal

Optional. If true, the config will fall back to the config at the global level if no subject level config is found.

Returns
Type Description
bool

hasDefaultToGlobal

clearDefaultToGlobal

setDefaultToGlobal

Optional. If true, the config will fall back to the config at the global level if no subject level config is found.

Parameter
Name Description
var bool
Returns
Type Description
$this

static::build

Parameter
Name Description
name string

Required. The resource name to get the config for. It can be either of following:

  • projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config: Get config at global level.
  • projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/config/{subject}: Get config for a specific subject. Please see ManagedSchemaRegistryClient::schemaConfigName() for help formatting this field.
Returns
Type Description
GetSchemaConfigRequest