Package org.a2aproject.sdk.grpc
Class OAuthFlows.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OAuthFlows.Builder>
org.a2aproject.sdk.grpc.OAuthFlows.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,OAuthFlowsOrBuilder
- Enclosing class:
- OAuthFlows
public static final class OAuthFlows.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OAuthFlows.Builder>
implements OAuthFlowsOrBuilder
Defines the configuration for the supported OAuth 2.0 flows.Protobuf type
lf.a2a.v1.OAuthFlows-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Configuration for the OAuth Authorization Code flow.Configuration for the OAuth Client Credentials flow.Configuration for the OAuth Device Code flow.Deprecated.Deprecated.Configuration for the OAuth Authorization Code flow.Configuration for the OAuth Authorization Code flow.Configuration for the OAuth Authorization Code flow.Configuration for the OAuth Client Credentials flow.Configuration for the OAuth Client Credentials flow.Configuration for the OAuth Client Credentials flow.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorConfiguration for the OAuth Device Code flow.Configuration for the OAuth Device Code flow.Configuration for the OAuth Device Code flow.Deprecated.lf.a2a.v1.OAuthFlows.implicit is deprecated.Deprecated.Deprecated.Deprecated.lf.a2a.v1.OAuthFlows.password is deprecated.Deprecated.Deprecated.booleanConfiguration for the OAuth Authorization Code flow.booleanConfiguration for the OAuth Client Credentials flow.booleanConfiguration for the OAuth Device Code flow.booleanDeprecated.lf.a2a.v1.OAuthFlows.implicit is deprecated.booleanDeprecated.lf.a2a.v1.OAuthFlows.password is deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanConfiguration for the OAuth Authorization Code flow.Configuration for the OAuth Client Credentials flow.Configuration for the OAuth Device Code flow.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(OAuthFlows other) mergeImplicit(ImplicitOAuthFlow value) Deprecated.mergePassword(PasswordOAuthFlow value) Deprecated.Configuration for the OAuth Authorization Code flow.setAuthorizationCode(AuthorizationCodeOAuthFlow.Builder builderForValue) Configuration for the OAuth Authorization Code flow.Configuration for the OAuth Client Credentials flow.setClientCredentials(ClientCredentialsOAuthFlow.Builder builderForValue) Configuration for the OAuth Client Credentials flow.setDeviceCode(DeviceCodeOAuthFlow value) Configuration for the OAuth Device Code flow.setDeviceCode(DeviceCodeOAuthFlow.Builder builderForValue) Configuration for the OAuth Device Code flow.setImplicit(ImplicitOAuthFlow value) Deprecated.setImplicit(ImplicitOAuthFlow.Builder builderForValue) Deprecated.setPassword(PasswordOAuthFlow value) Deprecated.setPassword(PasswordOAuthFlow.Builder builderForValue) Deprecated.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OAuthFlows.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<OAuthFlows.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.GeneratedMessage.Builder<OAuthFlows.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OAuthFlows.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OAuthFlows.Builder>
-
mergeFrom
public OAuthFlows.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<OAuthFlows.Builder>- Throws:
IOException
-
getFlowCase
- Specified by:
getFlowCasein interfaceOAuthFlowsOrBuilder
-
clearFlow
-
hasAuthorizationCode
public boolean hasAuthorizationCode()Configuration for the OAuth Authorization Code flow.
.lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1;- Specified by:
hasAuthorizationCodein interfaceOAuthFlowsOrBuilder- Returns:
- Whether the authorizationCode field is set.
-
getAuthorizationCode
Configuration for the OAuth Authorization Code flow.
.lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1;- Specified by:
getAuthorizationCodein interfaceOAuthFlowsOrBuilder- Returns:
- The authorizationCode.
-
setAuthorizationCode
Configuration for the OAuth Authorization Code flow.
.lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1; -
setAuthorizationCode
Configuration for the OAuth Authorization Code flow.
.lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1; -
mergeAuthorizationCode
Configuration for the OAuth Authorization Code flow.
.lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1; -
clearAuthorizationCode
Configuration for the OAuth Authorization Code flow.
.lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1; -
getAuthorizationCodeBuilder
Configuration for the OAuth Authorization Code flow.
.lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1; -
getAuthorizationCodeOrBuilder
Configuration for the OAuth Authorization Code flow.
.lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1;- Specified by:
getAuthorizationCodeOrBuilderin interfaceOAuthFlowsOrBuilder
-
hasClientCredentials
public boolean hasClientCredentials()Configuration for the OAuth Client Credentials flow.
.lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2;- Specified by:
hasClientCredentialsin interfaceOAuthFlowsOrBuilder- Returns:
- Whether the clientCredentials field is set.
-
getClientCredentials
Configuration for the OAuth Client Credentials flow.
.lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2;- Specified by:
getClientCredentialsin interfaceOAuthFlowsOrBuilder- Returns:
- The clientCredentials.
-
setClientCredentials
Configuration for the OAuth Client Credentials flow.
.lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2; -
setClientCredentials
Configuration for the OAuth Client Credentials flow.
.lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2; -
mergeClientCredentials
Configuration for the OAuth Client Credentials flow.
.lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2; -
clearClientCredentials
Configuration for the OAuth Client Credentials flow.
.lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2; -
getClientCredentialsBuilder
Configuration for the OAuth Client Credentials flow.
.lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2; -
getClientCredentialsOrBuilder
Configuration for the OAuth Client Credentials flow.
.lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2;- Specified by:
getClientCredentialsOrBuilderin interfaceOAuthFlowsOrBuilder
-
hasImplicit
Deprecated.lf.a2a.v1.OAuthFlows.implicit is deprecated. See a2a.proto;l=569Deprecated: Use Authorization Code + PKCE instead.
.lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true];- Specified by:
hasImplicitin interfaceOAuthFlowsOrBuilder- Returns:
- Whether the implicit field is set.
-
getImplicit
Deprecated.lf.a2a.v1.OAuthFlows.implicit is deprecated. See a2a.proto;l=569Deprecated: Use Authorization Code + PKCE instead.
.lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true];- Specified by:
getImplicitin interfaceOAuthFlowsOrBuilder- Returns:
- The implicit.
-
setImplicit
Deprecated.Deprecated: Use Authorization Code + PKCE instead.
.lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true]; -
setImplicit
Deprecated.Deprecated: Use Authorization Code + PKCE instead.
.lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true]; -
mergeImplicit
Deprecated.Deprecated: Use Authorization Code + PKCE instead.
.lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true]; -
clearImplicit
Deprecated.Deprecated: Use Authorization Code + PKCE instead.
.lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true]; -
getImplicitBuilder
Deprecated.Deprecated: Use Authorization Code + PKCE instead.
.lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true]; -
getImplicitOrBuilder
Deprecated.Deprecated: Use Authorization Code + PKCE instead.
.lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true];- Specified by:
getImplicitOrBuilderin interfaceOAuthFlowsOrBuilder
-
hasPassword
Deprecated.lf.a2a.v1.OAuthFlows.password is deprecated. See a2a.proto;l=571Deprecated: Use Authorization Code + PKCE or Device Code.
.lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true];- Specified by:
hasPasswordin interfaceOAuthFlowsOrBuilder- Returns:
- Whether the password field is set.
-
getPassword
Deprecated.lf.a2a.v1.OAuthFlows.password is deprecated. See a2a.proto;l=571Deprecated: Use Authorization Code + PKCE or Device Code.
.lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true];- Specified by:
getPasswordin interfaceOAuthFlowsOrBuilder- Returns:
- The password.
-
setPassword
Deprecated.Deprecated: Use Authorization Code + PKCE or Device Code.
.lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true]; -
setPassword
Deprecated.Deprecated: Use Authorization Code + PKCE or Device Code.
.lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true]; -
mergePassword
Deprecated.Deprecated: Use Authorization Code + PKCE or Device Code.
.lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true]; -
clearPassword
Deprecated.Deprecated: Use Authorization Code + PKCE or Device Code.
.lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true]; -
getPasswordBuilder
Deprecated.Deprecated: Use Authorization Code + PKCE or Device Code.
.lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true]; -
getPasswordOrBuilder
Deprecated.Deprecated: Use Authorization Code + PKCE or Device Code.
.lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true];- Specified by:
getPasswordOrBuilderin interfaceOAuthFlowsOrBuilder
-
hasDeviceCode
public boolean hasDeviceCode()Configuration for the OAuth Device Code flow.
.lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5;- Specified by:
hasDeviceCodein interfaceOAuthFlowsOrBuilder- Returns:
- Whether the deviceCode field is set.
-
getDeviceCode
Configuration for the OAuth Device Code flow.
.lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5;- Specified by:
getDeviceCodein interfaceOAuthFlowsOrBuilder- Returns:
- The deviceCode.
-
setDeviceCode
Configuration for the OAuth Device Code flow.
.lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5; -
setDeviceCode
Configuration for the OAuth Device Code flow.
.lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5; -
mergeDeviceCode
Configuration for the OAuth Device Code flow.
.lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5; -
clearDeviceCode
Configuration for the OAuth Device Code flow.
.lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5; -
getDeviceCodeBuilder
Configuration for the OAuth Device Code flow.
.lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5; -
getDeviceCodeOrBuilder
Configuration for the OAuth Device Code flow.
.lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5;- Specified by:
getDeviceCodeOrBuilderin interfaceOAuthFlowsOrBuilder
-