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

require 'google/protobuf'

require 'google/cloud/connectors/v1/common_pb'


descriptor_data = "\n+google/cloud/connectors/v1/authconfig.proto\x12\x1agoogle.cloud.connectors.v1\x1a\'google/cloud/connectors/v1/common.proto\"\xc6\x08\n\nAuthConfig\x12\x37\n\tauth_type\x18\x01 \x01(\x0e\x32$.google.cloud.connectors.v1.AuthType\x12L\n\ruser_password\x18\x02 \x01(\x0b\x32\x33.google.cloud.connectors.v1.AuthConfig.UserPasswordH\x00\x12S\n\x11oauth2_jwt_bearer\x18\x03 \x01(\x0b\x32\x36.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearerH\x00\x12\x63\n\x19oauth2_client_credentials\x18\x04 \x01(\x0b\x32>.google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentialsH\x00\x12M\n\x0essh_public_key\x18\x06 \x01(\x0b\x32\x33.google.cloud.connectors.v1.AuthConfig.SshPublicKeyH\x00\x12H\n\x14\x61\x64\x64itional_variables\x18\x05 \x03(\x0b\x32*.google.cloud.connectors.v1.ConfigVariable\x1aV\n\x0cUserPassword\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x34\n\x08password\x18\x02 \x01(\x0b\x32\".google.cloud.connectors.v1.Secret\x1a\xdf\x01\n\x0fOauth2JwtBearer\x12\x36\n\nclient_key\x18\x01 \x01(\x0b\x32\".google.cloud.connectors.v1.Secret\x12T\n\njwt_claims\x18\x02 \x01(\x0b\x32@.google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims\x1a>\n\tJwtClaims\x12\x0e\n\x06issuer\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12\x10\n\x08\x61udience\x18\x03 \x01(\t\x1ag\n\x17Oauth2ClientCredentials\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12\x39\n\rclient_secret\x18\x02 \x01(\x0b\x32\".google.cloud.connectors.v1.Secret\x1a\xb2\x01\n\x0cSshPublicKey\x12\x10\n\x08username\x18\x01 \x01(\t\x12;\n\x0fssh_client_cert\x18\x03 \x01(\x0b\x32\".google.cloud.connectors.v1.Secret\x12\x11\n\tcert_type\x18\x04 \x01(\t\x12@\n\x14ssh_client_cert_pass\x18\x05 \x01(\x0b\x32\".google.cloud.connectors.v1.SecretB\x06\n\x04type\"\xcf\x01\n\x12\x41uthConfigTemplate\x12\x37\n\tauth_type\x18\x01 \x01(\x0e\x32$.google.cloud.connectors.v1.AuthType\x12U\n\x19\x63onfig_variable_templates\x18\x02 \x03(\x0b\x32\x32.google.cloud.connectors.v1.ConfigVariableTemplate\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t*\x9d\x01\n\x08\x41uthType\x12\x19\n\x15\x41UTH_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rUSER_PASSWORD\x10\x01\x12\x15\n\x11OAUTH2_JWT_BEARER\x10\x02\x12\x1d\n\x19OAUTH2_CLIENT_CREDENTIALS\x10\x03\x12\x12\n\x0eSSH_PUBLIC_KEY\x10\x04\x12\x19\n\x15OAUTH2_AUTH_CODE_FLOW\x10\x05\x42s\n\x1e\x63om.google.cloud.connectors.v1B\x0f\x41uthConfigProtoP\x01Z>cloud.google.com/go/connectors/apiv1/connectorspb;connectorspbb\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.connectors.v1.ConfigVariable", "google/cloud/connectors/v1/common.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 Connectors
      module V1
        AuthConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.AuthConfig").msgclass
        AuthConfig::UserPassword = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.AuthConfig.UserPassword").msgclass
        AuthConfig::Oauth2JwtBearer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer").msgclass
        AuthConfig::Oauth2JwtBearer::JwtClaims = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.AuthConfig.Oauth2JwtBearer.JwtClaims").msgclass
        AuthConfig::Oauth2ClientCredentials = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.AuthConfig.Oauth2ClientCredentials").msgclass
        AuthConfig::SshPublicKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.AuthConfig.SshPublicKey").msgclass
        AuthConfigTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.AuthConfigTemplate").msgclass
        AuthType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.AuthType").enummodule
      end
    end
  end
end
