Class Authentication.Builder (2.8.4)

public static final class Authentication.Builder extends 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:

Protobuf type google.api.Authentication

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllProviders(Iterable<? extends AuthProvider> values)

public Authentication.Builder addAllProviders(Iterable<? extends AuthProvider> values)

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.api.AuthProvider>
Returns
TypeDescription
Authentication.Builder

addAllRules(Iterable<? extends AuthenticationRule> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.api.AuthenticationRule>
Returns
TypeDescription
Authentication.Builder

addProviders(AuthProvider value)

public Authentication.Builder addProviders(AuthProvider value)

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Parameter
NameDescription
valueAuthProvider
Returns
TypeDescription
Authentication.Builder

addProviders(AuthProvider.Builder builderForValue)

public Authentication.Builder addProviders(AuthProvider.Builder builderForValue)

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Parameter
NameDescription
builderForValueAuthProvider.Builder
Returns
TypeDescription
Authentication.Builder

addProviders(int index, AuthProvider value)

public Authentication.Builder addProviders(int index, AuthProvider value)

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Parameters
NameDescription
indexint
valueAuthProvider
Returns
TypeDescription
Authentication.Builder

addProviders(int index, AuthProvider.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueAuthProvider.Builder
Returns
TypeDescription
Authentication.Builder

addProvidersBuilder()

public AuthProvider.Builder addProvidersBuilder()

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Returns
TypeDescription
AuthProvider.Builder

addProvidersBuilder(int index)

public AuthProvider.Builder addProvidersBuilder(int index)

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthProvider.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Authentication.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Authentication.Builder
Overrides

addRules(AuthenticationRule value)

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;

Parameter
NameDescription
valueAuthenticationRule
Returns
TypeDescription
Authentication.Builder

addRules(AuthenticationRule.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueAuthenticationRule.Builder
Returns
TypeDescription
Authentication.Builder

addRules(int index, AuthenticationRule value)

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;

Parameters
NameDescription
indexint
valueAuthenticationRule
Returns
TypeDescription
Authentication.Builder

addRules(int index, AuthenticationRule.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueAuthenticationRule.Builder
Returns
TypeDescription
Authentication.Builder

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;

Returns
TypeDescription
AuthenticationRule.Builder

addRulesBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthenticationRule.Builder

build()

public Authentication build()
Returns
TypeDescription
Authentication

buildPartial()

public Authentication buildPartial()
Returns
TypeDescription
Authentication

clear()

public Authentication.Builder clear()
Returns
TypeDescription
Authentication.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Authentication.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Authentication.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Authentication.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Authentication.Builder
Overrides

clearProviders()

public Authentication.Builder clearProviders()

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Returns
TypeDescription
Authentication.Builder

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;

Returns
TypeDescription
Authentication.Builder

clone()

public Authentication.Builder clone()
Returns
TypeDescription
Authentication.Builder
Overrides

getDefaultInstanceForType()

public Authentication getDefaultInstanceForType()
Returns
TypeDescription
Authentication

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProviders(int index)

public AuthProvider getProviders(int index)

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthProvider

getProvidersBuilder(int index)

public AuthProvider.Builder getProvidersBuilder(int index)

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthProvider.Builder

getProvidersBuilderList()

public List<AuthProvider.Builder> getProvidersBuilderList()

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Returns
TypeDescription
List<Builder>

getProvidersCount()

public int getProvidersCount()

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Returns
TypeDescription
int

getProvidersList()

public List<AuthProvider> getProvidersList()

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Returns
TypeDescription
List<AuthProvider>

getProvidersOrBuilder(int index)

public AuthProviderOrBuilder getProvidersOrBuilder(int index)

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthProviderOrBuilder

getProvidersOrBuilderList()

public List<? extends AuthProviderOrBuilder> getProvidersOrBuilderList()

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Returns
TypeDescription
List<? extends com.google.api.AuthProviderOrBuilder>

getRules(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthenticationRule

getRulesBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthenticationRule.Builder

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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

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;

Returns
TypeDescription
List<AuthenticationRule>

getRulesOrBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
AuthenticationRuleOrBuilder

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;

Returns
TypeDescription
List<? extends com.google.api.AuthenticationRuleOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Authentication other)

public Authentication.Builder mergeFrom(Authentication other)
Parameter
NameDescription
otherAuthentication
Returns
TypeDescription
Authentication.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Authentication.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Authentication.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Authentication.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Authentication.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Authentication.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Authentication.Builder
Overrides

removeProviders(int index)

public Authentication.Builder removeProviders(int index)

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Authentication.Builder

removeRules(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Authentication.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Authentication.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Authentication.Builder
Overrides

setProviders(int index, AuthProvider value)

public Authentication.Builder setProviders(int index, AuthProvider value)

Defines a set of authentication providers that a service supports.

repeated .google.api.AuthProvider providers = 4;

Parameters
NameDescription
indexint
valueAuthProvider
Returns
TypeDescription
Authentication.Builder

setProviders(int index, AuthProvider.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueAuthProvider.Builder
Returns
TypeDescription
Authentication.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Authentication.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Authentication.Builder
Overrides

setRules(int index, AuthenticationRule value)

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;

Parameters
NameDescription
indexint
valueAuthenticationRule
Returns
TypeDescription
Authentication.Builder

setRules(int index, AuthenticationRule.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueAuthenticationRule.Builder
Returns
TypeDescription
Authentication.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Authentication.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Authentication.Builder
Overrides