| 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 |
|
| 15 |
syntax = "proto3"; |
| 16 |
|
| 17 |
package openapi.v3; |
| 18 |
|
| 19 |
import "google/protobuf/descriptor.proto"; |
| 20 |
import "openapiv3/OpenAPIv3.proto"; |
| 21 |
|
| 22 |
// The Go package name. |
| 23 |
option go_package = "github.com/google/gnostic-models/openapiv3;openapi_v3"; |
| 24 |
// This option lets the proto compiler generate Java code inside the package |
| 25 |
// name (see below) instead of inside an outer class. It creates a simpler |
| 26 |
// developer experience by reducing one-level of name nesting and be |
| 27 |
// consistent with most programming languages that don't support outer classes. |
| 28 |
option java_multiple_files = true; |
| 29 |
// The Java outer classname should be the filename in UpperCamelCase. This |
| 30 |
// class is only used to hold proto descriptor, so developers don't need to |
| 31 |
// work with it directly. |
| 32 |
option java_outer_classname = "AnnotationsProto"; |
| 33 |
// The Java package name must be proto package name with proper prefix. |
| 34 |
option java_package = "org.openapi_v3"; |
| 35 |
// A reasonable prefix for the Objective-C symbols generated from the package. |
| 36 |
// It should at a minimum be 3 characters long, all uppercase, and convention |
| 37 |
// is to use an abbreviation of the package name. Something short, but |
| 38 |
// hopefully unique enough to not conflict with things that may come along in |
| 39 |
// the future. 'GPB' is reserved for the protocol buffer implementation itself. |
| 40 |
option objc_class_prefix = "OAS"; |
| 41 |
|
| 42 |
extend google.protobuf.FileOptions { |
| 43 |
Document document = 1143; |
| 44 |
} |
| 45 |
|
| 46 |
extend google.protobuf.MethodOptions { |
| 47 |
Operation operation = 1143; |
| 48 |
} |
| 49 |
|
| 50 |
extend google.protobuf.MessageOptions { |
| 51 |
Schema schema = 1143; |
| 52 |
} |
| 53 |
|
| 54 |
extend google.protobuf.FieldOptions { |
| 55 |
Schema property = 1143; |
| 56 |
} |