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 Type
    Method
    Description
     
     
     
    Push Notification credentials.
    HTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/).
    Push Notification credentials.
    com.google.protobuf.ByteString
    Push Notification credentials.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    HTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/).
    com.google.protobuf.ByteString
    HTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/).
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AuthenticationInfo.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AuthenticationInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AuthenticationInfo.Builder>
    • getDefaultInstanceForType

      public AuthenticationInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AuthenticationInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AuthenticationInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AuthenticationInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AuthenticationInfo.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AuthenticationInfo.Builder>
      Throws:
      IOException
    • getScheme

      public String 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:
      getScheme in interface AuthenticationInfoOrBuilder
      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:
      getSchemeBytes in interface AuthenticationInfoOrBuilder
      Returns:
      The bytes for scheme.
    • setScheme

      public AuthenticationInfo.Builder setScheme(String value)
       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

      public AuthenticationInfo.Builder 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

      public AuthenticationInfo.Builder setSchemeBytes(com.google.protobuf.ByteString value)
       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

      public String getCredentials()
       Push Notification credentials. Format depends on the scheme (e.g., token for Bearer).
       
      string credentials = 2;
      Specified by:
      getCredentials in interface AuthenticationInfoOrBuilder
      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:
      getCredentialsBytes in interface AuthenticationInfoOrBuilder
      Returns:
      The bytes for credentials.
    • setCredentials

      public AuthenticationInfo.Builder setCredentials(String value)
       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

      public AuthenticationInfo.Builder clearCredentials()
       Push Notification credentials. Format depends on the scheme (e.g., token for Bearer).
       
      string credentials = 2;
      Returns:
      This builder for chaining.
    • setCredentialsBytes

      public AuthenticationInfo.Builder setCredentialsBytes(com.google.protobuf.ByteString value)
       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.