Class HTTPAuthSecurityScheme.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HTTPAuthSecurityScheme.Builder>
org.a2aproject.sdk.grpc.HTTPAuthSecurityScheme.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, HTTPAuthSecuritySchemeOrBuilder
Enclosing class:
HTTPAuthSecurityScheme

public static final class HTTPAuthSecurityScheme.Builder extends com.google.protobuf.GeneratedMessage.Builder<HTTPAuthSecurityScheme.Builder> implements HTTPAuthSecuritySchemeOrBuilder
 Defines a security scheme using HTTP authentication.
 
Protobuf type lf.a2a.v1.HTTPAuthSecurityScheme
  • 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<HTTPAuthSecurityScheme.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<HTTPAuthSecurityScheme.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<HTTPAuthSecurityScheme.Builder>
    • getDefaultInstanceForType

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

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

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

      public HTTPAuthSecurityScheme.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<HTTPAuthSecurityScheme.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<HTTPAuthSecurityScheme.Builder>
    • mergeFrom

      public HTTPAuthSecurityScheme.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<HTTPAuthSecurityScheme.Builder>
      Throws:
      IOException
    • getDescription

      public String getDescription()
       An optional description for the security scheme.
       
      string description = 1;
      Specified by:
      getDescription in interface HTTPAuthSecuritySchemeOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional description for the security scheme.
       
      string description = 1;
      Specified by:
      getDescriptionBytes in interface HTTPAuthSecuritySchemeOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public HTTPAuthSecurityScheme.Builder setDescription(String value)
       An optional description for the security scheme.
       
      string description = 1;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public HTTPAuthSecurityScheme.Builder clearDescription()
       An optional description for the security scheme.
       
      string description = 1;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public HTTPAuthSecurityScheme.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       An optional description for the security scheme.
       
      string description = 1;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getScheme

      public String getScheme()
       The name of the HTTP Authentication scheme to be used in the Authorization header,
       as defined in RFC7235 (e.g., "Bearer").
       This value should be registered in the IANA Authentication Scheme registry.
       
      string scheme = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScheme in interface HTTPAuthSecuritySchemeOrBuilder
      Returns:
      The scheme.
    • getSchemeBytes

      public com.google.protobuf.ByteString getSchemeBytes()
       The name of the HTTP Authentication scheme to be used in the Authorization header,
       as defined in RFC7235 (e.g., "Bearer").
       This value should be registered in the IANA Authentication Scheme registry.
       
      string scheme = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSchemeBytes in interface HTTPAuthSecuritySchemeOrBuilder
      Returns:
      The bytes for scheme.
    • setScheme

      public HTTPAuthSecurityScheme.Builder setScheme(String value)
       The name of the HTTP Authentication scheme to be used in the Authorization header,
       as defined in RFC7235 (e.g., "Bearer").
       This value should be registered in the IANA Authentication Scheme registry.
       
      string scheme = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The scheme to set.
      Returns:
      This builder for chaining.
    • clearScheme

      public HTTPAuthSecurityScheme.Builder clearScheme()
       The name of the HTTP Authentication scheme to be used in the Authorization header,
       as defined in RFC7235 (e.g., "Bearer").
       This value should be registered in the IANA Authentication Scheme registry.
       
      string scheme = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSchemeBytes

      public HTTPAuthSecurityScheme.Builder setSchemeBytes(com.google.protobuf.ByteString value)
       The name of the HTTP Authentication scheme to be used in the Authorization header,
       as defined in RFC7235 (e.g., "Bearer").
       This value should be registered in the IANA Authentication Scheme registry.
       
      string scheme = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for scheme to set.
      Returns:
      This builder for chaining.
    • getBearerFormat

      public String getBearerFormat()
       A hint to the client to identify how the bearer token is formatted (e.g., "JWT").
       Primarily for documentation purposes.
       
      string bearer_format = 3;
      Specified by:
      getBearerFormat in interface HTTPAuthSecuritySchemeOrBuilder
      Returns:
      The bearerFormat.
    • getBearerFormatBytes

      public com.google.protobuf.ByteString getBearerFormatBytes()
       A hint to the client to identify how the bearer token is formatted (e.g., "JWT").
       Primarily for documentation purposes.
       
      string bearer_format = 3;
      Specified by:
      getBearerFormatBytes in interface HTTPAuthSecuritySchemeOrBuilder
      Returns:
      The bytes for bearerFormat.
    • setBearerFormat

      public HTTPAuthSecurityScheme.Builder setBearerFormat(String value)
       A hint to the client to identify how the bearer token is formatted (e.g., "JWT").
       Primarily for documentation purposes.
       
      string bearer_format = 3;
      Parameters:
      value - The bearerFormat to set.
      Returns:
      This builder for chaining.
    • clearBearerFormat

      public HTTPAuthSecurityScheme.Builder clearBearerFormat()
       A hint to the client to identify how the bearer token is formatted (e.g., "JWT").
       Primarily for documentation purposes.
       
      string bearer_format = 3;
      Returns:
      This builder for chaining.
    • setBearerFormatBytes

      public HTTPAuthSecurityScheme.Builder setBearerFormatBytes(com.google.protobuf.ByteString value)
       A hint to the client to identify how the bearer token is formatted (e.g., "JWT").
       Primarily for documentation purposes.
       
      string bearer_format = 3;
      Parameters:
      value - The bytes for bearerFormat to set.
      Returns:
      This builder for chaining.