Interface Openapiv2.SecuritySchemeOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Openapiv2.SecurityScheme
,Openapiv2.SecurityScheme.Builder
- Enclosing class:
- Openapiv2
public static interface Openapiv2.SecuritySchemeOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsExtensions
(String key) Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.The authorization URL to be used for this flow.com.google.protobuf.ByteString
The authorization URL to be used for this flow.A short description for security scheme.com.google.protobuf.ByteString
A short description for security scheme.Deprecated.int
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.com.google.protobuf.Value
getExtensionsOrDefault
(String key, com.google.protobuf.Value defaultValue) Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.com.google.protobuf.Value
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.getFlow()
The flow used by the OAuth2 security scheme.int
The flow used by the OAuth2 security scheme.getIn()
The location of the API key.int
The location of the API key.getName()
The name of the header or query parameter to be used.com.google.protobuf.ByteString
The name of the header or query parameter to be used.The available scopes for the OAuth2 security scheme.The available scopes for the OAuth2 security scheme.The token URL to be used for this flow.com.google.protobuf.ByteString
The token URL to be used for this flow.getType()
The type of the security scheme.int
The type of the security scheme.boolean
The available scopes for the OAuth2 security scheme.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTypeValue
int getTypeValue()The type of the security scheme. Valid values are "basic", "apiKey" or "oauth2".
.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1;
- Returns:
- The enum numeric value on the wire for type.
-
getType
Openapiv2.SecurityScheme.Type getType()The type of the security scheme. Valid values are "basic", "apiKey" or "oauth2".
.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1;
- Returns:
- The type.
-
getDescription
String getDescription()A short description for security scheme.
string description = 2;
- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()A short description for security scheme.
string description = 2;
- Returns:
- The bytes for description.
-
getName
String getName()The name of the header or query parameter to be used. Valid for apiKey.
string name = 3;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The name of the header or query parameter to be used. Valid for apiKey.
string name = 3;
- Returns:
- The bytes for name.
-
getInValue
int getInValue()The location of the API key. Valid values are "query" or "header". Valid for apiKey.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4;
- Returns:
- The enum numeric value on the wire for in.
-
getIn
Openapiv2.SecurityScheme.In getIn()The location of the API key. Valid values are "query" or "header". Valid for apiKey.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4;
- Returns:
- The in.
-
getFlowValue
int getFlowValue()The flow used by the OAuth2 security scheme. Valid values are "implicit", "password", "application" or "accessCode". Valid for oauth2.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5;
- Returns:
- The enum numeric value on the wire for flow.
-
getFlow
Openapiv2.SecurityScheme.Flow getFlow()The flow used by the OAuth2 security scheme. Valid values are "implicit", "password", "application" or "accessCode". Valid for oauth2.
.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5;
- Returns:
- The flow.
-
getAuthorizationUrl
String getAuthorizationUrl()The authorization URL to be used for this flow. This SHOULD be in the form of a URL. Valid for oauth2/implicit and oauth2/accessCode.
string authorization_url = 6;
- Returns:
- The authorizationUrl.
-
getAuthorizationUrlBytes
com.google.protobuf.ByteString getAuthorizationUrlBytes()The authorization URL to be used for this flow. This SHOULD be in the form of a URL. Valid for oauth2/implicit and oauth2/accessCode.
string authorization_url = 6;
- Returns:
- The bytes for authorizationUrl.
-
getTokenUrl
String getTokenUrl()The token URL to be used for this flow. This SHOULD be in the form of a URL. Valid for oauth2/password, oauth2/application and oauth2/accessCode.
string token_url = 7;
- Returns:
- The tokenUrl.
-
getTokenUrlBytes
com.google.protobuf.ByteString getTokenUrlBytes()The token URL to be used for this flow. This SHOULD be in the form of a URL. Valid for oauth2/password, oauth2/application and oauth2/accessCode.
string token_url = 7;
- Returns:
- The bytes for tokenUrl.
-
hasScopes
boolean hasScopes()The available scopes for the OAuth2 security scheme. Valid for oauth2.
.grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8;
- Returns:
- Whether the scopes field is set.
-
getScopes
Openapiv2.Scopes getScopes()The available scopes for the OAuth2 security scheme. Valid for oauth2.
.grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8;
- Returns:
- The scopes.
-
getScopesOrBuilder
Openapiv2.ScopesOrBuilder getScopesOrBuilder()The available scopes for the OAuth2 security scheme. Valid for oauth2.
.grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8;
-
getExtensionsCount
int getExtensionsCount()Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 9;
-
containsExtensions
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 9;
-
getExtensions
Deprecated.UsegetExtensionsMap()
instead. -
getExtensionsMap
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 9;
-
getExtensionsOrDefault
com.google.protobuf.Value getExtensionsOrDefault(String key, com.google.protobuf.Value defaultValue) Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 9;
-
getExtensionsOrThrow
Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 9;
-