# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/devtools/cloudbuild/v2/repositories.proto

require 'google/protobuf'

require 'google/api/annotations_pb'
require 'google/api/client_pb'
require 'google/api/field_behavior_pb'
require 'google/api/httpbody_pb'
require 'google/api/resource_pb'
require 'google/devtools/cloudbuild/v2/cloudbuild_pb'
require 'google/longrunning/operations_pb'
require 'google/protobuf/empty_pb'
require 'google/protobuf/field_mask_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\n0google/devtools/cloudbuild/v2/repositories.proto\x12\x1dgoogle.devtools.cloudbuild.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/httpbody.proto\x1a\x19google/api/resource.proto\x1a.google/devtools/cloudbuild/v2/cloudbuild.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdd\x07\n\nConnection\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x44\n\rgithub_config\x18\x05 \x01(\x0b\x32+.google.devtools.cloudbuild.v2.GitHubConfigH\x00\x12Y\n\x18github_enterprise_config\x18\x06 \x01(\x0b\x32\x35.google.devtools.cloudbuild.v2.GitHubEnterpriseConfigH\x00\x12\x44\n\rgitlab_config\x18\x07 \x01(\x0b\x32+.google.devtools.cloudbuild.v2.GitLabConfigH\x00\x12`\n\x1c\x62itbucket_data_center_config\x18\x08 \x01(\x0b\x32\x38.google.devtools.cloudbuild.v2.BitbucketDataCenterConfigH\x00\x12U\n\x16\x62itbucket_cloud_config\x18\t \x01(\x0b\x32\x33.google.devtools.cloudbuild.v2.BitbucketCloudConfigH\x00\x12Q\n\x12installation_state\x18\x0c \x01(\x0b\x32\x30.google.devtools.cloudbuild.v2.InstallationStateB\x03\xe0\x41\x03\x12\x10\n\x08\x64isabled\x18\r \x01(\x08\x12\x18\n\x0breconciling\x18\x0e \x01(\x08\x42\x03\xe0\x41\x03\x12O\n\x0b\x61nnotations\x18\x0f \x03(\x0b\x32:.google.devtools.cloudbuild.v2.Connection.AnnotationsEntry\x12\x0c\n\x04\x65tag\x18\x10 \x01(\t\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x88\x01\xea\x41\x84\x01\n$cloudbuild.googleapis.com/Connection\x12@projects/{project}/locations/{location}/connections/{connection}*\x0b\x63onnections2\nconnectionR\x01\x01\x42\x13\n\x11\x63onnection_config\"\x85\x02\n\x11InstallationState\x12J\n\x05stage\x18\x01 \x01(\x0e\x32\x36.google.devtools.cloudbuild.v2.InstallationState.StageB\x03\xe0\x41\x03\x12\x14\n\x07message\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\naction_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\"u\n\x05Stage\x12\x15\n\x11STAGE_UNSPECIFIED\x10\x00\x12\x16\n\x12PENDING_CREATE_APP\x10\x01\x12\x16\n\x12PENDING_USER_OAUTH\x10\x02\x12\x17\n\x13PENDING_INSTALL_APP\x10\x03\x12\x0c\n\x08\x43OMPLETE\x10\n\"\x8b\x01\n FetchLinkableRepositoriesRequest\x12@\n\nconnection\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Connection\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"}\n!FetchLinkableRepositoriesResponse\x12?\n\x0crepositories\x18\x01 \x03(\x0b\x32).google.devtools.cloudbuild.v2.Repository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"z\n\x0cGitHubConfig\x12M\n\x15\x61uthorizer_credential\x18\x01 \x01(\x0b\x32..google.devtools.cloudbuild.v2.OAuthCredential\x12\x1b\n\x13\x61pp_installation_id\x18\x02 \x01(\x03\"\xb7\x03\n\x16GitHubEnterpriseConfig\x12\x15\n\x08host_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07\x61pi_key\x18\x0c \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06\x61pp_id\x18\x02 \x01(\x03\x12\x10\n\x08\x61pp_slug\x18\r \x01(\t\x12S\n\x1aprivate_key_secret_version\x18\x04 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12V\n\x1dwebhook_secret_secret_version\x18\x05 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x1b\n\x13\x61pp_installation_id\x18\t \x01(\x03\x12W\n\x18service_directory_config\x18\n \x01(\x0b\x32\x35.google.devtools.cloudbuild.v2.ServiceDirectoryConfig\x12\x0e\n\x06ssl_ca\x18\x0b \x01(\t\x12\x1b\n\x0eserver_version\x18\x0e \x01(\tB\x03\xe0\x41\x03\"\xaf\x03\n\x0cGitLabConfig\x12\x10\n\x08host_uri\x18\x01 \x01(\t\x12\\\n\x1dwebhook_secret_secret_version\x18\x02 \x01(\tB5\xe0\x41\x02\xe0\x41\x05\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12V\n\x1aread_authorizer_credential\x18\x03 \x01(\x0b\x32-.google.devtools.cloudbuild.v2.UserCredentialB\x03\xe0\x41\x02\x12Q\n\x15\x61uthorizer_credential\x18\x04 \x01(\x0b\x32-.google.devtools.cloudbuild.v2.UserCredentialB\x03\xe0\x41\x02\x12W\n\x18service_directory_config\x18\x05 \x01(\x0b\x32\x35.google.devtools.cloudbuild.v2.ServiceDirectoryConfig\x12\x0e\n\x06ssl_ca\x18\x06 \x01(\t\x12\x1b\n\x0eserver_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xcb\x03\n\x19\x42itbucketDataCenterConfig\x12\x15\n\x08host_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x1dwebhook_secret_secret_version\x18\x02 \x01(\tB5\xe0\x41\x02\xe0\x41\x05\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12V\n\x1aread_authorizer_credential\x18\x03 \x01(\x0b\x32-.google.devtools.cloudbuild.v2.UserCredentialB\x03\xe0\x41\x02\x12Q\n\x15\x61uthorizer_credential\x18\x04 \x01(\x0b\x32-.google.devtools.cloudbuild.v2.UserCredentialB\x03\xe0\x41\x02\x12\\\n\x18service_directory_config\x18\x05 \x01(\x0b\x32\x35.google.devtools.cloudbuild.v2.ServiceDirectoryConfigB\x03\xe0\x41\x01\x12\x13\n\x06ssl_ca\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0eserver_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xb4\x02\n\x14\x42itbucketCloudConfig\x12\x16\n\tworkspace\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x1dwebhook_secret_secret_version\x18\x02 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12V\n\x1aread_authorizer_credential\x18\x03 \x01(\x0b\x32-.google.devtools.cloudbuild.v2.UserCredentialB\x03\xe0\x41\x02\x12Q\n\x15\x61uthorizer_credential\x18\x04 \x01(\x0b\x32-.google.devtools.cloudbuild.v2.UserCredentialB\x03\xe0\x41\x02\"Z\n\x16ServiceDirectoryConfig\x12@\n\x07service\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'servicedirectory.googleapis.com/Service\"\xf6\x03\n\nRepository\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x17\n\nremote_uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12O\n\x0b\x61nnotations\x18\x06 \x03(\x0b\x32:.google.devtools.cloudbuild.v2.Repository.AnnotationsEntry\x12\x0c\n\x04\x65tag\x18\x07 \x01(\t\x12\x17\n\nwebhook_id\x18\x08 \x01(\tB\x03\xe0\x41\x03\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xa3\x01\xea\x41\x9f\x01\n$cloudbuild.googleapis.com/Repository\x12Zprojects/{project}/locations/{location}/connections/{connection}/repositories/{repository}*\x0crepositories2\nrepositoryR\x01\x01\"}\n\x0fOAuthCredential\x12S\n\x1aoauth_token_secret_version\x18\x01 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x15\n\x08username\x18\x02 \x01(\tB\x03\xe0\x41\x03\"~\n\x0eUserCredential\x12U\n\x19user_token_secret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x15\n\x08username\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xb7\x01\n\x17\x43reateConnectionRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$cloudbuild.googleapis.com/Connection\x12\x42\n\nconnection\x18\x02 \x01(\x0b\x32).google.devtools.cloudbuild.v2.ConnectionB\x03\xe0\x41\x02\x12\x1a\n\rconnection_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"R\n\x14GetConnectionRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Connection\"}\n\x16ListConnectionsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$cloudbuild.googleapis.com/Connection\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"r\n\x17ListConnectionsResponse\x12>\n\x0b\x63onnections\x18\x01 \x03(\x0b\x32).google.devtools.cloudbuild.v2.Connection\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb3\x01\n\x17UpdateConnectionRequest\x12\x42\n\nconnection\x18\x01 \x01(\x0b\x32).google.devtools.cloudbuild.v2.ConnectionB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rallow_missing\x18\x03 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t\"z\n\x17\x44\x65leteConnectionRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Connection\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xb7\x01\n\x17\x43reateRepositoryRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Connection\x12\x42\n\nrepository\x18\x02 \x01(\x0b\x32).google.devtools.cloudbuild.v2.RepositoryB\x03\xe0\x41\x02\x12\x1a\n\rrepository_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xad\x01\n\x1e\x42\x61tchCreateRepositoriesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Connection\x12M\n\x08requests\x18\x02 \x03(\x0b\x32\x36.google.devtools.cloudbuild.v2.CreateRepositoryRequestB\x03\xe0\x41\x02\"b\n\x1f\x42\x61tchCreateRepositoriesResponse\x12?\n\x0crepositories\x18\x01 \x03(\x0b\x32).google.devtools.cloudbuild.v2.Repository\"R\n\x14GetRepositoryRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Repository\"\x8e\x01\n\x17ListRepositoriesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$cloudbuild.googleapis.com/Repository\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"t\n\x18ListRepositoriesResponse\x12?\n\x0crepositories\x18\x01 \x03(\x0b\x32).google.devtools.cloudbuild.v2.Repository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"z\n\x17\x44\x65leteRepositoryRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Repository\x12\x0c\n\x04\x65tag\x18\x02 \x01(\t\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"^\n\x1a\x46\x65tchReadWriteTokenRequest\x12@\n\nrepository\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Repository\"Y\n\x15\x46\x65tchReadTokenRequest\x12@\n\nrepository\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Repository\"\\\n\x16\x46\x65tchReadTokenResponse\x12\r\n\x05token\x18\x01 \x01(\t\x12\x33\n\x0f\x65xpiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"a\n\x1b\x46\x65tchReadWriteTokenResponse\x12\r\n\x05token\x18\x01 \x01(\t\x12\x33\n\x0f\x65xpiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8e\x01\n\x15ProcessWebhookRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$cloudbuild.googleapis.com/Connection\x12\"\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x14.google.api.HttpBody\x12\x13\n\x0bwebhook_key\x18\x03 \x01(\t\"\xdf\x01\n\x13\x46\x65tchGitRefsRequest\x12@\n\nrepository\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$cloudbuild.googleapis.com/Repository\x12L\n\x08ref_type\x18\x02 \x01(\x0e\x32:.google.devtools.cloudbuild.v2.FetchGitRefsRequest.RefType\"8\n\x07RefType\x12\x18\n\x14REF_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03TAG\x10\x01\x12\n\n\x06\x42RANCH\x10\x02\")\n\x14\x46\x65tchGitRefsResponse\x12\x11\n\tref_names\x18\x01 \x03(\t2\xc2\x1b\n\x11RepositoryManager\x12\x91\x02\n\x10\x43reateConnection\x12\x36.google.devtools.cloudbuild.v2.CreateConnectionRequest\x1a\x1d.google.longrunning.Operation\"\xa5\x01\xca\x41=\n\nConnection\x12/google.devtools.cloudbuild.v2.OperationMetadata\xda\x41\x1fparent,connection,connection_id\x82\xd3\xe4\x93\x02=\"//v2/{parent=projects/*/locations/*}/connections:\nconnection\x12\xaf\x01\n\rGetConnection\x12\x33.google.devtools.cloudbuild.v2.GetConnectionRequest\x1a).google.devtools.cloudbuild.v2.Connection\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/locations/*/connections/*}\x12\xc2\x01\n\x0fListConnections\x12\x35.google.devtools.cloudbuild.v2.ListConnectionsRequest\x1a\x36.google.devtools.cloudbuild.v2.ListConnectionsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/locations/*}/connections\x12\x93\x02\n\x10UpdateConnection\x12\x36.google.devtools.cloudbuild.v2.UpdateConnectionRequest\x1a\x1d.google.longrunning.Operation\"\xa7\x01\xca\x41=\n\nConnection\x12/google.devtools.cloudbuild.v2.OperationMetadata\xda\x41\x16\x63onnection,update_mask\x82\xd3\xe4\x93\x02H2:/v2/{connection.name=projects/*/locations/*/connections/*}:\nconnection\x12\xf5\x01\n\x10\x44\x65leteConnection\x12\x36.google.devtools.cloudbuild.v2.DeleteConnectionRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41H\n\x15google.protobuf.Empty\x12/google.devtools.cloudbuild.v2.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/locations/*/connections/*}\x12\xa0\x02\n\x10\x43reateRepository\x12\x36.google.devtools.cloudbuild.v2.CreateRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xca\x41=\n\nRepository\x12/google.devtools.cloudbuild.v2.OperationMetadata\xda\x41\x1fparent,repository,repository_id\x82\xd3\xe4\x93\x02L\">/v2/{parent=projects/*/locations/*/connections/*}/repositories:\nrepository\x12\xb6\x02\n\x17\x42\x61tchCreateRepositories\x12=.google.devtools.cloudbuild.v2.BatchCreateRepositoriesRequest\x1a\x1d.google.longrunning.Operation\"\xbc\x01\xca\x41R\n\x1f\x42\x61tchCreateRepositoriesResponse\x12/google.devtools.cloudbuild.v2.OperationMetadata\xda\x41\x0fparent,requests\x82\xd3\xe4\x93\x02O\"J/v2/{parent=projects/*/locations/*/connections/*}/repositories:batchCreate:\x01*\x12\xbe\x01\n\rGetRepository\x12\x33.google.devtools.cloudbuild.v2.GetRepositoryRequest\x1a).google.devtools.cloudbuild.v2.Repository\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v2/{name=projects/*/locations/*/connections/*/repositories/*}\x12\xd4\x01\n\x10ListRepositories\x12\x36.google.devtools.cloudbuild.v2.ListRepositoriesRequest\x1a\x37.google.devtools.cloudbuild.v2.ListRepositoriesResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v2/{parent=projects/*/locations/*/connections/*}/repositories\x12\x84\x02\n\x10\x44\x65leteRepository\x12\x36.google.devtools.cloudbuild.v2.DeleteRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\xca\x41H\n\x15google.protobuf.Empty\x12/google.devtools.cloudbuild.v2.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02@*>/v2/{name=projects/*/locations/*/connections/*/repositories/*}\x12\xff\x01\n\x13\x46\x65tchReadWriteToken\x12\x39.google.devtools.cloudbuild.v2.FetchReadWriteTokenRequest\x1a:.google.devtools.cloudbuild.v2.FetchReadWriteTokenResponse\"q\xda\x41\nrepository\x82\xd3\xe4\x93\x02^\"Y/v2/{repository=projects/*/locations/*/connections/*/repositories/*}:accessReadWriteToken:\x01*\x12\xeb\x01\n\x0e\x46\x65tchReadToken\x12\x34.google.devtools.cloudbuild.v2.FetchReadTokenRequest\x1a\x35.google.devtools.cloudbuild.v2.FetchReadTokenResponse\"l\xda\x41\nrepository\x82\xd3\xe4\x93\x02Y\"T/v2/{repository=projects/*/locations/*/connections/*/repositories/*}:accessReadToken:\x01*\x12\xf7\x01\n\x19\x46\x65tchLinkableRepositories\x12?.google.devtools.cloudbuild.v2.FetchLinkableRepositoriesRequest\x1a@.google.devtools.cloudbuild.v2.FetchLinkableRepositoriesResponse\"W\x82\xd3\xe4\x93\x02Q\x12O/v2/{connection=projects/*/locations/*/connections/*}:fetchLinkableRepositories\x12\xdf\x01\n\x0c\x46\x65tchGitRefs\x12\x32.google.devtools.cloudbuild.v2.FetchGitRefsRequest\x1a\x33.google.devtools.cloudbuild.v2.FetchGitRefsResponse\"f\xda\x41\nrepository\x82\xd3\xe4\x93\x02S\x12Q/v2/{repository=projects/*/locations/*/connections/*/repositories/*}:fetchGitRefs\x1aM\xca\x41\x19\x63loudbuild.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc9\x02\n\x18\x63om.google.cloudbuild.v2B\x16RepositoryManagerProtoP\x01Z>cloud.google.com/go/cloudbuild/apiv2/cloudbuildpb;cloudbuildpb\xa2\x02\x03GCB\xaa\x02\x1aGoogle.Cloud.CloudBuild.V2\xca\x02\x15Google\\Cloud\\Build\\V2\xea\x02\x18Google::Cloud::Build::V2\xea\x41|\n\'servicedirectory.googleapis.com/Service\x12Qprojects/{project}/locations/{location}/namespaces/{namespace}/services/{service}b\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.Timestamp", "google/protobuf/timestamp.proto"],
    ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
    ["google.api.HttpBody", "google/api/httpbody.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 Build
      module V2
        Connection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.Connection").msgclass
        InstallationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.InstallationState").msgclass
        InstallationState::Stage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.InstallationState.Stage").enummodule
        FetchLinkableRepositoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchLinkableRepositoriesRequest").msgclass
        FetchLinkableRepositoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchLinkableRepositoriesResponse").msgclass
        GitHubConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GitHubConfig").msgclass
        GitHubEnterpriseConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GitHubEnterpriseConfig").msgclass
        GitLabConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GitLabConfig").msgclass
        BitbucketDataCenterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.BitbucketDataCenterConfig").msgclass
        BitbucketCloudConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.BitbucketCloudConfig").msgclass
        ServiceDirectoryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ServiceDirectoryConfig").msgclass
        Repository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.Repository").msgclass
        OAuthCredential = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.OAuthCredential").msgclass
        UserCredential = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.UserCredential").msgclass
        CreateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.CreateConnectionRequest").msgclass
        GetConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GetConnectionRequest").msgclass
        ListConnectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ListConnectionsRequest").msgclass
        ListConnectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ListConnectionsResponse").msgclass
        UpdateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.UpdateConnectionRequest").msgclass
        DeleteConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.DeleteConnectionRequest").msgclass
        CreateRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.CreateRepositoryRequest").msgclass
        BatchCreateRepositoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.BatchCreateRepositoriesRequest").msgclass
        BatchCreateRepositoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.BatchCreateRepositoriesResponse").msgclass
        GetRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.GetRepositoryRequest").msgclass
        ListRepositoriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ListRepositoriesRequest").msgclass
        ListRepositoriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ListRepositoriesResponse").msgclass
        DeleteRepositoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.DeleteRepositoryRequest").msgclass
        FetchReadWriteTokenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchReadWriteTokenRequest").msgclass
        FetchReadTokenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchReadTokenRequest").msgclass
        FetchReadTokenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchReadTokenResponse").msgclass
        FetchReadWriteTokenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchReadWriteTokenResponse").msgclass
        ProcessWebhookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.ProcessWebhookRequest").msgclass
        FetchGitRefsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchGitRefsRequest").msgclass
        FetchGitRefsRequest::RefType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchGitRefsRequest.RefType").enummodule
        FetchGitRefsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v2.FetchGitRefsResponse").msgclass
      end
    end
  end
end
