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.compat03.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 a2a.v1.AuthenticationInfo
  • 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
    • getSchemesList

      public com.google.protobuf.ProtocolStringList getSchemesList()
       Supported authentication schemes - e.g. Basic, Bearer, etc
       
      repeated string schemes = 1;
      Specified by:
      getSchemesList in interface AuthenticationInfoOrBuilder
      Returns:
      A list containing the schemes.
    • getSchemesCount

      public int getSchemesCount()
       Supported authentication schemes - e.g. Basic, Bearer, etc
       
      repeated string schemes = 1;
      Specified by:
      getSchemesCount in interface AuthenticationInfoOrBuilder
      Returns:
      The count of schemes.
    • getSchemes

      public String getSchemes(int index)
       Supported authentication schemes - e.g. Basic, Bearer, etc
       
      repeated string schemes = 1;
      Specified by:
      getSchemes in interface AuthenticationInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The schemes at the given index.
    • getSchemesBytes

      public com.google.protobuf.ByteString getSchemesBytes(int index)
       Supported authentication schemes - e.g. Basic, Bearer, etc
       
      repeated string schemes = 1;
      Specified by:
      getSchemesBytes in interface AuthenticationInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the schemes at the given index.
    • setSchemes

      public AuthenticationInfo.Builder setSchemes(int index, String value)
       Supported authentication schemes - e.g. Basic, Bearer, etc
       
      repeated string schemes = 1;
      Parameters:
      index - The index to set the value at.
      value - The schemes to set.
      Returns:
      This builder for chaining.
    • addSchemes

      public AuthenticationInfo.Builder addSchemes(String value)
       Supported authentication schemes - e.g. Basic, Bearer, etc
       
      repeated string schemes = 1;
      Parameters:
      value - The schemes to add.
      Returns:
      This builder for chaining.
    • addAllSchemes

      public AuthenticationInfo.Builder addAllSchemes(Iterable<String> values)
       Supported authentication schemes - e.g. Basic, Bearer, etc
       
      repeated string schemes = 1;
      Parameters:
      values - The schemes to add.
      Returns:
      This builder for chaining.
    • clearSchemes

      public AuthenticationInfo.Builder clearSchemes()
       Supported authentication schemes - e.g. Basic, Bearer, etc
       
      repeated string schemes = 1;
      Returns:
      This builder for chaining.
    • addSchemesBytes

      public AuthenticationInfo.Builder addSchemesBytes(com.google.protobuf.ByteString value)
       Supported authentication schemes - e.g. Basic, Bearer, etc
       
      repeated string schemes = 1;
      Parameters:
      value - The bytes of the schemes to add.
      Returns:
      This builder for chaining.
    • getCredentials

      public String getCredentials()
       Optional credentials
       
      string credentials = 2;
      Specified by:
      getCredentials in interface AuthenticationInfoOrBuilder
      Returns:
      The credentials.
    • getCredentialsBytes

      public com.google.protobuf.ByteString getCredentialsBytes()
       Optional credentials
       
      string credentials = 2;
      Specified by:
      getCredentialsBytes in interface AuthenticationInfoOrBuilder
      Returns:
      The bytes for credentials.
    • setCredentials

      public AuthenticationInfo.Builder setCredentials(String value)
       Optional credentials
       
      string credentials = 2;
      Parameters:
      value - The credentials to set.
      Returns:
      This builder for chaining.
    • clearCredentials

      public AuthenticationInfo.Builder clearCredentials()
       Optional credentials
       
      string credentials = 2;
      Returns:
      This builder for chaining.
    • setCredentialsBytes

      public AuthenticationInfo.Builder setCredentialsBytes(com.google.protobuf.ByteString value)
       Optional credentials
       
      string credentials = 2;
      Parameters:
      value - The bytes for credentials to set.
      Returns:
      This builder for chaining.