Package com.google.api
Class Authentication.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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 Summary
Modifier and TypeMethodDescriptionaddAllProviders(Iterable<? extends AuthProvider> values) Defines a set of authentication providers that a service supports.addAllRules(Iterable<? extends AuthenticationRule> values) A list of authentication rules that apply to individual API methods.addProviders(int index, AuthProvider value) Defines a set of authentication providers that a service supports.addProviders(int index, AuthProvider.Builder builderForValue) Defines a set of authentication providers that a service supports.addProviders(AuthProvider value) Defines a set of authentication providers that a service supports.addProviders(AuthProvider.Builder builderForValue) Defines a set of authentication providers that a service supports.Defines a set of authentication providers that a service supports.addProvidersBuilder(int index) Defines a set of authentication providers that a service supports.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addRules(int index, AuthenticationRule value) A list of authentication rules that apply to individual API methods.addRules(int index, AuthenticationRule.Builder builderForValue) A list of authentication rules that apply to individual API methods.addRules(AuthenticationRule value) A list of authentication rules that apply to individual API methods.addRules(AuthenticationRule.Builder builderForValue) A list of authentication rules that apply to individual API methods.A list of authentication rules that apply to individual API methods.addRulesBuilder(int index) A list of authentication rules that apply to individual API methods.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Defines a set of authentication providers that a service supports.A list of authentication rules that apply to individual API methods.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetProviders(int index) Defines a set of authentication providers that a service supports.getProvidersBuilder(int index) Defines a set of authentication providers that a service supports.Defines a set of authentication providers that a service supports.intDefines a set of authentication providers that a service supports.Defines a set of authentication providers that a service supports.getProvidersOrBuilder(int index) Defines a set of authentication providers that a service supports.List<? extends AuthProviderOrBuilder>Defines a set of authentication providers that a service supports.getRules(int index) A list of authentication rules that apply to individual API methods.getRulesBuilder(int index) A list of authentication rules that apply to individual API methods.A list of authentication rules that apply to individual API methods.intA list of authentication rules that apply to individual API methods.A list of authentication rules that apply to individual API methods.getRulesOrBuilder(int index) A list of authentication rules that apply to individual API methods.List<? extends AuthenticationRuleOrBuilder>A list of authentication rules that apply to individual API methods.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(Authentication other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Authentication.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeProviders(int index) Defines a set of authentication providers that a service supports.removeRules(int index) A list of authentication rules that apply to individual API methods.setProviders(int index, AuthProvider value) Defines a set of authentication providers that a service supports.setProviders(int index, AuthProvider.Builder builderForValue) Defines a set of authentication providers that a service supports.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRules(int index, AuthenticationRule value) A list of authentication rules that apply to individual API methods.setRules(int index, AuthenticationRule.Builder builderForValue) A list of authentication rules that apply to individual API methods.final Authentication.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
-
setField
public Authentication.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
-
setRepeatedField
public Authentication.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
-
addRepeatedField
public Authentication.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Authentication.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Authentication.Builder>- Throws:
IOException
-
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:
getRulesListin interfaceAuthenticationOrBuilder
-
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:
getRulesCountin interfaceAuthenticationOrBuilder
-
getRules
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:
getRulesin interfaceAuthenticationOrBuilder
-
setRules
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
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
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
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
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
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
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
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
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
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
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:
getRulesOrBuilderin interfaceAuthenticationOrBuilder
-
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:
getRulesOrBuilderListin interfaceAuthenticationOrBuilder
-
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
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
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
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4;- Specified by:
getProvidersListin interfaceAuthenticationOrBuilder
-
getProvidersCount
public int getProvidersCount()Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4;- Specified by:
getProvidersCountin interfaceAuthenticationOrBuilder
-
getProviders
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4;- Specified by:
getProvidersin interfaceAuthenticationOrBuilder
-
setProviders
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4; -
setProviders
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4; -
addProviders
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4; -
addProviders
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4; -
addProviders
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4; -
addProviders
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4; -
addAllProviders
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4; -
clearProviders
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4; -
removeProviders
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4; -
getProvidersBuilder
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4; -
getProvidersOrBuilder
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4;- Specified by:
getProvidersOrBuilderin interfaceAuthenticationOrBuilder
-
getProvidersOrBuilderList
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4;- Specified by:
getProvidersOrBuilderListin interfaceAuthenticationOrBuilder
-
addProvidersBuilder
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4; -
addProvidersBuilder
Defines a set of authentication providers that a service supports.
repeated .google.api.AuthProvider providers = 4; -
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
-
mergeUnknownFields
public final Authentication.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Authentication.Builder>
-