public final class SecurityDefinitions extends com.google.protobuf.GeneratedMessageV3 implements SecurityDefinitionsOrBuilder
`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.Protobuf type
grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions| Modifier and Type | Class and Description |
|---|---|
static class |
SecurityDefinitions.Builder
`SecurityDefinitions` is a representation of OpenAPI v2 specification's
Security Definitions object.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
SECURITY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsSecurity(String key)
A single security scheme definition, mapping a "name" to the scheme it
defines.
|
static SecurityDefinitions |
getDefaultInstance() |
SecurityDefinitions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<SecurityDefinitions> |
getParserForType() |
Map<String,SecurityScheme> |
getSecurity()
Deprecated.
|
int |
getSecurityCount()
A single security scheme definition, mapping a "name" to the scheme it
defines.
|
Map<String,SecurityScheme> |
getSecurityMap()
A single security scheme definition, mapping a "name" to the scheme it
defines.
|
SecurityScheme |
getSecurityOrDefault(String key,
SecurityScheme defaultValue)
A single security scheme definition, mapping a "name" to the scheme it
defines.
|
SecurityScheme |
getSecurityOrThrow(String key)
A single security scheme definition, mapping a "name" to the scheme it
defines.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
static SecurityDefinitions.Builder |
newBuilder() |
static SecurityDefinitions.Builder |
newBuilder(SecurityDefinitions prototype) |
SecurityDefinitions.Builder |
newBuilderForType() |
protected SecurityDefinitions.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SecurityDefinitions |
parseDelimitedFrom(InputStream input) |
static SecurityDefinitions |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecurityDefinitions |
parseFrom(byte[] data) |
static SecurityDefinitions |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecurityDefinitions |
parseFrom(ByteBuffer data) |
static SecurityDefinitions |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecurityDefinitions |
parseFrom(com.google.protobuf.ByteString data) |
static SecurityDefinitions |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecurityDefinitions |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SecurityDefinitions |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecurityDefinitions |
parseFrom(InputStream input) |
static SecurityDefinitions |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SecurityDefinitions> |
parser() |
SecurityDefinitions.Builder |
toBuilder() |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getSerializedSize, getUnknownFields, hasField, hasOneof, internalGetMapField, isInitialized, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag, writeToequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SECURITY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getSecurityCount()
SecurityDefinitionsOrBuilderA single security scheme definition, mapping a "name" to the scheme it defines.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security = 1 [json_name = "security"];getSecurityCount in interface SecurityDefinitionsOrBuilderpublic boolean containsSecurity(String key)
A single security scheme definition, mapping a "name" to the scheme it defines.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security = 1 [json_name = "security"];containsSecurity in interface SecurityDefinitionsOrBuilder@Deprecated public Map<String,SecurityScheme> getSecurity()
getSecurityMap() instead.getSecurity in interface SecurityDefinitionsOrBuilderpublic Map<String,SecurityScheme> getSecurityMap()
A single security scheme definition, mapping a "name" to the scheme it defines.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security = 1 [json_name = "security"];getSecurityMap in interface SecurityDefinitionsOrBuilderpublic SecurityScheme getSecurityOrDefault(String key, SecurityScheme defaultValue)
A single security scheme definition, mapping a "name" to the scheme it defines.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security = 1 [json_name = "security"];getSecurityOrDefault in interface SecurityDefinitionsOrBuilderpublic SecurityScheme getSecurityOrThrow(String key)
A single security scheme definition, mapping a "name" to the scheme it defines.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security = 1 [json_name = "security"];getSecurityOrThrow in interface SecurityDefinitionsOrBuilderpublic static SecurityDefinitions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecurityDefinitions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecurityDefinitions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecurityDefinitions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecurityDefinitions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecurityDefinitions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecurityDefinitions parseFrom(InputStream input) throws IOException
IOExceptionpublic static SecurityDefinitions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SecurityDefinitions parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SecurityDefinitions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SecurityDefinitions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SecurityDefinitions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SecurityDefinitions.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SecurityDefinitions.Builder newBuilder()
public static SecurityDefinitions.Builder newBuilder(SecurityDefinitions prototype)
public SecurityDefinitions.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SecurityDefinitions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SecurityDefinitions getDefaultInstance()
public static com.google.protobuf.Parser<SecurityDefinitions> parser()
public com.google.protobuf.Parser<SecurityDefinitions> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SecurityDefinitions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023. All rights reserved.