# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: assessment.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.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 import grpc_gen.evidence_pb2 as evidence__pb2 import grpc_gen.metric_pb2 as metric__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='assessment.proto', package='clouditor', syntax='proto3', serialized_options=b'Z\016api/assessment', create_key=_descriptor._internal_create_key, serialized_pb=b'\n\x10\x61ssessment.proto\x12\tclouditor\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0e\x65vidence.proto\x1a\x0cmetric.proto\".\n\x18TriggerAssessmentRequest\x12\x12\n\nsomeOption\x18\x01 \x01(\t\"\x1e\n\x1cListAssessmentResultsRequest\"C\n\x1dListAssessmentResultsResponse\x12\"\n\x07results\x18\x01 \x03(\x0b\x32\x11.clouditor.Result\">\n\x15\x41ssessEvidenceRequest\x12%\n\x08\x65vidence\x18\x01 \x01(\x0b\x32\x13.clouditor.Evidence\"(\n\x16\x41ssessEvidenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x08\"\xe9\x01\n\x06Result\x12\n\n\x02id\x18\x01 \x01(\t\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tmetric_id\x18\x03 \x01(\t\x12\x33\n\x0bmetric_data\x18\x04 \x01(\x0b\x32\x1e.clouditor.MetricConfiguration\x12\x11\n\tcompliant\x18\x05 \x01(\x08\x12\x13\n\x0b\x65vidence_id\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x07 \x01(\t\x12\x1f\n\x17non_compliance_comments\x18\x08 \x01(\t2\xae\x03\n\nAssessment\x12R\n\x11TriggerAssessment\x12#.clouditor.TriggerAssessmentRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x8d\x01\n\x15ListAssessmentResults\x12\'.clouditor.ListAssessmentResultsRequest\x1a(.clouditor.ListAssessmentResultsResponse\"!\x82\xd3\xe4\x93\x02\x1b\"\x16/v1/assessment/resultsb\x01*\x12z\n\x0e\x41ssessEvidence\x12 .clouditor.AssessEvidenceRequest\x1a!.clouditor.AssessEvidenceResponse\"#\x82\xd3\xe4\x93\x02\x1d\"\x18/v1/assessment/evidencesb\x01*\x12@\n\x0f\x41ssessEvidences\x12\x13.clouditor.Evidence\x1a\x16.google.protobuf.Empty(\x01\x42\x10Z\x0e\x61pi/assessmentb\x06proto3' , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,evidence__pb2.DESCRIPTOR,metric__pb2.DESCRIPTOR,]) _TRIGGERASSESSMENTREQUEST = _descriptor.Descriptor( name='TriggerAssessmentRequest', full_name='clouditor.TriggerAssessmentRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='someOption', full_name='clouditor.TriggerAssessmentRequest.someOption', 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), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=153, serialized_end=199, ) _LISTASSESSMENTRESULTSREQUEST = _descriptor.Descriptor( name='ListAssessmentResultsRequest', full_name='clouditor.ListAssessmentResultsRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=201, serialized_end=231, ) _LISTASSESSMENTRESULTSRESPONSE = _descriptor.Descriptor( name='ListAssessmentResultsResponse', full_name='clouditor.ListAssessmentResultsResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='results', full_name='clouditor.ListAssessmentResultsResponse.results', index=0, number=1, 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, 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=233, serialized_end=300, ) _ASSESSEVIDENCEREQUEST = _descriptor.Descriptor( name='AssessEvidenceRequest', full_name='clouditor.AssessEvidenceRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='evidence', full_name='clouditor.AssessEvidenceRequest.evidence', index=0, number=1, 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, 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=302, serialized_end=364, ) _ASSESSEVIDENCERESPONSE = _descriptor.Descriptor( name='AssessEvidenceResponse', full_name='clouditor.AssessEvidenceResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='status', full_name='clouditor.AssessEvidenceResponse.status', index=0, number=1, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, 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=366, serialized_end=406, ) _RESULT = _descriptor.Descriptor( name='Result', full_name='clouditor.Result', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='id', full_name='clouditor.Result.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='timestamp', full_name='clouditor.Result.timestamp', index=1, number=2, 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, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metric_id', full_name='clouditor.Result.metric_id', 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, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='metric_data', full_name='clouditor.Result.metric_data', index=3, number=4, 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, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='compliant', full_name='clouditor.Result.compliant', index=4, number=5, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, 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='evidence_id', full_name='clouditor.Result.evidence_id', index=5, 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='resource_id', full_name='clouditor.Result.resource_id', index=6, 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), _descriptor.FieldDescriptor( name='non_compliance_comments', full_name='clouditor.Result.non_compliance_comments', index=7, number=8, 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=409, serialized_end=642, ) _LISTASSESSMENTRESULTSRESPONSE.fields_by_name['results'].message_type = _RESULT _ASSESSEVIDENCEREQUEST.fields_by_name['evidence'].message_type = evidence__pb2._EVIDENCE _RESULT.fields_by_name['timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _RESULT.fields_by_name['metric_data'].message_type = metric__pb2._METRICCONFIGURATION DESCRIPTOR.message_types_by_name['TriggerAssessmentRequest'] = _TRIGGERASSESSMENTREQUEST DESCRIPTOR.message_types_by_name['ListAssessmentResultsRequest'] = _LISTASSESSMENTRESULTSREQUEST DESCRIPTOR.message_types_by_name['ListAssessmentResultsResponse'] = _LISTASSESSMENTRESULTSRESPONSE DESCRIPTOR.message_types_by_name['AssessEvidenceRequest'] = _ASSESSEVIDENCEREQUEST DESCRIPTOR.message_types_by_name['AssessEvidenceResponse'] = _ASSESSEVIDENCERESPONSE DESCRIPTOR.message_types_by_name['Result'] = _RESULT _sym_db.RegisterFileDescriptor(DESCRIPTOR) TriggerAssessmentRequest = _reflection.GeneratedProtocolMessageType('TriggerAssessmentRequest', (_message.Message,), { 'DESCRIPTOR' : _TRIGGERASSESSMENTREQUEST, '__module__' : 'assessment_pb2' # @@protoc_insertion_point(class_scope:clouditor.TriggerAssessmentRequest) }) _sym_db.RegisterMessage(TriggerAssessmentRequest) ListAssessmentResultsRequest = _reflection.GeneratedProtocolMessageType('ListAssessmentResultsRequest', (_message.Message,), { 'DESCRIPTOR' : _LISTASSESSMENTRESULTSREQUEST, '__module__' : 'assessment_pb2' # @@protoc_insertion_point(class_scope:clouditor.ListAssessmentResultsRequest) }) _sym_db.RegisterMessage(ListAssessmentResultsRequest) ListAssessmentResultsResponse = _reflection.GeneratedProtocolMessageType('ListAssessmentResultsResponse', (_message.Message,), { 'DESCRIPTOR' : _LISTASSESSMENTRESULTSRESPONSE, '__module__' : 'assessment_pb2' # @@protoc_insertion_point(class_scope:clouditor.ListAssessmentResultsResponse) }) _sym_db.RegisterMessage(ListAssessmentResultsResponse) AssessEvidenceRequest = _reflection.GeneratedProtocolMessageType('AssessEvidenceRequest', (_message.Message,), { 'DESCRIPTOR' : _ASSESSEVIDENCEREQUEST, '__module__' : 'assessment_pb2' # @@protoc_insertion_point(class_scope:clouditor.AssessEvidenceRequest) }) _sym_db.RegisterMessage(AssessEvidenceRequest) AssessEvidenceResponse = _reflection.GeneratedProtocolMessageType('AssessEvidenceResponse', (_message.Message,), { 'DESCRIPTOR' : _ASSESSEVIDENCERESPONSE, '__module__' : 'assessment_pb2' # @@protoc_insertion_point(class_scope:clouditor.AssessEvidenceResponse) }) _sym_db.RegisterMessage(AssessEvidenceResponse) Result = _reflection.GeneratedProtocolMessageType('Result', (_message.Message,), { 'DESCRIPTOR' : _RESULT, '__module__' : 'assessment_pb2' # @@protoc_insertion_point(class_scope:clouditor.Result) }) _sym_db.RegisterMessage(Result) DESCRIPTOR._options = None _ASSESSMENT = _descriptor.ServiceDescriptor( name='Assessment', full_name='clouditor.Assessment', file=DESCRIPTOR, index=0, serialized_options=None, create_key=_descriptor._internal_create_key, serialized_start=645, serialized_end=1075, methods=[ _descriptor.MethodDescriptor( name='TriggerAssessment', full_name='clouditor.Assessment.TriggerAssessment', index=0, containing_service=None, input_type=_TRIGGERASSESSMENTREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='ListAssessmentResults', full_name='clouditor.Assessment.ListAssessmentResults', index=1, containing_service=None, input_type=_LISTASSESSMENTRESULTSREQUEST, output_type=_LISTASSESSMENTRESULTSRESPONSE, serialized_options=b'\202\323\344\223\002\033\"\026/v1/assessment/resultsb\001*', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='AssessEvidence', full_name='clouditor.Assessment.AssessEvidence', index=2, containing_service=None, input_type=_ASSESSEVIDENCEREQUEST, output_type=_ASSESSEVIDENCERESPONSE, serialized_options=b'\202\323\344\223\002\035\"\030/v1/assessment/evidencesb\001*', create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='AssessEvidences', full_name='clouditor.Assessment.AssessEvidences', index=3, containing_service=None, input_type=evidence__pb2._EVIDENCE, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=None, create_key=_descriptor._internal_create_key, ), ]) _sym_db.RegisterServiceDescriptor(_ASSESSMENT) DESCRIPTOR.services_by_name['Assessment'] = _ASSESSMENT # @@protoc_insertion_point(module_scope)