Google Cloud Discovery Engine V1beta Client - Class Schema (0.11.3)

Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class Schema.

Defines the structure and layout of a type of document data.

Generated from protobuf message google.cloud.discoveryengine.v1beta.Schema

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ struct_schema Google\Protobuf\Struct

The structured representation of the schema.

↳ json_schema string

The JSON representation of the schema.

↳ name string

Immutable. The full resource name of the schema, in the format of projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.

getStructSchema

The structured representation of the schema.

Returns
Type Description
Google\Protobuf\Struct|null

hasStructSchema

setStructSchema

The structured representation of the schema.

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this

getJsonSchema

The JSON representation of the schema.

Returns
Type Description
string

hasJsonSchema

setJsonSchema

The JSON representation of the schema.

Parameter
Name Description
var string
Returns
Type Description
$this

getName

Immutable. The full resource name of the schema, in the format of projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}.

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

Returns
Type Description
string

setName

Immutable. The full resource name of the schema, in the format of projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}.

This field must be a UTF-8 encoded string with a length limit of 1024 characters.

Parameter
Name Description
var string
Returns
Type Description
$this

getSchema

Returns
Type Description
string