Class WorkforceIdentitySettings.Builder (0.39.0)

public static final class WorkforceIdentitySettings.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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.

Returns
Type Description
WorkforceIdentitySettings.Builder

This builder for chaining.

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.

Returns
Type Description
WorkforceIdentitySettings.Builder

This builder for chaining.

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.

Returns
Type Description
WorkforceIdentitySettings.Builder

This builder for chaining.

build()

public WorkforceIdentitySettings build()
Returns
Type Description
WorkforceIdentitySettings

buildPartial()

public WorkforceIdentitySettings buildPartial()
Returns
Type Description
WorkforceIdentitySettings

clear()

public WorkforceIdentitySettings.Builder clear()
Returns
Type Description
WorkforceIdentitySettings.Builder
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;

Returns
Type Description
WorkforceIdentitySettings.Builder

clearWorkforcePools()

public WorkforceIdentitySettings.Builder clearWorkforcePools()

The workforce pool resources. Only one workforce pool is accepted.

repeated string workforce_pools = 1;

Returns
Type Description
WorkforceIdentitySettings.Builder

This builder for chaining.

getDefaultInstanceForType()

public WorkforceIdentitySettings getDefaultInstanceForType()
Returns
Type Description
WorkforceIdentitySettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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;

Returns
Type Description
OAuth2.Builder

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;

Returns
Type Description
OAuth2OrBuilder

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;

Returns
Type Description
ProtocolStringList

A list containing the workforcePools.

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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkforceIdentitySettings other)

public WorkforceIdentitySettings.Builder mergeFrom(WorkforceIdentitySettings other)
Parameter
Name Description
other WorkforceIdentitySettings
Returns
Type Description
WorkforceIdentitySettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WorkforceIdentitySettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkforceIdentitySettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WorkforceIdentitySettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WorkforceIdentitySettings.Builder
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
Returns
Type Description
WorkforceIdentitySettings.Builder

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
Returns
Type Description
WorkforceIdentitySettings.Builder

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;

Parameter
Name Description
builderForValue OAuth2.Builder
Returns
Type Description
WorkforceIdentitySettings.Builder

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.

Returns
Type Description
WorkforceIdentitySettings.Builder

This builder for chaining.