// 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/example.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"
)

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)
)

// A single example of a conversation with the model.
type ContentsExample struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. The content of the conversation with the model that resulted in
	// the expected output.
	Contents []*Content `protobuf:"bytes,1,rep,name=contents,proto3" json:"contents,omitempty"`
	// Required. The expected output for the given `contents`. To represent
	// multi-step reasoning, this is a repeated field that contains the iterative
	// steps of the expected output.
	ExpectedContents []*ContentsExample_ExpectedContent `protobuf:"bytes,2,rep,name=expected_contents,json=expectedContents,proto3" json:"expected_contents,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*ContentsExample) ProtoMessage() {}

func (x *ContentsExample) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_aiplatform_v1beta1_example_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 ContentsExample.ProtoReflect.Descriptor instead.
func (*ContentsExample) Descriptor() ([]byte, []int) {
	return file_google_cloud_aiplatform_v1beta1_example_proto_rawDescGZIP(), []int{0}
}

func (x *ContentsExample) GetContents() []*Content {
	if x != nil {
		return x.Contents
	}
	return nil
}

func (x *ContentsExample) GetExpectedContents() []*ContentsExample_ExpectedContent {
	if x != nil {
		return x.ExpectedContents
	}
	return nil
}

// A ContentsExample to be used with GenerateContent alongside information
// required for storage and retrieval with Example Store.
type StoredContentsExample struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Optional. (Optional) the search key used for retrieval. If not provided at
	// upload-time, the search key will be generated from
	// `contents_example.contents` using the method provided by
	// `search_key_generation_method`. The generated search key will be included
	// in retrieved examples.
	SearchKey string `protobuf:"bytes,1,opt,name=search_key,json=searchKey,proto3" json:"search_key,omitempty"`
	// Required. The example to be used with GenerateContent.
	ContentsExample *ContentsExample `protobuf:"bytes,2,opt,name=contents_example,json=contentsExample,proto3" json:"contents_example,omitempty"`
	// Optional. The method used to generate the search key from
	// `contents_example.contents`. This is ignored when uploading an example if
	// `search_key` is provided.
	SearchKeyGenerationMethod *StoredContentsExample_SearchKeyGenerationMethod `protobuf:"bytes,3,opt,name=search_key_generation_method,json=searchKeyGenerationMethod,proto3" json:"search_key_generation_method,omitempty"`
	unknownFields             protoimpl.UnknownFields
	sizeCache                 protoimpl.SizeCache
}

func (x *StoredContentsExample) Reset() {
	*x = StoredContentsExample{}
	mi := &file_google_cloud_aiplatform_v1beta1_example_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*StoredContentsExample) ProtoMessage() {}

func (x *StoredContentsExample) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_aiplatform_v1beta1_example_proto_msgTypes[1]
	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 StoredContentsExample.ProtoReflect.Descriptor instead.
func (*StoredContentsExample) Descriptor() ([]byte, []int) {
	return file_google_cloud_aiplatform_v1beta1_example_proto_rawDescGZIP(), []int{1}
}

func (x *StoredContentsExample) GetSearchKey() string {
	if x != nil {
		return x.SearchKey
	}
	return ""
}

func (x *StoredContentsExample) GetContentsExample() *ContentsExample {
	if x != nil {
		return x.ContentsExample
	}
	return nil
}

func (x *StoredContentsExample) GetSearchKeyGenerationMethod() *StoredContentsExample_SearchKeyGenerationMethod {
	if x != nil {
		return x.SearchKeyGenerationMethod
	}
	return nil
}

// A single step of the expected output.
type ContentsExample_ExpectedContent struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. A single step's content.
	Content       *Content `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ContentsExample_ExpectedContent) Reset() {
	*x = ContentsExample_ExpectedContent{}
	mi := &file_google_cloud_aiplatform_v1beta1_example_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ContentsExample_ExpectedContent) ProtoMessage() {}

func (x *ContentsExample_ExpectedContent) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_aiplatform_v1beta1_example_proto_msgTypes[2]
	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 ContentsExample_ExpectedContent.ProtoReflect.Descriptor instead.
func (*ContentsExample_ExpectedContent) Descriptor() ([]byte, []int) {
	return file_google_cloud_aiplatform_v1beta1_example_proto_rawDescGZIP(), []int{0, 0}
}

func (x *ContentsExample_ExpectedContent) GetContent() *Content {
	if x != nil {
		return x.Content
	}
	return nil
}

// Options for generating the search key from the conversation history.
type StoredContentsExample_SearchKeyGenerationMethod struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The method for generating the search key.
	//
	// Types that are valid to be assigned to Method:
	//
	//	*StoredContentsExample_SearchKeyGenerationMethod_LastEntry_
	Method        isStoredContentsExample_SearchKeyGenerationMethod_Method `protobuf_oneof:"method"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *StoredContentsExample_SearchKeyGenerationMethod) Reset() {
	*x = StoredContentsExample_SearchKeyGenerationMethod{}
	mi := &file_google_cloud_aiplatform_v1beta1_example_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*StoredContentsExample_SearchKeyGenerationMethod) ProtoMessage() {}

func (x *StoredContentsExample_SearchKeyGenerationMethod) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_aiplatform_v1beta1_example_proto_msgTypes[3]
	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 StoredContentsExample_SearchKeyGenerationMethod.ProtoReflect.Descriptor instead.
func (*StoredContentsExample_SearchKeyGenerationMethod) Descriptor() ([]byte, []int) {
	return file_google_cloud_aiplatform_v1beta1_example_proto_rawDescGZIP(), []int{1, 0}
}

func (x *StoredContentsExample_SearchKeyGenerationMethod) GetMethod() isStoredContentsExample_SearchKeyGenerationMethod_Method {
	if x != nil {
		return x.Method
	}
	return nil
}

func (x *StoredContentsExample_SearchKeyGenerationMethod) GetLastEntry() *StoredContentsExample_SearchKeyGenerationMethod_LastEntry {
	if x != nil {
		if x, ok := x.Method.(*StoredContentsExample_SearchKeyGenerationMethod_LastEntry_); ok {
			return x.LastEntry
		}
	}
	return nil
}

type isStoredContentsExample_SearchKeyGenerationMethod_Method interface {
	isStoredContentsExample_SearchKeyGenerationMethod_Method()
}

type StoredContentsExample_SearchKeyGenerationMethod_LastEntry_ struct {
	// Use only the last entry of the conversation history
	// (`contents_example.contents`) as the search key.
	LastEntry *StoredContentsExample_SearchKeyGenerationMethod_LastEntry `protobuf:"bytes,1,opt,name=last_entry,json=lastEntry,proto3,oneof"`
}

func (*StoredContentsExample_SearchKeyGenerationMethod_LastEntry_) isStoredContentsExample_SearchKeyGenerationMethod_Method() {
}

// Configuration for using only the last entry of the conversation history
// as the search key.
type StoredContentsExample_SearchKeyGenerationMethod_LastEntry struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *StoredContentsExample_SearchKeyGenerationMethod_LastEntry) Reset() {
	*x = StoredContentsExample_SearchKeyGenerationMethod_LastEntry{}
	mi := &file_google_cloud_aiplatform_v1beta1_example_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*StoredContentsExample_SearchKeyGenerationMethod_LastEntry) ProtoMessage() {}

func (x *StoredContentsExample_SearchKeyGenerationMethod_LastEntry) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_aiplatform_v1beta1_example_proto_msgTypes[4]
	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 StoredContentsExample_SearchKeyGenerationMethod_LastEntry.ProtoReflect.Descriptor instead.
func (*StoredContentsExample_SearchKeyGenerationMethod_LastEntry) Descriptor() ([]byte, []int) {
	return file_google_cloud_aiplatform_v1beta1_example_proto_rawDescGZIP(), []int{1, 0, 0}
}

var File_google_cloud_aiplatform_v1beta1_example_proto protoreflect.FileDescriptor

const file_google_cloud_aiplatform_v1beta1_example_proto_rawDesc = "" +
	"\n" +
	"-google/cloud/aiplatform/v1beta1/example.proto\x12\x1fgoogle.cloud.aiplatform.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a-google/cloud/aiplatform/v1beta1/content.proto\"\xac\x02\n" +
	"\x0fContentsExample\x12I\n" +
	"\bcontents\x18\x01 \x03(\v2(.google.cloud.aiplatform.v1beta1.ContentB\x03\xe0A\x02R\bcontents\x12r\n" +
	"\x11expected_contents\x18\x02 \x03(\v2@.google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContentB\x03\xe0A\x02R\x10expectedContents\x1aZ\n" +
	"\x0fExpectedContent\x12G\n" +
	"\acontent\x18\x01 \x01(\v2(.google.cloud.aiplatform.v1beta1.ContentB\x03\xe0A\x02R\acontent\"\xe8\x03\n" +
	"\x15StoredContentsExample\x12\"\n" +
	"\n" +
	"search_key\x18\x01 \x01(\tB\x03\xe0A\x01R\tsearchKey\x12`\n" +
	"\x10contents_example\x18\x02 \x01(\v20.google.cloud.aiplatform.v1beta1.ContentsExampleB\x03\xe0A\x02R\x0fcontentsExample\x12\x96\x01\n" +
	"\x1csearch_key_generation_method\x18\x03 \x01(\v2P.google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethodB\x03\xe0A\x01R\x19searchKeyGenerationMethod\x1a\xaf\x01\n" +
	"\x19SearchKeyGenerationMethod\x12{\n" +
	"\n" +
	"last_entry\x18\x01 \x01(\v2Z.google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethod.LastEntryH\x00R\tlastEntry\x1a\v\n" +
	"\tLastEntryB\b\n" +
	"\x06methodB\xe3\x01\n" +
	"#com.google.cloud.aiplatform.v1beta1B\fExampleProtoP\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_example_proto_rawDescOnce sync.Once
	file_google_cloud_aiplatform_v1beta1_example_proto_rawDescData []byte
)

func file_google_cloud_aiplatform_v1beta1_example_proto_rawDescGZIP() []byte {
	file_google_cloud_aiplatform_v1beta1_example_proto_rawDescOnce.Do(func() {
		file_google_cloud_aiplatform_v1beta1_example_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_aiplatform_v1beta1_example_proto_rawDesc), len(file_google_cloud_aiplatform_v1beta1_example_proto_rawDesc)))
	})
	return file_google_cloud_aiplatform_v1beta1_example_proto_rawDescData
}

var file_google_cloud_aiplatform_v1beta1_example_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_google_cloud_aiplatform_v1beta1_example_proto_goTypes = []any{
	(*ContentsExample)(nil),                                           // 0: google.cloud.aiplatform.v1beta1.ContentsExample
	(*StoredContentsExample)(nil),                                     // 1: google.cloud.aiplatform.v1beta1.StoredContentsExample
	(*ContentsExample_ExpectedContent)(nil),                           // 2: google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent
	(*StoredContentsExample_SearchKeyGenerationMethod)(nil),           // 3: google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethod
	(*StoredContentsExample_SearchKeyGenerationMethod_LastEntry)(nil), // 4: google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethod.LastEntry
	(*Content)(nil), // 5: google.cloud.aiplatform.v1beta1.Content
}
var file_google_cloud_aiplatform_v1beta1_example_proto_depIdxs = []int32{
	5, // 0: google.cloud.aiplatform.v1beta1.ContentsExample.contents:type_name -> google.cloud.aiplatform.v1beta1.Content
	2, // 1: google.cloud.aiplatform.v1beta1.ContentsExample.expected_contents:type_name -> google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent
	0, // 2: google.cloud.aiplatform.v1beta1.StoredContentsExample.contents_example:type_name -> google.cloud.aiplatform.v1beta1.ContentsExample
	3, // 3: google.cloud.aiplatform.v1beta1.StoredContentsExample.search_key_generation_method:type_name -> google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethod
	5, // 4: google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent.content:type_name -> google.cloud.aiplatform.v1beta1.Content
	4, // 5: google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethod.last_entry:type_name -> google.cloud.aiplatform.v1beta1.StoredContentsExample.SearchKeyGenerationMethod.LastEntry
	6, // [6:6] is the sub-list for method output_type
	6, // [6:6] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() { file_google_cloud_aiplatform_v1beta1_example_proto_init() }
func file_google_cloud_aiplatform_v1beta1_example_proto_init() {
	if File_google_cloud_aiplatform_v1beta1_example_proto != nil {
		return
	}
	file_google_cloud_aiplatform_v1beta1_content_proto_init()
	file_google_cloud_aiplatform_v1beta1_example_proto_msgTypes[3].OneofWrappers = []any{
		(*StoredContentsExample_SearchKeyGenerationMethod_LastEntry_)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_aiplatform_v1beta1_example_proto_rawDesc), len(file_google_cloud_aiplatform_v1beta1_example_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_cloud_aiplatform_v1beta1_example_proto_goTypes,
		DependencyIndexes: file_google_cloud_aiplatform_v1beta1_example_proto_depIdxs,
		MessageInfos:      file_google_cloud_aiplatform_v1beta1_example_proto_msgTypes,
	}.Build()
	File_google_cloud_aiplatform_v1beta1_example_proto = out.File
	file_google_cloud_aiplatform_v1beta1_example_proto_goTypes = nil
	file_google_cloud_aiplatform_v1beta1_example_proto_depIdxs = nil
}
