Class Openapiv2.SecurityScheme.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
- grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Openapiv2.SecuritySchemeOrBuilder,java.lang.Cloneable
- Enclosing class:
- Openapiv2.SecurityScheme
public static final class Openapiv2.SecurityScheme.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder> implements Openapiv2.SecuritySchemeOrBuilder
`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).
Protobuf typegrpc.gateway.protoc_gen_openapiv2.options.SecurityScheme
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Openapiv2.SecurityScheme.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Openapiv2.SecuritySchemebuild()Openapiv2.SecuritySchemebuildPartial()Openapiv2.SecurityScheme.Builderclear()Openapiv2.SecurityScheme.BuilderclearAuthorizationUrl()The authorization URL to be used for this flow.Openapiv2.SecurityScheme.BuilderclearDescription()A short description for security scheme.Openapiv2.SecurityScheme.BuilderclearExtensions()Openapiv2.SecurityScheme.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Openapiv2.SecurityScheme.BuilderclearFlow()The flow used by the OAuth2 security scheme.Openapiv2.SecurityScheme.BuilderclearIn()The location of the API key.Openapiv2.SecurityScheme.BuilderclearName()The name of the header or query parameter to be used.Openapiv2.SecurityScheme.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Openapiv2.SecurityScheme.BuilderclearScopes()The available scopes for the OAuth2 security scheme.Openapiv2.SecurityScheme.BuilderclearTokenUrl()The token URL to be used for this flow.Openapiv2.SecurityScheme.BuilderclearType()The type of the security scheme.Openapiv2.SecurityScheme.Builderclone()booleancontainsExtensions(java.lang.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.java.lang.StringgetAuthorizationUrl()The authorization URL to be used for this flow.com.google.protobuf.ByteStringgetAuthorizationUrlBytes()The authorization URL to be used for this flow.Openapiv2.SecuritySchemegetDefaultInstanceForType()java.lang.StringgetDescription()A short description for security scheme.com.google.protobuf.ByteStringgetDescriptionBytes()A short description for security scheme.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.util.Map<java.lang.String,com.google.protobuf.Value>getExtensions()Deprecated.intgetExtensionsCount()Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.java.util.Map<java.lang.String,com.google.protobuf.Value>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.com.google.protobuf.ValuegetExtensionsOrDefault(java.lang.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.ValuegetExtensionsOrThrow(java.lang.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.Openapiv2.SecurityScheme.FlowgetFlow()The flow used by the OAuth2 security scheme.intgetFlowValue()The flow used by the OAuth2 security scheme.Openapiv2.SecurityScheme.IngetIn()The location of the API key.intgetInValue()The location of the API key.java.util.Map<java.lang.String,com.google.protobuf.Value>getMutableExtensions()Deprecated.java.lang.StringgetName()The name of the header or query parameter to be used.com.google.protobuf.ByteStringgetNameBytes()The name of the header or query parameter to be used.Openapiv2.ScopesgetScopes()The available scopes for the OAuth2 security scheme.Openapiv2.Scopes.BuildergetScopesBuilder()The available scopes for the OAuth2 security scheme.Openapiv2.ScopesOrBuildergetScopesOrBuilder()The available scopes for the OAuth2 security scheme.java.lang.StringgetTokenUrl()The token URL to be used for this flow.com.google.protobuf.ByteStringgetTokenUrlBytes()The token URL to be used for this flow.Openapiv2.SecurityScheme.TypegetType()The type of the security scheme.intgetTypeValue()The type of the security scheme.booleanhasScopes()The available scopes for the OAuth2 security scheme.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Openapiv2.SecurityScheme.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Openapiv2.SecurityScheme.BuildermergeFrom(com.google.protobuf.Message other)Openapiv2.SecurityScheme.BuildermergeFrom(Openapiv2.SecurityScheme other)Openapiv2.SecurityScheme.BuildermergeScopes(Openapiv2.Scopes value)The available scopes for the OAuth2 security scheme.Openapiv2.SecurityScheme.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Openapiv2.SecurityScheme.BuilderputAllExtensions(java.util.Map<java.lang.String,com.google.protobuf.Value> values)Custom properties that start with "x-" such as "x-foo" used to describe extra functionality that is not covered by the standard OpenAPI Specification.Openapiv2.SecurityScheme.BuilderputExtensions(java.lang.String key, com.google.protobuf.Value 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.Openapiv2.SecurityScheme.BuilderremoveExtensions(java.lang.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.Openapiv2.SecurityScheme.BuildersetAuthorizationUrl(java.lang.String value)The authorization URL to be used for this flow.Openapiv2.SecurityScheme.BuildersetAuthorizationUrlBytes(com.google.protobuf.ByteString value)The authorization URL to be used for this flow.Openapiv2.SecurityScheme.BuildersetDescription(java.lang.String value)A short description for security scheme.Openapiv2.SecurityScheme.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)A short description for security scheme.Openapiv2.SecurityScheme.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Openapiv2.SecurityScheme.BuildersetFlow(Openapiv2.SecurityScheme.Flow value)The flow used by the OAuth2 security scheme.Openapiv2.SecurityScheme.BuildersetFlowValue(int value)The flow used by the OAuth2 security scheme.Openapiv2.SecurityScheme.BuildersetIn(Openapiv2.SecurityScheme.In value)The location of the API key.Openapiv2.SecurityScheme.BuildersetInValue(int value)The location of the API key.Openapiv2.SecurityScheme.BuildersetName(java.lang.String value)The name of the header or query parameter to be used.Openapiv2.SecurityScheme.BuildersetNameBytes(com.google.protobuf.ByteString value)The name of the header or query parameter to be used.Openapiv2.SecurityScheme.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Openapiv2.SecurityScheme.BuildersetScopes(Openapiv2.Scopes value)The available scopes for the OAuth2 security scheme.Openapiv2.SecurityScheme.BuildersetScopes(Openapiv2.Scopes.Builder builderForValue)The available scopes for the OAuth2 security scheme.Openapiv2.SecurityScheme.BuildersetTokenUrl(java.lang.String value)The token URL to be used for this flow.Openapiv2.SecurityScheme.BuildersetTokenUrlBytes(com.google.protobuf.ByteString value)The token URL to be used for this flow.Openapiv2.SecurityScheme.BuildersetType(Openapiv2.SecurityScheme.Type value)The type of the security scheme.Openapiv2.SecurityScheme.BuildersetTypeValue(int value)The type of the security scheme.Openapiv2.SecurityScheme.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
clear
public Openapiv2.SecurityScheme.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
getDefaultInstanceForType
public Openapiv2.SecurityScheme getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Openapiv2.SecurityScheme build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Openapiv2.SecurityScheme buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Openapiv2.SecurityScheme.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
setField
public Openapiv2.SecurityScheme.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
clearField
public Openapiv2.SecurityScheme.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
clearOneof
public Openapiv2.SecurityScheme.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
setRepeatedField
public Openapiv2.SecurityScheme.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
addRepeatedField
public Openapiv2.SecurityScheme.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
mergeFrom
public Openapiv2.SecurityScheme.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.SecurityScheme.Builder>
-
mergeFrom
public Openapiv2.SecurityScheme.Builder mergeFrom(Openapiv2.SecurityScheme other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
mergeFrom
public Openapiv2.SecurityScheme.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.SecurityScheme.Builder>- Throws:
java.io.IOException
-
getTypeValue
public 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;- Specified by:
getTypeValuein interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public Openapiv2.SecurityScheme.Builder setTypeValue(int value)
The type of the security scheme. Valid values are "basic", "apiKey" or "oauth2".
.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public 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;- Specified by:
getTypein interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The type.
-
setType
public Openapiv2.SecurityScheme.Builder setType(Openapiv2.SecurityScheme.Type value)
The type of the security scheme. Valid values are "basic", "apiKey" or "oauth2".
.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Openapiv2.SecurityScheme.Builder clearType()
The type of the security scheme. Valid values are "basic", "apiKey" or "oauth2".
.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1;- Returns:
- This builder for chaining.
-
getDescription
public java.lang.String getDescription()
A short description for security scheme.
string description = 2;- Specified by:
getDescriptionin interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A short description for security scheme.
string description = 2;- Specified by:
getDescriptionBytesin interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Openapiv2.SecurityScheme.Builder setDescription(java.lang.String value)
A short description for security scheme.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Openapiv2.SecurityScheme.Builder clearDescription()
A short description for security scheme.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Openapiv2.SecurityScheme.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A short description for security scheme.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getName
public java.lang.String getName()
The name of the header or query parameter to be used. Valid for apiKey.
string name = 3;- Specified by:
getNamein interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the header or query parameter to be used. Valid for apiKey.
string name = 3;- Specified by:
getNameBytesin interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The bytes for name.
-
setName
public Openapiv2.SecurityScheme.Builder setName(java.lang.String value)
The name of the header or query parameter to be used. Valid for apiKey.
string name = 3;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Openapiv2.SecurityScheme.Builder clearName()
The name of the header or query parameter to be used. Valid for apiKey.
string name = 3;- Returns:
- This builder for chaining.
-
setNameBytes
public Openapiv2.SecurityScheme.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the header or query parameter to be used. Valid for apiKey.
string name = 3;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getInValue
public 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;- Specified by:
getInValuein interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The enum numeric value on the wire for in.
-
setInValue
public Openapiv2.SecurityScheme.Builder setInValue(int value)
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;- Parameters:
value- The enum numeric value on the wire for in to set.- Returns:
- This builder for chaining.
-
getIn
public 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;- Specified by:
getInin interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The in.
-
setIn
public Openapiv2.SecurityScheme.Builder setIn(Openapiv2.SecurityScheme.In value)
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;- Parameters:
value- The in to set.- Returns:
- This builder for chaining.
-
clearIn
public Openapiv2.SecurityScheme.Builder clearIn()
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:
- This builder for chaining.
-
getFlowValue
public 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;- Specified by:
getFlowValuein interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The enum numeric value on the wire for flow.
-
setFlowValue
public Openapiv2.SecurityScheme.Builder setFlowValue(int value)
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;- Parameters:
value- The enum numeric value on the wire for flow to set.- Returns:
- This builder for chaining.
-
getFlow
public 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;- Specified by:
getFlowin interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The flow.
-
setFlow
public Openapiv2.SecurityScheme.Builder setFlow(Openapiv2.SecurityScheme.Flow value)
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;- Parameters:
value- The flow to set.- Returns:
- This builder for chaining.
-
clearFlow
public Openapiv2.SecurityScheme.Builder clearFlow()
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:
- This builder for chaining.
-
getAuthorizationUrl
public java.lang.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;- Specified by:
getAuthorizationUrlin interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The authorizationUrl.
-
getAuthorizationUrlBytes
public 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;- Specified by:
getAuthorizationUrlBytesin interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The bytes for authorizationUrl.
-
setAuthorizationUrl
public Openapiv2.SecurityScheme.Builder setAuthorizationUrl(java.lang.String value)
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;- Parameters:
value- The authorizationUrl to set.- Returns:
- This builder for chaining.
-
clearAuthorizationUrl
public Openapiv2.SecurityScheme.Builder clearAuthorizationUrl()
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:
- This builder for chaining.
-
setAuthorizationUrlBytes
public Openapiv2.SecurityScheme.Builder setAuthorizationUrlBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for authorizationUrl to set.- Returns:
- This builder for chaining.
-
getTokenUrl
public java.lang.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;- Specified by:
getTokenUrlin interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The tokenUrl.
-
getTokenUrlBytes
public 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;- Specified by:
getTokenUrlBytesin interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The bytes for tokenUrl.
-
setTokenUrl
public Openapiv2.SecurityScheme.Builder setTokenUrl(java.lang.String value)
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;- Parameters:
value- The tokenUrl to set.- Returns:
- This builder for chaining.
-
clearTokenUrl
public Openapiv2.SecurityScheme.Builder clearTokenUrl()
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:
- This builder for chaining.
-
setTokenUrlBytes
public Openapiv2.SecurityScheme.Builder setTokenUrlBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for tokenUrl to set.- Returns:
- This builder for chaining.
-
hasScopes
public boolean hasScopes()
The available scopes for the OAuth2 security scheme. Valid for oauth2.
.grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8;- Specified by:
hasScopesin interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- Whether the scopes field is set.
-
getScopes
public Openapiv2.Scopes getScopes()
The available scopes for the OAuth2 security scheme. Valid for oauth2.
.grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8;- Specified by:
getScopesin interfaceOpenapiv2.SecuritySchemeOrBuilder- Returns:
- The scopes.
-
setScopes
public Openapiv2.SecurityScheme.Builder setScopes(Openapiv2.Scopes value)
The available scopes for the OAuth2 security scheme. Valid for oauth2.
.grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8;
-
setScopes
public Openapiv2.SecurityScheme.Builder setScopes(Openapiv2.Scopes.Builder builderForValue)
The available scopes for the OAuth2 security scheme. Valid for oauth2.
.grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8;
-
mergeScopes
public Openapiv2.SecurityScheme.Builder mergeScopes(Openapiv2.Scopes value)
The available scopes for the OAuth2 security scheme. Valid for oauth2.
.grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8;
-
clearScopes
public Openapiv2.SecurityScheme.Builder clearScopes()
The available scopes for the OAuth2 security scheme. Valid for oauth2.
.grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8;
-
getScopesBuilder
public Openapiv2.Scopes.Builder getScopesBuilder()
The available scopes for the OAuth2 security scheme. Valid for oauth2.
.grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8;
-
getScopesOrBuilder
public Openapiv2.ScopesOrBuilder getScopesOrBuilder()
The available scopes for the OAuth2 security scheme. Valid for oauth2.
.grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8;- Specified by:
getScopesOrBuilderin interfaceOpenapiv2.SecuritySchemeOrBuilder
-
getExtensionsCount
public int getExtensionsCount()
Description copied from interface:Openapiv2.SecuritySchemeOrBuilderCustom 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;- Specified by:
getExtensionsCountin interfaceOpenapiv2.SecuritySchemeOrBuilder
-
containsExtensions
public boolean containsExtensions(java.lang.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. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 9;- Specified by:
containsExtensionsin interfaceOpenapiv2.SecuritySchemeOrBuilder
-
getExtensions
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getExtensions()
Deprecated.UsegetExtensionsMap()instead.- Specified by:
getExtensionsin interfaceOpenapiv2.SecuritySchemeOrBuilder
-
getExtensionsMap
public java.util.Map<java.lang.String,com.google.protobuf.Value> 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;- Specified by:
getExtensionsMapin interfaceOpenapiv2.SecuritySchemeOrBuilder
-
getExtensionsOrDefault
public com.google.protobuf.Value getExtensionsOrDefault(java.lang.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;- Specified by:
getExtensionsOrDefaultin interfaceOpenapiv2.SecuritySchemeOrBuilder
-
getExtensionsOrThrow
public com.google.protobuf.Value getExtensionsOrThrow(java.lang.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. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 9;- Specified by:
getExtensionsOrThrowin interfaceOpenapiv2.SecuritySchemeOrBuilder
-
clearExtensions
public Openapiv2.SecurityScheme.Builder clearExtensions()
-
removeExtensions
public Openapiv2.SecurityScheme.Builder removeExtensions(java.lang.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. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 9;
-
getMutableExtensions
@Deprecated public java.util.Map<java.lang.String,com.google.protobuf.Value> getMutableExtensions()
Deprecated.Use alternate mutation accessors instead.
-
putExtensions
public Openapiv2.SecurityScheme.Builder putExtensions(java.lang.String key, com.google.protobuf.Value 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. See: https://swagger.io/docs/specification/2-0/swagger-extensions/
map<string, .google.protobuf.Value> extensions = 9;
-
putAllExtensions
public Openapiv2.SecurityScheme.Builder putAllExtensions(java.util.Map<java.lang.String,com.google.protobuf.Value> values)
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;
-
setUnknownFields
public final Openapiv2.SecurityScheme.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
mergeUnknownFields
public final Openapiv2.SecurityScheme.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityScheme.Builder>
-
-