annotations.proto 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // Copyright 2022 Google LLC. All Rights Reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package openapi.v3;
  16. import "openapiv3/OpenAPIv3.proto";
  17. import "google/protobuf/descriptor.proto";
  18. // This option lets the proto compiler generate Java code inside the package
  19. // name (see below) instead of inside an outer class. It creates a simpler
  20. // developer experience by reducing one-level of name nesting and be
  21. // consistent with most programming languages that don't support outer classes.
  22. option java_multiple_files = true;
  23. // The Java outer classname should be the filename in UpperCamelCase. This
  24. // class is only used to hold proto descriptor, so developers don't need to
  25. // work with it directly.
  26. option java_outer_classname = "AnnotationsProto";
  27. // The Java package name must be proto package name with proper prefix.
  28. option java_package = "org.openapi_v3";
  29. // A reasonable prefix for the Objective-C symbols generated from the package.
  30. // It should at a minimum be 3 characters long, all uppercase, and convention
  31. // is to use an abbreviation of the package name. Something short, but
  32. // hopefully unique enough to not conflict with things that may come along in
  33. // the future. 'GPB' is reserved for the protocol buffer implementation itself.
  34. option objc_class_prefix = "OAS";
  35. // The Go package name.
  36. option go_package = "github.com/google/gnostic/openapiv3;openapi_v3";
  37. extend google.protobuf.FileOptions {
  38. Document document = 1143;
  39. }
  40. extend google.protobuf.MethodOptions {
  41. Operation operation = 1143;
  42. }
  43. extend google.protobuf.MessageOptions {
  44. Schema schema = 1143;
  45. }
  46. extend google.protobuf.FieldOptions {
  47. Schema property = 1143;
  48. }