Class AuthorizationCodeOAuthFlow.Builder

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

public static final class AuthorizationCodeOAuthFlow.Builder extends com.google.protobuf.GeneratedMessage.Builder<AuthorizationCodeOAuthFlow.Builder> implements AuthorizationCodeOAuthFlowOrBuilder
 Defines configuration details for the OAuth 2.0 Authorization Code flow.
 
Protobuf type lf.a2a.v1.AuthorizationCodeOAuthFlow
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AuthorizationCodeOAuthFlow.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AuthorizationCodeOAuthFlow.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AuthorizationCodeOAuthFlow.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<AuthorizationCodeOAuthFlow.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<AuthorizationCodeOAuthFlow.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public AuthorizationCodeOAuthFlow.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<AuthorizationCodeOAuthFlow.Builder>
      Throws:
      IOException
    • getAuthorizationUrl

      public String getAuthorizationUrl()
       The authorization URL to be used for this flow.
       
      string authorization_url = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorizationUrl in interface AuthorizationCodeOAuthFlowOrBuilder
      Returns:
      The authorizationUrl.
    • getAuthorizationUrlBytes

      public com.google.protobuf.ByteString getAuthorizationUrlBytes()
       The authorization URL to be used for this flow.
       
      string authorization_url = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorizationUrlBytes in interface AuthorizationCodeOAuthFlowOrBuilder
      Returns:
      The bytes for authorizationUrl.
    • setAuthorizationUrl

      public AuthorizationCodeOAuthFlow.Builder setAuthorizationUrl(String value)
       The authorization URL to be used for this flow.
       
      string authorization_url = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The authorizationUrl to set.
      Returns:
      This builder for chaining.
    • clearAuthorizationUrl

      public AuthorizationCodeOAuthFlow.Builder clearAuthorizationUrl()
       The authorization URL to be used for this flow.
       
      string authorization_url = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAuthorizationUrlBytes

      public AuthorizationCodeOAuthFlow.Builder setAuthorizationUrlBytes(com.google.protobuf.ByteString value)
       The authorization URL to be used for this flow.
       
      string authorization_url = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for authorizationUrl to set.
      Returns:
      This builder for chaining.
    • getTokenUrl

      public String getTokenUrl()
       The token URL to be used for this flow.
       
      string token_url = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTokenUrl in interface AuthorizationCodeOAuthFlowOrBuilder
      Returns:
      The tokenUrl.
    • getTokenUrlBytes

      public com.google.protobuf.ByteString getTokenUrlBytes()
       The token URL to be used for this flow.
       
      string token_url = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTokenUrlBytes in interface AuthorizationCodeOAuthFlowOrBuilder
      Returns:
      The bytes for tokenUrl.
    • setTokenUrl

      public AuthorizationCodeOAuthFlow.Builder setTokenUrl(String value)
       The token URL to be used for this flow.
       
      string token_url = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The tokenUrl to set.
      Returns:
      This builder for chaining.
    • clearTokenUrl

      public AuthorizationCodeOAuthFlow.Builder clearTokenUrl()
       The token URL to be used for this flow.
       
      string token_url = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTokenUrlBytes

      public AuthorizationCodeOAuthFlow.Builder setTokenUrlBytes(com.google.protobuf.ByteString value)
       The token URL to be used for this flow.
       
      string token_url = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for tokenUrl to set.
      Returns:
      This builder for chaining.
    • getRefreshUrl

      public String getRefreshUrl()
       The URL to be used for obtaining refresh tokens.
       
      string refresh_url = 3;
      Specified by:
      getRefreshUrl in interface AuthorizationCodeOAuthFlowOrBuilder
      Returns:
      The refreshUrl.
    • getRefreshUrlBytes

      public com.google.protobuf.ByteString getRefreshUrlBytes()
       The URL to be used for obtaining refresh tokens.
       
      string refresh_url = 3;
      Specified by:
      getRefreshUrlBytes in interface AuthorizationCodeOAuthFlowOrBuilder
      Returns:
      The bytes for refreshUrl.
    • setRefreshUrl

      public AuthorizationCodeOAuthFlow.Builder setRefreshUrl(String value)
       The URL to be used for obtaining refresh tokens.
       
      string refresh_url = 3;
      Parameters:
      value - The refreshUrl to set.
      Returns:
      This builder for chaining.
    • clearRefreshUrl

      public AuthorizationCodeOAuthFlow.Builder clearRefreshUrl()
       The URL to be used for obtaining refresh tokens.
       
      string refresh_url = 3;
      Returns:
      This builder for chaining.
    • setRefreshUrlBytes

      public AuthorizationCodeOAuthFlow.Builder setRefreshUrlBytes(com.google.protobuf.ByteString value)
       The URL to be used for obtaining refresh tokens.
       
      string refresh_url = 3;
      Parameters:
      value - The bytes for refreshUrl to set.
      Returns:
      This builder for chaining.
    • getScopesCount

      public int getScopesCount()
      Description copied from interface: AuthorizationCodeOAuthFlowOrBuilder
       The available scopes for the OAuth2 security scheme.
       
      map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopesCount in interface AuthorizationCodeOAuthFlowOrBuilder
    • containsScopes

      public boolean containsScopes(String key)
       The available scopes for the OAuth2 security scheme.
       
      map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      containsScopes in interface AuthorizationCodeOAuthFlowOrBuilder
    • getScopes

      @Deprecated public Map<String,String> getScopes()
      Deprecated.
      Use getScopesMap() instead.
      Specified by:
      getScopes in interface AuthorizationCodeOAuthFlowOrBuilder
    • getScopesMap

      public Map<String,String> getScopesMap()
       The available scopes for the OAuth2 security scheme.
       
      map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopesMap in interface AuthorizationCodeOAuthFlowOrBuilder
    • getScopesOrDefault

      public String getScopesOrDefault(String key, String defaultValue)
       The available scopes for the OAuth2 security scheme.
       
      map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopesOrDefault in interface AuthorizationCodeOAuthFlowOrBuilder
    • getScopesOrThrow

      public String getScopesOrThrow(String key)
       The available scopes for the OAuth2 security scheme.
       
      map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopesOrThrow in interface AuthorizationCodeOAuthFlowOrBuilder
    • clearScopes

      public AuthorizationCodeOAuthFlow.Builder clearScopes()
    • removeScopes

      public AuthorizationCodeOAuthFlow.Builder removeScopes(String key)
       The available scopes for the OAuth2 security scheme.
       
      map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED];
    • getMutableScopes

      @Deprecated public Map<String,String> getMutableScopes()
      Deprecated.
      Use alternate mutation accessors instead.
    • putScopes

      public AuthorizationCodeOAuthFlow.Builder putScopes(String key, String value)
       The available scopes for the OAuth2 security scheme.
       
      map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED];
    • putAllScopes

      public AuthorizationCodeOAuthFlow.Builder putAllScopes(Map<String,String> values)
       The available scopes for the OAuth2 security scheme.
       
      map<string, string> scopes = 4 [(.google.api.field_behavior) = REQUIRED];
    • getPkceRequired

      public boolean getPkceRequired()
       Indicates if PKCE (RFC 7636) is required for this flow.
       PKCE should always be used for public clients and is recommended for all clients.
       
      bool pkce_required = 5;
      Specified by:
      getPkceRequired in interface AuthorizationCodeOAuthFlowOrBuilder
      Returns:
      The pkceRequired.
    • setPkceRequired

      public AuthorizationCodeOAuthFlow.Builder setPkceRequired(boolean value)
       Indicates if PKCE (RFC 7636) is required for this flow.
       PKCE should always be used for public clients and is recommended for all clients.
       
      bool pkce_required = 5;
      Parameters:
      value - The pkceRequired to set.
      Returns:
      This builder for chaining.
    • clearPkceRequired

      public AuthorizationCodeOAuthFlow.Builder clearPkceRequired()
       Indicates if PKCE (RFC 7636) is required for this flow.
       PKCE should always be used for public clients and is recommended for all clients.
       
      bool pkce_required = 5;
      Returns:
      This builder for chaining.