# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/aiplatform/v1/gen_ai_cache_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/aiplatform/v1/cached_content_pb'
require 'google/protobuf/empty_pb'
require 'google/protobuf/field_mask_pb'


descriptor_data = "\n5google/cloud/aiplatform/v1/gen_ai_cache_service.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a/google/cloud/aiplatform/v1/cached_content.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xa5\x01\n\x1a\x43reateCachedContentRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'aiplatform.googleapis.com/CachedContent\x12\x46\n\x0e\x63\x61\x63hed_content\x18\x02 \x01(\x0b\x32).google.cloud.aiplatform.v1.CachedContentB\x03\xe0\x41\x02\"X\n\x17GetCachedContentRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'aiplatform.googleapis.com/CachedContent\"\x9a\x01\n\x1aUpdateCachedContentRequest\x12\x46\n\x0e\x63\x61\x63hed_content\x18\x01 \x01(\x0b\x32).google.cloud.aiplatform.v1.CachedContentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"[\n\x1a\x44\x65leteCachedContentRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'aiplatform.googleapis.com/CachedContent\"\x8d\x01\n\x19ListCachedContentsRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'aiplatform.googleapis.com/CachedContent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"y\n\x1aListCachedContentsResponse\x12\x42\n\x0f\x63\x61\x63hed_contents\x18\x01 \x03(\x0b\x32).google.cloud.aiplatform.v1.CachedContent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xe2\x08\n\x11GenAiCacheService\x12\xdc\x01\n\x13\x43reateCachedContent\x12\x36.google.cloud.aiplatform.v1.CreateCachedContentRequest\x1a).google.cloud.aiplatform.v1.CachedContent\"b\xda\x41\x15parent,cached_content\x82\xd3\xe4\x93\x02\x44\"2/v1/{parent=projects/*/locations/*}/cachedContents:\x0e\x63\x61\x63hed_content\x12\xb5\x01\n\x10GetCachedContent\x12\x33.google.cloud.aiplatform.v1.GetCachedContentRequest\x1a).google.cloud.aiplatform.v1.CachedContent\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/cachedContents/*}\x12\xf0\x01\n\x13UpdateCachedContent\x12\x36.google.cloud.aiplatform.v1.UpdateCachedContentRequest\x1a).google.cloud.aiplatform.v1.CachedContent\"v\xda\x41\x1a\x63\x61\x63hed_content,update_mask\x82\xd3\xe4\x93\x02S2A/v1/{cached_content.name=projects/*/locations/*/cachedContents/*}:\x0e\x63\x61\x63hed_content\x12\xa8\x01\n\x13\x44\x65leteCachedContent\x12\x36.google.cloud.aiplatform.v1.DeleteCachedContentRequest\x1a\x16.google.protobuf.Empty\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34*2/v1/{name=projects/*/locations/*/cachedContents/*}\x12\xc8\x01\n\x12ListCachedContents\x12\x35.google.cloud.aiplatform.v1.ListCachedContentsRequest\x1a\x36.google.cloud.aiplatform.v1.ListCachedContentsResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/cachedContents\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd4\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x16GenAiCacheServiceProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::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.cloud.aiplatform.v1.CachedContent", "google/cloud/aiplatform/v1/cached_content.proto"],
    ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 AIPlatform
      module V1
        CreateCachedContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.CreateCachedContentRequest").msgclass
        GetCachedContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GetCachedContentRequest").msgclass
        UpdateCachedContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UpdateCachedContentRequest").msgclass
        DeleteCachedContentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DeleteCachedContentRequest").msgclass
        ListCachedContentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListCachedContentsRequest").msgclass
        ListCachedContentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListCachedContentsResponse").msgclass
      end
    end
  end
end
