Class Authentication.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
com.google.api.Authentication.Builder
All Implemented Interfaces:
AuthenticationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, 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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      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.GeneratedMessageV3.Builder<Authentication.Builder>
    • getDefaultInstanceForType

      public Authentication getDefaultInstanceForType()
      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, 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, 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, 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>
    • mergeFrom

      public Authentication.Builder mergeFrom(Authentication other)
    • isInitialized

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

      public Authentication.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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:
      IOException
    • getRulesList

      public 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(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 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 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 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(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;
    • getProvidersOrBuilder

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

      public List<? extends AuthProviderOrBuilder> getProvidersOrBuilderList()
       Defines a set of authentication providers that a service supports.
       
      repeated .google.api.AuthProvider providers = 4;
      Specified by:
      getProvidersOrBuilderList in interface AuthenticationOrBuilder
    • 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 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>