Class OAuthSettings.Builder (0.5.0)

public static final class OAuthSettings.Builder extends GeneratedMessageV3.Builder<OAuthSettings.Builder> implements OAuthSettingsOrBuilder

Configuration for OAuth login&consent flow behavior as well as for OAuth Credentials.

Protobuf type google.cloud.iap.v1.OAuthSettings

Static Methods

getDescriptor()

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

Methods

addAllProgrammaticClients(Iterable<String> values)

public OAuthSettings.Builder addAllProgrammaticClients(Iterable<String> values)

List of OAuth client IDs allowed to programmatically authenticate with IAP.

repeated string programmatic_clients = 5;

Parameter
Name Description
values Iterable<String>

The programmaticClients to add.

Returns
Type Description
OAuthSettings.Builder

This builder for chaining.

addProgrammaticClients(String value)

public OAuthSettings.Builder addProgrammaticClients(String value)

List of OAuth client IDs allowed to programmatically authenticate with IAP.

repeated string programmatic_clients = 5;

Parameter
Name Description
value String

The programmaticClients to add.

Returns
Type Description
OAuthSettings.Builder

This builder for chaining.

addProgrammaticClientsBytes(ByteString value)

public OAuthSettings.Builder addProgrammaticClientsBytes(ByteString value)

List of OAuth client IDs allowed to programmatically authenticate with IAP.

repeated string programmatic_clients = 5;

Parameter
Name Description
value ByteString

The bytes of the programmaticClients to add.

Returns
Type Description
OAuthSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OAuthSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OAuthSettings.Builder
Overrides

build()

public OAuthSettings build()
Returns
Type Description
OAuthSettings

buildPartial()

public OAuthSettings buildPartial()
Returns
Type Description
OAuthSettings

clear()

public OAuthSettings.Builder clear()
Returns
Type Description
OAuthSettings.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OAuthSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OAuthSettings.Builder
Overrides

clearLoginHint()

public OAuthSettings.Builder clearLoginHint()

Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect to primary IDP by skipping Google's login screen. https://developers.google.com/identity/protocols/OpenIDConnect#hd-param Note: IAP does not verify that the id token's hd claim matches this value since access behavior is managed by IAM policies.

.google.protobuf.StringValue login_hint = 2;

Returns
Type Description
OAuthSettings.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public OAuthSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OAuthSettings.Builder
Overrides

clearProgrammaticClients()

public OAuthSettings.Builder clearProgrammaticClients()

List of OAuth client IDs allowed to programmatically authenticate with IAP.

repeated string programmatic_clients = 5;

Returns
Type Description
OAuthSettings.Builder

This builder for chaining.

clone()

public OAuthSettings.Builder clone()
Returns
Type Description
OAuthSettings.Builder
Overrides

getDefaultInstanceForType()

public OAuthSettings getDefaultInstanceForType()
Returns
Type Description
OAuthSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLoginHint()

public StringValue getLoginHint()

Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect to primary IDP by skipping Google's login screen. https://developers.google.com/identity/protocols/OpenIDConnect#hd-param Note: IAP does not verify that the id token's hd claim matches this value since access behavior is managed by IAM policies.

.google.protobuf.StringValue login_hint = 2;

Returns
Type Description
StringValue

The loginHint.

getLoginHintBuilder()

public StringValue.Builder getLoginHintBuilder()

Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect to primary IDP by skipping Google's login screen. https://developers.google.com/identity/protocols/OpenIDConnect#hd-param Note: IAP does not verify that the id token's hd claim matches this value since access behavior is managed by IAM policies.

.google.protobuf.StringValue login_hint = 2;

Returns
Type Description
Builder

getLoginHintOrBuilder()

public StringValueOrBuilder getLoginHintOrBuilder()

Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect to primary IDP by skipping Google's login screen. https://developers.google.com/identity/protocols/OpenIDConnect#hd-param Note: IAP does not verify that the id token's hd claim matches this value since access behavior is managed by IAM policies.

.google.protobuf.StringValue login_hint = 2;

Returns
Type Description
StringValueOrBuilder

getProgrammaticClients(int index)

public String getProgrammaticClients(int index)

List of OAuth client IDs allowed to programmatically authenticate with IAP.

repeated string programmatic_clients = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The programmaticClients at the given index.

getProgrammaticClientsBytes(int index)

public ByteString getProgrammaticClientsBytes(int index)

List of OAuth client IDs allowed to programmatically authenticate with IAP.

repeated string programmatic_clients = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the programmaticClients at the given index.

getProgrammaticClientsCount()

public int getProgrammaticClientsCount()

List of OAuth client IDs allowed to programmatically authenticate with IAP.

repeated string programmatic_clients = 5;

Returns
Type Description
int

The count of programmaticClients.

getProgrammaticClientsList()

public ProtocolStringList getProgrammaticClientsList()

List of OAuth client IDs allowed to programmatically authenticate with IAP.

repeated string programmatic_clients = 5;

Returns
Type Description
ProtocolStringList

A list containing the programmaticClients.

hasLoginHint()

public boolean hasLoginHint()

Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect to primary IDP by skipping Google's login screen. https://developers.google.com/identity/protocols/OpenIDConnect#hd-param Note: IAP does not verify that the id token's hd claim matches this value since access behavior is managed by IAM policies.

.google.protobuf.StringValue login_hint = 2;

Returns
Type Description
boolean

Whether the loginHint field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OAuthSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public OAuthSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OAuthSettings.Builder
Overrides

mergeLoginHint(StringValue value)

public OAuthSettings.Builder mergeLoginHint(StringValue value)

Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect to primary IDP by skipping Google's login screen. https://developers.google.com/identity/protocols/OpenIDConnect#hd-param Note: IAP does not verify that the id token's hd claim matches this value since access behavior is managed by IAM policies.

.google.protobuf.StringValue login_hint = 2;

Parameter
Name Description
value StringValue
Returns
Type Description
OAuthSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OAuthSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OAuthSettings.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public OAuthSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OAuthSettings.Builder
Overrides

setLoginHint(StringValue value)

public OAuthSettings.Builder setLoginHint(StringValue value)

Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect to primary IDP by skipping Google's login screen. https://developers.google.com/identity/protocols/OpenIDConnect#hd-param Note: IAP does not verify that the id token's hd claim matches this value since access behavior is managed by IAM policies.

.google.protobuf.StringValue login_hint = 2;

Parameter
Name Description
value StringValue
Returns
Type Description
OAuthSettings.Builder

setLoginHint(StringValue.Builder builderForValue)

public OAuthSettings.Builder setLoginHint(StringValue.Builder builderForValue)

Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect to primary IDP by skipping Google's login screen. https://developers.google.com/identity/protocols/OpenIDConnect#hd-param Note: IAP does not verify that the id token's hd claim matches this value since access behavior is managed by IAM policies.

.google.protobuf.StringValue login_hint = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
OAuthSettings.Builder

setProgrammaticClients(int index, String value)

public OAuthSettings.Builder setProgrammaticClients(int index, String value)

List of OAuth client IDs allowed to programmatically authenticate with IAP.

repeated string programmatic_clients = 5;

Parameters
Name Description
index int

The index to set the value at.

value String

The programmaticClients to set.

Returns
Type Description
OAuthSettings.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OAuthSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OAuthSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OAuthSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OAuthSettings.Builder
Overrides