scanoss 1.27.1__py3-none-any.whl → 1.43.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. protoc_gen_swagger/options/annotations_pb2.py +18 -12
  2. protoc_gen_swagger/options/annotations_pb2.pyi +48 -0
  3. protoc_gen_swagger/options/annotations_pb2_grpc.py +20 -0
  4. protoc_gen_swagger/options/openapiv2_pb2.py +110 -99
  5. protoc_gen_swagger/options/openapiv2_pb2.pyi +1317 -0
  6. protoc_gen_swagger/options/openapiv2_pb2_grpc.py +20 -0
  7. scanoss/__init__.py +1 -1
  8. scanoss/api/common/v2/scanoss_common_pb2.py +49 -22
  9. scanoss/api/common/v2/scanoss_common_pb2_grpc.py +25 -0
  10. scanoss/api/components/v2/scanoss_components_pb2.py +68 -43
  11. scanoss/api/components/v2/scanoss_components_pb2_grpc.py +83 -22
  12. scanoss/api/cryptography/v2/scanoss_cryptography_pb2.py +136 -47
  13. scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py +650 -33
  14. scanoss/api/dependencies/v2/scanoss_dependencies_pb2.py +56 -37
  15. scanoss/api/dependencies/v2/scanoss_dependencies_pb2_grpc.py +64 -12
  16. scanoss/api/geoprovenance/v2/scanoss_geoprovenance_pb2.py +74 -31
  17. scanoss/api/geoprovenance/v2/scanoss_geoprovenance_pb2_grpc.py +252 -13
  18. scanoss/api/licenses/__init__.py +23 -0
  19. scanoss/api/licenses/v2/__init__.py +23 -0
  20. scanoss/api/licenses/v2/scanoss_licenses_pb2.py +84 -0
  21. scanoss/api/licenses/v2/scanoss_licenses_pb2_grpc.py +302 -0
  22. scanoss/api/scanning/v2/scanoss_scanning_pb2.py +32 -21
  23. scanoss/api/scanning/v2/scanoss_scanning_pb2_grpc.py +49 -8
  24. scanoss/api/semgrep/v2/scanoss_semgrep_pb2.py +50 -23
  25. scanoss/api/semgrep/v2/scanoss_semgrep_pb2_grpc.py +151 -16
  26. scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py +78 -31
  27. scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py +282 -18
  28. scanoss/cli.py +1000 -186
  29. scanoss/components.py +80 -50
  30. scanoss/constants.py +7 -1
  31. scanoss/cryptography.py +89 -55
  32. scanoss/csvoutput.py +13 -7
  33. scanoss/cyclonedx.py +141 -9
  34. scanoss/data/build_date.txt +1 -1
  35. scanoss/data/osadl-copyleft.json +133 -0
  36. scanoss/delta.py +197 -0
  37. scanoss/export/__init__.py +23 -0
  38. scanoss/export/dependency_track.py +227 -0
  39. scanoss/file_filters.py +2 -163
  40. scanoss/filecount.py +37 -38
  41. scanoss/gitlabqualityreport.py +214 -0
  42. scanoss/header_filter.py +563 -0
  43. scanoss/inspection/policy_check/__init__.py +0 -0
  44. scanoss/inspection/policy_check/dependency_track/__init__.py +0 -0
  45. scanoss/inspection/policy_check/dependency_track/project_violation.py +479 -0
  46. scanoss/inspection/{policy_check.py → policy_check/policy_check.py} +65 -72
  47. scanoss/inspection/policy_check/scanoss/__init__.py +0 -0
  48. scanoss/inspection/{copyleft.py → policy_check/scanoss/copyleft.py} +89 -73
  49. scanoss/inspection/{undeclared_component.py → policy_check/scanoss/undeclared_component.py} +52 -46
  50. scanoss/inspection/summary/__init__.py +0 -0
  51. scanoss/inspection/summary/component_summary.py +170 -0
  52. scanoss/inspection/{license_summary.py → summary/license_summary.py} +62 -12
  53. scanoss/inspection/summary/match_summary.py +341 -0
  54. scanoss/inspection/utils/file_utils.py +44 -0
  55. scanoss/inspection/utils/license_utils.py +57 -71
  56. scanoss/inspection/utils/markdown_utils.py +63 -0
  57. scanoss/inspection/{inspect_base.py → utils/scan_result_processor.py} +53 -67
  58. scanoss/osadl.py +125 -0
  59. scanoss/scanner.py +135 -253
  60. scanoss/scanners/folder_hasher.py +47 -32
  61. scanoss/scanners/scanner_hfh.py +50 -18
  62. scanoss/scanoss_settings.py +33 -3
  63. scanoss/scanossapi.py +23 -25
  64. scanoss/scanossbase.py +1 -1
  65. scanoss/scanossgrpc.py +543 -289
  66. scanoss/services/dependency_track_service.py +132 -0
  67. scanoss/spdxlite.py +11 -4
  68. scanoss/threadeddependencies.py +19 -18
  69. scanoss/threadedscanning.py +10 -0
  70. scanoss/utils/scanoss_scan_results_utils.py +41 -0
  71. scanoss/winnowing.py +71 -19
  72. {scanoss-1.27.1.dist-info → scanoss-1.43.1.dist-info}/METADATA +8 -5
  73. scanoss-1.43.1.dist-info/RECORD +110 -0
  74. scanoss/inspection/component_summary.py +0 -94
  75. scanoss-1.27.1.dist-info/RECORD +0 -87
  76. {scanoss-1.27.1.dist-info → scanoss-1.43.1.dist-info}/WHEEL +0 -0
  77. {scanoss-1.27.1.dist-info → scanoss-1.43.1.dist-info}/entry_points.txt +0 -0
  78. {scanoss-1.27.1.dist-info → scanoss-1.43.1.dist-info}/licenses/LICENSE +0 -0
  79. {scanoss-1.27.1.dist-info → scanoss-1.43.1.dist-info}/top_level.txt +0 -0
@@ -1,11 +1,22 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
3
4
  # source: protoc-gen-swagger/options/annotations.proto
5
+ # Protobuf Python Version: 6.31.0
4
6
  """Generated protocol buffer code."""
5
- from google.protobuf.internal import builder as _builder
6
7
  from google.protobuf import descriptor as _descriptor
7
8
  from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
8
10
  from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 0,
17
+ '',
18
+ 'protoc-gen-swagger/options/annotations.proto'
19
+ )
9
20
  # @@protoc_insertion_point(imports)
10
21
 
11
22
  _sym_db = _symbol_database.Default()
@@ -17,15 +28,10 @@ from protoc_gen_swagger.options import openapiv2_pb2 as protoc__gen__swagger_dot
17
28
 
18
29
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,protoc-gen-swagger/options/annotations.proto\x12\'grpc.gateway.protoc_gen_swagger.options\x1a google/protobuf/descriptor.proto\x1a*protoc-gen-swagger/options/openapiv2.proto:j\n\x11openapiv2_swagger\x12\x1c.google.protobuf.FileOptions\x18\x92\x08 \x01(\x0b\x32\x30.grpc.gateway.protoc_gen_swagger.options.Swagger:p\n\x13openapiv2_operation\x12\x1e.google.protobuf.MethodOptions\x18\x92\x08 \x01(\x0b\x32\x32.grpc.gateway.protoc_gen_swagger.options.Operation:k\n\x10openapiv2_schema\x12\x1f.google.protobuf.MessageOptions\x18\x92\x08 \x01(\x0b\x32/.grpc.gateway.protoc_gen_swagger.options.Schema:e\n\ropenapiv2_tag\x12\x1f.google.protobuf.ServiceOptions\x18\x92\x08 \x01(\x0b\x32,.grpc.gateway.protoc_gen_swagger.options.Tag:l\n\x0fopenapiv2_field\x12\x1d.google.protobuf.FieldOptions\x18\x92\x08 \x01(\x0b\x32\x33.grpc.gateway.protoc_gen_swagger.options.JSONSchemaBCZAgithub.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/optionsb\x06proto3')
19
30
 
20
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
21
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protoc_gen_swagger.options.annotations_pb2', globals())
22
- if _descriptor._USE_C_DESCRIPTORS == False:
23
- google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(openapiv2_swagger)
24
- google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(openapiv2_operation)
25
- google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(openapiv2_schema)
26
- google_dot_protobuf_dot_descriptor__pb2.ServiceOptions.RegisterExtension(openapiv2_tag)
27
- google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(openapiv2_field)
28
-
29
- DESCRIPTOR._options = None
30
- DESCRIPTOR._serialized_options = b'ZAgithub.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options'
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protoc_gen_swagger.options.annotations_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'ZAgithub.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options'
31
37
  # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,48 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import google.protobuf.descriptor
8
+ import google.protobuf.descriptor_pb2
9
+ import google.protobuf.internal.extension_dict
10
+ import protoc_gen_swagger.options.openapiv2_pb2
11
+
12
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
13
+
14
+ OPENAPIV2_SWAGGER_FIELD_NUMBER: builtins.int
15
+ OPENAPIV2_OPERATION_FIELD_NUMBER: builtins.int
16
+ OPENAPIV2_SCHEMA_FIELD_NUMBER: builtins.int
17
+ OPENAPIV2_TAG_FIELD_NUMBER: builtins.int
18
+ OPENAPIV2_FIELD_FIELD_NUMBER: builtins.int
19
+ openapiv2_swagger: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, protoc_gen_swagger.options.openapiv2_pb2.Swagger]
20
+ """ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
21
+
22
+ All IDs are the same, as assigned. It is okay that they are the same, as they extend
23
+ different descriptor messages.
24
+ """
25
+ openapiv2_operation: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MethodOptions, protoc_gen_swagger.options.openapiv2_pb2.Operation]
26
+ """ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
27
+
28
+ All IDs are the same, as assigned. It is okay that they are the same, as they extend
29
+ different descriptor messages.
30
+ """
31
+ openapiv2_schema: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, protoc_gen_swagger.options.openapiv2_pb2.Schema]
32
+ """ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
33
+
34
+ All IDs are the same, as assigned. It is okay that they are the same, as they extend
35
+ different descriptor messages.
36
+ """
37
+ openapiv2_tag: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.ServiceOptions, protoc_gen_swagger.options.openapiv2_pb2.Tag]
38
+ """ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
39
+
40
+ All IDs are the same, as assigned. It is okay that they are the same, as they extend
41
+ different descriptor messages.
42
+ """
43
+ openapiv2_field: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, protoc_gen_swagger.options.openapiv2_pb2.JSONSchema]
44
+ """ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
45
+
46
+ All IDs are the same, as assigned. It is okay that they are the same, as they extend
47
+ different descriptor messages.
48
+ """
@@ -1,4 +1,24 @@
1
1
  # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
2
  """Client and server classes corresponding to protobuf-defined services."""
3
3
  import grpc
4
+ import warnings
4
5
 
6
+
7
+ GRPC_GENERATED_VERSION = '1.73.1'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + f' but the generated code in protoc_gen_swagger/options/annotations_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )
@@ -1,11 +1,22 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
3
4
  # source: protoc-gen-swagger/options/openapiv2.proto
5
+ # Protobuf Python Version: 6.31.0
4
6
  """Generated protocol buffer code."""
5
- from google.protobuf.internal import builder as _builder
6
7
  from google.protobuf import descriptor as _descriptor
7
8
  from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
8
10
  from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 0,
17
+ '',
18
+ 'protoc-gen-swagger/options/openapiv2.proto'
19
+ )
9
20
  # @@protoc_insertion_point(imports)
10
21
 
11
22
  _sym_db = _symbol_database.Default()
@@ -17,102 +28,102 @@ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
17
28
 
18
29
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*protoc-gen-swagger/options/openapiv2.proto\x12\'grpc.gateway.protoc_gen_swagger.options\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa0\x07\n\x07Swagger\x12\x0f\n\x07swagger\x18\x01 \x01(\t\x12;\n\x04info\x18\x02 \x01(\x0b\x32-.grpc.gateway.protoc_gen_swagger.options.Info\x12\x0c\n\x04host\x18\x03 \x01(\t\x12\x11\n\tbase_path\x18\x04 \x01(\t\x12O\n\x07schemes\x18\x05 \x03(\x0e\x32>.grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme\x12\x10\n\x08\x63onsumes\x18\x06 \x03(\t\x12\x10\n\x08produces\x18\x07 \x03(\t\x12R\n\tresponses\x18\n \x03(\x0b\x32?.grpc.gateway.protoc_gen_swagger.options.Swagger.ResponsesEntry\x12Z\n\x14security_definitions\x18\x0b \x01(\x0b\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions\x12N\n\x08security\x18\x0c \x03(\x0b\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityRequirement\x12U\n\rexternal_docs\x18\x0e \x01(\x0b\x32>.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation\x12T\n\nextensions\x18\x0f \x03(\x0b\x32@.grpc.gateway.protoc_gen_swagger.options.Swagger.ExtensionsEntry\x1a\x63\n\x0eResponsesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_swagger.options.Response:\x02\x38\x01\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"B\n\rSwaggerScheme\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04HTTP\x10\x01\x12\t\n\x05HTTPS\x10\x02\x12\x06\n\x02WS\x10\x03\x12\x07\n\x03WSS\x10\x04J\x04\x08\x08\x10\tJ\x04\x08\t\x10\nJ\x04\x08\r\x10\x0e\"\xa9\x05\n\tOperation\x12\x0c\n\x04tags\x18\x01 \x03(\t\x12\x0f\n\x07summary\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12U\n\rexternal_docs\x18\x04 \x01(\x0b\x32>.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation\x12\x14\n\x0coperation_id\x18\x05 \x01(\t\x12\x10\n\x08\x63onsumes\x18\x06 \x03(\t\x12\x10\n\x08produces\x18\x07 \x03(\t\x12T\n\tresponses\x18\t \x03(\x0b\x32\x41.grpc.gateway.protoc_gen_swagger.options.Operation.ResponsesEntry\x12\x0f\n\x07schemes\x18\n \x03(\t\x12\x12\n\ndeprecated\x18\x0b \x01(\x08\x12N\n\x08security\x18\x0c \x03(\x0b\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityRequirement\x12V\n\nextensions\x18\r \x03(\x0b\x32\x42.grpc.gateway.protoc_gen_swagger.options.Operation.ExtensionsEntry\x1a\x63\n\x0eResponsesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_swagger.options.Response:\x02\x38\x01\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01J\x04\x08\x08\x10\t\"\xab\x01\n\x06Header\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x06 \x01(\t\x12\x0f\n\x07pattern\x18\r \x01(\tJ\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06J\x04\x08\x07\x10\x08J\x04\x08\x08\x10\tJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0bJ\x04\x08\x0b\x10\x0cJ\x04\x08\x0c\x10\rJ\x04\x08\x0e\x10\x0fJ\x04\x08\x0f\x10\x10J\x04\x08\x10\x10\x11J\x04\x08\x11\x10\x12J\x04\x08\x12\x10\x13\"\xb8\x04\n\x08Response\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12?\n\x06schema\x18\x02 \x01(\x0b\x32/.grpc.gateway.protoc_gen_swagger.options.Schema\x12O\n\x07headers\x18\x03 \x03(\x0b\x32>.grpc.gateway.protoc_gen_swagger.options.Response.HeadersEntry\x12Q\n\x08\x65xamples\x18\x04 \x03(\x0b\x32?.grpc.gateway.protoc_gen_swagger.options.Response.ExamplesEntry\x12U\n\nextensions\x18\x05 \x03(\x0b\x32\x41.grpc.gateway.protoc_gen_swagger.options.Response.ExtensionsEntry\x1a_\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.grpc.gateway.protoc_gen_swagger.options.Header:\x02\x38\x01\x1a/\n\rExamplesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"\xf9\x02\n\x04Info\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x18\n\x10terms_of_service\x18\x03 \x01(\t\x12\x41\n\x07\x63ontact\x18\x04 \x01(\x0b\x32\x30.grpc.gateway.protoc_gen_swagger.options.Contact\x12\x41\n\x07license\x18\x05 \x01(\x0b\x32\x30.grpc.gateway.protoc_gen_swagger.options.License\x12\x0f\n\x07version\x18\x06 \x01(\t\x12Q\n\nextensions\x18\x07 \x03(\x0b\x32=.grpc.gateway.protoc_gen_swagger.options.Info.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"3\n\x07\x43ontact\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\r\n\x05\x65mail\x18\x03 \x01(\t\"$\n\x07License\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"9\n\x15\x45xternalDocumentation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"\x9c\x02\n\x06Schema\x12H\n\x0bjson_schema\x18\x01 \x01(\x0b\x32\x33.grpc.gateway.protoc_gen_swagger.options.JSONSchema\x12\x15\n\rdiscriminator\x18\x02 \x01(\t\x12\x11\n\tread_only\x18\x03 \x01(\x08\x12U\n\rexternal_docs\x18\x05 \x01(\x0b\x32>.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation\x12)\n\x07\x65xample\x18\x06 \x01(\x0b\x32\x14.google.protobuf.AnyB\x02\x18\x01\x12\x16\n\x0e\x65xample_string\x18\x07 \x01(\tJ\x04\x08\x04\x10\x05\"\xe3\x05\n\nJSONSchema\x12\x0b\n\x03ref\x18\x03 \x01(\t\x12\r\n\x05title\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x07 \x01(\t\x12\x11\n\tread_only\x18\x08 \x01(\x08\x12\x0f\n\x07\x65xample\x18\t \x01(\t\x12\x13\n\x0bmultiple_of\x18\n \x01(\x01\x12\x0f\n\x07maximum\x18\x0b \x01(\x01\x12\x19\n\x11\x65xclusive_maximum\x18\x0c \x01(\x08\x12\x0f\n\x07minimum\x18\r \x01(\x01\x12\x19\n\x11\x65xclusive_minimum\x18\x0e \x01(\x08\x12\x12\n\nmax_length\x18\x0f \x01(\x04\x12\x12\n\nmin_length\x18\x10 \x01(\x04\x12\x0f\n\x07pattern\x18\x11 \x01(\t\x12\x11\n\tmax_items\x18\x14 \x01(\x04\x12\x11\n\tmin_items\x18\x15 \x01(\x04\x12\x14\n\x0cunique_items\x18\x16 \x01(\x08\x12\x16\n\x0emax_properties\x18\x18 \x01(\x04\x12\x16\n\x0emin_properties\x18\x19 \x01(\x04\x12\x10\n\x08required\x18\x1a \x03(\t\x12\r\n\x05\x61rray\x18\" \x03(\t\x12W\n\x04type\x18# \x03(\x0e\x32I.grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes\x12\x0e\n\x06\x66ormat\x18$ \x01(\t\x12\x0c\n\x04\x65num\x18. \x03(\t\"w\n\x15JSONSchemaSimpleTypes\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41RRAY\x10\x01\x12\x0b\n\x07\x42OOLEAN\x10\x02\x12\x0b\n\x07INTEGER\x10\x03\x12\x08\n\x04NULL\x10\x04\x12\n\n\x06NUMBER\x10\x05\x12\n\n\x06OBJECT\x10\x06\x12\n\n\x06STRING\x10\x07J\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03J\x04\x08\x04\x10\x05J\x04\x08\x12\x10\x13J\x04\x08\x13\x10\x14J\x04\x08\x17\x10\x18J\x04\x08\x1b\x10\x1cJ\x04\x08\x1c\x10\x1dJ\x04\x08\x1d\x10\x1eJ\x04\x08\x1e\x10\"J\x04\x08%\x10*J\x04\x08*\x10+J\x04\x08+\x10.\"w\n\x03Tag\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12U\n\rexternal_docs\x18\x03 \x01(\x0b\x32>.grpc.gateway.protoc_gen_swagger.options.ExternalDocumentationJ\x04\x08\x01\x10\x02\"\xdd\x01\n\x13SecurityDefinitions\x12\\\n\x08security\x18\x01 \x03(\x0b\x32J.grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions.SecurityEntry\x1ah\n\rSecurityEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x46\n\x05value\x18\x02 \x01(\x0b\x32\x37.grpc.gateway.protoc_gen_swagger.options.SecurityScheme:\x02\x38\x01\"\x96\x06\n\x0eSecurityScheme\x12J\n\x04type\x18\x01 \x01(\x0e\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x46\n\x02in\x18\x04 \x01(\x0e\x32:.grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In\x12J\n\x04\x66low\x18\x05 \x01(\x0e\x32<.grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow\x12\x19\n\x11\x61uthorization_url\x18\x06 \x01(\t\x12\x11\n\ttoken_url\x18\x07 \x01(\t\x12?\n\x06scopes\x18\x08 \x01(\x0b\x32/.grpc.gateway.protoc_gen_swagger.options.Scopes\x12[\n\nextensions\x18\t \x03(\x0b\x32G.grpc.gateway.protoc_gen_swagger.options.SecurityScheme.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"K\n\x04Type\x12\x10\n\x0cTYPE_INVALID\x10\x00\x12\x0e\n\nTYPE_BASIC\x10\x01\x12\x10\n\x0cTYPE_API_KEY\x10\x02\x12\x0f\n\x0bTYPE_OAUTH2\x10\x03\"1\n\x02In\x12\x0e\n\nIN_INVALID\x10\x00\x12\x0c\n\x08IN_QUERY\x10\x01\x12\r\n\tIN_HEADER\x10\x02\"j\n\x04\x46low\x12\x10\n\x0c\x46LOW_INVALID\x10\x00\x12\x11\n\rFLOW_IMPLICIT\x10\x01\x12\x11\n\rFLOW_PASSWORD\x10\x02\x12\x14\n\x10\x46LOW_APPLICATION\x10\x03\x12\x14\n\x10\x46LOW_ACCESS_CODE\x10\x04\"\xc9\x02\n\x13SecurityRequirement\x12s\n\x14security_requirement\x18\x01 \x03(\x0b\x32U.grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementEntry\x1a)\n\x18SecurityRequirementValue\x12\r\n\x05scope\x18\x01 \x03(\t\x1a\x91\x01\n\x18SecurityRequirementEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x64\n\x05value\x18\x02 \x01(\x0b\x32U.grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue:\x02\x38\x01\"\x81\x01\n\x06Scopes\x12I\n\x05scope\x18\x01 \x03(\x0b\x32:.grpc.gateway.protoc_gen_swagger.options.Scopes.ScopeEntry\x1a,\n\nScopeEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x43ZAgithub.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/optionsb\x06proto3')
19
30
 
20
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
21
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protoc_gen_swagger.options.openapiv2_pb2', globals())
22
- if _descriptor._USE_C_DESCRIPTORS == False:
23
-
24
- DESCRIPTOR._options = None
25
- DESCRIPTOR._serialized_options = b'ZAgithub.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options'
26
- _SWAGGER_RESPONSESENTRY._options = None
27
- _SWAGGER_RESPONSESENTRY._serialized_options = b'8\001'
28
- _SWAGGER_EXTENSIONSENTRY._options = None
29
- _SWAGGER_EXTENSIONSENTRY._serialized_options = b'8\001'
30
- _OPERATION_RESPONSESENTRY._options = None
31
- _OPERATION_RESPONSESENTRY._serialized_options = b'8\001'
32
- _OPERATION_EXTENSIONSENTRY._options = None
33
- _OPERATION_EXTENSIONSENTRY._serialized_options = b'8\001'
34
- _RESPONSE_HEADERSENTRY._options = None
35
- _RESPONSE_HEADERSENTRY._serialized_options = b'8\001'
36
- _RESPONSE_EXAMPLESENTRY._options = None
37
- _RESPONSE_EXAMPLESENTRY._serialized_options = b'8\001'
38
- _RESPONSE_EXTENSIONSENTRY._options = None
39
- _RESPONSE_EXTENSIONSENTRY._serialized_options = b'8\001'
40
- _INFO_EXTENSIONSENTRY._options = None
41
- _INFO_EXTENSIONSENTRY._serialized_options = b'8\001'
42
- _SCHEMA.fields_by_name['example']._options = None
43
- _SCHEMA.fields_by_name['example']._serialized_options = b'\030\001'
44
- _SECURITYDEFINITIONS_SECURITYENTRY._options = None
45
- _SECURITYDEFINITIONS_SECURITYENTRY._serialized_options = b'8\001'
46
- _SECURITYSCHEME_EXTENSIONSENTRY._options = None
47
- _SECURITYSCHEME_EXTENSIONSENTRY._serialized_options = b'8\001'
48
- _SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY._options = None
49
- _SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY._serialized_options = b'8\001'
50
- _SCOPES_SCOPEENTRY._options = None
51
- _SCOPES_SCOPEENTRY._serialized_options = b'8\001'
52
- _SWAGGER._serialized_start=145
53
- _SWAGGER._serialized_end=1073
54
- _SWAGGER_RESPONSESENTRY._serialized_start=813
55
- _SWAGGER_RESPONSESENTRY._serialized_end=912
56
- _SWAGGER_EXTENSIONSENTRY._serialized_start=914
57
- _SWAGGER_EXTENSIONSENTRY._serialized_end=987
58
- _SWAGGER_SWAGGERSCHEME._serialized_start=989
59
- _SWAGGER_SWAGGERSCHEME._serialized_end=1055
60
- _OPERATION._serialized_start=1076
61
- _OPERATION._serialized_end=1757
62
- _OPERATION_RESPONSESENTRY._serialized_start=813
63
- _OPERATION_RESPONSESENTRY._serialized_end=912
64
- _OPERATION_EXTENSIONSENTRY._serialized_start=914
65
- _OPERATION_EXTENSIONSENTRY._serialized_end=987
66
- _HEADER._serialized_start=1760
67
- _HEADER._serialized_end=1931
68
- _RESPONSE._serialized_start=1934
69
- _RESPONSE._serialized_end=2502
70
- _RESPONSE_HEADERSENTRY._serialized_start=2283
71
- _RESPONSE_HEADERSENTRY._serialized_end=2378
72
- _RESPONSE_EXAMPLESENTRY._serialized_start=2380
73
- _RESPONSE_EXAMPLESENTRY._serialized_end=2427
74
- _RESPONSE_EXTENSIONSENTRY._serialized_start=914
75
- _RESPONSE_EXTENSIONSENTRY._serialized_end=987
76
- _INFO._serialized_start=2505
77
- _INFO._serialized_end=2882
78
- _INFO_EXTENSIONSENTRY._serialized_start=914
79
- _INFO_EXTENSIONSENTRY._serialized_end=987
80
- _CONTACT._serialized_start=2884
81
- _CONTACT._serialized_end=2935
82
- _LICENSE._serialized_start=2937
83
- _LICENSE._serialized_end=2973
84
- _EXTERNALDOCUMENTATION._serialized_start=2975
85
- _EXTERNALDOCUMENTATION._serialized_end=3032
86
- _SCHEMA._serialized_start=3035
87
- _SCHEMA._serialized_end=3319
88
- _JSONSCHEMA._serialized_start=3322
89
- _JSONSCHEMA._serialized_end=4061
90
- _JSONSCHEMA_JSONSCHEMASIMPLETYPES._serialized_start=3864
91
- _JSONSCHEMA_JSONSCHEMASIMPLETYPES._serialized_end=3983
92
- _TAG._serialized_start=4063
93
- _TAG._serialized_end=4182
94
- _SECURITYDEFINITIONS._serialized_start=4185
95
- _SECURITYDEFINITIONS._serialized_end=4406
96
- _SECURITYDEFINITIONS_SECURITYENTRY._serialized_start=4302
97
- _SECURITYDEFINITIONS_SECURITYENTRY._serialized_end=4406
98
- _SECURITYSCHEME._serialized_start=4409
99
- _SECURITYSCHEME._serialized_end=5199
100
- _SECURITYSCHEME_EXTENSIONSENTRY._serialized_start=914
101
- _SECURITYSCHEME_EXTENSIONSENTRY._serialized_end=987
102
- _SECURITYSCHEME_TYPE._serialized_start=4965
103
- _SECURITYSCHEME_TYPE._serialized_end=5040
104
- _SECURITYSCHEME_IN._serialized_start=5042
105
- _SECURITYSCHEME_IN._serialized_end=5091
106
- _SECURITYSCHEME_FLOW._serialized_start=5093
107
- _SECURITYSCHEME_FLOW._serialized_end=5199
108
- _SECURITYREQUIREMENT._serialized_start=5202
109
- _SECURITYREQUIREMENT._serialized_end=5531
110
- _SECURITYREQUIREMENT_SECURITYREQUIREMENTVALUE._serialized_start=5342
111
- _SECURITYREQUIREMENT_SECURITYREQUIREMENTVALUE._serialized_end=5383
112
- _SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY._serialized_start=5386
113
- _SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY._serialized_end=5531
114
- _SCOPES._serialized_start=5534
115
- _SCOPES._serialized_end=5663
116
- _SCOPES_SCOPEENTRY._serialized_start=5619
117
- _SCOPES_SCOPEENTRY._serialized_end=5663
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'protoc_gen_swagger.options.openapiv2_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'ZAgithub.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options'
37
+ _globals['_SWAGGER_RESPONSESENTRY']._loaded_options = None
38
+ _globals['_SWAGGER_RESPONSESENTRY']._serialized_options = b'8\001'
39
+ _globals['_SWAGGER_EXTENSIONSENTRY']._loaded_options = None
40
+ _globals['_SWAGGER_EXTENSIONSENTRY']._serialized_options = b'8\001'
41
+ _globals['_OPERATION_RESPONSESENTRY']._loaded_options = None
42
+ _globals['_OPERATION_RESPONSESENTRY']._serialized_options = b'8\001'
43
+ _globals['_OPERATION_EXTENSIONSENTRY']._loaded_options = None
44
+ _globals['_OPERATION_EXTENSIONSENTRY']._serialized_options = b'8\001'
45
+ _globals['_RESPONSE_HEADERSENTRY']._loaded_options = None
46
+ _globals['_RESPONSE_HEADERSENTRY']._serialized_options = b'8\001'
47
+ _globals['_RESPONSE_EXAMPLESENTRY']._loaded_options = None
48
+ _globals['_RESPONSE_EXAMPLESENTRY']._serialized_options = b'8\001'
49
+ _globals['_RESPONSE_EXTENSIONSENTRY']._loaded_options = None
50
+ _globals['_RESPONSE_EXTENSIONSENTRY']._serialized_options = b'8\001'
51
+ _globals['_INFO_EXTENSIONSENTRY']._loaded_options = None
52
+ _globals['_INFO_EXTENSIONSENTRY']._serialized_options = b'8\001'
53
+ _globals['_SCHEMA'].fields_by_name['example']._loaded_options = None
54
+ _globals['_SCHEMA'].fields_by_name['example']._serialized_options = b'\030\001'
55
+ _globals['_SECURITYDEFINITIONS_SECURITYENTRY']._loaded_options = None
56
+ _globals['_SECURITYDEFINITIONS_SECURITYENTRY']._serialized_options = b'8\001'
57
+ _globals['_SECURITYSCHEME_EXTENSIONSENTRY']._loaded_options = None
58
+ _globals['_SECURITYSCHEME_EXTENSIONSENTRY']._serialized_options = b'8\001'
59
+ _globals['_SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY']._loaded_options = None
60
+ _globals['_SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY']._serialized_options = b'8\001'
61
+ _globals['_SCOPES_SCOPEENTRY']._loaded_options = None
62
+ _globals['_SCOPES_SCOPEENTRY']._serialized_options = b'8\001'
63
+ _globals['_SWAGGER']._serialized_start=145
64
+ _globals['_SWAGGER']._serialized_end=1073
65
+ _globals['_SWAGGER_RESPONSESENTRY']._serialized_start=813
66
+ _globals['_SWAGGER_RESPONSESENTRY']._serialized_end=912
67
+ _globals['_SWAGGER_EXTENSIONSENTRY']._serialized_start=914
68
+ _globals['_SWAGGER_EXTENSIONSENTRY']._serialized_end=987
69
+ _globals['_SWAGGER_SWAGGERSCHEME']._serialized_start=989
70
+ _globals['_SWAGGER_SWAGGERSCHEME']._serialized_end=1055
71
+ _globals['_OPERATION']._serialized_start=1076
72
+ _globals['_OPERATION']._serialized_end=1757
73
+ _globals['_OPERATION_RESPONSESENTRY']._serialized_start=813
74
+ _globals['_OPERATION_RESPONSESENTRY']._serialized_end=912
75
+ _globals['_OPERATION_EXTENSIONSENTRY']._serialized_start=914
76
+ _globals['_OPERATION_EXTENSIONSENTRY']._serialized_end=987
77
+ _globals['_HEADER']._serialized_start=1760
78
+ _globals['_HEADER']._serialized_end=1931
79
+ _globals['_RESPONSE']._serialized_start=1934
80
+ _globals['_RESPONSE']._serialized_end=2502
81
+ _globals['_RESPONSE_HEADERSENTRY']._serialized_start=2283
82
+ _globals['_RESPONSE_HEADERSENTRY']._serialized_end=2378
83
+ _globals['_RESPONSE_EXAMPLESENTRY']._serialized_start=2380
84
+ _globals['_RESPONSE_EXAMPLESENTRY']._serialized_end=2427
85
+ _globals['_RESPONSE_EXTENSIONSENTRY']._serialized_start=914
86
+ _globals['_RESPONSE_EXTENSIONSENTRY']._serialized_end=987
87
+ _globals['_INFO']._serialized_start=2505
88
+ _globals['_INFO']._serialized_end=2882
89
+ _globals['_INFO_EXTENSIONSENTRY']._serialized_start=914
90
+ _globals['_INFO_EXTENSIONSENTRY']._serialized_end=987
91
+ _globals['_CONTACT']._serialized_start=2884
92
+ _globals['_CONTACT']._serialized_end=2935
93
+ _globals['_LICENSE']._serialized_start=2937
94
+ _globals['_LICENSE']._serialized_end=2973
95
+ _globals['_EXTERNALDOCUMENTATION']._serialized_start=2975
96
+ _globals['_EXTERNALDOCUMENTATION']._serialized_end=3032
97
+ _globals['_SCHEMA']._serialized_start=3035
98
+ _globals['_SCHEMA']._serialized_end=3319
99
+ _globals['_JSONSCHEMA']._serialized_start=3322
100
+ _globals['_JSONSCHEMA']._serialized_end=4061
101
+ _globals['_JSONSCHEMA_JSONSCHEMASIMPLETYPES']._serialized_start=3864
102
+ _globals['_JSONSCHEMA_JSONSCHEMASIMPLETYPES']._serialized_end=3983
103
+ _globals['_TAG']._serialized_start=4063
104
+ _globals['_TAG']._serialized_end=4182
105
+ _globals['_SECURITYDEFINITIONS']._serialized_start=4185
106
+ _globals['_SECURITYDEFINITIONS']._serialized_end=4406
107
+ _globals['_SECURITYDEFINITIONS_SECURITYENTRY']._serialized_start=4302
108
+ _globals['_SECURITYDEFINITIONS_SECURITYENTRY']._serialized_end=4406
109
+ _globals['_SECURITYSCHEME']._serialized_start=4409
110
+ _globals['_SECURITYSCHEME']._serialized_end=5199
111
+ _globals['_SECURITYSCHEME_EXTENSIONSENTRY']._serialized_start=914
112
+ _globals['_SECURITYSCHEME_EXTENSIONSENTRY']._serialized_end=987
113
+ _globals['_SECURITYSCHEME_TYPE']._serialized_start=4965
114
+ _globals['_SECURITYSCHEME_TYPE']._serialized_end=5040
115
+ _globals['_SECURITYSCHEME_IN']._serialized_start=5042
116
+ _globals['_SECURITYSCHEME_IN']._serialized_end=5091
117
+ _globals['_SECURITYSCHEME_FLOW']._serialized_start=5093
118
+ _globals['_SECURITYSCHEME_FLOW']._serialized_end=5199
119
+ _globals['_SECURITYREQUIREMENT']._serialized_start=5202
120
+ _globals['_SECURITYREQUIREMENT']._serialized_end=5531
121
+ _globals['_SECURITYREQUIREMENT_SECURITYREQUIREMENTVALUE']._serialized_start=5342
122
+ _globals['_SECURITYREQUIREMENT_SECURITYREQUIREMENTVALUE']._serialized_end=5383
123
+ _globals['_SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY']._serialized_start=5386
124
+ _globals['_SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY']._serialized_end=5531
125
+ _globals['_SCOPES']._serialized_start=5534
126
+ _globals['_SCOPES']._serialized_end=5663
127
+ _globals['_SCOPES_SCOPEENTRY']._serialized_start=5619
128
+ _globals['_SCOPES_SCOPEENTRY']._serialized_end=5663
118
129
  # @@protoc_insertion_point(module_scope)