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
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
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.
|
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.
|
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.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OAuthSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public OAuthSettings build()
buildPartial()
public OAuthSettings buildPartial()
clear()
public OAuthSettings.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public OAuthSettings.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public OAuthSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearProgrammaticClients()
public OAuthSettings.Builder clearProgrammaticClients()
List of OAuth client IDs allowed to programmatically authenticate with IAP.
repeated string programmatic_clients = 5;
clone()
public OAuthSettings.Builder clone()
Overrides
getDefaultInstanceForType()
public OAuthSettings getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(OAuthSettings other)
public OAuthSettings.Builder mergeFrom(OAuthSettings other)
public OAuthSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public OAuthSettings.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OAuthSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public OAuthSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OAuthSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final OAuthSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides