Class OAuth2SecurityScheme.Builder

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

public static final class OAuth2SecurityScheme.Builder extends com.google.protobuf.GeneratedMessage.Builder<OAuth2SecurityScheme.Builder> implements OAuth2SecuritySchemeOrBuilder
Protobuf type a2a.v1.OAuth2SecurityScheme
  • 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<OAuth2SecurityScheme.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<OAuth2SecurityScheme.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<OAuth2SecurityScheme.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getDescription()
       Description of this security scheme.
       
      string description = 1;
      Specified by:
      getDescription in interface OAuth2SecuritySchemeOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Description of this security scheme.
       
      string description = 1;
      Specified by:
      getDescriptionBytes in interface OAuth2SecuritySchemeOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public OAuth2SecurityScheme.Builder setDescription(String value)
       Description of this security scheme.
       
      string description = 1;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public OAuth2SecurityScheme.Builder clearDescription()
       Description of this security scheme.
       
      string description = 1;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public OAuth2SecurityScheme.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Description of this security scheme.
       
      string description = 1;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasFlows

      public boolean hasFlows()
       An object containing configuration information for the flow types supported
       
      .a2a.v1.OAuthFlows flows = 2;
      Specified by:
      hasFlows in interface OAuth2SecuritySchemeOrBuilder
      Returns:
      Whether the flows field is set.
    • getFlows

      public OAuthFlows getFlows()
       An object containing configuration information for the flow types supported
       
      .a2a.v1.OAuthFlows flows = 2;
      Specified by:
      getFlows in interface OAuth2SecuritySchemeOrBuilder
      Returns:
      The flows.
    • setFlows

      public OAuth2SecurityScheme.Builder setFlows(OAuthFlows value)
       An object containing configuration information for the flow types supported
       
      .a2a.v1.OAuthFlows flows = 2;
    • setFlows

      public OAuth2SecurityScheme.Builder setFlows(OAuthFlows.Builder builderForValue)
       An object containing configuration information for the flow types supported
       
      .a2a.v1.OAuthFlows flows = 2;
    • mergeFlows

      public OAuth2SecurityScheme.Builder mergeFlows(OAuthFlows value)
       An object containing configuration information for the flow types supported
       
      .a2a.v1.OAuthFlows flows = 2;
    • clearFlows

      public OAuth2SecurityScheme.Builder clearFlows()
       An object containing configuration information for the flow types supported
       
      .a2a.v1.OAuthFlows flows = 2;
    • getFlowsBuilder

      public OAuthFlows.Builder getFlowsBuilder()
       An object containing configuration information for the flow types supported
       
      .a2a.v1.OAuthFlows flows = 2;
    • getFlowsOrBuilder

      public OAuthFlowsOrBuilder getFlowsOrBuilder()
       An object containing configuration information for the flow types supported
       
      .a2a.v1.OAuthFlows flows = 2;
      Specified by:
      getFlowsOrBuilder in interface OAuth2SecuritySchemeOrBuilder
    • getOauth2MetadataUrl

      public String getOauth2MetadataUrl()
       URL to the oauth2 authorization server metadata
       [RFC8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
       
      string oauth2_metadata_url = 3;
      Specified by:
      getOauth2MetadataUrl in interface OAuth2SecuritySchemeOrBuilder
      Returns:
      The oauth2MetadataUrl.
    • getOauth2MetadataUrlBytes

      public com.google.protobuf.ByteString getOauth2MetadataUrlBytes()
       URL to the oauth2 authorization server metadata
       [RFC8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
       
      string oauth2_metadata_url = 3;
      Specified by:
      getOauth2MetadataUrlBytes in interface OAuth2SecuritySchemeOrBuilder
      Returns:
      The bytes for oauth2MetadataUrl.
    • setOauth2MetadataUrl

      public OAuth2SecurityScheme.Builder setOauth2MetadataUrl(String value)
       URL to the oauth2 authorization server metadata
       [RFC8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
       
      string oauth2_metadata_url = 3;
      Parameters:
      value - The oauth2MetadataUrl to set.
      Returns:
      This builder for chaining.
    • clearOauth2MetadataUrl

      public OAuth2SecurityScheme.Builder clearOauth2MetadataUrl()
       URL to the oauth2 authorization server metadata
       [RFC8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
       
      string oauth2_metadata_url = 3;
      Returns:
      This builder for chaining.
    • setOauth2MetadataUrlBytes

      public OAuth2SecurityScheme.Builder setOauth2MetadataUrlBytes(com.google.protobuf.ByteString value)
       URL to the oauth2 authorization server metadata
       [RFC8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
       
      string oauth2_metadata_url = 3;
      Parameters:
      value - The bytes for oauth2MetadataUrl to set.
      Returns:
      This builder for chaining.