Package org.a2aproject.sdk.grpc
Class ImplicitOAuthFlow.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImplicitOAuthFlow.Builder>
org.a2aproject.sdk.grpc.ImplicitOAuthFlow.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,ImplicitOAuthFlowOrBuilder
- Enclosing class:
- ImplicitOAuthFlow
public static final class ImplicitOAuthFlow.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ImplicitOAuthFlow.Builder>
implements ImplicitOAuthFlowOrBuilder
Deprecated: Use Authorization Code + PKCE instead.Protobuf type
lf.a2a.v1.ImplicitOAuthFlow-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The authorization URL to be used for this flow.The URL to be used for obtaining refresh tokens.booleancontainsScopes(String key) The available scopes for the OAuth2 security scheme.The authorization URL to be used for this flow.com.google.protobuf.ByteStringThe authorization URL to be used for this flow.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.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(ImplicitOAuthFlow 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.setAuthorizationUrl(String value) The authorization URL to be used for this flow.setAuthorizationUrlBytes(com.google.protobuf.ByteString value) The authorization URL to be used for this flow.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.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<ImplicitOAuthFlow.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ImplicitOAuthFlow.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ImplicitOAuthFlow.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<ImplicitOAuthFlow.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<ImplicitOAuthFlow.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<ImplicitOAuthFlow.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ImplicitOAuthFlow.Builder>
-
mergeFrom
public ImplicitOAuthFlow.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<ImplicitOAuthFlow.Builder>- Throws:
IOException
-
getAuthorizationUrl
The authorization 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 authorization_url = 1;- Specified by:
getAuthorizationUrlin interfaceImplicitOAuthFlowOrBuilder- Returns:
- The authorizationUrl.
-
getAuthorizationUrlBytes
public com.google.protobuf.ByteString getAuthorizationUrlBytes()The authorization 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 authorization_url = 1;- Specified by:
getAuthorizationUrlBytesin interfaceImplicitOAuthFlowOrBuilder- Returns:
- The bytes for authorizationUrl.
-
setAuthorizationUrl
The authorization 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 authorization_url = 1;- Parameters:
value- The authorizationUrl to set.- Returns:
- This builder for chaining.
-
clearAuthorizationUrl
The authorization 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 authorization_url = 1;- Returns:
- This builder for chaining.
-
setAuthorizationUrlBytes
The authorization 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 authorization_url = 1;- Parameters:
value- The bytes for authorizationUrl 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 interfaceImplicitOAuthFlowOrBuilder- 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 interfaceImplicitOAuthFlowOrBuilder- 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:ImplicitOAuthFlowOrBuilderThe 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 interfaceImplicitOAuthFlowOrBuilder
-
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 interfaceImplicitOAuthFlowOrBuilder
-
getScopes
Deprecated.UsegetScopesMap()instead.- Specified by:
getScopesin interfaceImplicitOAuthFlowOrBuilder
-
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 interfaceImplicitOAuthFlowOrBuilder
-
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 interfaceImplicitOAuthFlowOrBuilder
-
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 interfaceImplicitOAuthFlowOrBuilder
-
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;
-