Send feedback
Class WorkforceIdentitySettings.Builder (0.18.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class WorkforceIdentitySettings . Builder extends GeneratedMessageV3 . 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addAllWorkforcePools(Iterable<String> values)
public WorkforceIdentitySettings . Builder addAllWorkforcePools ( Iterable<String> values )
The workforce pool resources. Only one workforce pool is accepted.
repeated string workforce_pools = 1;
Parameter
Name
Description
values
Iterable <String >
The workforcePools to add.
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WorkforceIdentitySettings . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
addWorkforcePools(String value)
public WorkforceIdentitySettings . Builder addWorkforcePools ( String value )
The workforce pool resources. Only one workforce pool is accepted.
repeated string workforce_pools = 1;
Parameter
Name
Description
value
String
The workforcePools to add.
addWorkforcePoolsBytes(ByteString value)
public WorkforceIdentitySettings . Builder addWorkforcePoolsBytes ( ByteString value )
The workforce pool resources. Only one workforce pool is accepted.
repeated string workforce_pools = 1;
Parameter
Name
Description
value
ByteString
The bytes of the workforcePools to add.
build()
public WorkforceIdentitySettings build ()
buildPartial()
public WorkforceIdentitySettings buildPartial ()
clear()
public WorkforceIdentitySettings . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public WorkforceIdentitySettings . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public WorkforceIdentitySettings . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearWorkforcePools()
public WorkforceIdentitySettings . Builder clearWorkforcePools ()
The workforce pool resources. Only one workforce pool is accepted.
repeated string workforce_pools = 1;
clone()
public WorkforceIdentitySettings . Builder clone ()
Overrides
getDefaultInstanceForType()
public WorkforceIdentitySettings getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
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;
Returns
Type
Description
OAuth2
The oauth2.
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;
getWorkforcePools(int index)
public String getWorkforcePools ( int index )
The workforce pool resources. Only one workforce pool is accepted.
repeated string workforce_pools = 1;
Parameter
Name
Description
index
int
The index of the element to return.
Returns
Type
Description
String
The workforcePools at the given index.
getWorkforcePoolsBytes(int index)
public ByteString getWorkforcePoolsBytes ( int index )
The workforce pool resources. Only one workforce pool is accepted.
repeated string workforce_pools = 1;
Parameter
Name
Description
index
int
The index of the value to return.
Returns
Type
Description
ByteString
The bytes of the workforcePools at the given index.
getWorkforcePoolsCount()
public int getWorkforcePoolsCount ()
The workforce pool resources. Only one workforce pool is accepted.
repeated string workforce_pools = 1;
Returns
Type
Description
int
The count of workforcePools.
getWorkforcePoolsList()
public ProtocolStringList getWorkforcePoolsList ()
The workforce pool resources. Only one workforce pool is accepted.
repeated string workforce_pools = 1;
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;
Returns
Type
Description
boolean
Whether the oauth2 field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(WorkforceIdentitySettings other)
public WorkforceIdentitySettings . Builder mergeFrom ( WorkforceIdentitySettings other )
public WorkforceIdentitySettings . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public WorkforceIdentitySettings . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeOauth2(OAuth2 value)
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;
Parameter
Name
Description
value
OAuth2
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WorkforceIdentitySettings . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public WorkforceIdentitySettings . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setOauth2(OAuth2 value)
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;
Parameter
Name
Description
value
OAuth2
setOauth2(OAuth2.Builder builderForValue)
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WorkforceIdentitySettings . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final WorkforceIdentitySettings . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setWorkforcePools(int index, String value)
public WorkforceIdentitySettings . Builder setWorkforcePools ( int index , String value )
The workforce pool resources. Only one workforce pool is accepted.
repeated string workforce_pools = 1;
Parameters
Name
Description
index
int
The index to set the value at.
value
String
The workforcePools to set.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[]]