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:
StringOptional. Required properties of Type.OBJECT.
$msg->description()/$msg->description($value)Type:
StringOptional. 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:
BoolOptional. Indicates if the value may be null.
$msg->unique_items()/$msg->unique_items($value)Type:
BoolOptional. 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:
StringOptional. 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:
StringOptional. 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:
StringOptional. The title of the schema.
$msg->min_items()/$msg->min_items($value)Type:
Int64Optional. Minimum number of the elements for Type.ARRAY.
$msg->max_items()/$msg->max_items($value)Type:
Int64Optional. Maximum number of the elements for Type.ARRAY.
$msg->minimum()/$msg->minimum($value)Type:
DoubleOptional. Minimum value for Type.INTEGER and Type.NUMBER.
$msg->maximum()/$msg->maximum($value)Type:
DoubleOptional. Maximum value for Type.INTEGER and Type.NUMBER.
Enum: Schema::Type
TYPE_UNSPECIFIED=>0STRING=>1INTEGER=>2NUMBER=>3BOOLEAN=>4OBJECT=>5ARRAY=>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.