Package org.a2aproject.sdk.grpc
Class DeviceCodeOAuthFlow.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DeviceCodeOAuthFlow.Builder>
org.a2aproject.sdk.grpc.DeviceCodeOAuthFlow.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,DeviceCodeOAuthFlowOrBuilder
- Enclosing class:
- DeviceCodeOAuthFlow
public static final class DeviceCodeOAuthFlow.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DeviceCodeOAuthFlow.Builder>
implements DeviceCodeOAuthFlowOrBuilder
Defines configuration details for the OAuth 2.0 Device Code flow (RFC 8628). This flow is designed for input-constrained devices such as IoT devices, and CLI tools where the user authenticates on a separate device.Protobuf type
lf.a2a.v1.DeviceCodeOAuthFlow-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The device authorization endpoint URL.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.DescriptorThe device authorization endpoint URL.com.google.protobuf.ByteStringThe device authorization endpoint URL.Deprecated.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(DeviceCodeOAuthFlow 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.setDeviceAuthorizationUrl(String value) The device authorization endpoint URL.setDeviceAuthorizationUrlBytes(com.google.protobuf.ByteString value) The device authorization endpoint URL.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<DeviceCodeOAuthFlow.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<DeviceCodeOAuthFlow.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DeviceCodeOAuthFlow.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<DeviceCodeOAuthFlow.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<DeviceCodeOAuthFlow.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<DeviceCodeOAuthFlow.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DeviceCodeOAuthFlow.Builder>
-
mergeFrom
public DeviceCodeOAuthFlow.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<DeviceCodeOAuthFlow.Builder>- Throws:
IOException
-
getDeviceAuthorizationUrl
The device authorization endpoint URL.
string device_authorization_url = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDeviceAuthorizationUrlin interfaceDeviceCodeOAuthFlowOrBuilder- Returns:
- The deviceAuthorizationUrl.
-
getDeviceAuthorizationUrlBytes
public com.google.protobuf.ByteString getDeviceAuthorizationUrlBytes()The device authorization endpoint URL.
string device_authorization_url = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDeviceAuthorizationUrlBytesin interfaceDeviceCodeOAuthFlowOrBuilder- Returns:
- The bytes for deviceAuthorizationUrl.
-
setDeviceAuthorizationUrl
The device authorization endpoint URL.
string device_authorization_url = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The deviceAuthorizationUrl to set.- Returns:
- This builder for chaining.
-
clearDeviceAuthorizationUrl
The device authorization endpoint URL.
string device_authorization_url = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDeviceAuthorizationUrlBytes
public DeviceCodeOAuthFlow.Builder setDeviceAuthorizationUrlBytes(com.google.protobuf.ByteString value) The device authorization endpoint URL.
string device_authorization_url = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for deviceAuthorizationUrl to set.- Returns:
- This builder for chaining.
-
getTokenUrl
The token URL to be used for this flow.
string token_url = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTokenUrlin interfaceDeviceCodeOAuthFlowOrBuilder- Returns:
- The tokenUrl.
-
getTokenUrlBytes
public com.google.protobuf.ByteString getTokenUrlBytes()The token URL to be used for this flow.
string token_url = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTokenUrlBytesin interfaceDeviceCodeOAuthFlowOrBuilder- Returns:
- The bytes for tokenUrl.
-
setTokenUrl
The token URL to be used for this flow.
string token_url = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The tokenUrl to set.- Returns:
- This builder for chaining.
-
clearTokenUrl
The token URL to be used for this flow.
string token_url = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTokenUrlBytes
The token URL to be used for this flow.
string token_url = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for tokenUrl to set.- Returns:
- This builder for chaining.
-
getRefreshUrl
The URL to be used for obtaining refresh tokens.
string refresh_url = 3;- Specified by:
getRefreshUrlin interfaceDeviceCodeOAuthFlowOrBuilder- Returns:
- The refreshUrl.
-
getRefreshUrlBytes
public com.google.protobuf.ByteString getRefreshUrlBytes()The URL to be used for obtaining refresh tokens.
string refresh_url = 3;- Specified by:
getRefreshUrlBytesin interfaceDeviceCodeOAuthFlowOrBuilder- Returns:
- The bytes for refreshUrl.
-
setRefreshUrl
The URL to be used for obtaining refresh tokens.
string refresh_url = 3;- Parameters:
value- The refreshUrl to set.- Returns:
- This builder for chaining.
-
clearRefreshUrl
The URL to be used for obtaining refresh tokens.
string refresh_url = 3;- Returns:
- This builder for chaining.
-
setRefreshUrlBytes
The URL to be used for obtaining refresh tokens.
string refresh_url = 3;- Parameters:
value- The bytes for refreshUrl to set.- Returns:
- This builder for chaining.
-
getScopesCount
public int getScopesCount()Description copied from interface:DeviceCodeOAuthFlowOrBuilderThe available scopes for the OAuth2 security scheme.
map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getScopesCountin interfaceDeviceCodeOAuthFlowOrBuilder
-
containsScopes
The available scopes for the OAuth2 security scheme.
map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
containsScopesin interfaceDeviceCodeOAuthFlowOrBuilder
-
getScopes
Deprecated.UsegetScopesMap()instead.- Specified by:
getScopesin interfaceDeviceCodeOAuthFlowOrBuilder
-
getScopesMap
The available scopes for the OAuth2 security scheme.
map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getScopesMapin interfaceDeviceCodeOAuthFlowOrBuilder
-
getScopesOrDefault
The available scopes for the OAuth2 security scheme.
map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getScopesOrDefaultin interfaceDeviceCodeOAuthFlowOrBuilder
-
getScopesOrThrow
The available scopes for the OAuth2 security scheme.
map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getScopesOrThrowin interfaceDeviceCodeOAuthFlowOrBuilder
-
clearScopes
-
removeScopes
The available scopes for the OAuth2 security scheme.
map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED]; -
getMutableScopes
Deprecated.Use alternate mutation accessors instead. -
putScopes
The available scopes for the OAuth2 security scheme.
map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED]; -
putAllScopes
The available scopes for the OAuth2 security scheme.
map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED];
-