public static final class WorkforceIdentitySettings.Builder extends GeneratedMessage.Builder<WorkforceIdentitySettings.Builder> implements WorkforceIdentitySettingsOrBuilderWorkforceIdentitySettings 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > WorkforceIdentitySettings.BuilderImplements
WorkforceIdentitySettingsOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
|
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 |
intThe 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 |
intThe 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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public WorkforceIdentitySettings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
WorkforceIdentitySettings.Builder |
|
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 |
intThe index to set the value at. |
value |
StringThe workforcePools to set. |
| Returns | |
|---|---|
| Type | Description |
WorkforceIdentitySettings.Builder |
This builder for chaining. |