public static final class Openapiv2.SecurityRequirement.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder> implements Openapiv2.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 |
|---|---|
Openapiv2.SecurityRequirement.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Openapiv2.SecurityRequirement |
build() |
Openapiv2.SecurityRequirement |
buildPartial() |
Openapiv2.SecurityRequirement.Builder |
clear() |
Openapiv2.SecurityRequirement.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Openapiv2.SecurityRequirement.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Openapiv2.SecurityRequirement.Builder |
clearSecurityRequirement() |
Openapiv2.SecurityRequirement.Builder |
clone() |
boolean |
containsSecurityRequirement(java.lang.String key)
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
Openapiv2.SecurityRequirement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.util.Map<java.lang.String,Openapiv2.SecurityRequirement.SecurityRequirementValue> |
getMutableSecurityRequirement()
Deprecated.
|
java.util.Map<java.lang.String,Openapiv2.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,Openapiv2.SecurityRequirement.SecurityRequirementValue> |
getSecurityRequirementMap()
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
Openapiv2.SecurityRequirement.SecurityRequirementValue |
getSecurityRequirementOrDefault(java.lang.String key,
Openapiv2.SecurityRequirement.SecurityRequirementValue defaultValue)
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
Openapiv2.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.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Openapiv2.SecurityRequirement.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Openapiv2.SecurityRequirement.Builder |
mergeFrom(com.google.protobuf.Message other) |
Openapiv2.SecurityRequirement.Builder |
mergeFrom(Openapiv2.SecurityRequirement other) |
Openapiv2.SecurityRequirement.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Openapiv2.SecurityRequirement.Builder |
putAllSecurityRequirement(java.util.Map<java.lang.String,Openapiv2.SecurityRequirement.SecurityRequirementValue> values)
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
Openapiv2.SecurityRequirement.Builder |
putSecurityRequirement(java.lang.String key,
Openapiv2.SecurityRequirement.SecurityRequirementValue value)
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
Openapiv2.SecurityRequirement.Builder |
removeSecurityRequirement(java.lang.String key)
Each name must correspond to a security scheme which is declared in
the Security Definitions.
|
Openapiv2.SecurityRequirement.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Openapiv2.SecurityRequirement.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Openapiv2.SecurityRequirement.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>public Openapiv2.SecurityRequirement.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.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.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>public Openapiv2.SecurityRequirement getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Openapiv2.SecurityRequirement build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Openapiv2.SecurityRequirement buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Openapiv2.SecurityRequirement.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>public Openapiv2.SecurityRequirement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>public Openapiv2.SecurityRequirement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>public Openapiv2.SecurityRequirement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>public Openapiv2.SecurityRequirement.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>public Openapiv2.SecurityRequirement.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>public Openapiv2.SecurityRequirement.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Openapiv2.SecurityRequirement.Builder>public Openapiv2.SecurityRequirement.Builder mergeFrom(Openapiv2.SecurityRequirement other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>public Openapiv2.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<Openapiv2.SecurityRequirement.Builder>java.io.IOExceptionpublic int getSecurityRequirementCount()
Openapiv2.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;getSecurityRequirementCount in interface Openapiv2.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;containsSecurityRequirement in interface Openapiv2.SecurityRequirementOrBuilder@Deprecated public java.util.Map<java.lang.String,Openapiv2.SecurityRequirement.SecurityRequirementValue> getSecurityRequirement()
getSecurityRequirementMap() instead.getSecurityRequirement in interface Openapiv2.SecurityRequirementOrBuilderpublic java.util.Map<java.lang.String,Openapiv2.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;getSecurityRequirementMap in interface Openapiv2.SecurityRequirementOrBuilderpublic Openapiv2.SecurityRequirement.SecurityRequirementValue getSecurityRequirementOrDefault(java.lang.String key, Openapiv2.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;getSecurityRequirementOrDefault in interface Openapiv2.SecurityRequirementOrBuilderpublic Openapiv2.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;getSecurityRequirementOrThrow in interface Openapiv2.SecurityRequirementOrBuilderpublic Openapiv2.SecurityRequirement.Builder clearSecurityRequirement()
public Openapiv2.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;@Deprecated public java.util.Map<java.lang.String,Openapiv2.SecurityRequirement.SecurityRequirementValue> getMutableSecurityRequirement()
public Openapiv2.SecurityRequirement.Builder putSecurityRequirement(java.lang.String key, Openapiv2.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;public Openapiv2.SecurityRequirement.Builder putAllSecurityRequirement(java.util.Map<java.lang.String,Openapiv2.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;public final Openapiv2.SecurityRequirement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>public final Openapiv2.SecurityRequirement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>