Class OAuthFlows.Builder

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

public static final class OAuthFlows.Builder extends com.google.protobuf.GeneratedMessage.Builder<OAuthFlows.Builder> implements OAuthFlowsOrBuilder
 Defines the configuration for the supported OAuth 2.0 flows.
 
Protobuf type lf.a2a.v1.OAuthFlows
  • 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<OAuthFlows.Builder>
    • clear

      public OAuthFlows.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<OAuthFlows.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<OAuthFlows.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public OAuthFlows.Builder mergeFrom(OAuthFlows other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<OAuthFlows.Builder>
    • mergeFrom

      public OAuthFlows.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<OAuthFlows.Builder>
      Throws:
      IOException
    • getFlowCase

      public OAuthFlows.FlowCase getFlowCase()
      Specified by:
      getFlowCase in interface OAuthFlowsOrBuilder
    • clearFlow

      public OAuthFlows.Builder clearFlow()
    • hasAuthorizationCode

      public boolean hasAuthorizationCode()
       Configuration for the OAuth Authorization Code flow.
       
      .lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1;
      Specified by:
      hasAuthorizationCode in interface OAuthFlowsOrBuilder
      Returns:
      Whether the authorizationCode field is set.
    • getAuthorizationCode

      public AuthorizationCodeOAuthFlow getAuthorizationCode()
       Configuration for the OAuth Authorization Code flow.
       
      .lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1;
      Specified by:
      getAuthorizationCode in interface OAuthFlowsOrBuilder
      Returns:
      The authorizationCode.
    • setAuthorizationCode

      public OAuthFlows.Builder setAuthorizationCode(AuthorizationCodeOAuthFlow value)
       Configuration for the OAuth Authorization Code flow.
       
      .lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1;
    • setAuthorizationCode

      public OAuthFlows.Builder setAuthorizationCode(AuthorizationCodeOAuthFlow.Builder builderForValue)
       Configuration for the OAuth Authorization Code flow.
       
      .lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1;
    • mergeAuthorizationCode

      public OAuthFlows.Builder mergeAuthorizationCode(AuthorizationCodeOAuthFlow value)
       Configuration for the OAuth Authorization Code flow.
       
      .lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1;
    • clearAuthorizationCode

      public OAuthFlows.Builder clearAuthorizationCode()
       Configuration for the OAuth Authorization Code flow.
       
      .lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1;
    • getAuthorizationCodeBuilder

      public AuthorizationCodeOAuthFlow.Builder getAuthorizationCodeBuilder()
       Configuration for the OAuth Authorization Code flow.
       
      .lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1;
    • getAuthorizationCodeOrBuilder

      public AuthorizationCodeOAuthFlowOrBuilder getAuthorizationCodeOrBuilder()
       Configuration for the OAuth Authorization Code flow.
       
      .lf.a2a.v1.AuthorizationCodeOAuthFlow authorization_code = 1;
      Specified by:
      getAuthorizationCodeOrBuilder in interface OAuthFlowsOrBuilder
    • hasClientCredentials

      public boolean hasClientCredentials()
       Configuration for the OAuth Client Credentials flow.
       
      .lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2;
      Specified by:
      hasClientCredentials in interface OAuthFlowsOrBuilder
      Returns:
      Whether the clientCredentials field is set.
    • getClientCredentials

      public ClientCredentialsOAuthFlow getClientCredentials()
       Configuration for the OAuth Client Credentials flow.
       
      .lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2;
      Specified by:
      getClientCredentials in interface OAuthFlowsOrBuilder
      Returns:
      The clientCredentials.
    • setClientCredentials

      public OAuthFlows.Builder setClientCredentials(ClientCredentialsOAuthFlow value)
       Configuration for the OAuth Client Credentials flow.
       
      .lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2;
    • setClientCredentials

      public OAuthFlows.Builder setClientCredentials(ClientCredentialsOAuthFlow.Builder builderForValue)
       Configuration for the OAuth Client Credentials flow.
       
      .lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2;
    • mergeClientCredentials

      public OAuthFlows.Builder mergeClientCredentials(ClientCredentialsOAuthFlow value)
       Configuration for the OAuth Client Credentials flow.
       
      .lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2;
    • clearClientCredentials

      public OAuthFlows.Builder clearClientCredentials()
       Configuration for the OAuth Client Credentials flow.
       
      .lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2;
    • getClientCredentialsBuilder

      public ClientCredentialsOAuthFlow.Builder getClientCredentialsBuilder()
       Configuration for the OAuth Client Credentials flow.
       
      .lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2;
    • getClientCredentialsOrBuilder

      public ClientCredentialsOAuthFlowOrBuilder getClientCredentialsOrBuilder()
       Configuration for the OAuth Client Credentials flow.
       
      .lf.a2a.v1.ClientCredentialsOAuthFlow client_credentials = 2;
      Specified by:
      getClientCredentialsOrBuilder in interface OAuthFlowsOrBuilder
    • hasImplicit

      @Deprecated public boolean hasImplicit()
      Deprecated.
      lf.a2a.v1.OAuthFlows.implicit is deprecated. See a2a.proto;l=569
       Deprecated: Use Authorization Code + PKCE instead.
       
      .lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true];
      Specified by:
      hasImplicit in interface OAuthFlowsOrBuilder
      Returns:
      Whether the implicit field is set.
    • getImplicit

      @Deprecated public ImplicitOAuthFlow getImplicit()
      Deprecated.
      lf.a2a.v1.OAuthFlows.implicit is deprecated. See a2a.proto;l=569
       Deprecated: Use Authorization Code + PKCE instead.
       
      .lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true];
      Specified by:
      getImplicit in interface OAuthFlowsOrBuilder
      Returns:
      The implicit.
    • setImplicit

      @Deprecated public OAuthFlows.Builder setImplicit(ImplicitOAuthFlow value)
      Deprecated.
       Deprecated: Use Authorization Code + PKCE instead.
       
      .lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true];
    • setImplicit

      @Deprecated public OAuthFlows.Builder setImplicit(ImplicitOAuthFlow.Builder builderForValue)
      Deprecated.
       Deprecated: Use Authorization Code + PKCE instead.
       
      .lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true];
    • mergeImplicit

      @Deprecated public OAuthFlows.Builder mergeImplicit(ImplicitOAuthFlow value)
      Deprecated.
       Deprecated: Use Authorization Code + PKCE instead.
       
      .lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true];
    • clearImplicit

      @Deprecated public OAuthFlows.Builder clearImplicit()
      Deprecated.
       Deprecated: Use Authorization Code + PKCE instead.
       
      .lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true];
    • getImplicitBuilder

      @Deprecated public ImplicitOAuthFlow.Builder getImplicitBuilder()
      Deprecated.
       Deprecated: Use Authorization Code + PKCE instead.
       
      .lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true];
    • getImplicitOrBuilder

      @Deprecated public ImplicitOAuthFlowOrBuilder getImplicitOrBuilder()
      Deprecated.
       Deprecated: Use Authorization Code + PKCE instead.
       
      .lf.a2a.v1.ImplicitOAuthFlow implicit = 3 [deprecated = true];
      Specified by:
      getImplicitOrBuilder in interface OAuthFlowsOrBuilder
    • hasPassword

      @Deprecated public boolean hasPassword()
      Deprecated.
      lf.a2a.v1.OAuthFlows.password is deprecated. See a2a.proto;l=571
       Deprecated: Use Authorization Code + PKCE or Device Code.
       
      .lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true];
      Specified by:
      hasPassword in interface OAuthFlowsOrBuilder
      Returns:
      Whether the password field is set.
    • getPassword

      @Deprecated public PasswordOAuthFlow getPassword()
      Deprecated.
      lf.a2a.v1.OAuthFlows.password is deprecated. See a2a.proto;l=571
       Deprecated: Use Authorization Code + PKCE or Device Code.
       
      .lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true];
      Specified by:
      getPassword in interface OAuthFlowsOrBuilder
      Returns:
      The password.
    • setPassword

      @Deprecated public OAuthFlows.Builder setPassword(PasswordOAuthFlow value)
      Deprecated.
       Deprecated: Use Authorization Code + PKCE or Device Code.
       
      .lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true];
    • setPassword

      @Deprecated public OAuthFlows.Builder setPassword(PasswordOAuthFlow.Builder builderForValue)
      Deprecated.
       Deprecated: Use Authorization Code + PKCE or Device Code.
       
      .lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true];
    • mergePassword

      @Deprecated public OAuthFlows.Builder mergePassword(PasswordOAuthFlow value)
      Deprecated.
       Deprecated: Use Authorization Code + PKCE or Device Code.
       
      .lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true];
    • clearPassword

      @Deprecated public OAuthFlows.Builder clearPassword()
      Deprecated.
       Deprecated: Use Authorization Code + PKCE or Device Code.
       
      .lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true];
    • getPasswordBuilder

      @Deprecated public PasswordOAuthFlow.Builder getPasswordBuilder()
      Deprecated.
       Deprecated: Use Authorization Code + PKCE or Device Code.
       
      .lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true];
    • getPasswordOrBuilder

      @Deprecated public PasswordOAuthFlowOrBuilder getPasswordOrBuilder()
      Deprecated.
       Deprecated: Use Authorization Code + PKCE or Device Code.
       
      .lf.a2a.v1.PasswordOAuthFlow password = 4 [deprecated = true];
      Specified by:
      getPasswordOrBuilder in interface OAuthFlowsOrBuilder
    • hasDeviceCode

      public boolean hasDeviceCode()
       Configuration for the OAuth Device Code flow.
       
      .lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5;
      Specified by:
      hasDeviceCode in interface OAuthFlowsOrBuilder
      Returns:
      Whether the deviceCode field is set.
    • getDeviceCode

      public DeviceCodeOAuthFlow getDeviceCode()
       Configuration for the OAuth Device Code flow.
       
      .lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5;
      Specified by:
      getDeviceCode in interface OAuthFlowsOrBuilder
      Returns:
      The deviceCode.
    • setDeviceCode

      public OAuthFlows.Builder setDeviceCode(DeviceCodeOAuthFlow value)
       Configuration for the OAuth Device Code flow.
       
      .lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5;
    • setDeviceCode

      public OAuthFlows.Builder setDeviceCode(DeviceCodeOAuthFlow.Builder builderForValue)
       Configuration for the OAuth Device Code flow.
       
      .lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5;
    • mergeDeviceCode

      public OAuthFlows.Builder mergeDeviceCode(DeviceCodeOAuthFlow value)
       Configuration for the OAuth Device Code flow.
       
      .lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5;
    • clearDeviceCode

      public OAuthFlows.Builder clearDeviceCode()
       Configuration for the OAuth Device Code flow.
       
      .lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5;
    • getDeviceCodeBuilder

      public DeviceCodeOAuthFlow.Builder getDeviceCodeBuilder()
       Configuration for the OAuth Device Code flow.
       
      .lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5;
    • getDeviceCodeOrBuilder

      public DeviceCodeOAuthFlowOrBuilder getDeviceCodeOrBuilder()
       Configuration for the OAuth Device Code flow.
       
      .lf.a2a.v1.DeviceCodeOAuthFlow device_code = 5;
      Specified by:
      getDeviceCodeOrBuilder in interface OAuthFlowsOrBuilder