Class Authentication.Builder

  • All Implemented Interfaces:
    AuthenticationOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    Authentication

    public static final class Authentication.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
    implements AuthenticationOrBuilder
     `Authentication` defines the authentication configuration for API methods
     provided by an API service.
    
     Example:
    
         name: calendar.googleapis.com
         authentication:
           providers:
           - id: google_calendar_auth
             jwks_uri: https://www.googleapis.com/oauth2/v1/certs
             issuer: https://securetoken.google.com
           rules:
           - selector: "*"
             requirements:
               provider_id: google_calendar_auth
           - selector: google.calendar.Delegate
             oauth:
               canonical_scopes: https://www.googleapis.com/auth/calendar.read
     
    Protobuf type google.api.Authentication
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Overrides:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
      • clear

        public Authentication.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Authentication.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<Authentication.Builder>
      • getDefaultInstanceForType

        public Authentication getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

        public Authentication buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Authentication.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
      • setField

        public Authentication.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
      • clearField

        public Authentication.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
      • clearOneof

        public Authentication.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
      • setRepeatedField

        public Authentication.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
      • addRepeatedField

        public Authentication.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
      • mergeFrom

        public Authentication.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Authentication.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,​Authentication.Builder>
      • mergeFrom

        public Authentication.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<Authentication.Builder>
        Throws:
        java.io.IOException
      • getRulesList

        public java.util.List<AuthenticationRule> getRulesList()
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
        Specified by:
        getRulesList in interface AuthenticationOrBuilder
      • getRulesCount

        public int getRulesCount()
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
        Specified by:
        getRulesCount in interface AuthenticationOrBuilder
      • getRules

        public AuthenticationRule getRules​(int index)
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
        Specified by:
        getRules in interface AuthenticationOrBuilder
      • setRules

        public Authentication.Builder setRules​(int index,
                                               AuthenticationRule value)
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
      • setRules

        public Authentication.Builder setRules​(int index,
                                               AuthenticationRule.Builder builderForValue)
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
      • addRules

        public Authentication.Builder addRules​(AuthenticationRule value)
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
      • addRules

        public Authentication.Builder addRules​(int index,
                                               AuthenticationRule value)
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
      • addRules

        public Authentication.Builder addRules​(AuthenticationRule.Builder builderForValue)
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
      • addRules

        public Authentication.Builder addRules​(int index,
                                               AuthenticationRule.Builder builderForValue)
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
      • addAllRules

        public Authentication.Builder addAllRules​(java.lang.Iterable<? extends AuthenticationRule> values)
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
      • clearRules

        public Authentication.Builder clearRules()
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
      • removeRules

        public Authentication.Builder removeRules​(int index)
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
      • getRulesBuilder

        public AuthenticationRule.Builder getRulesBuilder​(int index)
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
      • getRulesOrBuilder

        public AuthenticationRuleOrBuilder getRulesOrBuilder​(int index)
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
        Specified by:
        getRulesOrBuilder in interface AuthenticationOrBuilder
      • getRulesOrBuilderList

        public java.util.List<? extends AuthenticationRuleOrBuilder> getRulesOrBuilderList()
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
        Specified by:
        getRulesOrBuilderList in interface AuthenticationOrBuilder
      • addRulesBuilder

        public AuthenticationRule.Builder addRulesBuilder()
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
      • addRulesBuilder

        public AuthenticationRule.Builder addRulesBuilder​(int index)
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
      • getRulesBuilderList

        public java.util.List<AuthenticationRule.Builder> getRulesBuilderList()
         A list of authentication rules that apply to individual API methods.
        
         **NOTE:** All service configuration rules follow "last one wins" order.
         
        repeated .google.api.AuthenticationRule rules = 3;
      • getProvidersList

        public java.util.List<AuthProvider> getProvidersList()
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
        Specified by:
        getProvidersList in interface AuthenticationOrBuilder
      • getProvidersCount

        public int getProvidersCount()
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
        Specified by:
        getProvidersCount in interface AuthenticationOrBuilder
      • getProviders

        public AuthProvider getProviders​(int index)
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
        Specified by:
        getProviders in interface AuthenticationOrBuilder
      • setProviders

        public Authentication.Builder setProviders​(int index,
                                                   AuthProvider value)
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
      • setProviders

        public Authentication.Builder setProviders​(int index,
                                                   AuthProvider.Builder builderForValue)
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
      • addProviders

        public Authentication.Builder addProviders​(AuthProvider value)
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
      • addProviders

        public Authentication.Builder addProviders​(int index,
                                                   AuthProvider value)
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
      • addProviders

        public Authentication.Builder addProviders​(AuthProvider.Builder builderForValue)
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
      • addProviders

        public Authentication.Builder addProviders​(int index,
                                                   AuthProvider.Builder builderForValue)
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
      • addAllProviders

        public Authentication.Builder addAllProviders​(java.lang.Iterable<? extends AuthProvider> values)
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
      • clearProviders

        public Authentication.Builder clearProviders()
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
      • removeProviders

        public Authentication.Builder removeProviders​(int index)
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
      • getProvidersBuilder

        public AuthProvider.Builder getProvidersBuilder​(int index)
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
      • addProvidersBuilder

        public AuthProvider.Builder addProvidersBuilder()
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
      • addProvidersBuilder

        public AuthProvider.Builder addProvidersBuilder​(int index)
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
      • getProvidersBuilderList

        public java.util.List<AuthProvider.Builder> getProvidersBuilderList()
         Defines a set of authentication providers that a service supports.
         
        repeated .google.api.AuthProvider providers = 4;
      • setUnknownFields

        public final Authentication.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
      • mergeUnknownFields

        public final Authentication.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>