Package grpc.gateway.protoc_gen_openapiv2.options
See: Description
-
Class Summary Class Description Annotations Builder
Protobuf type`Swagger` is a representation of OpenAPI v2 specification's Swagger object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#swaggerObject Example: option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: { title: "Echo API"; version: "1.0"; description: "; contact: { name: "gRPC-Gateway project"; url: "https://github.com/grpc-ecosystem/grpc-gateway"; email: "[email protected]"; }; license: { name: "BSD 3-Clause License"; url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt"; }; }; schemes: HTTPS; consumes: "application/json"; produces: "application/json"; };grpc.gateway.protoc_gen_openapiv2.options.SwaggerSwagger
Protobuf type`Swagger` is a representation of OpenAPI v2 specification's Swagger object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#swaggerObject Example: option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: { title: "Echo API"; version: "1.0"; description: "; contact: { name: "gRPC-Gateway project"; url: "https://github.com/grpc-ecosystem/grpc-gateway"; email: "[email protected]"; }; license: { name: "BSD 3-Clause License"; url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt"; }; }; schemes: HTTPS; consumes: "application/json"; produces: "application/json"; };grpc.gateway.protoc_gen_openapiv2.options.SwaggerBuilder
Protobuf type`Operation` is a representation of OpenAPI v2 specification's Operation object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#operationObject Example: service EchoService { rpc Echo(SimpleMessage) returns (SimpleMessage) { option (google.api.http) = { get: "/v1/example/echo/{id}" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { summary: "Get a message."; operation_id: "getMessage"; tags: "echo"; responses: { key: "200" value: { description: "OK"; } } }; } }grpc.gateway.protoc_gen_openapiv2.options.OperationOperation
Protobuf type`Operation` is a representation of OpenAPI v2 specification's Operation object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#operationObject Example: service EchoService { rpc Echo(SimpleMessage) returns (SimpleMessage) { option (google.api.http) = { get: "/v1/example/echo/{id}" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { summary: "Get a message."; operation_id: "getMessage"; tags: "echo"; responses: { key: "200" value: { description: "OK"; } } }; } }grpc.gateway.protoc_gen_openapiv2.options.OperationBuilder
Protobuf type`Header` is a representation of OpenAPI v2 specification's Header object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#headerObjectgrpc.gateway.protoc_gen_openapiv2.options.HeaderHeader
Protobuf type`Header` is a representation of OpenAPI v2 specification's Header object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#headerObjectgrpc.gateway.protoc_gen_openapiv2.options.HeaderBuilder
Protobuf type`Response` is a representation of OpenAPI v2 specification's Response object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#responseObjectgrpc.gateway.protoc_gen_openapiv2.options.ResponseResponse
Protobuf type`Response` is a representation of OpenAPI v2 specification's Response object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#responseObjectgrpc.gateway.protoc_gen_openapiv2.options.ResponseBuilder
Protobuf type`Info` is a representation of OpenAPI v2 specification's Info object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#infoObject Example: option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: { title: "Echo API"; version: "1.0"; description: "; contact: { name: "gRPC-Gateway project"; url: "https://github.com/grpc-ecosystem/grpc-gateway"; email: "[email protected]"; }; license: { name: "BSD 3-Clause License"; url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt"; }; }; ... };grpc.gateway.protoc_gen_openapiv2.options.InfoInfo
Protobuf type`Info` is a representation of OpenAPI v2 specification's Info object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#infoObject Example: option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: { title: "Echo API"; version: "1.0"; description: "; contact: { name: "gRPC-Gateway project"; url: "https://github.com/grpc-ecosystem/grpc-gateway"; email: "[email protected]"; }; license: { name: "BSD 3-Clause License"; url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt"; }; }; ... };grpc.gateway.protoc_gen_openapiv2.options.InfoBuilder
Protobuf type`Contact` is a representation of OpenAPI v2 specification's Contact object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#contactObject Example: option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: { ... contact: { name: "gRPC-Gateway project"; url: "https://github.com/grpc-ecosystem/grpc-gateway"; email: "[email protected]"; }; ... }; ... };grpc.gateway.protoc_gen_openapiv2.options.ContactContact
Protobuf type`Contact` is a representation of OpenAPI v2 specification's Contact object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#contactObject Example: option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: { ... contact: { name: "gRPC-Gateway project"; url: "https://github.com/grpc-ecosystem/grpc-gateway"; email: "[email protected]"; }; ... }; ... };grpc.gateway.protoc_gen_openapiv2.options.ContactBuilder
Protobuf type`License` is a representation of OpenAPI v2 specification's License object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#licenseObject Example: option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: { ... license: { name: "BSD 3-Clause License"; url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt"; }; ... }; ... };grpc.gateway.protoc_gen_openapiv2.options.LicenseLicense
Protobuf type`License` is a representation of OpenAPI v2 specification's License object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#licenseObject Example: option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: { ... license: { name: "BSD 3-Clause License"; url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/master/LICENSE.txt"; }; ... }; ... };grpc.gateway.protoc_gen_openapiv2.options.LicenseBuilder
Protobuf type`ExternalDocumentation` is a representation of OpenAPI v2 specification's ExternalDocumentation object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#externalDocumentationObject Example: option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { ... external_docs: { description: "More about gRPC-Gateway"; url: "https://github.com/grpc-ecosystem/grpc-gateway"; } ... };grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentationExternalDocumentation
Protobuf type`ExternalDocumentation` is a representation of OpenAPI v2 specification's ExternalDocumentation object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#externalDocumentationObject Example: option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { ... external_docs: { description: "More about gRPC-Gateway"; url: "https://github.com/grpc-ecosystem/grpc-gateway"; } ... };grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentationBuilder
Protobuf type`Schema` is a representation of OpenAPI v2 specification's Schema object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObjectgrpc.gateway.protoc_gen_openapiv2.options.SchemaSchema
Protobuf type`Schema` is a representation of OpenAPI v2 specification's Schema object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObjectgrpc.gateway.protoc_gen_openapiv2.options.SchemaBuilder
Protobuf type`JSONSchema` represents properties from JSON Schema taken, and as used, in the OpenAPI v2 spec. This includes changes made by OpenAPI v2. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject See also: https://cswr.github.io/JsonSchema/spec/basic_types/, https://github.com/json-schema-org/json-schema-spec/blob/master/schema.json Example: message SimpleMessage { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { json_schema: { title: "SimpleMessage" description: "A simple message." required: ["id"] } }; // Id represents the message identifier. string id = 1; [ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { description: "The unique identifier of the simple message." }]; }grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaJSONSchema
Protobuf type`JSONSchema` represents properties from JSON Schema taken, and as used, in the OpenAPI v2 spec. This includes changes made by OpenAPI v2. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject See also: https://cswr.github.io/JsonSchema/spec/basic_types/, https://github.com/json-schema-org/json-schema-spec/blob/master/schema.json Example: message SimpleMessage { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { json_schema: { title: "SimpleMessage" description: "A simple message." required: ["id"] } }; // Id represents the message identifier. string id = 1; [ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { description: "The unique identifier of the simple message." }]; }grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaBuilder
Protobuf type`Tag` is a representation of OpenAPI v2 specification's Tag object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#tagObjectgrpc.gateway.protoc_gen_openapiv2.options.TagTag
Protobuf type`Tag` is a representation of OpenAPI v2 specification's Tag object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#tagObjectgrpc.gateway.protoc_gen_openapiv2.options.TagBuilder
Protobuf type`SecurityDefinitions` is a representation of OpenAPI v2 specification's Security Definitions object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityDefinitionsObject A declaration of the security schemes available to be used in the specification. This does not enforce the security schemes on the operations and only serves to provide the relevant details for each scheme.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitionsSecurityDefinitions
Protobuf type`SecurityDefinitions` is a representation of OpenAPI v2 specification's Security Definitions object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityDefinitionsObject A declaration of the security schemes available to be used in the specification. This does not enforce the security schemes on the operations and only serves to provide the relevant details for each scheme.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitionsBuilder
Protobuf type`SecurityScheme` is a representation of OpenAPI v2 specification's Security Scheme object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securitySchemeObject Allows the definition of a security scheme that can be used by the operations. Supported schemes are basic authentication, an API key (either as a header or as a query parameter) and OAuth2's common flows (implicit, password, application and access code).grpc.gateway.protoc_gen_openapiv2.options.SecuritySchemeSecurityScheme
Protobuf type`SecurityScheme` is a representation of OpenAPI v2 specification's Security Scheme object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securitySchemeObject Allows the definition of a security scheme that can be used by the operations. Supported schemes are basic authentication, an API key (either as a header or as a query parameter) and OAuth2's common flows (implicit, password, application and access code).grpc.gateway.protoc_gen_openapiv2.options.SecuritySchemeBuilder
Protobuf typeIf the security scheme is of type "oauth2", then the value is a list of scope names required for the execution. For other security scheme types, the array MUST be empty.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValueSecurityRequirementValue
Protobuf typeIf the security scheme is of type "oauth2", then the value is a list of scope names required for the execution. For other security scheme types, the array MUST be empty.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValueBuilder
Protobuf type`SecurityRequirement` is a representation of OpenAPI v2 specification's Security Requirement object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityRequirementObject Lists the required security schemes to execute this operation. The object can have multiple security schemes declared in it which are all required (that is, there is a logical AND between the schemes). The name used for each property MUST correspond to a security scheme declared in the Security Definitions.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirementSecurityRequirement
Protobuf type`SecurityRequirement` is a representation of OpenAPI v2 specification's Security Requirement object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityRequirementObject Lists the required security schemes to execute this operation. The object can have multiple security schemes declared in it which are all required (that is, there is a logical AND between the schemes). The name used for each property MUST correspond to a security scheme declared in the Security Definitions.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirementBuilder
Protobuf type`Scopes` is a representation of OpenAPI v2 specification's Scopes object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#scopesObject Lists the available scopes for an OAuth2 security scheme.grpc.gateway.protoc_gen_openapiv2.options.ScopesScopes
Protobuf type`Scopes` is a representation of OpenAPI v2 specification's Scopes object. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#scopesObject Lists the available scopes for an OAuth2 security scheme.grpc.gateway.protoc_gen_openapiv2.options.ScopesOpenapiv2 Dsl Dsl Dsl ExtensionsProxy An uninstantiable, behaviorless type to represent the field in generics. Dsl RequiredProxy An uninstantiable, behaviorless type to represent the field in generics. ArrayProxy An uninstantiable, behaviorless type to represent the field in generics. TypeProxy An uninstantiable, behaviorless type to represent the field in generics. EnumProxy An uninstantiable, behaviorless type to represent the field in generics. Dsl Dsl TagsProxy An uninstantiable, behaviorless type to represent the field in generics. ConsumesProxy An uninstantiable, behaviorless type to represent the field in generics. ProducesProxy An uninstantiable, behaviorless type to represent the field in generics. ResponsesProxy An uninstantiable, behaviorless type to represent the field in generics. SchemesProxy An uninstantiable, behaviorless type to represent the field in generics. SecurityProxy An uninstantiable, behaviorless type to represent the field in generics. ExtensionsProxy An uninstantiable, behaviorless type to represent the field in generics. Dsl HeadersProxy An uninstantiable, behaviorless type to represent the field in generics. ExamplesProxy An uninstantiable, behaviorless type to represent the field in generics. ExtensionsProxy An uninstantiable, behaviorless type to represent the field in generics. Dsl Dsl ScopeProxy An uninstantiable, behaviorless type to represent the field in generics. Dsl SecurityProxy An uninstantiable, behaviorless type to represent the field in generics. Dsl SecurityRequirementProxy An uninstantiable, behaviorless type to represent the field in generics. Dsl ScopeProxy An uninstantiable, behaviorless type to represent the field in generics. Dsl ExtensionsProxy An uninstantiable, behaviorless type to represent the field in generics. Dsl SchemesProxy An uninstantiable, behaviorless type to represent the field in generics. ConsumesProxy An uninstantiable, behaviorless type to represent the field in generics. ProducesProxy An uninstantiable, behaviorless type to represent the field in generics. ResponsesProxy An uninstantiable, behaviorless type to represent the field in generics. SecurityProxy An uninstantiable, behaviorless type to represent the field in generics. ExtensionsProxy An uninstantiable, behaviorless type to represent the field in generics. Dsl Dsl ContactKtKt ExternalDocumentationKtKt HeaderKtKt InfoKtKt JSONSchemaKtKt LicenseKtKt OperationKtKt ResponseKtKt SchemaKtKt ScopesKtKt SecurityDefinitionsKtKt SecurityRequirementKtKt SecuritySchemeKtKt SwaggerKtKt TagKtKt -
Enum Summary Enum Description Scheme
Protobuf enumScheme describes the schemes supported by the OpenAPI Swagger and Operation objects.grpc.gateway.protoc_gen_openapiv2.options.SchemeJSONSchemaSimpleTypes Protobuf enum grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypesType
Protobuf enumThe type of the security scheme. Valid values are "basic", "apiKey" or "oauth2".grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.TypeIn
Protobuf enumThe location of the API key. Valid values are "query" or "header".grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.InFlow
Protobuf enumThe flow used by the OAuth2 security scheme. Valid values are "implicit", "password", "application" or "accessCode".grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow -
-