Package org.a2aproject.sdk.grpc
Class AuthenticationInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AuthenticationInfo.Builder>
org.a2aproject.sdk.grpc.AuthenticationInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,AuthenticationInfoOrBuilder
- Enclosing class:
- AuthenticationInfo
public static final class AuthenticationInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AuthenticationInfo.Builder>
implements AuthenticationInfoOrBuilder
Defines authentication details, used for push notifications.Protobuf type
lf.a2a.v1.AuthenticationInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Push Notification credentials.HTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/).Push Notification credentials.com.google.protobuf.ByteStringPush Notification credentials.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorHTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/).com.google.protobuf.ByteStringHTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/).protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(AuthenticationInfo other) setCredentials(String value) Push Notification credentials.setCredentialsBytes(com.google.protobuf.ByteString value) Push Notification credentials.HTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/).setSchemeBytes(com.google.protobuf.ByteString value) HTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/).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<AuthenticationInfo.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<AuthenticationInfo.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<AuthenticationInfo.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<AuthenticationInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AuthenticationInfo.Builder>
-
mergeFrom
public AuthenticationInfo.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<AuthenticationInfo.Builder>- Throws:
IOException
-
getScheme
HTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/). Examples: `Bearer`, `Basic`, `Digest`. Scheme names are case-insensitive per [RFC 9110 Section 11.1](https://www.rfc-editor.org/rfc/rfc9110#section-11.1).
string scheme = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSchemein interfaceAuthenticationInfoOrBuilder- Returns:
- The scheme.
-
getSchemeBytes
public com.google.protobuf.ByteString getSchemeBytes()HTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/). Examples: `Bearer`, `Basic`, `Digest`. Scheme names are case-insensitive per [RFC 9110 Section 11.1](https://www.rfc-editor.org/rfc/rfc9110#section-11.1).
string scheme = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSchemeBytesin interfaceAuthenticationInfoOrBuilder- Returns:
- The bytes for scheme.
-
setScheme
HTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/). Examples: `Bearer`, `Basic`, `Digest`. Scheme names are case-insensitive per [RFC 9110 Section 11.1](https://www.rfc-editor.org/rfc/rfc9110#section-11.1).
string scheme = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The scheme to set.- Returns:
- This builder for chaining.
-
clearScheme
HTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/). Examples: `Bearer`, `Basic`, `Digest`. Scheme names are case-insensitive per [RFC 9110 Section 11.1](https://www.rfc-editor.org/rfc/rfc9110#section-11.1).
string scheme = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setSchemeBytes
HTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/). Examples: `Bearer`, `Basic`, `Digest`. Scheme names are case-insensitive per [RFC 9110 Section 11.1](https://www.rfc-editor.org/rfc/rfc9110#section-11.1).
string scheme = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for scheme to set.- Returns:
- This builder for chaining.
-
getCredentials
Push Notification credentials. Format depends on the scheme (e.g., token for Bearer).
string credentials = 2;- Specified by:
getCredentialsin interfaceAuthenticationInfoOrBuilder- Returns:
- The credentials.
-
getCredentialsBytes
public com.google.protobuf.ByteString getCredentialsBytes()Push Notification credentials. Format depends on the scheme (e.g., token for Bearer).
string credentials = 2;- Specified by:
getCredentialsBytesin interfaceAuthenticationInfoOrBuilder- Returns:
- The bytes for credentials.
-
setCredentials
Push Notification credentials. Format depends on the scheme (e.g., token for Bearer).
string credentials = 2;- Parameters:
value- The credentials to set.- Returns:
- This builder for chaining.
-
clearCredentials
Push Notification credentials. Format depends on the scheme (e.g., token for Bearer).
string credentials = 2;- Returns:
- This builder for chaining.
-
setCredentialsBytes
Push Notification credentials. Format depends on the scheme (e.g., token for Bearer).
string credentials = 2;- Parameters:
value- The bytes for credentials to set.- Returns:
- This builder for chaining.
-