github.com/grpc-ecosystem/grpc-gateway/v2@v2.19.1/protoc-gen-openapiv2/options/annotations.proto (about)

     1  syntax = "proto3";
     2  
     3  package grpc.gateway.protoc_gen_openapiv2.options;
     4  
     5  import "google/protobuf/descriptor.proto";
     6  import "protoc-gen-openapiv2/options/openapiv2.proto";
     7  
     8  option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options";
     9  
    10  extend google.protobuf.FileOptions {
    11    // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project.
    12    //
    13    // All IDs are the same, as assigned. It is okay that they are the same, as they extend
    14    // different descriptor messages.
    15    Swagger openapiv2_swagger = 1042;
    16  }
    17  extend google.protobuf.MethodOptions {
    18    // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project.
    19    //
    20    // All IDs are the same, as assigned. It is okay that they are the same, as they extend
    21    // different descriptor messages.
    22    Operation openapiv2_operation = 1042;
    23  }
    24  extend google.protobuf.MessageOptions {
    25    // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project.
    26    //
    27    // All IDs are the same, as assigned. It is okay that they are the same, as they extend
    28    // different descriptor messages.
    29    Schema openapiv2_schema = 1042;
    30  }
    31  extend google.protobuf.ServiceOptions {
    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    Tag openapiv2_tag = 1042;
    37  }
    38  extend google.protobuf.FieldOptions {
    39    // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project.
    40    //
    41    // All IDs are the same, as assigned. It is okay that they are the same, as they extend
    42    // different descriptor messages.
    43    JSONSchema openapiv2_field = 1042;
    44  }