Discovery Engine v1 API - Class Schema (1.0.0-beta02)

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

Reference documentation and code samples for the Discovery Engine v1 API class Schema.

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

Inheritance

object > Schema

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

Schema()

public Schema()

Schema(Schema)

public Schema(Schema other)
Parameter
NameDescription
otherSchema

Properties

HasJsonSchema

public bool HasJsonSchema { get; }

Gets whether the "json_schema" field is set

Property Value
TypeDescription
bool

JsonSchema

public string JsonSchema { get; set; }

The JSON representation of the schema.

Property Value
TypeDescription
string

Name

public string Name { get; set; }

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.

Property Value
TypeDescription
string

SchemaCase

public Schema.SchemaOneofCase SchemaCase { get; }
Property Value
TypeDescription
SchemaSchemaOneofCase

SchemaName

public SchemaName SchemaName { get; set; }

SchemaName-typed view over the Name resource name property.

Property Value
TypeDescription
SchemaName

StructSchema

public Struct StructSchema { get; set; }

The structured representation of the schema.

Property Value
TypeDescription
Struct