Class Openapiv2.SecurityDefinitions.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Openapiv2.SecurityDefinitionsOrBuilder, java.lang.Cloneable
    Enclosing class:
    Openapiv2.SecurityDefinitions

    public static final class Openapiv2.SecurityDefinitions.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Openapiv2.SecurityDefinitions.Builder>
    implements Openapiv2.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Openapiv2.SecurityDefinitions.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Openapiv2.SecurityDefinitions.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Openapiv2.SecurityDefinitions.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Openapiv2.SecurityDefinitions.Builder>
      • getDefaultInstanceForType

        public Openapiv2.SecurityDefinitions getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Openapiv2.SecurityDefinitions build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Openapiv2.SecurityDefinitions buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Openapiv2.SecurityDefinitions.Builder>
      • mergeFrom

        public Openapiv2.SecurityDefinitions.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Openapiv2.SecurityDefinitions.Builder>
        Throws:
        java.io.IOException
      • containsSecurity

        public boolean containsSecurity​(java.lang.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;
        Specified by:
        containsSecurity in interface Openapiv2.SecurityDefinitionsOrBuilder
      • removeSecurity

        public Openapiv2.SecurityDefinitions.Builder removeSecurity​(java.lang.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;
      • getMutableSecurity

        @Deprecated
        public java.util.Map<java.lang.String,​Openapiv2.SecurityScheme> getMutableSecurity()
        Deprecated.
        Use alternate mutation accessors instead.
      • putAllSecurity

        public Openapiv2.SecurityDefinitions.Builder putAllSecurity​(java.util.Map<java.lang.String,​Openapiv2.SecurityScheme> values)
         A single security scheme definition, mapping a "name" to the scheme it
         defines.
         
        map<string, .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme> security = 1;
      • putSecurityBuilderIfAbsent

        public Openapiv2.SecurityScheme.Builder putSecurityBuilderIfAbsent​(java.lang.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;