# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/discoveryengine/v1beta/grounded_generation_service.proto require 'google/protobuf' require 'google/api/annotations_pb' require 'google/api/client_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/cloud/discoveryengine/v1beta/grounding_pb' descriptor_data = "\nEgoogle/cloud/discoveryengine/v1beta/grounded_generation_service.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/discoveryengine/v1beta/grounding.proto\"\x9d\x01\n\x19GroundedGenerationContent\x12\x0c\n\x04role\x18\x01 \x01(\t\x12R\n\x05parts\x18\x02 \x03(\x0b\x32\x43.google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part\x1a\x1e\n\x04Part\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x42\x06\n\x04\x64\x61ta\"\x82\x14\n\x1eGenerateGroundedContentRequest\x12\x41\n\x08location\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'discoveryengine.googleapis.com/Location\x12Z\n\x12system_instruction\x18\x05 \x01(\x0b\x32>.google.cloud.discoveryengine.v1beta.GroundedGenerationContent\x12P\n\x08\x63ontents\x18\x02 \x03(\x0b\x32>.google.cloud.discoveryengine.v1beta.GroundedGenerationContent\x12k\n\x0fgeneration_spec\x18\x03 \x01(\x0b\x32R.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec\x12i\n\x0egrounding_spec\x18\x04 \x01(\x0b\x32Q.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec\x12h\n\x0buser_labels\x18\x06 \x03(\x0b\x32S.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.UserLabelsEntry\x1a\xbf\x02\n\x0eGenerationSpec\x12\x10\n\x08model_id\x18\x03 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x18\n\x0btemperature\x18\x04 \x01(\x02H\x00\x88\x01\x01\x12\x12\n\x05top_p\x18\x05 \x01(\x02H\x01\x88\x01\x01\x12\x12\n\x05top_k\x18\x07 \x01(\x05H\x02\x88\x01\x01\x12\x1e\n\x11\x66requency_penalty\x18\x08 \x01(\x02H\x03\x88\x01\x01\x12\x1d\n\x10presence_penalty\x18\t \x01(\x02H\x04\x88\x01\x01\x12\x1e\n\x11max_output_tokens\x18\n \x01(\x05H\x05\x88\x01\x01\x42\x0e\n\x0c_temperatureB\x08\n\x06_top_pB\x08\n\x06_top_kB\x14\n\x12_frequency_penaltyB\x13\n\x11_presence_penaltyB\x14\n\x12_max_output_tokens\x1a\xc4\x03\n\x1d\x44ynamicRetrievalConfiguration\x12\x8e\x01\n\tpredictor\x18\x01 \x01(\x0b\x32{.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor\x1a\x91\x02\n\x19\x44ynamicRetrievalPredictor\x12\x95\x01\n\x07version\x18\x01 \x01(\x0e\x32\x83\x01.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version\x12\x16\n\tthreshold\x18\x02 \x01(\x02H\x00\x88\x01\x01\"6\n\x07Version\x12\x17\n\x13VERSION_UNSPECIFIED\x10\x00\x12\x12\n\x0eV1_INDEPENDENT\x10\x01\x42\x0c\n\n_threshold\x1a\xef\x07\n\x0fGroundingSource\x12y\n\rinline_source\x18\x01 \x01(\x0b\x32`.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.InlineSourceH\x00\x12y\n\rsearch_source\x18\x02 \x01(\x0b\x32`.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.SearchSourceH\x00\x12\x86\x01\n\x14google_search_source\x18\x03 \x01(\x0b\x32\x66.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSourceH\x00\x1a\x95\x02\n\x0cInlineSource\x12K\n\x0fgrounding_facts\x18\x01 \x03(\x0b\x32\x32.google.cloud.discoveryengine.v1beta.GroundingFact\x12\x84\x01\n\nattributes\x18\x02 \x03(\x0b\x32p.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.InlineSource.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x98\x01\n\x0cSearchSource\x12I\n\x0eserving_config\x18\x01 \x01(\tB1\xfa\x41.\n,discoveryengine.googleapis.com/ServingConfig\x12\x18\n\x10max_result_count\x18\x02 \x01(\x05\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\x12\x13\n\x0bsafe_search\x18\x05 \x01(\x08\x1a\x9f\x01\n\x12GoogleSearchSource\x12\x88\x01\n\x18\x64ynamic_retrieval_config\x18\x02 \x01(\x0b\x32\x61.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.DynamicRetrievalConfigurationB\x03\xe0\x41\x01\x42\x08\n\x06source\x1a\x7f\n\rGroundingSpec\x12n\n\x11grounding_sources\x18\x01 \x03(\x0b\x32S.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x98\x10\n\x1fGenerateGroundedContentResponse\x12\x62\n\ncandidates\x18\x01 \x03(\x0b\x32N.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate\x1a\x90\x0f\n\tCandidate\x12\r\n\x05index\x18\x01 \x01(\x05\x12O\n\x07\x63ontent\x18\x02 \x01(\x0b\x32>.google.cloud.discoveryengine.v1beta.GroundedGenerationContent\x12\x1c\n\x0fgrounding_score\x18\x03 \x01(\x02H\x00\x88\x01\x01\x12|\n\x12grounding_metadata\x18\x04 \x01(\x0b\x32`.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata\x1a\xf2\x0c\n\x11GroundingMetadata\x12\x8e\x01\n\x12retrieval_metadata\x18\x05 \x03(\x0b\x32r.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata\x12\x46\n\x0esupport_chunks\x18\x01 \x03(\x0b\x32..google.cloud.discoveryengine.v1beta.FactChunk\x12\x1a\n\x12web_search_queries\x18\x03 \x03(\t\x12\x8d\x01\n\x12search_entry_point\x18\x04 \x01(\x0b\x32q.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint\x12\x8c\x01\n\x11grounding_support\x18\x02 \x03(\x0b\x32q.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport\x1a\xaf\x03\n\x11RetrievalMetadata\x12\x89\x01\n\x06source\x18\x01 \x01(\x0e\x32y.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source\x12\x9d\x01\n\x1a\x64ynamic_retrieval_metadata\x18\x02 \x01(\x0b\x32y.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata\"n\n\x06Source\x12\x16\n\x12SOURCE_UNSPECIFIED\x10\x00\x12\x14\n\x10VERTEX_AI_SEARCH\x10\x01\x12\x11\n\rGOOGLE_SEARCH\x10\x03\x12\x12\n\x0eINLINE_CONTENT\x10\x02\x12\x0f\n\x0bGOOGLE_MAPS\x10\x04\x1a\xbc\x01\n\x18\x44ynamicRetrievalMetadata\x12\x9f\x01\n\x12predictor_metadata\x18\x01 \x01(\x0b\x32\x82\x01.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata\x1a\xa2\x02\n!DynamicRetrievalPredictorMetadata\x12\x9c\x01\n\x07version\x18\x01 \x01(\x0e\x32\x8a\x01.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version\x12\x17\n\nprediction\x18\x02 \x01(\x02H\x00\x88\x01\x01\"6\n\x07Version\x12\x17\n\x13VERSION_UNSPECIFIED\x10\x00\x12\x12\n\x0eV1_INDEPENDENT\x10\x01\x42\r\n\x0b_prediction\x1a>\n\x10SearchEntryPoint\x12\x18\n\x10rendered_content\x18\x01 \x01(\t\x12\x10\n\x08sdk_blob\x18\x02 \x01(\x0c\x1as\n\x10GroundingSupport\x12\x12\n\nclaim_text\x18\x01 \x01(\t\x12\x1d\n\x15support_chunk_indices\x18\x03 \x03(\x05\x12\x1a\n\rsupport_score\x18\x02 \x01(\x02H\x00\x88\x01\x01\x42\x10\n\x0e_support_scoreB\x12\n\x10_grounding_score\"L\n\x12\x43heckGroundingSpec\x12\x1f\n\x12\x63itation_threshold\x18\x01 \x01(\x01H\x00\x88\x01\x01\x42\x15\n\x13_citation_threshold\"\xab\x03\n\x15\x43heckGroundingRequest\x12P\n\x10grounding_config\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.discoveryengine.googleapis.com/GroundingConfig\x12\x18\n\x10\x61nswer_candidate\x18\x02 \x01(\t\x12\x41\n\x05\x66\x61\x63ts\x18\x03 \x03(\x0b\x32\x32.google.cloud.discoveryengine.v1beta.GroundingFact\x12O\n\x0egrounding_spec\x18\x04 \x01(\x0b\x32\x37.google.cloud.discoveryengine.v1beta.CheckGroundingSpec\x12_\n\x0buser_labels\x18\x05 \x03(\x0b\x32J.google.cloud.discoveryengine.v1beta.CheckGroundingRequest.UserLabelsEntry\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xbc\x04\n\x16\x43heckGroundingResponse\x12\x1a\n\rsupport_score\x18\x01 \x01(\x02H\x00\x88\x01\x01\x12\x44\n\x0c\x63ited_chunks\x18\x03 \x03(\x0b\x32..google.cloud.discoveryengine.v1beta.FactChunk\x12h\n\x0b\x63ited_facts\x18\x06 \x03(\x0b\x32S.google.cloud.discoveryengine.v1beta.CheckGroundingResponse.CheckGroundingFactChunk\x12Q\n\x06\x63laims\x18\x04 \x03(\x0b\x32\x41.google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim\x1a-\n\x17\x43heckGroundingFactChunk\x12\x12\n\nchunk_text\x18\x01 \x01(\t\x1a\xc1\x01\n\x05\x43laim\x12\x16\n\tstart_pos\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x14\n\x07\x65nd_pos\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x12\n\nclaim_text\x18\x03 \x01(\t\x12\x18\n\x10\x63itation_indices\x18\x04 \x03(\x05\x12%\n\x18grounding_check_required\x18\x06 \x01(\x08H\x02\x88\x01\x01\x42\x0c\n\n_start_posB\n\n\x08_end_posB\x1b\n\x19_grounding_check_requiredB\x10\n\x0e_support_score2\xcc\x06\n\x19GroundedGenerationService\x12\x82\x02\n\x1dStreamGenerateGroundedContent\x12\x43.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest\x1a\x44.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse\"R\x82\xd3\xe4\x93\x02L\"G/v1beta/{location=projects/*/locations/*}:streamGenerateGroundedContent:\x01*(\x01\x30\x01\x12\xf2\x01\n\x17GenerateGroundedContent\x12\x43.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest\x1a\x44.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse\"L\x82\xd3\xe4\x93\x02\x46\"A/v1beta/{location=projects/*/locations/*}:generateGroundedContent:\x01*\x12\xe0\x01\n\x0e\x43heckGrounding\x12:.google.cloud.discoveryengine.v1beta.CheckGroundingRequest\x1a;.google.cloud.discoveryengine.v1beta.CheckGroundingResponse\"U\x82\xd3\xe4\x93\x02O\"J/v1beta/{grounding_config=projects/*/locations/*/groundingConfigs/*}:check:\x01*\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa5\x02\n\'com.google.cloud.discoveryengine.v1betaB\x1eGroundedGenerationServiceProtoP\x01ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02#Google.Cloud.DiscoveryEngine.V1Beta\xca\x02#Google\\Cloud\\DiscoveryEngine\\V1beta\xea\x02&Google::Cloud::DiscoveryEngine::V1betab\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) rescue TypeError # Compatibility code: will be removed in the next major version. require 'google/protobuf/descriptor_pb' parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) parsed.clear_dependency serialized = parsed.class.encode(parsed) file = pool.add_serialized_file(serialized) warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" imports = [ ["google.cloud.discoveryengine.v1beta.GroundingFact", "google/cloud/discoveryengine/v1beta/grounding.proto"], ] imports.each do |type_name, expected_filename| import_file = pool.lookup(type_name).file_descriptor if import_file.name != expected_filename warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end end warn "Each proto file must use a consistent fully-qualified name." warn "This will become an error in the next major version." end module Google module Cloud module DiscoveryEngine module V1beta GroundedGenerationContent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GroundedGenerationContent").msgclass GroundedGenerationContent::Part = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part").msgclass GenerateGroundedContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest").msgclass GenerateGroundedContentRequest::GenerationSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec").msgclass GenerateGroundedContentRequest::DynamicRetrievalConfiguration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.DynamicRetrievalConfiguration").msgclass GenerateGroundedContentRequest::DynamicRetrievalConfiguration::DynamicRetrievalPredictor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor").msgclass GenerateGroundedContentRequest::DynamicRetrievalConfiguration::DynamicRetrievalPredictor::Version = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version").enummodule GenerateGroundedContentRequest::GroundingSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource").msgclass GenerateGroundedContentRequest::GroundingSource::InlineSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.InlineSource").msgclass GenerateGroundedContentRequest::GroundingSource::SearchSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.SearchSource").msgclass GenerateGroundedContentRequest::GroundingSource::GoogleSearchSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource").msgclass GenerateGroundedContentRequest::GroundingSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec").msgclass GenerateGroundedContentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse").msgclass GenerateGroundedContentResponse::Candidate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate").msgclass GenerateGroundedContentResponse::Candidate::GroundingMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata").msgclass GenerateGroundedContentResponse::Candidate::GroundingMetadata::RetrievalMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata").msgclass GenerateGroundedContentResponse::Candidate::GroundingMetadata::RetrievalMetadata::Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source").enummodule GenerateGroundedContentResponse::Candidate::GroundingMetadata::DynamicRetrievalMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata").msgclass GenerateGroundedContentResponse::Candidate::GroundingMetadata::DynamicRetrievalPredictorMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata").msgclass GenerateGroundedContentResponse::Candidate::GroundingMetadata::DynamicRetrievalPredictorMetadata::Version = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version").enummodule GenerateGroundedContentResponse::Candidate::GroundingMetadata::SearchEntryPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint").msgclass GenerateGroundedContentResponse::Candidate::GroundingMetadata::GroundingSupport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport").msgclass CheckGroundingSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CheckGroundingSpec").msgclass CheckGroundingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CheckGroundingRequest").msgclass CheckGroundingResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CheckGroundingResponse").msgclass CheckGroundingResponse::CheckGroundingFactChunk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CheckGroundingResponse.CheckGroundingFactChunk").msgclass CheckGroundingResponse::Claim = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim").msgclass end end end end