Class DeployedIndexAuthConfig.AuthProvider.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DeployedIndexAuthConfig.AuthProvider.Builder>
com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider.Builder
All Implemented Interfaces:
DeployedIndexAuthConfig.AuthProviderOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DeployedIndexAuthConfig.AuthProvider

public static final class DeployedIndexAuthConfig.AuthProvider.Builder extends com.google.protobuf.GeneratedMessage.Builder<DeployedIndexAuthConfig.AuthProvider.Builder> implements DeployedIndexAuthConfig.AuthProviderOrBuilder
 Configuration for an authentication provider, including support for
 [JSON Web Token
 (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
 
Protobuf type google.cloud.aiplatform.v1.DeployedIndexAuthConfig.AuthProvider
  • 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<DeployedIndexAuthConfig.AuthProvider.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<DeployedIndexAuthConfig.AuthProvider.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<DeployedIndexAuthConfig.AuthProvider.Builder>
    • getDefaultInstanceForType

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

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

      public DeployedIndexAuthConfig.AuthProvider.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<DeployedIndexAuthConfig.AuthProvider.Builder>
      Throws:
      IOException
    • getAudiencesList

      public com.google.protobuf.ProtocolStringList getAudiencesList()
       The list of JWT
       [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
       that are allowed to access. A JWT containing any of these audiences will
       be accepted.
       
      repeated string audiences = 1;
      Specified by:
      getAudiencesList in interface DeployedIndexAuthConfig.AuthProviderOrBuilder
      Returns:
      A list containing the audiences.
    • getAudiencesCount

      public int getAudiencesCount()
       The list of JWT
       [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
       that are allowed to access. A JWT containing any of these audiences will
       be accepted.
       
      repeated string audiences = 1;
      Specified by:
      getAudiencesCount in interface DeployedIndexAuthConfig.AuthProviderOrBuilder
      Returns:
      The count of audiences.
    • getAudiences

      public String getAudiences(int index)
       The list of JWT
       [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
       that are allowed to access. A JWT containing any of these audiences will
       be accepted.
       
      repeated string audiences = 1;
      Specified by:
      getAudiences in interface DeployedIndexAuthConfig.AuthProviderOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The audiences at the given index.
    • getAudiencesBytes

      public com.google.protobuf.ByteString getAudiencesBytes(int index)
       The list of JWT
       [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
       that are allowed to access. A JWT containing any of these audiences will
       be accepted.
       
      repeated string audiences = 1;
      Specified by:
      getAudiencesBytes in interface DeployedIndexAuthConfig.AuthProviderOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the audiences at the given index.
    • setAudiences

      public DeployedIndexAuthConfig.AuthProvider.Builder setAudiences(int index, String value)
       The list of JWT
       [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
       that are allowed to access. A JWT containing any of these audiences will
       be accepted.
       
      repeated string audiences = 1;
      Parameters:
      index - The index to set the value at.
      value - The audiences to set.
      Returns:
      This builder for chaining.
    • addAudiences

       The list of JWT
       [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
       that are allowed to access. A JWT containing any of these audiences will
       be accepted.
       
      repeated string audiences = 1;
      Parameters:
      value - The audiences to add.
      Returns:
      This builder for chaining.
    • addAllAudiences

       The list of JWT
       [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
       that are allowed to access. A JWT containing any of these audiences will
       be accepted.
       
      repeated string audiences = 1;
      Parameters:
      values - The audiences to add.
      Returns:
      This builder for chaining.
    • clearAudiences

       The list of JWT
       [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
       that are allowed to access. A JWT containing any of these audiences will
       be accepted.
       
      repeated string audiences = 1;
      Returns:
      This builder for chaining.
    • addAudiencesBytes

      public DeployedIndexAuthConfig.AuthProvider.Builder addAudiencesBytes(com.google.protobuf.ByteString value)
       The list of JWT
       [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
       that are allowed to access. A JWT containing any of these audiences will
       be accepted.
       
      repeated string audiences = 1;
      Parameters:
      value - The bytes of the audiences to add.
      Returns:
      This builder for chaining.
    • getAllowedIssuersList

      public com.google.protobuf.ProtocolStringList getAllowedIssuersList()
       A list of allowed JWT issuers. Each entry must be a valid Google
       service account, in the following format:
      
       `service-account-name@project-id.iam.gserviceaccount.com`
       
      repeated string allowed_issuers = 2;
      Specified by:
      getAllowedIssuersList in interface DeployedIndexAuthConfig.AuthProviderOrBuilder
      Returns:
      A list containing the allowedIssuers.
    • getAllowedIssuersCount

      public int getAllowedIssuersCount()
       A list of allowed JWT issuers. Each entry must be a valid Google
       service account, in the following format:
      
       `service-account-name@project-id.iam.gserviceaccount.com`
       
      repeated string allowed_issuers = 2;
      Specified by:
      getAllowedIssuersCount in interface DeployedIndexAuthConfig.AuthProviderOrBuilder
      Returns:
      The count of allowedIssuers.
    • getAllowedIssuers

      public String getAllowedIssuers(int index)
       A list of allowed JWT issuers. Each entry must be a valid Google
       service account, in the following format:
      
       `service-account-name@project-id.iam.gserviceaccount.com`
       
      repeated string allowed_issuers = 2;
      Specified by:
      getAllowedIssuers in interface DeployedIndexAuthConfig.AuthProviderOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowedIssuers at the given index.
    • getAllowedIssuersBytes

      public com.google.protobuf.ByteString getAllowedIssuersBytes(int index)
       A list of allowed JWT issuers. Each entry must be a valid Google
       service account, in the following format:
      
       `service-account-name@project-id.iam.gserviceaccount.com`
       
      repeated string allowed_issuers = 2;
      Specified by:
      getAllowedIssuersBytes in interface DeployedIndexAuthConfig.AuthProviderOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowedIssuers at the given index.
    • setAllowedIssuers

      public DeployedIndexAuthConfig.AuthProvider.Builder setAllowedIssuers(int index, String value)
       A list of allowed JWT issuers. Each entry must be a valid Google
       service account, in the following format:
      
       `service-account-name@project-id.iam.gserviceaccount.com`
       
      repeated string allowed_issuers = 2;
      Parameters:
      index - The index to set the value at.
      value - The allowedIssuers to set.
      Returns:
      This builder for chaining.
    • addAllowedIssuers

      public DeployedIndexAuthConfig.AuthProvider.Builder addAllowedIssuers(String value)
       A list of allowed JWT issuers. Each entry must be a valid Google
       service account, in the following format:
      
       `service-account-name@project-id.iam.gserviceaccount.com`
       
      repeated string allowed_issuers = 2;
      Parameters:
      value - The allowedIssuers to add.
      Returns:
      This builder for chaining.
    • addAllAllowedIssuers

      public DeployedIndexAuthConfig.AuthProvider.Builder addAllAllowedIssuers(Iterable<String> values)
       A list of allowed JWT issuers. Each entry must be a valid Google
       service account, in the following format:
      
       `service-account-name@project-id.iam.gserviceaccount.com`
       
      repeated string allowed_issuers = 2;
      Parameters:
      values - The allowedIssuers to add.
      Returns:
      This builder for chaining.
    • clearAllowedIssuers

      public DeployedIndexAuthConfig.AuthProvider.Builder clearAllowedIssuers()
       A list of allowed JWT issuers. Each entry must be a valid Google
       service account, in the following format:
      
       `service-account-name@project-id.iam.gserviceaccount.com`
       
      repeated string allowed_issuers = 2;
      Returns:
      This builder for chaining.
    • addAllowedIssuersBytes

      public DeployedIndexAuthConfig.AuthProvider.Builder addAllowedIssuersBytes(com.google.protobuf.ByteString value)
       A list of allowed JWT issuers. Each entry must be a valid Google
       service account, in the following format:
      
       `service-account-name@project-id.iam.gserviceaccount.com`
       
      repeated string allowed_issuers = 2;
      Parameters:
      value - The bytes of the allowedIssuers to add.
      Returns:
      This builder for chaining.