Class PasswordOAuthFlow.Builder

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

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

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PasswordOAuthFlow.Builder>
    • clear

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

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

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

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

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

      public PasswordOAuthFlow.Builder mergeFrom(PasswordOAuthFlow other)
    • isInitialized

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

      public PasswordOAuthFlow.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<PasswordOAuthFlow.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 PasswordOAuthFlowOrBuilder
      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 PasswordOAuthFlowOrBuilder
      Returns:
      The bytes for tokenUrl.
    • setTokenUrl

      public PasswordOAuthFlow.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 PasswordOAuthFlow.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 PasswordOAuthFlow.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 PasswordOAuthFlowOrBuilder
      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 PasswordOAuthFlowOrBuilder
      Returns:
      The bytes for refreshUrl.
    • setRefreshUrl

      public PasswordOAuthFlow.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 PasswordOAuthFlow.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 PasswordOAuthFlow.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: PasswordOAuthFlowOrBuilder
       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 PasswordOAuthFlowOrBuilder
    • 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 PasswordOAuthFlowOrBuilder
    • getScopes

      @Deprecated public Map<String,String> getScopes()
      Deprecated.
      Use getScopesMap() instead.
      Specified by:
      getScopes in interface PasswordOAuthFlowOrBuilder
    • 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 PasswordOAuthFlowOrBuilder
    • 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 PasswordOAuthFlowOrBuilder
    • 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 PasswordOAuthFlowOrBuilder
    • clearScopes

      public PasswordOAuthFlow.Builder clearScopes()
    • removeScopes

      public PasswordOAuthFlow.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 PasswordOAuthFlow.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 PasswordOAuthFlow.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;