Class Openapiv2.SecurityRequirement.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>
-
- grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityRequirement.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Openapiv2.SecurityRequirementOrBuilder,java.lang.Cloneable
- Enclosing class:
- Openapiv2.SecurityRequirement
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 typegrpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Openapiv2.SecurityRequirement.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Openapiv2.SecurityRequirementbuild()Openapiv2.SecurityRequirementbuildPartial()Openapiv2.SecurityRequirement.Builderclear()Openapiv2.SecurityRequirement.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Openapiv2.SecurityRequirement.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Openapiv2.SecurityRequirement.BuilderclearSecurityRequirement()Openapiv2.SecurityRequirement.Builderclone()booleancontainsSecurityRequirement(java.lang.String key)Each name must correspond to a security scheme which is declared in the Security Definitions.Openapiv2.SecurityRequirementgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.util.Map<java.lang.String,Openapiv2.SecurityRequirement.SecurityRequirementValue>getMutableSecurityRequirement()Deprecated.java.util.Map<java.lang.String,Openapiv2.SecurityRequirement.SecurityRequirementValue>getSecurityRequirement()Deprecated.intgetSecurityRequirementCount()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.SecurityRequirementValuegetSecurityRequirementOrDefault(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.SecurityRequirementValuegetSecurityRequirementOrThrow(java.lang.String key)Each name must correspond to a security scheme which is declared in the Security Definitions.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number)booleanisInitialized()Openapiv2.SecurityRequirement.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Openapiv2.SecurityRequirement.BuildermergeFrom(com.google.protobuf.Message other)Openapiv2.SecurityRequirement.BuildermergeFrom(Openapiv2.SecurityRequirement other)Openapiv2.SecurityRequirement.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Openapiv2.SecurityRequirement.BuilderputAllSecurityRequirement(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.BuilderputSecurityRequirement(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.SecurityRequirementValue.BuilderputSecurityRequirementBuilderIfAbsent(java.lang.String key)Each name must correspond to a security scheme which is declared in the Security Definitions.Openapiv2.SecurityRequirement.BuilderremoveSecurityRequirement(java.lang.String key)Each name must correspond to a security scheme which is declared in the Security Definitions.Openapiv2.SecurityRequirement.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Openapiv2.SecurityRequirement.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Openapiv2.SecurityRequirement.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, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>
-
clear
public Openapiv2.SecurityRequirement.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.SecurityRequirement.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.SecurityRequirement.Builder>
-
getDefaultInstanceForType
public Openapiv2.SecurityRequirement getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Openapiv2.SecurityRequirement build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Openapiv2.SecurityRequirement buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Openapiv2.SecurityRequirement.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.SecurityRequirement.Builder>
-
setField
public Openapiv2.SecurityRequirement.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.SecurityRequirement.Builder>
-
clearField
public Openapiv2.SecurityRequirement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>
-
clearOneof
public Openapiv2.SecurityRequirement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>
-
setRepeatedField
public Openapiv2.SecurityRequirement.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.SecurityRequirement.Builder>
-
addRepeatedField
public Openapiv2.SecurityRequirement.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.SecurityRequirement.Builder>
-
mergeFrom
public Openapiv2.SecurityRequirement.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Openapiv2.SecurityRequirement.Builder>
-
mergeFrom
public Openapiv2.SecurityRequirement.Builder mergeFrom(Openapiv2.SecurityRequirement other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>
-
mergeFrom
public Openapiv2.SecurityRequirement.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.SecurityRequirement.Builder>- Throws:
java.io.IOException
-
getSecurityRequirementCount
public int getSecurityRequirementCount()
Description copied from interface: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;- Specified by:
getSecurityRequirementCountin interfaceOpenapiv2.SecurityRequirementOrBuilder
-
containsSecurityRequirement
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;- Specified by:
containsSecurityRequirementin interfaceOpenapiv2.SecurityRequirementOrBuilder
-
getSecurityRequirement
@Deprecated public java.util.Map<java.lang.String,Openapiv2.SecurityRequirement.SecurityRequirementValue> getSecurityRequirement()
Deprecated.UsegetSecurityRequirementMap()instead.- Specified by:
getSecurityRequirementin interfaceOpenapiv2.SecurityRequirementOrBuilder
-
getSecurityRequirementMap
public 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;- Specified by:
getSecurityRequirementMapin interfaceOpenapiv2.SecurityRequirementOrBuilder
-
getSecurityRequirementOrDefault
public 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;- Specified by:
getSecurityRequirementOrDefaultin interfaceOpenapiv2.SecurityRequirementOrBuilder
-
getSecurityRequirementOrThrow
public 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;- Specified by:
getSecurityRequirementOrThrowin interfaceOpenapiv2.SecurityRequirementOrBuilder
-
clearSecurityRequirement
public Openapiv2.SecurityRequirement.Builder clearSecurityRequirement()
-
removeSecurityRequirement
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;
-
getMutableSecurityRequirement
@Deprecated public java.util.Map<java.lang.String,Openapiv2.SecurityRequirement.SecurityRequirementValue> getMutableSecurityRequirement()
Deprecated.Use alternate mutation accessors instead.
-
putSecurityRequirement
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;
-
putAllSecurityRequirement
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;
-
putSecurityRequirementBuilderIfAbsent
public Openapiv2.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;
-
setUnknownFields
public final Openapiv2.SecurityRequirement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>
-
mergeUnknownFields
public final Openapiv2.SecurityRequirement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Openapiv2.SecurityRequirement.Builder>
-
-