Package viam.app.v1

Class App.OAuthConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<App.OAuthConfig,App.OAuthConfig.Builder>
viam.app.v1.App.OAuthConfig.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, App.OAuthConfigOrBuilder
Enclosing class:
App.OAuthConfig

public static final class App.OAuthConfig.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<App.OAuthConfig,App.OAuthConfig.Builder> implements App.OAuthConfigOrBuilder
Protobuf type viam.app.v1.OAuthConfig
  • Method Details

    • getClientAuthenticationValue

      public int getClientAuthenticationValue()
      .viam.app.v1.ClientAuthentication client_authentication = 1 [json_name = "clientAuthentication"];
      Specified by:
      getClientAuthenticationValue in interface App.OAuthConfigOrBuilder
      Returns:
      The enum numeric value on the wire for clientAuthentication.
    • setClientAuthenticationValue

      public App.OAuthConfig.Builder setClientAuthenticationValue(int value)
      .viam.app.v1.ClientAuthentication client_authentication = 1 [json_name = "clientAuthentication"];
      Parameters:
      value - The clientAuthentication to set.
      Returns:
      This builder for chaining.
    • getClientAuthentication

      public App.ClientAuthentication getClientAuthentication()
      .viam.app.v1.ClientAuthentication client_authentication = 1 [json_name = "clientAuthentication"];
      Specified by:
      getClientAuthentication in interface App.OAuthConfigOrBuilder
      Returns:
      The clientAuthentication.
    • setClientAuthentication

      public App.OAuthConfig.Builder setClientAuthentication(App.ClientAuthentication value)
      .viam.app.v1.ClientAuthentication client_authentication = 1 [json_name = "clientAuthentication"];
      Parameters:
      value - The enum numeric value on the wire for clientAuthentication to set.
      Returns:
      This builder for chaining.
    • clearClientAuthentication

      public App.OAuthConfig.Builder clearClientAuthentication()
      .viam.app.v1.ClientAuthentication client_authentication = 1 [json_name = "clientAuthentication"];
      Returns:
      This builder for chaining.
    • getPkceValue

      public int getPkceValue()
      .viam.app.v1.PKCE pkce = 2 [json_name = "pkce"];
      Specified by:
      getPkceValue in interface App.OAuthConfigOrBuilder
      Returns:
      The enum numeric value on the wire for pkce.
    • setPkceValue

      public App.OAuthConfig.Builder setPkceValue(int value)
      .viam.app.v1.PKCE pkce = 2 [json_name = "pkce"];
      Parameters:
      value - The pkce to set.
      Returns:
      This builder for chaining.
    • getPkce

      public App.PKCE getPkce()
      .viam.app.v1.PKCE pkce = 2 [json_name = "pkce"];
      Specified by:
      getPkce in interface App.OAuthConfigOrBuilder
      Returns:
      The pkce.
    • setPkce

      public App.OAuthConfig.Builder setPkce(App.PKCE value)
      .viam.app.v1.PKCE pkce = 2 [json_name = "pkce"];
      Parameters:
      value - The enum numeric value on the wire for pkce to set.
      Returns:
      This builder for chaining.
    • clearPkce

      public App.OAuthConfig.Builder clearPkce()
      .viam.app.v1.PKCE pkce = 2 [json_name = "pkce"];
      Returns:
      This builder for chaining.
    • getUrlValidationValue

      public int getUrlValidationValue()
      .viam.app.v1.URLValidation url_validation = 3 [json_name = "urlValidation"];
      Specified by:
      getUrlValidationValue in interface App.OAuthConfigOrBuilder
      Returns:
      The enum numeric value on the wire for urlValidation.
    • setUrlValidationValue

      public App.OAuthConfig.Builder setUrlValidationValue(int value)
      .viam.app.v1.URLValidation url_validation = 3 [json_name = "urlValidation"];
      Parameters:
      value - The urlValidation to set.
      Returns:
      This builder for chaining.
    • getUrlValidation

      public App.URLValidation getUrlValidation()
      .viam.app.v1.URLValidation url_validation = 3 [json_name = "urlValidation"];
      Specified by:
      getUrlValidation in interface App.OAuthConfigOrBuilder
      Returns:
      The urlValidation.
    • setUrlValidation

      public App.OAuthConfig.Builder setUrlValidation(App.URLValidation value)
      .viam.app.v1.URLValidation url_validation = 3 [json_name = "urlValidation"];
      Parameters:
      value - The enum numeric value on the wire for urlValidation to set.
      Returns:
      This builder for chaining.
    • clearUrlValidation

      public App.OAuthConfig.Builder clearUrlValidation()
      .viam.app.v1.URLValidation url_validation = 3 [json_name = "urlValidation"];
      Returns:
      This builder for chaining.
    • getOriginUrisList

      public List<String> getOriginUrisList()
      repeated string origin_uris = 4 [json_name = "originUris"];
      Specified by:
      getOriginUrisList in interface App.OAuthConfigOrBuilder
      Returns:
      A list containing the originUris.
    • getOriginUrisCount

      public int getOriginUrisCount()
      repeated string origin_uris = 4 [json_name = "originUris"];
      Specified by:
      getOriginUrisCount in interface App.OAuthConfigOrBuilder
      Returns:
      The count of originUris.
    • getOriginUris

      public String getOriginUris(int index)
      repeated string origin_uris = 4 [json_name = "originUris"];
      Specified by:
      getOriginUris in interface App.OAuthConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The originUris at the given index.
    • getOriginUrisBytes

      public com.google.protobuf.ByteString getOriginUrisBytes(int index)
      repeated string origin_uris = 4 [json_name = "originUris"];
      Specified by:
      getOriginUrisBytes in interface App.OAuthConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the originUris at the given index.
    • setOriginUris

      public App.OAuthConfig.Builder setOriginUris(int index, String value)
      repeated string origin_uris = 4 [json_name = "originUris"];
      Parameters:
      index - The index to set the value at.
      value - The originUris to set.
      Returns:
      This builder for chaining.
    • addOriginUris

      public App.OAuthConfig.Builder addOriginUris(String value)
      repeated string origin_uris = 4 [json_name = "originUris"];
      Parameters:
      value - The originUris to add.
      Returns:
      This builder for chaining.
    • addAllOriginUris

      public App.OAuthConfig.Builder addAllOriginUris(Iterable<String> values)
      repeated string origin_uris = 4 [json_name = "originUris"];
      Parameters:
      values - The originUris to add.
      Returns:
      This builder for chaining.
    • clearOriginUris

      public App.OAuthConfig.Builder clearOriginUris()
      repeated string origin_uris = 4 [json_name = "originUris"];
      Returns:
      This builder for chaining.
    • addOriginUrisBytes

      public App.OAuthConfig.Builder addOriginUrisBytes(com.google.protobuf.ByteString value)
      repeated string origin_uris = 4 [json_name = "originUris"];
      Parameters:
      value - The bytes of the originUris to add.
      Returns:
      This builder for chaining.
    • getRedirectUrisList

      public List<String> getRedirectUrisList()
      repeated string redirect_uris = 5 [json_name = "redirectUris"];
      Specified by:
      getRedirectUrisList in interface App.OAuthConfigOrBuilder
      Returns:
      A list containing the redirectUris.
    • getRedirectUrisCount

      public int getRedirectUrisCount()
      repeated string redirect_uris = 5 [json_name = "redirectUris"];
      Specified by:
      getRedirectUrisCount in interface App.OAuthConfigOrBuilder
      Returns:
      The count of redirectUris.
    • getRedirectUris

      public String getRedirectUris(int index)
      repeated string redirect_uris = 5 [json_name = "redirectUris"];
      Specified by:
      getRedirectUris in interface App.OAuthConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The redirectUris at the given index.
    • getRedirectUrisBytes

      public com.google.protobuf.ByteString getRedirectUrisBytes(int index)
      repeated string redirect_uris = 5 [json_name = "redirectUris"];
      Specified by:
      getRedirectUrisBytes in interface App.OAuthConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the redirectUris at the given index.
    • setRedirectUris

      public App.OAuthConfig.Builder setRedirectUris(int index, String value)
      repeated string redirect_uris = 5 [json_name = "redirectUris"];
      Parameters:
      index - The index to set the value at.
      value - The redirectUris to set.
      Returns:
      This builder for chaining.
    • addRedirectUris

      public App.OAuthConfig.Builder addRedirectUris(String value)
      repeated string redirect_uris = 5 [json_name = "redirectUris"];
      Parameters:
      value - The redirectUris to add.
      Returns:
      This builder for chaining.
    • addAllRedirectUris

      public App.OAuthConfig.Builder addAllRedirectUris(Iterable<String> values)
      repeated string redirect_uris = 5 [json_name = "redirectUris"];
      Parameters:
      values - The redirectUris to add.
      Returns:
      This builder for chaining.
    • clearRedirectUris

      public App.OAuthConfig.Builder clearRedirectUris()
      repeated string redirect_uris = 5 [json_name = "redirectUris"];
      Returns:
      This builder for chaining.
    • addRedirectUrisBytes

      public App.OAuthConfig.Builder addRedirectUrisBytes(com.google.protobuf.ByteString value)
      repeated string redirect_uris = 5 [json_name = "redirectUris"];
      Parameters:
      value - The bytes of the redirectUris to add.
      Returns:
      This builder for chaining.
    • getLogoutUri

      public String getLogoutUri()
      string logout_uri = 6 [json_name = "logoutUri"];
      Specified by:
      getLogoutUri in interface App.OAuthConfigOrBuilder
      Returns:
      The logoutUri.
    • getLogoutUriBytes

      public com.google.protobuf.ByteString getLogoutUriBytes()
      string logout_uri = 6 [json_name = "logoutUri"];
      Specified by:
      getLogoutUriBytes in interface App.OAuthConfigOrBuilder
      Returns:
      The bytes for logoutUri.
    • setLogoutUri

      public App.OAuthConfig.Builder setLogoutUri(String value)
      string logout_uri = 6 [json_name = "logoutUri"];
      Parameters:
      value - The logoutUri to set.
      Returns:
      This builder for chaining.
    • clearLogoutUri

      public App.OAuthConfig.Builder clearLogoutUri()
      string logout_uri = 6 [json_name = "logoutUri"];
      Returns:
      This builder for chaining.
    • setLogoutUriBytes

      public App.OAuthConfig.Builder setLogoutUriBytes(com.google.protobuf.ByteString value)
      string logout_uri = 6 [json_name = "logoutUri"];
      Parameters:
      value - The bytes for logoutUri to set.
      Returns:
      This builder for chaining.
    • getEnabledGrantsList

      public List<App.EnabledGrant> getEnabledGrantsList()
      repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"];
      Specified by:
      getEnabledGrantsList in interface App.OAuthConfigOrBuilder
      Returns:
      A list containing the enabledGrants.
    • getEnabledGrantsCount

      public int getEnabledGrantsCount()
      repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"];
      Specified by:
      getEnabledGrantsCount in interface App.OAuthConfigOrBuilder
      Returns:
      The count of enabledGrants.
    • getEnabledGrants

      public App.EnabledGrant getEnabledGrants(int index)
      repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"];
      Specified by:
      getEnabledGrants in interface App.OAuthConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The enabledGrants at the given index.
    • setEnabledGrants

      public App.OAuthConfig.Builder setEnabledGrants(int index, App.EnabledGrant value)
      repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"];
      Parameters:
      index - The index to set the value at.
      value - The enabledGrants to set.
      Returns:
      This builder for chaining.
    • addEnabledGrants

      public App.OAuthConfig.Builder addEnabledGrants(App.EnabledGrant value)
      repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"];
      Parameters:
      value - The enabledGrants to add.
      Returns:
      This builder for chaining.
    • addAllEnabledGrants

      public App.OAuthConfig.Builder addAllEnabledGrants(Iterable<? extends App.EnabledGrant> values)
      repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"];
      Parameters:
      values - The enabledGrants to add.
      Returns:
      This builder for chaining.
    • clearEnabledGrants

      public App.OAuthConfig.Builder clearEnabledGrants()
      repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"];
      Returns:
      This builder for chaining.
    • getEnabledGrantsValueList

      public List<Integer> getEnabledGrantsValueList()
      repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"];
      Specified by:
      getEnabledGrantsValueList in interface App.OAuthConfigOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for enabledGrants.
    • getEnabledGrantsValue

      public int getEnabledGrantsValue(int index)
      repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"];
      Specified by:
      getEnabledGrantsValue in interface App.OAuthConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of enabledGrants at the given index.
    • setEnabledGrantsValue

      public App.OAuthConfig.Builder setEnabledGrantsValue(int index, int value)
      repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for enabledGrants to set.
      Returns:
      This builder for chaining.
    • addEnabledGrantsValue

      public App.OAuthConfig.Builder addEnabledGrantsValue(int value)
      repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"];
      Parameters:
      value - The enum numeric value on the wire for enabledGrants to add.
      Returns:
      This builder for chaining.
    • addAllEnabledGrantsValue

      public App.OAuthConfig.Builder addAllEnabledGrantsValue(Iterable<Integer> values)
      repeated .viam.app.v1.EnabledGrant enabled_grants = 7 [json_name = "enabledGrants"];
      Parameters:
      values - The enum numeric values on the wire for enabledGrants to add.
      Returns:
      This builder for chaining.