// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v6.33.2
// source: google/cloud/aiplatform/v1beta1/openapi.proto

package aiplatformpb

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"

	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	structpb "google.golang.org/protobuf/types/known/structpb"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

// Type contains the list of OpenAPI data types as defined by
// https://swagger.io/docs/specification/data-models/data-types/
type Type int32

const (
	// Not specified, should not be used.
	Type_TYPE_UNSPECIFIED Type = 0
	// OpenAPI string type
	Type_STRING Type = 1
	// OpenAPI number type
	Type_NUMBER Type = 2
	// OpenAPI integer type
	Type_INTEGER Type = 3
	// OpenAPI boolean type
	Type_BOOLEAN Type = 4
	// OpenAPI array type
	Type_ARRAY Type = 5
	// OpenAPI object type
	Type_OBJECT Type = 6
)

// Enum value maps for Type.
var (
	Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "STRING",
		2: "NUMBER",
		3: "INTEGER",
		4: "BOOLEAN",
		5: "ARRAY",
		6: "OBJECT",
	}
	Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"STRING":           1,
		"NUMBER":           2,
		"INTEGER":          3,
		"BOOLEAN":          4,
		"ARRAY":            5,
		"OBJECT":           6,
	}
)

func (x Type) Enum() *Type {
	p := new(Type)
	*p = x
	return p
}

func (x Type) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Type) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_aiplatform_v1beta1_openapi_proto_enumTypes[0].Descriptor()
}

func (Type) Type() protoreflect.EnumType {
	return &file_google_cloud_aiplatform_v1beta1_openapi_proto_enumTypes[0]
}

func (x Type) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Type.Descriptor instead.
func (Type) EnumDescriptor() ([]byte, []int) {
	return file_google_cloud_aiplatform_v1beta1_openapi_proto_rawDescGZIP(), []int{0}
}

// Schema is used to define the format of input/output data. Represents a select
// subset of an [OpenAPI 3.0 schema
// object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may
// be added in the future as needed.
type Schema struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. The type of the data.
	Type Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.aiplatform.v1beta1.Type" json:"type,omitempty"`
	// Optional. The format of the data.
	// Supported formats:
	//
	//	for NUMBER type: "float", "double"
	//	for INTEGER type: "int32", "int64"
	//	for STRING type: "email", "byte", etc
	Format string `protobuf:"bytes,7,opt,name=format,proto3" json:"format,omitempty"`
	// Optional. The title of the Schema.
	Title string `protobuf:"bytes,24,opt,name=title,proto3" json:"title,omitempty"`
	// Optional. The description of the data.
	Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	// Optional. Indicates if the value may be null.
	Nullable bool `protobuf:"varint,6,opt,name=nullable,proto3" json:"nullable,omitempty"`
	// Optional. Default value of the data.
	Default *structpb.Value `protobuf:"bytes,23,opt,name=default,proto3" json:"default,omitempty"`
	// Optional. SCHEMA FIELDS FOR TYPE ARRAY
	// Schema of the elements of Type.ARRAY.
	Items *Schema `protobuf:"bytes,2,opt,name=items,proto3" json:"items,omitempty"`
	// Optional. Minimum number of the elements for Type.ARRAY.
	MinItems int64 `protobuf:"varint,21,opt,name=min_items,json=minItems,proto3" json:"min_items,omitempty"`
	// Optional. Maximum number of the elements for Type.ARRAY.
	MaxItems int64 `protobuf:"varint,22,opt,name=max_items,json=maxItems,proto3" json:"max_items,omitempty"`
	// Optional. Possible values of the element of Type.STRING with enum format.
	// For example we can define an Enum Direction as :
	// {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
	Enum []string `protobuf:"bytes,9,rep,name=enum,proto3" json:"enum,omitempty"`
	// Optional. SCHEMA FIELDS FOR TYPE OBJECT
	// Properties of Type.OBJECT.
	Properties map[string]*Schema `protobuf:"bytes,3,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Optional. The order of the properties.
	// Not a standard field in open api spec. Only used to support the order of
	// the properties.
	PropertyOrdering []string `protobuf:"bytes,25,rep,name=property_ordering,json=propertyOrdering,proto3" json:"property_ordering,omitempty"`
	// Optional. Required properties of Type.OBJECT.
	Required []string `protobuf:"bytes,5,rep,name=required,proto3" json:"required,omitempty"`
	// Optional. Minimum number of the properties for Type.OBJECT.
	MinProperties int64 `protobuf:"varint,14,opt,name=min_properties,json=minProperties,proto3" json:"min_properties,omitempty"`
	// Optional. Maximum number of the properties for Type.OBJECT.
	MaxProperties int64 `protobuf:"varint,15,opt,name=max_properties,json=maxProperties,proto3" json:"max_properties,omitempty"`
	// Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER
	// Minimum value of the Type.INTEGER and Type.NUMBER
	Minimum float64 `protobuf:"fixed64,16,opt,name=minimum,proto3" json:"minimum,omitempty"`
	// Optional. Maximum value of the Type.INTEGER and Type.NUMBER
	Maximum float64 `protobuf:"fixed64,17,opt,name=maximum,proto3" json:"maximum,omitempty"`
	// Optional. SCHEMA FIELDS FOR TYPE STRING
	// Minimum length of the Type.STRING
	MinLength int64 `protobuf:"varint,18,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"`
	// Optional. Maximum length of the Type.STRING
	MaxLength int64 `protobuf:"varint,19,opt,name=max_length,json=maxLength,proto3" json:"max_length,omitempty"`
	// Optional. Pattern of the Type.STRING to restrict a string to a regular
	// expression.
	Pattern string `protobuf:"bytes,20,opt,name=pattern,proto3" json:"pattern,omitempty"`
	// Optional. Example of the object. Will only populated when the object is the
	// root.
	Example *structpb.Value `protobuf:"bytes,4,opt,name=example,proto3" json:"example,omitempty"`
	// Optional. The value should be validated against any (one or more) of the
	// subschemas in the list.
	AnyOf []*Schema `protobuf:"bytes,11,rep,name=any_of,json=anyOf,proto3" json:"any_of,omitempty"`
	// Optional. Can either be a boolean or an object; controls the presence of
	// additional properties.
	AdditionalProperties *structpb.Value `protobuf:"bytes,26,opt,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
	// 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
	Ref string `protobuf:"bytes,27,opt,name=ref,proto3" json:"ref,omitempty"`
	// Optional. A map of definitions for use by `ref`
	// Only allowed at the root of the schema.
	Defs          map[string]*Schema `protobuf:"bytes,28,rep,name=defs,proto3" json:"defs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Schema) Reset() {
	*x = Schema{}
	mi := &file_google_cloud_aiplatform_v1beta1_openapi_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Schema) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Schema) ProtoMessage() {}

func (x *Schema) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_aiplatform_v1beta1_openapi_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Schema.ProtoReflect.Descriptor instead.
func (*Schema) Descriptor() ([]byte, []int) {
	return file_google_cloud_aiplatform_v1beta1_openapi_proto_rawDescGZIP(), []int{0}
}

func (x *Schema) GetType() Type {
	if x != nil {
		return x.Type
	}
	return Type_TYPE_UNSPECIFIED
}

func (x *Schema) GetFormat() string {
	if x != nil {
		return x.Format
	}
	return ""
}

func (x *Schema) GetTitle() string {
	if x != nil {
		return x.Title
	}
	return ""
}

func (x *Schema) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *Schema) GetNullable() bool {
	if x != nil {
		return x.Nullable
	}
	return false
}

func (x *Schema) GetDefault() *structpb.Value {
	if x != nil {
		return x.Default
	}
	return nil
}

func (x *Schema) GetItems() *Schema {
	if x != nil {
		return x.Items
	}
	return nil
}

func (x *Schema) GetMinItems() int64 {
	if x != nil {
		return x.MinItems
	}
	return 0
}

func (x *Schema) GetMaxItems() int64 {
	if x != nil {
		return x.MaxItems
	}
	return 0
}

func (x *Schema) GetEnum() []string {
	if x != nil {
		return x.Enum
	}
	return nil
}

func (x *Schema) GetProperties() map[string]*Schema {
	if x != nil {
		return x.Properties
	}
	return nil
}

func (x *Schema) GetPropertyOrdering() []string {
	if x != nil {
		return x.PropertyOrdering
	}
	return nil
}

func (x *Schema) GetRequired() []string {
	if x != nil {
		return x.Required
	}
	return nil
}

func (x *Schema) GetMinProperties() int64 {
	if x != nil {
		return x.MinProperties
	}
	return 0
}

func (x *Schema) GetMaxProperties() int64 {
	if x != nil {
		return x.MaxProperties
	}
	return 0
}

func (x *Schema) GetMinimum() float64 {
	if x != nil {
		return x.Minimum
	}
	return 0
}

func (x *Schema) GetMaximum() float64 {
	if x != nil {
		return x.Maximum
	}
	return 0
}

func (x *Schema) GetMinLength() int64 {
	if x != nil {
		return x.MinLength
	}
	return 0
}

func (x *Schema) GetMaxLength() int64 {
	if x != nil {
		return x.MaxLength
	}
	return 0
}

func (x *Schema) GetPattern() string {
	if x != nil {
		return x.Pattern
	}
	return ""
}

func (x *Schema) GetExample() *structpb.Value {
	if x != nil {
		return x.Example
	}
	return nil
}

func (x *Schema) GetAnyOf() []*Schema {
	if x != nil {
		return x.AnyOf
	}
	return nil
}

func (x *Schema) GetAdditionalProperties() *structpb.Value {
	if x != nil {
		return x.AdditionalProperties
	}
	return nil
}

func (x *Schema) GetRef() string {
	if x != nil {
		return x.Ref
	}
	return ""
}

func (x *Schema) GetDefs() map[string]*Schema {
	if x != nil {
		return x.Defs
	}
	return nil
}

var File_google_cloud_aiplatform_v1beta1_openapi_proto protoreflect.FileDescriptor

const file_google_cloud_aiplatform_v1beta1_openapi_proto_rawDesc = "" +
	"\n" +
	"-google/cloud/aiplatform/v1beta1/openapi.proto\x12\x1fgoogle.cloud.aiplatform.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xc9\n" +
	"\n" +
	"\x06Schema\x12>\n" +
	"\x04type\x18\x01 \x01(\x0e2%.google.cloud.aiplatform.v1beta1.TypeB\x03\xe0A\x01R\x04type\x12\x1b\n" +
	"\x06format\x18\a \x01(\tB\x03\xe0A\x01R\x06format\x12\x19\n" +
	"\x05title\x18\x18 \x01(\tB\x03\xe0A\x01R\x05title\x12%\n" +
	"\vdescription\x18\b \x01(\tB\x03\xe0A\x01R\vdescription\x12\x1f\n" +
	"\bnullable\x18\x06 \x01(\bB\x03\xe0A\x01R\bnullable\x125\n" +
	"\adefault\x18\x17 \x01(\v2\x16.google.protobuf.ValueB\x03\xe0A\x01R\adefault\x12B\n" +
	"\x05items\x18\x02 \x01(\v2'.google.cloud.aiplatform.v1beta1.SchemaB\x03\xe0A\x01R\x05items\x12 \n" +
	"\tmin_items\x18\x15 \x01(\x03B\x03\xe0A\x01R\bminItems\x12 \n" +
	"\tmax_items\x18\x16 \x01(\x03B\x03\xe0A\x01R\bmaxItems\x12\x17\n" +
	"\x04enum\x18\t \x03(\tB\x03\xe0A\x01R\x04enum\x12\\\n" +
	"\n" +
	"properties\x18\x03 \x03(\v27.google.cloud.aiplatform.v1beta1.Schema.PropertiesEntryB\x03\xe0A\x01R\n" +
	"properties\x120\n" +
	"\x11property_ordering\x18\x19 \x03(\tB\x03\xe0A\x01R\x10propertyOrdering\x12\x1f\n" +
	"\brequired\x18\x05 \x03(\tB\x03\xe0A\x01R\brequired\x12*\n" +
	"\x0emin_properties\x18\x0e \x01(\x03B\x03\xe0A\x01R\rminProperties\x12*\n" +
	"\x0emax_properties\x18\x0f \x01(\x03B\x03\xe0A\x01R\rmaxProperties\x12\x1d\n" +
	"\aminimum\x18\x10 \x01(\x01B\x03\xe0A\x01R\aminimum\x12\x1d\n" +
	"\amaximum\x18\x11 \x01(\x01B\x03\xe0A\x01R\amaximum\x12\"\n" +
	"\n" +
	"min_length\x18\x12 \x01(\x03B\x03\xe0A\x01R\tminLength\x12\"\n" +
	"\n" +
	"max_length\x18\x13 \x01(\x03B\x03\xe0A\x01R\tmaxLength\x12\x1d\n" +
	"\apattern\x18\x14 \x01(\tB\x03\xe0A\x01R\apattern\x125\n" +
	"\aexample\x18\x04 \x01(\v2\x16.google.protobuf.ValueB\x03\xe0A\x01R\aexample\x12C\n" +
	"\x06any_of\x18\v \x03(\v2'.google.cloud.aiplatform.v1beta1.SchemaB\x03\xe0A\x01R\x05anyOf\x12P\n" +
	"\x15additional_properties\x18\x1a \x01(\v2\x16.google.protobuf.ValueB\x03\xe0A\x01R\x14additionalProperties\x12\x15\n" +
	"\x03ref\x18\x1b \x01(\tB\x03\xe0A\x01R\x03ref\x12J\n" +
	"\x04defs\x18\x1c \x03(\v21.google.cloud.aiplatform.v1beta1.Schema.DefsEntryB\x03\xe0A\x01R\x04defs\x1af\n" +
	"\x0fPropertiesEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12=\n" +
	"\x05value\x18\x02 \x01(\v2'.google.cloud.aiplatform.v1beta1.SchemaR\x05value:\x028\x01\x1a`\n" +
	"\tDefsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12=\n" +
	"\x05value\x18\x02 \x01(\v2'.google.cloud.aiplatform.v1beta1.SchemaR\x05value:\x028\x01*e\n" +
	"\x04Type\x12\x14\n" +
	"\x10TYPE_UNSPECIFIED\x10\x00\x12\n" +
	"\n" +
	"\x06STRING\x10\x01\x12\n" +
	"\n" +
	"\x06NUMBER\x10\x02\x12\v\n" +
	"\aINTEGER\x10\x03\x12\v\n" +
	"\aBOOLEAN\x10\x04\x12\t\n" +
	"\x05ARRAY\x10\x05\x12\n" +
	"\n" +
	"\x06OBJECT\x10\x06B\xe3\x01\n" +
	"#com.google.cloud.aiplatform.v1beta1B\fOpenApiProtoP\x01ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb\xaa\x02\x1fGoogle.Cloud.AIPlatform.V1Beta1\xca\x02\x1fGoogle\\Cloud\\AIPlatform\\V1beta1\xea\x02\"Google::Cloud::AIPlatform::V1beta1b\x06proto3"

var (
	file_google_cloud_aiplatform_v1beta1_openapi_proto_rawDescOnce sync.Once
	file_google_cloud_aiplatform_v1beta1_openapi_proto_rawDescData []byte
)

func file_google_cloud_aiplatform_v1beta1_openapi_proto_rawDescGZIP() []byte {
	file_google_cloud_aiplatform_v1beta1_openapi_proto_rawDescOnce.Do(func() {
		file_google_cloud_aiplatform_v1beta1_openapi_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_aiplatform_v1beta1_openapi_proto_rawDesc), len(file_google_cloud_aiplatform_v1beta1_openapi_proto_rawDesc)))
	})
	return file_google_cloud_aiplatform_v1beta1_openapi_proto_rawDescData
}

var file_google_cloud_aiplatform_v1beta1_openapi_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_google_cloud_aiplatform_v1beta1_openapi_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_google_cloud_aiplatform_v1beta1_openapi_proto_goTypes = []any{
	(Type)(0),              // 0: google.cloud.aiplatform.v1beta1.Type
	(*Schema)(nil),         // 1: google.cloud.aiplatform.v1beta1.Schema
	nil,                    // 2: google.cloud.aiplatform.v1beta1.Schema.PropertiesEntry
	nil,                    // 3: google.cloud.aiplatform.v1beta1.Schema.DefsEntry
	(*structpb.Value)(nil), // 4: google.protobuf.Value
}
var file_google_cloud_aiplatform_v1beta1_openapi_proto_depIdxs = []int32{
	0,  // 0: google.cloud.aiplatform.v1beta1.Schema.type:type_name -> google.cloud.aiplatform.v1beta1.Type
	4,  // 1: google.cloud.aiplatform.v1beta1.Schema.default:type_name -> google.protobuf.Value
	1,  // 2: google.cloud.aiplatform.v1beta1.Schema.items:type_name -> google.cloud.aiplatform.v1beta1.Schema
	2,  // 3: google.cloud.aiplatform.v1beta1.Schema.properties:type_name -> google.cloud.aiplatform.v1beta1.Schema.PropertiesEntry
	4,  // 4: google.cloud.aiplatform.v1beta1.Schema.example:type_name -> google.protobuf.Value
	1,  // 5: google.cloud.aiplatform.v1beta1.Schema.any_of:type_name -> google.cloud.aiplatform.v1beta1.Schema
	4,  // 6: google.cloud.aiplatform.v1beta1.Schema.additional_properties:type_name -> google.protobuf.Value
	3,  // 7: google.cloud.aiplatform.v1beta1.Schema.defs:type_name -> google.cloud.aiplatform.v1beta1.Schema.DefsEntry
	1,  // 8: google.cloud.aiplatform.v1beta1.Schema.PropertiesEntry.value:type_name -> google.cloud.aiplatform.v1beta1.Schema
	1,  // 9: google.cloud.aiplatform.v1beta1.Schema.DefsEntry.value:type_name -> google.cloud.aiplatform.v1beta1.Schema
	10, // [10:10] is the sub-list for method output_type
	10, // [10:10] is the sub-list for method input_type
	10, // [10:10] is the sub-list for extension type_name
	10, // [10:10] is the sub-list for extension extendee
	0,  // [0:10] is the sub-list for field type_name
}

func init() { file_google_cloud_aiplatform_v1beta1_openapi_proto_init() }
func file_google_cloud_aiplatform_v1beta1_openapi_proto_init() {
	if File_google_cloud_aiplatform_v1beta1_openapi_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_aiplatform_v1beta1_openapi_proto_rawDesc), len(file_google_cloud_aiplatform_v1beta1_openapi_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_cloud_aiplatform_v1beta1_openapi_proto_goTypes,
		DependencyIndexes: file_google_cloud_aiplatform_v1beta1_openapi_proto_depIdxs,
		EnumInfos:         file_google_cloud_aiplatform_v1beta1_openapi_proto_enumTypes,
		MessageInfos:      file_google_cloud_aiplatform_v1beta1_openapi_proto_msgTypes,
	}.Build()
	File_google_cloud_aiplatform_v1beta1_openapi_proto = out.File
	file_google_cloud_aiplatform_v1beta1_openapi_proto_goTypes = nil
	file_google_cloud_aiplatform_v1beta1_openapi_proto_depIdxs = nil
}
