Class WorkforceIdentitySettings.Builder

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

public static final class WorkforceIdentitySettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<WorkforceIdentitySettings.Builder> implements WorkforceIdentitySettingsOrBuilder
 WorkforceIdentitySettings allows customers to configure workforce pools and
 OAuth 2.0 settings to gate their applications using a third-party IdP with
 access control.
 
Protobuf type google.cloud.iap.v1.WorkforceIdentitySettings
  • 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<WorkforceIdentitySettings.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<WorkforceIdentitySettings.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<WorkforceIdentitySettings.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public WorkforceIdentitySettings.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<WorkforceIdentitySettings.Builder>
      Throws:
      IOException
    • getWorkforcePoolsList

      public com.google.protobuf.ProtocolStringList getWorkforcePoolsList()
       The workforce pool resources. Only one workforce pool is accepted.
       
      repeated string workforce_pools = 1;
      Specified by:
      getWorkforcePoolsList in interface WorkforceIdentitySettingsOrBuilder
      Returns:
      A list containing the workforcePools.
    • getWorkforcePoolsCount

      public int getWorkforcePoolsCount()
       The workforce pool resources. Only one workforce pool is accepted.
       
      repeated string workforce_pools = 1;
      Specified by:
      getWorkforcePoolsCount in interface WorkforceIdentitySettingsOrBuilder
      Returns:
      The count of workforcePools.
    • getWorkforcePools

      public String getWorkforcePools(int index)
       The workforce pool resources. Only one workforce pool is accepted.
       
      repeated string workforce_pools = 1;
      Specified by:
      getWorkforcePools in interface WorkforceIdentitySettingsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The workforcePools at the given index.
    • getWorkforcePoolsBytes

      public com.google.protobuf.ByteString getWorkforcePoolsBytes(int index)
       The workforce pool resources. Only one workforce pool is accepted.
       
      repeated string workforce_pools = 1;
      Specified by:
      getWorkforcePoolsBytes in interface WorkforceIdentitySettingsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the workforcePools at the given index.
    • setWorkforcePools

      public WorkforceIdentitySettings.Builder setWorkforcePools(int index, String value)
       The workforce pool resources. Only one workforce pool is accepted.
       
      repeated string workforce_pools = 1;
      Parameters:
      index - The index to set the value at.
      value - The workforcePools to set.
      Returns:
      This builder for chaining.
    • addWorkforcePools

      public WorkforceIdentitySettings.Builder addWorkforcePools(String value)
       The workforce pool resources. Only one workforce pool is accepted.
       
      repeated string workforce_pools = 1;
      Parameters:
      value - The workforcePools to add.
      Returns:
      This builder for chaining.
    • addAllWorkforcePools

      public WorkforceIdentitySettings.Builder addAllWorkforcePools(Iterable<String> values)
       The workforce pool resources. Only one workforce pool is accepted.
       
      repeated string workforce_pools = 1;
      Parameters:
      values - The workforcePools to add.
      Returns:
      This builder for chaining.
    • clearWorkforcePools

      public WorkforceIdentitySettings.Builder clearWorkforcePools()
       The workforce pool resources. Only one workforce pool is accepted.
       
      repeated string workforce_pools = 1;
      Returns:
      This builder for chaining.
    • addWorkforcePoolsBytes

      public WorkforceIdentitySettings.Builder addWorkforcePoolsBytes(com.google.protobuf.ByteString value)
       The workforce pool resources. Only one workforce pool is accepted.
       
      repeated string workforce_pools = 1;
      Parameters:
      value - The bytes of the workforcePools to add.
      Returns:
      This builder for chaining.
    • hasOauth2

      public boolean hasOauth2()
       OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity
       federation services.
       
      .google.cloud.iap.v1.OAuth2 oauth2 = 2;
      Specified by:
      hasOauth2 in interface WorkforceIdentitySettingsOrBuilder
      Returns:
      Whether the oauth2 field is set.
    • getOauth2

      public OAuth2 getOauth2()
       OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity
       federation services.
       
      .google.cloud.iap.v1.OAuth2 oauth2 = 2;
      Specified by:
      getOauth2 in interface WorkforceIdentitySettingsOrBuilder
      Returns:
      The oauth2.
    • setOauth2

      public WorkforceIdentitySettings.Builder setOauth2(OAuth2 value)
       OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity
       federation services.
       
      .google.cloud.iap.v1.OAuth2 oauth2 = 2;
    • setOauth2

      public WorkforceIdentitySettings.Builder setOauth2(OAuth2.Builder builderForValue)
       OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity
       federation services.
       
      .google.cloud.iap.v1.OAuth2 oauth2 = 2;
    • mergeOauth2

      public WorkforceIdentitySettings.Builder mergeOauth2(OAuth2 value)
       OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity
       federation services.
       
      .google.cloud.iap.v1.OAuth2 oauth2 = 2;
    • clearOauth2

      public WorkforceIdentitySettings.Builder clearOauth2()
       OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity
       federation services.
       
      .google.cloud.iap.v1.OAuth2 oauth2 = 2;
    • getOauth2Builder

      public OAuth2.Builder getOauth2Builder()
       OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity
       federation services.
       
      .google.cloud.iap.v1.OAuth2 oauth2 = 2;
    • getOauth2OrBuilder

      public OAuth2OrBuilder getOauth2OrBuilder()
       OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity
       federation services.
       
      .google.cloud.iap.v1.OAuth2 oauth2 = 2;
      Specified by:
      getOauth2OrBuilder in interface WorkforceIdentitySettingsOrBuilder