# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/discoveryengine/v1/chunk.proto

require 'google/protobuf'

require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/protobuf/struct_pb'


descriptor_data = "\n+google/cloud/discoveryengine/v1/chunk.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xff\x0b\n\x05\x43hunk\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12!\n\x0frelevance_score\x18\x08 \x01(\x01\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12R\n\x11\x64ocument_metadata\x18\x05 \x01(\x0b\x32\x37.google.cloud.discoveryengine.v1.Chunk.DocumentMetadata\x12\x39\n\x13\x64\x65rived_struct_data\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03\x12\x42\n\tpage_span\x18\x06 \x01(\x0b\x32/.google.cloud.discoveryengine.v1.Chunk.PageSpan\x12Q\n\x0e\x63hunk_metadata\x18\x07 \x01(\x0b\x32\x34.google.cloud.discoveryengine.v1.Chunk.ChunkMetadataB\x03\xe0\x41\x03\x12\x16\n\tdata_urls\x18\t \x03(\tB\x03\xe0\x41\x03\x12 \n\x13\x61nnotation_contents\x18\x0b \x03(\tB\x03\xe0\x41\x03\x12[\n\x13\x61nnotation_metadata\x18\x0c \x03(\x0b\x32\x39.google.cloud.discoveryengine.v1.Chunk.AnnotationMetadataB\x03\xe0\x41\x03\x1a\\\n\x10\x44ocumentMetadata\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12,\n\x0bstruct_data\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a\x30\n\x08PageSpan\x12\x12\n\npage_start\x18\x01 \x01(\x05\x12\x10\n\x08page_end\x18\x02 \x01(\x05\x1a\x8d\x01\n\rChunkMetadata\x12?\n\x0fprevious_chunks\x18\x01 \x03(\x0b\x32&.google.cloud.discoveryengine.v1.Chunk\x12;\n\x0bnext_chunks\x18\x02 \x03(\x0b\x32&.google.cloud.discoveryengine.v1.Chunk\x1a|\n\x11StructuredContent\x12Q\n\x0estructure_type\x18\x01 \x01(\x0e\x32\x34.google.cloud.discoveryengine.v1.Chunk.StructureTypeB\x03\xe0\x41\x03\x12\x14\n\x07\x63ontent\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\x86\x01\n\x12\x41nnotationMetadata\x12Y\n\x12structured_content\x18\x01 \x01(\x0b\x32\x38.google.cloud.discoveryengine.v1.Chunk.StructuredContentB\x03\xe0\x41\x03\x12\x15\n\x08image_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\"{\n\rStructureType\x12\x1e\n\x1aSTRUCTURE_TYPE_UNSPECIFIED\x10\x00\x12\x19\n\x15SHAREHOLDER_STRUCTURE\x10\x01\x12\x17\n\x13SIGNATURE_STRUCTURE\x10\x02\x12\x16\n\x12\x43HECKBOX_STRUCTURE\x10\x03:\xb2\x02\xea\x41\xae\x02\n$discoveryengine.googleapis.com/Chunk\x12uprojects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}\x12\x8e\x01projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}B\x12\n\x10_relevance_scoreB\xfd\x01\n#com.google.cloud.discoveryengine.v1B\nChunkProtoP\x01ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02\x1fGoogle.Cloud.DiscoveryEngine.V1\xca\x02\x1fGoogle\\Cloud\\DiscoveryEngine\\V1\xea\x02\"Google::Cloud::DiscoveryEngine::V1b\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.protobuf.Struct", "google/protobuf/struct.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 V1
        Chunk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.Chunk").msgclass
        Chunk::DocumentMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.Chunk.DocumentMetadata").msgclass
        Chunk::PageSpan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.Chunk.PageSpan").msgclass
        Chunk::ChunkMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.Chunk.ChunkMetadata").msgclass
        Chunk::StructuredContent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.Chunk.StructuredContent").msgclass
        Chunk::AnnotationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata").msgclass
        Chunk::StructureType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1.Chunk.StructureType").enummodule
      end
    end
  end
end
