Gemini Enterprise for Customer Experience v1 API - Class Schema (1.0.0-beta01)

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

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class Schema.

Represents a select subset of an OpenAPI 3.0 schema object.

Inheritance

object > Schema

Namespace

Google.Cloud.Ces.V1

Assembly

Google.Cloud.Ces.V1.dll

Constructors

Schema()

 public Schema() 

Schema(Schema)

 public Schema(Schema other) 
Parameter
Name
Description
other

Properties

AdditionalProperties

 public Schema AdditionalProperties { get; set; } 

Optional. Can either be a boolean or an object, controls the presence of additional properties.

Property Value
Type
Description

AnyOf

 public RepeatedField<Schema> AnyOf { get; } 

Optional. The value should be validated against any (one or more) of the subschemas in the list.

Property Value
Type
Description

Default

 public Value Default { get; set; } 

Optional. Default value of the data.

Property Value
Type
Description

Defs

 public MapField<string, Schema> Defs { get; } 

Optional. A map of definitions for use by ref . Only allowed at the root of the schema.

Property Value
Type
Description

Description

 public string Description { get; set; } 

Optional. The description of the data.

Property Value
Type
Description

Enum

 public RepeatedField<string> Enum { get; } 

Optional. Possible values of the element of primitive type with enum format. Examples:

  1. We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
  2. We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
Property Value
Type
Description

HasMaximum

 public bool HasMaximum { get; } 

Gets whether the "maximum" field is set

Property Value
Type
Description

HasMinimum

 public bool HasMinimum { get; } 

Gets whether the "minimum" field is set

Property Value
Type
Description

Items

 public Schema Items { get; set; } 

Optional. Schema of the elements of Type.ARRAY.

Property Value
Type
Description

MaxItems

 public long MaxItems { get; set; } 

Optional. Maximum number of the elements for Type.ARRAY.

Property Value
Type
Description

Maximum

 public double Maximum { get; set; } 

Optional. Maximum value for Type.INTEGER and Type.NUMBER.

Property Value
Type
Description

MinItems

 public long MinItems { get; set; } 

Optional. Minimum number of the elements for Type.ARRAY.

Property Value
Type
Description

Minimum

 public double Minimum { get; set; } 

Optional. Minimum value for Type.INTEGER and Type.NUMBER.

Property Value
Type
Description

Nullable

 public bool Nullable { get; set; } 

Optional. Indicates if the value may be null.

Property Value
Type
Description

PrefixItems

 public RepeatedField<Schema> PrefixItems { get; } 

Optional. Schemas of initial elements of Type.ARRAY.

Property Value
Type
Description

Properties

 public MapField<string, Schema> Properties { get; } 

Optional. Properties of Type.OBJECT.

Property Value
Type
Description

Ref

 public string Ref { get; set; } 

Optional. Allows indirect references between schema nodes. The value should be a valid reference to a child of the root defs .

For example, the following schema defines a reference to a schema node named "Pet":

 type: object
properties:
  pet:
    ref: #/defs/Pet
defs:
  Pet:
    type: object
    properties:
      name:
        type: string 

The value of the "pet" property is a reference to the schema node named "Pet". See details in https://json-schema.org/understanding-json-schema/structuring .

Property Value
Type
Description

Required

 public RepeatedField<string> Required { get; } 

Optional. Required properties of Type.OBJECT.

Property Value
Type
Description

Title

 public string Title { get; set; } 

Optional. The title of the schema.

Property Value
Type
Description

Type

 public Schema.Types.Type Type { get; set; } 

Required. The type of the data.

Property Value
Type
Description

UniqueItems

 public bool UniqueItems { get; set; } 

Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY.

Property Value
Type
Description
Create a Mobile Website
View Site in Mobile | Classic
Share by: