# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/apihub/v1/collect_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/apihub/v1/common_fields_pb'
require 'google/longrunning/operations_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\n,google/cloud/apihub/v1/collect_service.proto\x12\x16google.cloud.apihub.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/apihub/v1/common_fields.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x02\n\x15\x43ollectApiDataRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x44\n\x0f\x63ollection_type\x18\x02 \x01(\x0e\x32&.google.cloud.apihub.v1.CollectionTypeB\x03\xe0\x41\x02\x12\x45\n\x0fplugin_instance\x18\x03 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$apihub.googleapis.com/PluginInstance\x12\x16\n\taction_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x08\x61pi_data\x18\x05 \x01(\x0b\x32\x1f.google.cloud.apihub.v1.ApiDataB\x03\xe0\x41\x02\"\\\n\x07\x41piData\x12I\n\x11\x61pi_metadata_list\x18\x01 \x01(\x0b\x32\'.google.cloud.apihub.v1.ApiMetadataListB\x03\xe0\x41\x01H\x00\x42\x06\n\x04\x44\x61ta\"Q\n\x0f\x41piMetadataList\x12>\n\x0c\x61pi_metadata\x18\x01 \x03(\x0b\x32#.google.cloud.apihub.v1.APIMetadataB\x03\xe0\x41\x02\"\x94\x02\n\x0b\x41PIMetadata\x12-\n\x03\x61pi\x18\x01 \x01(\x0b\x32\x1b.google.cloud.apihub.v1.ApiB\x03\xe0\x41\x02\x12>\n\x08versions\x18\x02 \x03(\x0b\x32\'.google.cloud.apihub.v1.VersionMetadataB\x03\xe0\x41\x01\x12\x18\n\x0boriginal_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12=\n\x14original_create_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12=\n\x14original_update_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xe0\x02\n\x0fVersionMetadata\x12\x35\n\x07version\x18\x01 \x01(\x0b\x32\x1f.google.cloud.apihub.v1.VersionB\x03\xe0\x41\x02\x12\x38\n\x05specs\x18\x02 \x03(\x0b\x32$.google.cloud.apihub.v1.SpecMetadataB\x03\xe0\x41\x01\x12\x44\n\x0b\x64\x65ployments\x18\x04 \x03(\x0b\x32*.google.cloud.apihub.v1.DeploymentMetadataB\x03\xe0\x41\x01\x12\x18\n\x0boriginal_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12=\n\x14original_create_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12=\n\x14original_update_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xd7\x01\n\x0cSpecMetadata\x12/\n\x04spec\x18\x01 \x01(\x0b\x32\x1c.google.cloud.apihub.v1.SpecB\x03\xe0\x41\x02\x12\x18\n\x0boriginal_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12=\n\x14original_create_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12=\n\x14original_update_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xe9\x01\n\x12\x44\x65ploymentMetadata\x12;\n\ndeployment\x18\x01 \x01(\x0b\x32\".google.cloud.apihub.v1.DeploymentB\x03\xe0\x41\x02\x12\x18\n\x0boriginal_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12=\n\x14original_create_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12=\n\x14original_update_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\x18\n\x16\x43ollectApiDataResponse*i\n\x0e\x43ollectionType\x12\x1f\n\x1b\x43OLLECTION_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x43OLLECTION_TYPE_UPSERT\x10\x01\x12\x1a\n\x16\x43OLLECTION_TYPE_DELETE\x10\x02\x32\xcf\x02\n\rApiHubCollect\x12\xf2\x01\n\x0e\x43ollectApiData\x12-.google.cloud.apihub.v1.CollectApiDataRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\xca\x41+\n\x16\x43ollectApiDataResponse\x12\x11OperationMetadata\xda\x41!location,collection_type,api_data\x82\xd3\xe4\x93\x02\x39\"4/v1/{location=projects/*/locations/*}:collectApiData:\x01*\x1aI\xca\x41\x15\x61pihub.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb5\x01\n\x1a\x63om.google.cloud.apihub.v1B\x13\x43ollectServiceProtoP\x01Z2cloud.google.com/go/apihub/apiv1/apihubpb;apihubpb\xaa\x02\x16Google.Cloud.ApiHub.V1\xca\x02\x16Google\\Cloud\\ApiHub\\V1\xea\x02\x19Google::Cloud::ApiHub::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.apihub.v1.Api", "google/cloud/apihub/v1/common_fields.proto"],
    ["google.protobuf.Timestamp", "google/protobuf/timestamp.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 ApiHub
      module V1
        CollectApiDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.CollectApiDataRequest").msgclass
        ApiData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.ApiData").msgclass
        ApiMetadataList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.ApiMetadataList").msgclass
        APIMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.APIMetadata").msgclass
        VersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.VersionMetadata").msgclass
        SpecMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.SpecMetadata").msgclass
        DeploymentMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.DeploymentMetadata").msgclass
        CollectApiDataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.CollectApiDataResponse").msgclass
        CollectionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.CollectionType").enummodule
      end
    end
  end
end
