# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/retail/v2/model_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/retail/v2/model_pb'
require 'google/longrunning/operations_pb'
require 'google/protobuf/empty_pb'
require 'google/protobuf/field_mask_pb'


descriptor_data = "\n*google/cloud/retail/v2/model_service.proto\x12\x16google.cloud.retail.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\"google/cloud/retail/v2/model.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x94\x01\n\x12\x43reateModelRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dretail.googleapis.com/Catalog\x12\x31\n\x05model\x18\x02 \x01(\x0b\x32\x1d.google.cloud.retail.v2.ModelB\x03\xe0\x41\x02\x12\x14\n\x07\x64ry_run\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"}\n\x12UpdateModelRequest\x12\x31\n\x05model\x18\x01 \x01(\x0b\x32\x1d.google.cloud.retail.v2.ModelB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"D\n\x0fGetModelRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bretail.googleapis.com/Model\"F\n\x11PauseModelRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bretail.googleapis.com/Model\"\'\n\x12ResumeModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"{\n\x11ListModelsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dretail.googleapis.com/Catalog\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\"G\n\x12\x44\x65leteModelRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bretail.googleapis.com/Model\"\\\n\x12ListModelsResponse\x12-\n\x06models\x18\x01 \x03(\x0b\x32\x1d.google.cloud.retail.v2.Model\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"E\n\x10TuneModelRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bretail.googleapis.com/Model\"$\n\x13\x43reateModelMetadata\x12\r\n\x05model\x18\x01 \x01(\t\"\"\n\x11TuneModelMetadata\x12\r\n\x05model\x18\x01 \x01(\t\"\x13\n\x11TuneModelResponse2\xc5\x0c\n\x0cModelService\x12\xfb\x01\n\x0b\x43reateModel\x12*.google.cloud.retail.v2.CreateModelRequest\x1a\x1d.google.longrunning.Operation\"\xa0\x01\xca\x41J\n\x1cgoogle.cloud.retail.v2.Model\x12*google.cloud.retail.v2.CreateModelMetadata\xda\x41\x0cparent,model\x82\xd3\xe4\x93\x02>\"5/v2/{parent=projects/*/locations/*/catalogs/*}/models:\x05model\x12\x98\x01\n\x08GetModel\x12\'.google.cloud.retail.v2.GetModelRequest\x1a\x1d.google.cloud.retail.v2.Model\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{name=projects/*/locations/*/catalogs/*/models/*}\x12\xa5\x01\n\nPauseModel\x12).google.cloud.retail.v2.PauseModelRequest\x1a\x1d.google.cloud.retail.v2.Model\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\";/v2/{name=projects/*/locations/*/catalogs/*/models/*}:pause:\x01*\x12\xa8\x01\n\x0bResumeModel\x12*.google.cloud.retail.v2.ResumeModelRequest\x1a\x1d.google.cloud.retail.v2.Model\"N\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\"</v2/{name=projects/*/locations/*/catalogs/*/models/*}:resume:\x01*\x12\x97\x01\n\x0b\x44\x65leteModel\x12*.google.cloud.retail.v2.DeleteModelRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v2/{name=projects/*/locations/*/catalogs/*/models/*}\x12\xab\x01\n\nListModels\x12).google.cloud.retail.v2.ListModelsRequest\x1a*.google.cloud.retail.v2.ListModelsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{parent=projects/*/locations/*/catalogs/*}/models\x12\xb8\x01\n\x0bUpdateModel\x12*.google.cloud.retail.v2.UpdateModelRequest\x1a\x1d.google.cloud.retail.v2.Model\"^\xda\x41\x11model,update_mask\x82\xd3\xe4\x93\x02\x44\x32;/v2/{model.name=projects/*/locations/*/catalogs/*/models/*}:\x05model\x12\xfa\x01\n\tTuneModel\x12(.google.cloud.retail.v2.TuneModelRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\xca\x41T\n(google.cloud.retail.v2.TuneModelResponse\x12(google.cloud.retail.v2.TuneModelMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02?\":/v2/{name=projects/*/locations/*/catalogs/*/models/*}:tune:\x01*\x1aI\xca\x41\x15retail.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xbc\x01\n\x1a\x63om.google.cloud.retail.v2B\x11ModelServiceProtoP\x01Z2cloud.google.com/go/retail/apiv2/retailpb;retailpb\xa2\x02\x06RETAIL\xaa\x02\x16Google.Cloud.Retail.V2\xca\x02\x16Google\\Cloud\\Retail\\V2\xea\x02\x19Google::Cloud::Retail::V2b\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.retail.v2.Model", "google/cloud/retail/v2/model.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 Retail
      module V2
        CreateModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CreateModelRequest").msgclass
        UpdateModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.UpdateModelRequest").msgclass
        GetModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.GetModelRequest").msgclass
        PauseModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.PauseModelRequest").msgclass
        ResumeModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ResumeModelRequest").msgclass
        ListModelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ListModelsRequest").msgclass
        DeleteModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.DeleteModelRequest").msgclass
        ListModelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ListModelsResponse").msgclass
        TuneModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.TuneModelRequest").msgclass
        CreateModelMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CreateModelMetadata").msgclass
        TuneModelMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.TuneModelMetadata").msgclass
        TuneModelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.TuneModelResponse").msgclass
      end
    end
  end
end
