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

require 'google/protobuf'

require 'google/api/field_behavior_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\n\'google/cloud/connectors/v1/common.proto\x12\x1agoogle.cloud.connectors.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xab\x05\n\x16\x43onfigVariableTemplate\x12\x0b\n\x03key\x18\x01 \x01(\t\x12P\n\nvalue_type\x18\x02 \x01(\x0e\x32<.google.cloud.connectors.v1.ConfigVariableTemplate.ValueType\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x18\n\x10validation_regex\x18\x05 \x01(\t\x12\x10\n\x08required\x18\x06 \x01(\x08\x12\x39\n\nrole_grant\x18\x07 \x01(\x0b\x32%.google.cloud.connectors.v1.RoleGrant\x12<\n\x0c\x65num_options\x18\x08 \x03(\x0b\x32&.google.cloud.connectors.v1.EnumOption\x12R\n\x17\x61uthorization_code_link\x18\t \x01(\x0b\x32\x31.google.cloud.connectors.v1.AuthorizationCodeLink\x12G\n\x05state\x18\n \x01(\x0e\x32\x38.google.cloud.connectors.v1.ConfigVariableTemplate.State\x12\x13\n\x0bis_advanced\x18\x0b \x01(\x08\"t\n\tValueType\x12\x1a\n\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06STRING\x10\x01\x12\x07\n\x03INT\x10\x02\x12\x08\n\x04\x42OOL\x10\x03\x12\n\n\x06SECRET\x10\x04\x12\x08\n\x04\x45NUM\x10\x05\x12\x16\n\x12\x41UTHORIZATION_CODE\x10\x06\":\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0e\n\nDEPRECATED\x10\x02\" \n\x06Secret\x12\x16\n\x0esecret_version\x18\x01 \x01(\t\".\n\nEnumOption\x12\n\n\x02id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\"\xa5\x01\n\x0e\x43onfigVariable\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x13\n\tint_value\x18\x02 \x01(\x03H\x00\x12\x14\n\nbool_value\x18\x03 \x01(\x08H\x00\x12\x16\n\x0cstring_value\x18\x04 \x01(\tH\x00\x12:\n\x0csecret_value\x18\x05 \x01(\x0b\x32\".google.cloud.connectors.v1.SecretH\x00\x42\x07\n\x05value\"\xe5\x03\n\tRoleGrant\x12\x42\n\tprincipal\x18\x01 \x01(\x0e\x32/.google.cloud.connectors.v1.RoleGrant.Principal\x12\r\n\x05roles\x18\x02 \x03(\t\x12@\n\x08resource\x18\x03 \x01(\x0b\x32..google.cloud.connectors.v1.RoleGrant.Resource\x12\x1c\n\x14helper_text_template\x18\x04 \x01(\t\x1a\xea\x01\n\x08Resource\x12\x41\n\x04type\x18\x01 \x01(\x0e\x32\x33.google.cloud.connectors.v1.RoleGrant.Resource.Type\x12\x15\n\rpath_template\x18\x03 \x01(\t\"\x83\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bGCP_PROJECT\x10\x01\x12\x10\n\x0cGCP_RESOURCE\x10\x02\x12\x1c\n\x18GCP_SECRETMANAGER_SECRET\x10\x03\x12$\n GCP_SECRETMANAGER_SECRET_VERSION\x10\x04\"8\n\tPrincipal\x12\x19\n\x15PRINCIPAL_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x43ONNECTOR_SA\x10\x01\"\\\n\x15\x41uthorizationCodeLink\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0e\n\x06scopes\x18\x02 \x03(\t\x12\x11\n\tclient_id\x18\x03 \x01(\t\x12\x13\n\x0b\x65nable_pkce\x18\x04 \x01(\x08*e\n\x0bLaunchStage\x12\x1c\n\x18LAUNCH_STAGE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PREVIEW\x10\x01\x12\x06\n\x02GA\x10\x02\x12\x0e\n\nDEPRECATED\x10\x03\x12\x13\n\x0fPRIVATE_PREVIEW\x10\x05\x42o\n\x1e\x63om.google.cloud.connectors.v1B\x0b\x43ommonProtoP\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.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 Connectors
      module V1
        OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.OperationMetadata").msgclass
        ConfigVariableTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.ConfigVariableTemplate").msgclass
        ConfigVariableTemplate::ValueType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.ConfigVariableTemplate.ValueType").enummodule
        ConfigVariableTemplate::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.ConfigVariableTemplate.State").enummodule
        Secret = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.Secret").msgclass
        EnumOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.EnumOption").msgclass
        ConfigVariable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.ConfigVariable").msgclass
        RoleGrant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.RoleGrant").msgclass
        RoleGrant::Resource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.RoleGrant.Resource").msgclass
        RoleGrant::Resource::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.RoleGrant.Resource.Type").enummodule
        RoleGrant::Principal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.RoleGrant.Principal").enummodule
        AuthorizationCodeLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.AuthorizationCodeLink").msgclass
        LaunchStage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.connectors.v1.LaunchStage").enummodule
      end
    end
  end
end
