# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: tecton_proto/auth/service.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='tecton_proto/auth/service.proto',
  package='tecton_proto.auth',
  syntax='proto2',
  serialized_options=None,
  create_key=_descriptor._internal_create_key,
  serialized_pb=b'\n\x1ftecton_proto/auth/service.proto\x12\x11tecton_proto.auth\x1a google/protobuf/descriptor.proto\"\xff\x03\n\x0c\x41uthMetadata\x12\x36\n\x13skip_authentication\x18\x01 \x01(\x08:\x05\x66\x61lseR\x12skipAuthentication\x12\x34\n\x12skip_authorization\x18\x02 \x01(\x08:\x05\x66\x61lseR\x11skipAuthorization\x12.\n\npermission\x18\x05 \x01(\t:\x0enot_configuredR\npermission\x12i\n\x1d\x61\x64vanced_permission_overrides\x18\x06 \x03(\x0b\x32%.tecton_proto.auth.PermissionOverrideR\x1b\x61\x64vancedPermissionOverrides\x12S\n\x12resource_reference\x18\x03 \x01(\x0b\x32$.tecton_proto.auth.ResourceReferenceR\x11resourceReference\x12\x45\n\x1cLEGACY_require_admin_api_key\x18\x07 \x01(\x08:\x05\x66\x61lseR\x18LEGACYRequireAdminApiKey\x12J\n\x1e\x64\x65\x66\x65r_authorization_to_service\x18\x08 \x01(\x08:\x05\x66\x61lseR\x1b\x64\x65\x66\x65rAuthorizationToService\"\xa0\x01\n\x12PermissionOverride\x12\x30\n\x14\x63ondition_field_path\x18\x01 \x01(\tR\x12\x63onditionFieldPath\x12\'\n\x0f\x63ondition_value\x18\x02 \x01(\tR\x0e\x63onditionValue\x12/\n\x13permission_override\x18\x03 \x01(\tR\x12permissionOverride\"c\n\x11ResourceReference\x12:\n\x04type\x18\x01 \x01(\x0e\x32&.tecton_proto.auth.ResourceRefTypeEnumR\x04type\x12\x12\n\x04path\x18\x02 \x01(\tR\x04path*Z\n\x13ResourceRefTypeEnum\x12\x1d\n\x19RESOURCE_REF_TYPE_UNKNOWN\x10\x00\x12$\n RESOURCE_REF_TYPE_WORKSPACE_NAME\x10\x01:e\n\x1b\x61llow_in_standard_user_role\x12\x1e.google.protobuf.MethodOptions\x18\xd0\x86\x03 \x01(\x08:\x05\x66\x61lseR\x17\x61llowInStandardUserRole:m\n\x1e\x61llow_unauthenticated_requests\x12\x1e.google.protobuf.MethodOptions\x18\xd1\x86\x03 \x01(\x08:\x05\x66\x61lseR\x1c\x61llowUnauthenticatedRequests:f\n\rauth_metadata\x12\x1e.google.protobuf.MethodOptions\x18\xd2\x86\x03 \x01(\x0b\x32\x1f.tecton_proto.auth.AuthMetadataR\x0c\x61uthMetadata'
  ,
  dependencies=[google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,])

_RESOURCEREFTYPEENUM = _descriptor.EnumDescriptor(
  name='ResourceRefTypeEnum',
  full_name='tecton_proto.auth.ResourceRefTypeEnum',
  filename=None,
  file=DESCRIPTOR,
  create_key=_descriptor._internal_create_key,
  values=[
    _descriptor.EnumValueDescriptor(
      name='RESOURCE_REF_TYPE_UNKNOWN', index=0, number=0,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
    _descriptor.EnumValueDescriptor(
      name='RESOURCE_REF_TYPE_WORKSPACE_NAME', index=1, number=1,
      serialized_options=None,
      type=None,
      create_key=_descriptor._internal_create_key),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=866,
  serialized_end=956,
)
_sym_db.RegisterEnumDescriptor(_RESOURCEREFTYPEENUM)

ResourceRefTypeEnum = enum_type_wrapper.EnumTypeWrapper(_RESOURCEREFTYPEENUM)
RESOURCE_REF_TYPE_UNKNOWN = 0
RESOURCE_REF_TYPE_WORKSPACE_NAME = 1

ALLOW_IN_STANDARD_USER_ROLE_FIELD_NUMBER = 50000
allow_in_standard_user_role = _descriptor.FieldDescriptor(
  name='allow_in_standard_user_role', full_name='tecton_proto.auth.allow_in_standard_user_role', index=0,
  number=50000, type=8, cpp_type=7, label=1,
  has_default_value=True, default_value=False,
  message_type=None, enum_type=None, containing_type=None,
  is_extension=True, extension_scope=None,
  serialized_options=None, json_name='allowInStandardUserRole', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key)
ALLOW_UNAUTHENTICATED_REQUESTS_FIELD_NUMBER = 50001
allow_unauthenticated_requests = _descriptor.FieldDescriptor(
  name='allow_unauthenticated_requests', full_name='tecton_proto.auth.allow_unauthenticated_requests', index=1,
  number=50001, type=8, cpp_type=7, label=1,
  has_default_value=True, default_value=False,
  message_type=None, enum_type=None, containing_type=None,
  is_extension=True, extension_scope=None,
  serialized_options=None, json_name='allowUnauthenticatedRequests', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key)
AUTH_METADATA_FIELD_NUMBER = 50002
auth_metadata = _descriptor.FieldDescriptor(
  name='auth_metadata', full_name='tecton_proto.auth.auth_metadata', index=2,
  number=50002, type=11, cpp_type=10, label=1,
  has_default_value=False, default_value=None,
  message_type=None, enum_type=None, containing_type=None,
  is_extension=True, extension_scope=None,
  serialized_options=None, json_name='authMetadata', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key)


_AUTHMETADATA = _descriptor.Descriptor(
  name='AuthMetadata',
  full_name='tecton_proto.auth.AuthMetadata',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='skip_authentication', full_name='tecton_proto.auth.AuthMetadata.skip_authentication', index=0,
      number=1, type=8, cpp_type=7, label=1,
      has_default_value=True, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, json_name='skipAuthentication', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='skip_authorization', full_name='tecton_proto.auth.AuthMetadata.skip_authorization', index=1,
      number=2, type=8, cpp_type=7, label=1,
      has_default_value=True, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, json_name='skipAuthorization', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='permission', full_name='tecton_proto.auth.AuthMetadata.permission', index=2,
      number=5, type=9, cpp_type=9, label=1,
      has_default_value=True, default_value=b"not_configured".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, json_name='permission', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='advanced_permission_overrides', full_name='tecton_proto.auth.AuthMetadata.advanced_permission_overrides', index=3,
      number=6, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, json_name='advancedPermissionOverrides', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='resource_reference', full_name='tecton_proto.auth.AuthMetadata.resource_reference', index=4,
      number=3, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, json_name='resourceReference', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='LEGACY_require_admin_api_key', full_name='tecton_proto.auth.AuthMetadata.LEGACY_require_admin_api_key', index=5,
      number=7, type=8, cpp_type=7, label=1,
      has_default_value=True, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, json_name='LEGACYRequireAdminApiKey', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='defer_authorization_to_service', full_name='tecton_proto.auth.AuthMetadata.defer_authorization_to_service', index=6,
      number=8, type=8, cpp_type=7, label=1,
      has_default_value=True, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, json_name='deferAuthorizationToService', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto2',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=89,
  serialized_end=600,
)


_PERMISSIONOVERRIDE = _descriptor.Descriptor(
  name='PermissionOverride',
  full_name='tecton_proto.auth.PermissionOverride',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='condition_field_path', full_name='tecton_proto.auth.PermissionOverride.condition_field_path', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, json_name='conditionFieldPath', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='condition_value', full_name='tecton_proto.auth.PermissionOverride.condition_value', index=1,
      number=2, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, json_name='conditionValue', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='permission_override', full_name='tecton_proto.auth.PermissionOverride.permission_override', index=2,
      number=3, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, json_name='permissionOverride', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto2',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=603,
  serialized_end=763,
)


_RESOURCEREFERENCE = _descriptor.Descriptor(
  name='ResourceReference',
  full_name='tecton_proto.auth.ResourceReference',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='type', full_name='tecton_proto.auth.ResourceReference.type', index=0,
      number=1, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, json_name='type', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='path', full_name='tecton_proto.auth.ResourceReference.path', index=1,
      number=2, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, json_name='path', file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto2',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=765,
  serialized_end=864,
)

_AUTHMETADATA.fields_by_name['advanced_permission_overrides'].message_type = _PERMISSIONOVERRIDE
_AUTHMETADATA.fields_by_name['resource_reference'].message_type = _RESOURCEREFERENCE
_RESOURCEREFERENCE.fields_by_name['type'].enum_type = _RESOURCEREFTYPEENUM
DESCRIPTOR.message_types_by_name['AuthMetadata'] = _AUTHMETADATA
DESCRIPTOR.message_types_by_name['PermissionOverride'] = _PERMISSIONOVERRIDE
DESCRIPTOR.message_types_by_name['ResourceReference'] = _RESOURCEREFERENCE
DESCRIPTOR.enum_types_by_name['ResourceRefTypeEnum'] = _RESOURCEREFTYPEENUM
DESCRIPTOR.extensions_by_name['allow_in_standard_user_role'] = allow_in_standard_user_role
DESCRIPTOR.extensions_by_name['allow_unauthenticated_requests'] = allow_unauthenticated_requests
DESCRIPTOR.extensions_by_name['auth_metadata'] = auth_metadata
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

AuthMetadata = _reflection.GeneratedProtocolMessageType('AuthMetadata', (_message.Message,), {
  'DESCRIPTOR' : _AUTHMETADATA,
  '__module__' : 'tecton_proto.auth.service_pb2'
  # @@protoc_insertion_point(class_scope:tecton_proto.auth.AuthMetadata)
  })
_sym_db.RegisterMessage(AuthMetadata)

PermissionOverride = _reflection.GeneratedProtocolMessageType('PermissionOverride', (_message.Message,), {
  'DESCRIPTOR' : _PERMISSIONOVERRIDE,
  '__module__' : 'tecton_proto.auth.service_pb2'
  # @@protoc_insertion_point(class_scope:tecton_proto.auth.PermissionOverride)
  })
_sym_db.RegisterMessage(PermissionOverride)

ResourceReference = _reflection.GeneratedProtocolMessageType('ResourceReference', (_message.Message,), {
  'DESCRIPTOR' : _RESOURCEREFERENCE,
  '__module__' : 'tecton_proto.auth.service_pb2'
  # @@protoc_insertion_point(class_scope:tecton_proto.auth.ResourceReference)
  })
_sym_db.RegisterMessage(ResourceReference)

google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(allow_in_standard_user_role)
google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(allow_unauthenticated_requests)
auth_metadata.message_type = _AUTHMETADATA
google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(auth_metadata)

# @@protoc_insertion_point(module_scope)
