Class ClientCredentialsOAuthFlow.Builder

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

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

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

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

      public ClientCredentialsOAuthFlow 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 ClientCredentialsOAuthFlow buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ClientCredentialsOAuthFlow.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<ClientCredentialsOAuthFlow.Builder>
      Throws:
      IOException
    • getTokenUrl

      public String getTokenUrl()
       The token URL to be used for this flow. This MUST be in the form of a URL.
       The OAuth2 standard requires the use of TLS.
       
      string token_url = 1;
      Specified by:
      getTokenUrl in interface ClientCredentialsOAuthFlowOrBuilder
      Returns:
      The tokenUrl.
    • getTokenUrlBytes

      public com.google.protobuf.ByteString getTokenUrlBytes()
       The token URL to be used for this flow. This MUST be in the form of a URL.
       The OAuth2 standard requires the use of TLS.
       
      string token_url = 1;
      Specified by:
      getTokenUrlBytes in interface ClientCredentialsOAuthFlowOrBuilder
      Returns:
      The bytes for tokenUrl.
    • setTokenUrl

      public ClientCredentialsOAuthFlow.Builder setTokenUrl(String value)
       The token URL to be used for this flow. This MUST be in the form of a URL.
       The OAuth2 standard requires the use of TLS.
       
      string token_url = 1;
      Parameters:
      value - The tokenUrl to set.
      Returns:
      This builder for chaining.
    • clearTokenUrl

      public ClientCredentialsOAuthFlow.Builder clearTokenUrl()
       The token URL to be used for this flow. This MUST be in the form of a URL.
       The OAuth2 standard requires the use of TLS.
       
      string token_url = 1;
      Returns:
      This builder for chaining.
    • setTokenUrlBytes

      public ClientCredentialsOAuthFlow.Builder setTokenUrlBytes(com.google.protobuf.ByteString value)
       The token URL to be used for this flow. This MUST be in the form of a URL.
       The OAuth2 standard requires the use of TLS.
       
      string token_url = 1;
      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. This MUST be in the
       form of a URL. The OAuth2 standard requires the use of TLS.
       
      string refresh_url = 2;
      Specified by:
      getRefreshUrl in interface ClientCredentialsOAuthFlowOrBuilder
      Returns:
      The refreshUrl.
    • getRefreshUrlBytes

      public com.google.protobuf.ByteString getRefreshUrlBytes()
       The URL to be used for obtaining refresh tokens. This MUST be in the
       form of a URL. The OAuth2 standard requires the use of TLS.
       
      string refresh_url = 2;
      Specified by:
      getRefreshUrlBytes in interface ClientCredentialsOAuthFlowOrBuilder
      Returns:
      The bytes for refreshUrl.
    • setRefreshUrl

      public ClientCredentialsOAuthFlow.Builder setRefreshUrl(String value)
       The URL to be used for obtaining refresh tokens. This MUST be in the
       form of a URL. The OAuth2 standard requires the use of TLS.
       
      string refresh_url = 2;
      Parameters:
      value - The refreshUrl to set.
      Returns:
      This builder for chaining.
    • clearRefreshUrl

      public ClientCredentialsOAuthFlow.Builder clearRefreshUrl()
       The URL to be used for obtaining refresh tokens. This MUST be in the
       form of a URL. The OAuth2 standard requires the use of TLS.
       
      string refresh_url = 2;
      Returns:
      This builder for chaining.
    • setRefreshUrlBytes

      public ClientCredentialsOAuthFlow.Builder setRefreshUrlBytes(com.google.protobuf.ByteString value)
       The URL to be used for obtaining refresh tokens. This MUST be in the
       form of a URL. The OAuth2 standard requires the use of TLS.
       
      string refresh_url = 2;
      Parameters:
      value - The bytes for refreshUrl to set.
      Returns:
      This builder for chaining.
    • getScopesCount

      public int getScopesCount()
      Description copied from interface: ClientCredentialsOAuthFlowOrBuilder
       The available scopes for the OAuth2 security scheme. A map between the
       scope name and a short description for it. The map MAY be empty.
       
      map<string, string> scopes = 3;
      Specified by:
      getScopesCount in interface ClientCredentialsOAuthFlowOrBuilder
    • containsScopes

      public boolean containsScopes(String key)
       The available scopes for the OAuth2 security scheme. A map between the
       scope name and a short description for it. The map MAY be empty.
       
      map<string, string> scopes = 3;
      Specified by:
      containsScopes in interface ClientCredentialsOAuthFlowOrBuilder
    • getScopes

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

      public Map<String,String> getScopesMap()
       The available scopes for the OAuth2 security scheme. A map between the
       scope name and a short description for it. The map MAY be empty.
       
      map<string, string> scopes = 3;
      Specified by:
      getScopesMap in interface ClientCredentialsOAuthFlowOrBuilder
    • getScopesOrDefault

      public String getScopesOrDefault(String key, String defaultValue)
       The available scopes for the OAuth2 security scheme. A map between the
       scope name and a short description for it. The map MAY be empty.
       
      map<string, string> scopes = 3;
      Specified by:
      getScopesOrDefault in interface ClientCredentialsOAuthFlowOrBuilder
    • getScopesOrThrow

      public String getScopesOrThrow(String key)
       The available scopes for the OAuth2 security scheme. A map between the
       scope name and a short description for it. The map MAY be empty.
       
      map<string, string> scopes = 3;
      Specified by:
      getScopesOrThrow in interface ClientCredentialsOAuthFlowOrBuilder
    • clearScopes

      public ClientCredentialsOAuthFlow.Builder clearScopes()
    • removeScopes

      public ClientCredentialsOAuthFlow.Builder removeScopes(String key)
       The available scopes for the OAuth2 security scheme. A map between the
       scope name and a short description for it. The map MAY be empty.
       
      map<string, string> scopes = 3;
    • getMutableScopes

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

      public ClientCredentialsOAuthFlow.Builder putScopes(String key, String value)
       The available scopes for the OAuth2 security scheme. A map between the
       scope name and a short description for it. The map MAY be empty.
       
      map<string, string> scopes = 3;
    • putAllScopes

      public ClientCredentialsOAuthFlow.Builder putAllScopes(Map<String,String> values)
       The available scopes for the OAuth2 security scheme. A map between the
       scope name and a short description for it. The map MAY be empty.
       
      map<string, string> scopes = 3;