Reference documentation and code samples for the Google Cloud Managed Kafka Schema Registry V1 Client class LookupVersionRequest.
Request for LookupVersion.
Generated from protobuf message google.cloud.managedkafka.schemaregistry.v1.LookupVersionRequest
Namespace
Google \ Cloud \ ManagedKafka \ SchemaRegistry \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The subject to lookup the schema in. Structured like: |
↳ schema_type |
int
Optional. The schema type of the schema. |
↳ schema |
string
Required. The schema payload |
↳ references |
array<Schema\SchemaReference>
Optional. The schema references used by the schema. |
↳ normalize |
bool
Optional. If true, the schema will be normalized before being looked up. The default is false. |
↳ deleted |
bool
Optional. If true, soft-deleted versions will be included in lookup, no matter if the subject is active or soft-deleted. If false, soft-deleted versions will be excluded. The default is false. |
getParent
Required. The subject to lookup the schema in. Structured like:
projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}
or
projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The subject to lookup the schema in. Structured like:
projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}
or
projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSchemaType
Optional. The schema type of the schema.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasSchemaType
clearSchemaType
setSchemaType
Optional. The schema type of the schema.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSchema
Required. The schema payload
| Returns | |
|---|---|
| Type | Description |
string |
|
setSchema
Required. The schema payload
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getReferences
Optional. The schema references used by the schema.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setReferences
Optional. The schema references used by the schema.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Schema\SchemaReference>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNormalize
Optional. If true, the schema will be normalized before being looked up.
The default is false.
| Returns | |
|---|---|
| Type | Description |
bool |
|
hasNormalize
clearNormalize
setNormalize
Optional. If true, the schema will be normalized before being looked up.
The default is false.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDeleted
Optional. If true, soft-deleted versions will be included in lookup, no matter if the subject is active or soft-deleted. If false, soft-deleted versions will be excluded. The default is false.
| Returns | |
|---|---|
| Type | Description |
bool |
|
hasDeleted
clearDeleted
setDeleted
Optional. If true, soft-deleted versions will be included in lookup, no matter if the subject is active or soft-deleted. If false, soft-deleted versions will be excluded. The default is false.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
parent |
string
Required. The subject to lookup the schema in. Structured like:
|
schema |
string
Required. The schema payload |
| Returns | |
|---|---|
| Type | Description |
LookupVersionRequest |
|