# -*- coding: utf-8 -*-

#  Licensed to the Apache Software Foundation (ASF) under one
#  or more contributor license agreements. See the NOTICE file
#  distributed with this work for additional information
#  regarding copyright ownership. The ASF licenses this file
#  to you under the Apache License, Version 2.0 (the
#  "License"); you may not use this file except in compliance
#  with the License. You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing,
#   software distributed under the License is distributed on an
#   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
#   KIND, either express or implied. See the License for the
#   specific language governing permissions and limitations
#   under the License.

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: AgentManagementService.proto
"""Generated protocol buffer code."""
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.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from google.rpc import error_details_pb2 as google_dot_rpc_dot_error__details__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
import custos.server.core.IamAdminService_pb2 as IamAdminService__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='AgentManagementService.proto',
  package='org.apache.custos.agent.management.service',
  syntax='proto3',
  serialized_options=b'P\001Z\004./pb',
  create_key=_descriptor._internal_create_key,
  serialized_pb=b'\n\x1c\x41gentManagementService.proto\x12*org.apache.custos.agent.management.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/rpc/error_details.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x15IamAdminService.proto\"\x81\x01\n\x12\x41gentSearchRequest\x12\x10\n\x08tenantId\x18\x02 \x01(\x03\x12\x13\n\x0b\x61\x63\x63\x65ssToken\x18\x03 \x01(\t\x12\x10\n\x08\x63lientId\x18\x04 \x01(\t\x12\x11\n\tclientSec\x18\x05 \x01(\t\x12\x13\n\x0bperformedBy\x18\x06 \x01(\t\x12\n\n\x02id\x18\x07 \x01(\t\"7\n\x19\x41gentRegistrationResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06secret\x18\x02 \x01(\t\"?\n\x19SynchronizeAgentDBRequest\x12\x10\n\x08tenantId\x18\x02 \x01(\x03\x12\x10\n\x08\x63lientId\x18\x04 \x01(\t2\xdc\x14\n\x16\x41gentManagementService\x12\x9b\x01\n\x0c\x65nableAgents\x12\x32.org.apache.custos.iam.service.AgentClientMetadata\x1a..org.apache.custos.iam.service.OperationStatus\"\'\x82\xd3\xe4\x93\x02!\"\x1f/agent-management/v1.0.0/enable\x12\xb0\x01\n\x14\x63onfigureAgentClient\x12\x32.org.apache.custos.iam.service.AgentClientMetadata\x1a..org.apache.custos.iam.service.OperationStatus\"4\x82\xd3\xe4\x93\x02.\",/agent-management/v1.0.0/token/configuration\x12\x9a\x01\n\x10\x61\x64\x64RolesToClient\x12..org.apache.custos.iam.service.AddRolesRequest\x1a..org.apache.custos.iam.service.OperationStatus\"&\x82\xd3\xe4\x93\x02 \"\x1e/agent-management/v1.0.0/roles\x12\xc1\x01\n\x16registerAndEnableAgent\x12\x32.org.apache.custos.iam.service.RegisterUserRequest\x1a\x45.org.apache.custos.agent.management.service.AgentRegistrationResponse\",\x82\xd3\xe4\x93\x02&\"\x1e/agent-management/v1.0.0/agent:\x04user\x12\x9d\x01\n\x08getAgent\x12>.org.apache.custos.agent.management.service.AgentSearchRequest\x1a$.org.apache.custos.iam.service.Agent\"+\x82\xd3\xe4\x93\x02%\x12#/agent-management/v1.0.0/agent/{id}\x12\xaa\x01\n\x0b\x64\x65leteAgent\x12>.org.apache.custos.agent.management.service.AgentSearchRequest\x1a..org.apache.custos.iam.service.OperationStatus\"+\x82\xd3\xe4\x93\x02%*#/agent-management/v1.0.0/agent/{id}\x12\xb8\x01\n\x0c\x64isableAgent\x12>.org.apache.custos.agent.management.service.AgentSearchRequest\x1a..org.apache.custos.iam.service.OperationStatus\"8\x82\xd3\xe4\x93\x02\x32\"0/agent-management/v1.0.0/agent/deactivation/{id}\x12\xb5\x01\n\x0b\x65nableAgent\x12>.org.apache.custos.agent.management.service.AgentSearchRequest\x1a..org.apache.custos.iam.service.OperationStatus\"6\x82\xd3\xe4\x93\x02\x30\"./agent-management/v1.0.0/agent/activation/{id}\x12\xb0\x01\n\x12\x61\x64\x64\x41gentAttributes\x12\x37.org.apache.custos.iam.service.AddUserAttributesRequest\x1a..org.apache.custos.iam.service.OperationStatus\"1\x82\xd3\xe4\x93\x02+\")/agent-management/v1.0.0/agent/attributes\x12\xb5\x01\n\x15\x64\x65leteAgentAttributes\x12\x39.org.apache.custos.iam.service.DeleteUserAttributeRequest\x1a..org.apache.custos.iam.service.OperationStatus\"1\x82\xd3\xe4\x93\x02+*)/agent-management/v1.0.0/agent/attributes\x12\xa3\x01\n\x0f\x61\x64\x64RolesToAgent\x12\x32.org.apache.custos.iam.service.AddUserRolesRequest\x1a..org.apache.custos.iam.service.OperationStatus\",\x82\xd3\xe4\x93\x02&\"$/agent-management/v1.0.0/agent/roles\x12\xab\x01\n\x14\x64\x65leteRolesFromAgent\x12\x35.org.apache.custos.iam.service.DeleteUserRolesRequest\x1a..org.apache.custos.iam.service.OperationStatus\",\x82\xd3\xe4\x93\x02&*$/agent-management/v1.0.0/agent/roles\x12\xae\x01\n\x11\x61\x64\x64ProtocolMapper\x12\x37.org.apache.custos.iam.service.AddProtocolMapperRequest\x1a..org.apache.custos.iam.service.OperationStatus\"0\x82\xd3\xe4\x93\x02*\"(/agent-management/v1.0.0/protocol/mapper\x12\x9f\x01\n\x0cgetAllAgents\x12..org.apache.custos.iam.service.GetAllResources\x1a\x36.org.apache.custos.iam.service.GetAllResourcesResponse\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/agent-management/v1.0.0/agents\x12\xbd\x01\n\x13synchronizeAgentDBs\x12\x45.org.apache.custos.agent.management.service.SynchronizeAgentDBRequest\x1a..org.apache.custos.iam.service.OperationStatus\"/\x82\xd3\xe4\x93\x02)\"\'/agent-management/v1.0.0/db/synchronizeB\x08P\x01Z\x04./pbb\x06proto3'
  ,
  dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_rpc_dot_error__details__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,IamAdminService__pb2.DESCRIPTOR,])




_AGENTSEARCHREQUEST = _descriptor.Descriptor(
  name='AgentSearchRequest',
  full_name='org.apache.custos.agent.management.service.AgentSearchRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='tenantId', full_name='org.apache.custos.agent.management.service.AgentSearchRequest.tenantId', index=0,
      number=2, type=3, cpp_type=2, 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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='accessToken', full_name='org.apache.custos.agent.management.service.AgentSearchRequest.accessToken', index=1,
      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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='clientId', full_name='org.apache.custos.agent.management.service.AgentSearchRequest.clientId', index=2,
      number=4, 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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='clientSec', full_name='org.apache.custos.agent.management.service.AgentSearchRequest.clientSec', index=3,
      number=5, 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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='performedBy', full_name='org.apache.custos.agent.management.service.AgentSearchRequest.performedBy', index=4,
      number=6, 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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='id', full_name='org.apache.custos.agent.management.service.AgentSearchRequest.id', index=5,
      number=7, 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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=191,
  serialized_end=320,
)


_AGENTREGISTRATIONRESPONSE = _descriptor.Descriptor(
  name='AgentRegistrationResponse',
  full_name='org.apache.custos.agent.management.service.AgentRegistrationResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='id', full_name='org.apache.custos.agent.management.service.AgentRegistrationResponse.id', 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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='secret', full_name='org.apache.custos.agent.management.service.AgentRegistrationResponse.secret', 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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=322,
  serialized_end=377,
)


_SYNCHRONIZEAGENTDBREQUEST = _descriptor.Descriptor(
  name='SynchronizeAgentDBRequest',
  full_name='org.apache.custos.agent.management.service.SynchronizeAgentDBRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='tenantId', full_name='org.apache.custos.agent.management.service.SynchronizeAgentDBRequest.tenantId', index=0,
      number=2, type=3, cpp_type=2, 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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='clientId', full_name='org.apache.custos.agent.management.service.SynchronizeAgentDBRequest.clientId', index=1,
      number=4, 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, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=379,
  serialized_end=442,
)

DESCRIPTOR.message_types_by_name['AgentSearchRequest'] = _AGENTSEARCHREQUEST
DESCRIPTOR.message_types_by_name['AgentRegistrationResponse'] = _AGENTREGISTRATIONRESPONSE
DESCRIPTOR.message_types_by_name['SynchronizeAgentDBRequest'] = _SYNCHRONIZEAGENTDBREQUEST
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

AgentSearchRequest = _reflection.GeneratedProtocolMessageType('AgentSearchRequest', (_message.Message,), {
  'DESCRIPTOR' : _AGENTSEARCHREQUEST,
  '__module__' : 'AgentManagementService_pb2'
  # @@protoc_insertion_point(class_scope:org.apache.custos.agent.management.service.AgentSearchRequest)
  })
_sym_db.RegisterMessage(AgentSearchRequest)

AgentRegistrationResponse = _reflection.GeneratedProtocolMessageType('AgentRegistrationResponse', (_message.Message,), {
  'DESCRIPTOR' : _AGENTREGISTRATIONRESPONSE,
  '__module__' : 'AgentManagementService_pb2'
  # @@protoc_insertion_point(class_scope:org.apache.custos.agent.management.service.AgentRegistrationResponse)
  })
_sym_db.RegisterMessage(AgentRegistrationResponse)

SynchronizeAgentDBRequest = _reflection.GeneratedProtocolMessageType('SynchronizeAgentDBRequest', (_message.Message,), {
  'DESCRIPTOR' : _SYNCHRONIZEAGENTDBREQUEST,
  '__module__' : 'AgentManagementService_pb2'
  # @@protoc_insertion_point(class_scope:org.apache.custos.agent.management.service.SynchronizeAgentDBRequest)
  })
_sym_db.RegisterMessage(SynchronizeAgentDBRequest)


DESCRIPTOR._options = None

_AGENTMANAGEMENTSERVICE = _descriptor.ServiceDescriptor(
  name='AgentManagementService',
  full_name='org.apache.custos.agent.management.service.AgentManagementService',
  file=DESCRIPTOR,
  index=0,
  serialized_options=None,
  create_key=_descriptor._internal_create_key,
  serialized_start=445,
  serialized_end=3097,
  methods=[
  _descriptor.MethodDescriptor(
    name='enableAgents',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.enableAgents',
    index=0,
    containing_service=None,
    input_type=IamAdminService__pb2._AGENTCLIENTMETADATA,
    output_type=IamAdminService__pb2._OPERATIONSTATUS,
    serialized_options=b'\202\323\344\223\002!\"\037/agent-management/v1.0.0/enable',
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='configureAgentClient',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.configureAgentClient',
    index=1,
    containing_service=None,
    input_type=IamAdminService__pb2._AGENTCLIENTMETADATA,
    output_type=IamAdminService__pb2._OPERATIONSTATUS,
    serialized_options=b'\202\323\344\223\002.\",/agent-management/v1.0.0/token/configuration',
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='addRolesToClient',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.addRolesToClient',
    index=2,
    containing_service=None,
    input_type=IamAdminService__pb2._ADDROLESREQUEST,
    output_type=IamAdminService__pb2._OPERATIONSTATUS,
    serialized_options=b'\202\323\344\223\002 \"\036/agent-management/v1.0.0/roles',
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='registerAndEnableAgent',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.registerAndEnableAgent',
    index=3,
    containing_service=None,
    input_type=IamAdminService__pb2._REGISTERUSERREQUEST,
    output_type=_AGENTREGISTRATIONRESPONSE,
    serialized_options=b'\202\323\344\223\002&\"\036/agent-management/v1.0.0/agent:\004user',
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='getAgent',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.getAgent',
    index=4,
    containing_service=None,
    input_type=_AGENTSEARCHREQUEST,
    output_type=IamAdminService__pb2._AGENT,
    serialized_options=b'\202\323\344\223\002%\022#/agent-management/v1.0.0/agent/{id}',
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='deleteAgent',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.deleteAgent',
    index=5,
    containing_service=None,
    input_type=_AGENTSEARCHREQUEST,
    output_type=IamAdminService__pb2._OPERATIONSTATUS,
    serialized_options=b'\202\323\344\223\002%*#/agent-management/v1.0.0/agent/{id}',
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='disableAgent',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.disableAgent',
    index=6,
    containing_service=None,
    input_type=_AGENTSEARCHREQUEST,
    output_type=IamAdminService__pb2._OPERATIONSTATUS,
    serialized_options=b'\202\323\344\223\0022\"0/agent-management/v1.0.0/agent/deactivation/{id}',
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='enableAgent',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.enableAgent',
    index=7,
    containing_service=None,
    input_type=_AGENTSEARCHREQUEST,
    output_type=IamAdminService__pb2._OPERATIONSTATUS,
    serialized_options=b'\202\323\344\223\0020\"./agent-management/v1.0.0/agent/activation/{id}',
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='addAgentAttributes',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.addAgentAttributes',
    index=8,
    containing_service=None,
    input_type=IamAdminService__pb2._ADDUSERATTRIBUTESREQUEST,
    output_type=IamAdminService__pb2._OPERATIONSTATUS,
    serialized_options=b'\202\323\344\223\002+\")/agent-management/v1.0.0/agent/attributes',
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='deleteAgentAttributes',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.deleteAgentAttributes',
    index=9,
    containing_service=None,
    input_type=IamAdminService__pb2._DELETEUSERATTRIBUTEREQUEST,
    output_type=IamAdminService__pb2._OPERATIONSTATUS,
    serialized_options=b'\202\323\344\223\002+*)/agent-management/v1.0.0/agent/attributes',
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='addRolesToAgent',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.addRolesToAgent',
    index=10,
    containing_service=None,
    input_type=IamAdminService__pb2._ADDUSERROLESREQUEST,
    output_type=IamAdminService__pb2._OPERATIONSTATUS,
    serialized_options=b'\202\323\344\223\002&\"$/agent-management/v1.0.0/agent/roles',
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='deleteRolesFromAgent',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.deleteRolesFromAgent',
    index=11,
    containing_service=None,
    input_type=IamAdminService__pb2._DELETEUSERROLESREQUEST,
    output_type=IamAdminService__pb2._OPERATIONSTATUS,
    serialized_options=b'\202\323\344\223\002&*$/agent-management/v1.0.0/agent/roles',
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='addProtocolMapper',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.addProtocolMapper',
    index=12,
    containing_service=None,
    input_type=IamAdminService__pb2._ADDPROTOCOLMAPPERREQUEST,
    output_type=IamAdminService__pb2._OPERATIONSTATUS,
    serialized_options=b'\202\323\344\223\002*\"(/agent-management/v1.0.0/protocol/mapper',
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='getAllAgents',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.getAllAgents',
    index=13,
    containing_service=None,
    input_type=IamAdminService__pb2._GETALLRESOURCES,
    output_type=IamAdminService__pb2._GETALLRESOURCESRESPONSE,
    serialized_options=b'\202\323\344\223\002!\022\037/agent-management/v1.0.0/agents',
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='synchronizeAgentDBs',
    full_name='org.apache.custos.agent.management.service.AgentManagementService.synchronizeAgentDBs',
    index=14,
    containing_service=None,
    input_type=_SYNCHRONIZEAGENTDBREQUEST,
    output_type=IamAdminService__pb2._OPERATIONSTATUS,
    serialized_options=b'\202\323\344\223\002)\"\'/agent-management/v1.0.0/db/synchronize',
    create_key=_descriptor._internal_create_key,
  ),
])
_sym_db.RegisterServiceDescriptor(_AGENTMANAGEMENTSERVICE)

DESCRIPTOR.services_by_name['AgentManagementService'] = _AGENTMANAGEMENTSERVICE

# @@protoc_insertion_point(module_scope)
