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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
Name | Description |
values | Iterable<? extends com.google.api.AuthProvider>
|
Returns
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
Name | Description |
values | Iterable<? extends com.google.api.AuthenticationRule>
|
Returns
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
Returns
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
Returns
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
Returns
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
Returns
addProvidersBuilder()
public AuthProvider.Builder addProvidersBuilder()
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Authentication.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
build()
public Authentication build()
Returns
buildPartial()
public Authentication buildPartial()
Returns
clear()
public Authentication.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Authentication.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Authentication.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearProviders()
public Authentication.Builder clearProviders()
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4;
Returns
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
clone()
public Authentication.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Authentication getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
getProvidersBuilderList()
public List<AuthProvider.Builder> getProvidersBuilderList()
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4;
Returns
getProvidersCount()
public int getProvidersCount()
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4;
Returns
getProvidersList()
public List<AuthProvider> getProvidersList()
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4;
Returns
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
Returns
getProvidersOrBuilderList()
public List<? extends AuthProviderOrBuilder> getProvidersOrBuilderList()
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4;
Returns
Type | Description |
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
Returns
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
Returns
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
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
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
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
Returns
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
Type | Description |
List<? extends com.google.api.AuthenticationRuleOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Authentication other)
public Authentication.Builder mergeFrom(Authentication other)
Parameter
Returns
public Authentication.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Authentication.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Authentication.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Authentication.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Authentication.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Authentication.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides