Package org.a2aproject.sdk.grpc
Class PasswordOAuthFlow.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PasswordOAuthFlow.Builder>
org.a2aproject.sdk.grpc.PasswordOAuthFlow.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,PasswordOAuthFlowOrBuilder
- Enclosing class:
- PasswordOAuthFlow
public static final class PasswordOAuthFlow.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PasswordOAuthFlow.Builder>
implements PasswordOAuthFlowOrBuilder
Deprecated: Use Authorization Code + PKCE or Device Code.Protobuf type
lf.a2a.v1.PasswordOAuthFlow-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The URL to be used for obtaining refresh tokens.The token URL to be used for this flow.booleancontainsScopes(String key) The available scopes for the OAuth2 security scheme.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.The URL to be used for obtaining refresh tokens.com.google.protobuf.ByteStringThe URL to be used for obtaining refresh tokens.Deprecated.intThe available scopes for the OAuth2 security scheme.The available scopes for the OAuth2 security scheme.getScopesOrDefault(String key, String defaultValue) The available scopes for the OAuth2 security scheme.getScopesOrThrow(String key) The available scopes for the OAuth2 security scheme.The token URL to be used for this flow.com.google.protobuf.ByteStringThe token URL to be used for this flow.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(PasswordOAuthFlow other) putAllScopes(Map<String, String> values) The available scopes for the OAuth2 security scheme.The available scopes for the OAuth2 security scheme.removeScopes(String key) The available scopes for the OAuth2 security scheme.setRefreshUrl(String value) The URL to be used for obtaining refresh tokens.setRefreshUrlBytes(com.google.protobuf.ByteString value) The URL to be used for obtaining refresh tokens.setTokenUrl(String value) The token URL to be used for this flow.setTokenUrlBytes(com.google.protobuf.ByteString value) The token URL to be used for this flow.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<PasswordOAuthFlow.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<PasswordOAuthFlow.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PasswordOAuthFlow.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<PasswordOAuthFlow.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<PasswordOAuthFlow.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<PasswordOAuthFlow.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PasswordOAuthFlow.Builder>
-
mergeFrom
public PasswordOAuthFlow.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<PasswordOAuthFlow.Builder>- Throws:
IOException
-
getTokenUrl
The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.
string token_url = 1;- Specified by:
getTokenUrlin interfacePasswordOAuthFlowOrBuilder- Returns:
- The tokenUrl.
-
getTokenUrlBytes
public com.google.protobuf.ByteString getTokenUrlBytes()The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.
string token_url = 1;- Specified by:
getTokenUrlBytesin interfacePasswordOAuthFlowOrBuilder- Returns:
- The bytes for tokenUrl.
-
setTokenUrl
The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.
string token_url = 1;- Parameters:
value- The tokenUrl to set.- Returns:
- This builder for chaining.
-
clearTokenUrl
The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.
string token_url = 1;- Returns:
- This builder for chaining.
-
setTokenUrlBytes
The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.
string token_url = 1;- Parameters:
value- The bytes for tokenUrl to set.- Returns:
- This builder for chaining.
-
getRefreshUrl
The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.
string refresh_url = 2;- Specified by:
getRefreshUrlin interfacePasswordOAuthFlowOrBuilder- Returns:
- The refreshUrl.
-
getRefreshUrlBytes
public com.google.protobuf.ByteString getRefreshUrlBytes()The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.
string refresh_url = 2;- Specified by:
getRefreshUrlBytesin interfacePasswordOAuthFlowOrBuilder- Returns:
- The bytes for refreshUrl.
-
setRefreshUrl
The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.
string refresh_url = 2;- Parameters:
value- The refreshUrl to set.- Returns:
- This builder for chaining.
-
clearRefreshUrl
The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.
string refresh_url = 2;- Returns:
- This builder for chaining.
-
setRefreshUrlBytes
The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS.
string refresh_url = 2;- Parameters:
value- The bytes for refreshUrl to set.- Returns:
- This builder for chaining.
-
getScopesCount
public int getScopesCount()Description copied from interface:PasswordOAuthFlowOrBuilderThe available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.
map<string, string> scopes = 3;- Specified by:
getScopesCountin interfacePasswordOAuthFlowOrBuilder
-
containsScopes
The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.
map<string, string> scopes = 3;- Specified by:
containsScopesin interfacePasswordOAuthFlowOrBuilder
-
getScopes
Deprecated.UsegetScopesMap()instead.- Specified by:
getScopesin interfacePasswordOAuthFlowOrBuilder
-
getScopesMap
The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.
map<string, string> scopes = 3;- Specified by:
getScopesMapin interfacePasswordOAuthFlowOrBuilder
-
getScopesOrDefault
The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.
map<string, string> scopes = 3;- Specified by:
getScopesOrDefaultin interfacePasswordOAuthFlowOrBuilder
-
getScopesOrThrow
The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.
map<string, string> scopes = 3;- Specified by:
getScopesOrThrowin interfacePasswordOAuthFlowOrBuilder
-
clearScopes
-
removeScopes
The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.
map<string, string> scopes = 3; -
getMutableScopes
Deprecated.Use alternate mutation accessors instead. -
putScopes
The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.
map<string, string> scopes = 3; -
putAllScopes
The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.
map<string, string> scopes = 3;
-