NAME

Google::Cloud::Ces::V1beta::Schema - Compiled Protocol Buffers messages for google/cloud/ces/v1beta/schema.proto

SYNOPSIS

use Google::Cloud::Ces::V1beta::Schema;

my $msg = Google::Cloud::Ces::V1beta::Schema::Schema->new({
    type => $type,
    properties => $properties,
    required => $required,
    description => $description,
});

# Read or update a field
my $val = $msg->type();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Ces::V1beta::Schema::Schema->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/ces/v1beta/schema.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Ces::V1beta::Schema::Schema

Represents a select subset of an OpenAPI 3.0 schema object.

Inherits from Protobuf::Message.

Accessors

  • $msg->type() / $msg->type($value)

    Type: Enum (Google::Cloud::Ces::V1beta::Schema::Type)

    Required. The type of the data.

  • $msg->properties() / $msg->properties($value)

    Type: Message (Google::Cloud::Ces::V1beta::Schema::Schema::PropertiesEntry)

    Optional. Properties of Type.OBJECT.

  • $msg->required() / $msg->required($value)

    Type: String

    Optional. Required properties of Type.OBJECT.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. The description of the data.

  • $msg->items() / $msg->items($value)

    Type: Message (Google::Cloud::Ces::V1beta::Schema::Schema)

    Optional. Schema of the elements of Type.ARRAY.

  • $msg->nullable() / $msg->nullable($value)

    Type: Bool

    Optional. Indicates if the value may be null.

  • $msg->unique_items() / $msg->unique_items($value)

    Type: Bool

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

  • $msg->prefix_items() / $msg->prefix_items($value)

    Type: Message (Google::Cloud::Ces::V1beta::Schema::Schema)

    Optional. Schemas of initial elements of Type.ARRAY.

  • $msg->additional_properties() / $msg->additional_properties($value)

    Type: Message (Google::Cloud::Ces::V1beta::Schema::Schema)

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

  • $msg->any_of() / $msg->any_of($value)

    Type: Message (Google::Cloud::Ces::V1beta::Schema::Schema)

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

  • $msg->enum() / $msg->enum($value)

    Type: String

    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"]}

  • $msg->default() / $msg->default($value)

    Type: Message (Google::Protobuf::Struct::Value)

    Optional. Default value of the data.

  • $msg->ref() / $msg->ref($value)

    Type: String

    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.

  • $msg->defs() / $msg->defs($value)

    Type: Message (Google::Cloud::Ces::V1beta::Schema::Schema::DefsEntry)

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

  • $msg->title() / $msg->title($value)

    Type: String

    Optional. The title of the schema.

  • $msg->min_items() / $msg->min_items($value)

    Type: Int64

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

  • $msg->max_items() / $msg->max_items($value)

    Type: Int64

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

  • $msg->minimum() / $msg->minimum($value)

    Type: Double

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

  • $msg->maximum() / $msg->maximum($value)

    Type: Double

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

Enum: Schema::Type

  • TYPE_UNSPECIFIED => 0

  • STRING => 1

  • INTEGER => 2

  • NUMBER => 3

  • BOOLEAN => 4

  • OBJECT => 5

  • ARRAY => 6

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Ces::V1beta::Schema::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.