public static final class SecurityRequirement.Builder extends com.google.protobuf.GeneratedMessage.Builder<SecurityRequirement.Builder> implements SecurityRequirementOrBuilder
`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.Protobuf type
grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement| Modifier and Type | Method and Description |
|---|---|
SecurityRequirement |
build() |
SecurityRequirement |
buildPartial() |
SecurityRequirement.Builder |
clear() |
SecurityRequirement.Builder |
clearSecurityRequirement() |
boolean |
containsSecurityRequirement(java.lang.String key)
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
SecurityRequirement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.util.Map<java.lang.String,SecurityRequirement.SecurityRequirementValue> |
getMutableSecurityRequirement()
Deprecated.
|
java.util.Map<java.lang.String,SecurityRequirement.SecurityRequirementValue> |
getSecurityRequirement()
Deprecated.
|
int |
getSecurityRequirementCount()
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
java.util.Map<java.lang.String,SecurityRequirement.SecurityRequirementValue> |
getSecurityRequirementMap()
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
SecurityRequirement.SecurityRequirementValue |
getSecurityRequirementOrDefault(java.lang.String key,
SecurityRequirement.SecurityRequirementValue defaultValue)
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
SecurityRequirement.SecurityRequirementValue |
getSecurityRequirementOrThrow(java.lang.String key)
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
SecurityRequirement.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SecurityRequirement.Builder |
mergeFrom(com.google.protobuf.Message other) |
SecurityRequirement.Builder |
mergeFrom(SecurityRequirement other) |
SecurityRequirement.Builder |
putAllSecurityRequirement(java.util.Map<java.lang.String,SecurityRequirement.SecurityRequirementValue> values)
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
SecurityRequirement.Builder |
putSecurityRequirement(java.lang.String key,
SecurityRequirement.SecurityRequirementValue value)
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
SecurityRequirement.SecurityRequirementValue.Builder |
putSecurityRequirementBuilderIfAbsent(java.lang.String key)
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
SecurityRequirement.Builder |
removeSecurityRequirement(java.lang.String key)
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<SecurityRequirement.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<SecurityRequirement.Builder>protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SecurityRequirement.Builder>public SecurityRequirement.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<SecurityRequirement.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SecurityRequirement.Builder>public SecurityRequirement getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SecurityRequirement build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SecurityRequirement buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SecurityRequirement.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecurityRequirement.Builder>public SecurityRequirement.Builder mergeFrom(SecurityRequirement other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<SecurityRequirement.Builder>public SecurityRequirement.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecurityRequirement.Builder>java.io.IOExceptionpublic int getSecurityRequirementCount()
SecurityRequirementOrBuilderEach name must correspond to a security scheme which is declared in the Security Definitions. If 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.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1 [json_name = "securityRequirement"];getSecurityRequirementCount in interface SecurityRequirementOrBuilderpublic boolean containsSecurityRequirement(java.lang.String key)
Each name must correspond to a security scheme which is declared in the Security Definitions. If 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.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1 [json_name = "securityRequirement"];containsSecurityRequirement in interface SecurityRequirementOrBuilder@Deprecated public java.util.Map<java.lang.String,SecurityRequirement.SecurityRequirementValue> getSecurityRequirement()
getSecurityRequirementMap() instead.getSecurityRequirement in interface SecurityRequirementOrBuilderpublic java.util.Map<java.lang.String,SecurityRequirement.SecurityRequirementValue> getSecurityRequirementMap()
Each name must correspond to a security scheme which is declared in the Security Definitions. If 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.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1 [json_name = "securityRequirement"];getSecurityRequirementMap in interface SecurityRequirementOrBuilderpublic SecurityRequirement.SecurityRequirementValue getSecurityRequirementOrDefault(java.lang.String key, SecurityRequirement.SecurityRequirementValue defaultValue)
Each name must correspond to a security scheme which is declared in the Security Definitions. If 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.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1 [json_name = "securityRequirement"];getSecurityRequirementOrDefault in interface SecurityRequirementOrBuilderpublic SecurityRequirement.SecurityRequirementValue getSecurityRequirementOrThrow(java.lang.String key)
Each name must correspond to a security scheme which is declared in the Security Definitions. If 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.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1 [json_name = "securityRequirement"];getSecurityRequirementOrThrow in interface SecurityRequirementOrBuilderpublic SecurityRequirement.Builder clearSecurityRequirement()
public SecurityRequirement.Builder removeSecurityRequirement(java.lang.String key)
Each name must correspond to a security scheme which is declared in the Security Definitions. If 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.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1 [json_name = "securityRequirement"];@Deprecated public java.util.Map<java.lang.String,SecurityRequirement.SecurityRequirementValue> getMutableSecurityRequirement()
public SecurityRequirement.Builder putSecurityRequirement(java.lang.String key, SecurityRequirement.SecurityRequirementValue value)
Each name must correspond to a security scheme which is declared in the Security Definitions. If 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.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1 [json_name = "securityRequirement"];public SecurityRequirement.Builder putAllSecurityRequirement(java.util.Map<java.lang.String,SecurityRequirement.SecurityRequirementValue> values)
Each name must correspond to a security scheme which is declared in the Security Definitions. If 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.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1 [json_name = "securityRequirement"];public SecurityRequirement.SecurityRequirementValue.Builder putSecurityRequirementBuilderIfAbsent(java.lang.String key)
Each name must correspond to a security scheme which is declared in the Security Definitions. If 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.
map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue> security_requirement = 1 [json_name = "securityRequirement"];