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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<SecurityRequirement.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<SecurityRequirement.Builder>
public SecurityRequirement getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public SecurityRequirement build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public SecurityRequirement buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public SecurityRequirement.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<SecurityRequirement.Builder>
java.io.IOException
public int getSecurityRequirementCount()
SecurityRequirementOrBuilder
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"];
getSecurityRequirementCount
in interface SecurityRequirementOrBuilder
public 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 SecurityRequirementOrBuilder
public 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 SecurityRequirementOrBuilder
public 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 SecurityRequirementOrBuilder
public 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 SecurityRequirementOrBuilder
public 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"];