Package com.google.cloud.iap.v1
Class OAuthSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OAuthSettings.Builder>
com.google.cloud.iap.v1.OAuthSettings.Builder
- All Implemented Interfaces:
OAuthSettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OAuthSettings
public static final class OAuthSettings.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllProgrammaticClients(Iterable<String> values) Optional.addProgrammaticClients(String value) Optional.addProgrammaticClientsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Output only.Domain hint to send as hd=?Optional.com.google.protobuf.StringValueOptional.com.google.protobuf.StringValue.BuilderOptional.com.google.protobuf.StringValueOrBuilderOptional.com.google.protobuf.StringValueOptional.com.google.protobuf.StringValue.BuilderOptional.com.google.protobuf.StringValueOrBuilderOptional.com.google.protobuf.StringValueOutput only.com.google.protobuf.StringValue.BuilderOutput only.com.google.protobuf.StringValueOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StringValueDomain hint to send as hd=?com.google.protobuf.StringValue.BuilderDomain hint to send as hd=?com.google.protobuf.StringValueOrBuilderDomain hint to send as hd=?getProgrammaticClients(int index) Optional.com.google.protobuf.ByteStringgetProgrammaticClientsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.booleanOptional.booleanOptional.booleanOutput only.booleanDomain hint to send as hd=?protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeClientId(com.google.protobuf.StringValue value) Optional.mergeClientSecret(com.google.protobuf.StringValue value) Optional.mergeClientSecretSha256(com.google.protobuf.StringValue value) Output only.mergeFrom(OAuthSettings other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLoginHint(com.google.protobuf.StringValue value) Domain hint to send as hd=?setClientId(com.google.protobuf.StringValue value) Optional.setClientId(com.google.protobuf.StringValue.Builder builderForValue) Optional.setClientSecret(com.google.protobuf.StringValue value) Optional.setClientSecret(com.google.protobuf.StringValue.Builder builderForValue) Optional.setClientSecretSha256(com.google.protobuf.StringValue value) Output only.setClientSecretSha256(com.google.protobuf.StringValue.Builder builderForValue) Output only.setLoginHint(com.google.protobuf.StringValue value) Domain hint to send as hd=?setLoginHint(com.google.protobuf.StringValue.Builder builderForValue) Domain hint to send as hd=?setProgrammaticClients(int index, String value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OAuthSettings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<OAuthSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<OAuthSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OAuthSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OAuthSettings.Builder>
-
mergeFrom
public OAuthSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OAuthSettings.Builder>- Throws:
IOException
-
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;- Specified by:
hasLoginHintin interfaceOAuthSettingsOrBuilder- Returns:
- Whether the loginHint field is set.
-
getLoginHint
public com.google.protobuf.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;- Specified by:
getLoginHintin interfaceOAuthSettingsOrBuilder- Returns:
- The loginHint.
-
setLoginHint
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
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; -
mergeLoginHint
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; -
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; -
getLoginHintBuilder
public com.google.protobuf.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 com.google.protobuf.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;- Specified by:
getLoginHintOrBuilderin interfaceOAuthSettingsOrBuilder
-
hasClientId
public boolean hasClientId()Optional. OAuth 2.0 client ID used in the OAuth flow. This allows for client sharing. The risks of client sharing are outlined here: https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
.google.protobuf.StringValue client_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasClientIdin interfaceOAuthSettingsOrBuilder- Returns:
- Whether the clientId field is set.
-
getClientId
public com.google.protobuf.StringValue getClientId()Optional. OAuth 2.0 client ID used in the OAuth flow. This allows for client sharing. The risks of client sharing are outlined here: https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
.google.protobuf.StringValue client_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getClientIdin interfaceOAuthSettingsOrBuilder- Returns:
- The clientId.
-
setClientId
Optional. OAuth 2.0 client ID used in the OAuth flow. This allows for client sharing. The risks of client sharing are outlined here: https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
.google.protobuf.StringValue client_id = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setClientId
Optional. OAuth 2.0 client ID used in the OAuth flow. This allows for client sharing. The risks of client sharing are outlined here: https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
.google.protobuf.StringValue client_id = 3 [(.google.api.field_behavior) = OPTIONAL]; -
mergeClientId
Optional. OAuth 2.0 client ID used in the OAuth flow. This allows for client sharing. The risks of client sharing are outlined here: https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
.google.protobuf.StringValue client_id = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearClientId
Optional. OAuth 2.0 client ID used in the OAuth flow. This allows for client sharing. The risks of client sharing are outlined here: https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
.google.protobuf.StringValue client_id = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getClientIdBuilder
public com.google.protobuf.StringValue.Builder getClientIdBuilder()Optional. OAuth 2.0 client ID used in the OAuth flow. This allows for client sharing. The risks of client sharing are outlined here: https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
.google.protobuf.StringValue client_id = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getClientIdOrBuilder
public com.google.protobuf.StringValueOrBuilder getClientIdOrBuilder()Optional. OAuth 2.0 client ID used in the OAuth flow. This allows for client sharing. The risks of client sharing are outlined here: https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
.google.protobuf.StringValue client_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getClientIdOrBuilderin interfaceOAuthSettingsOrBuilder
-
hasClientSecret
public boolean hasClientSecret()Optional. Input only. OAuth secret paired with client ID.
.google.protobuf.StringValue client_secret = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];- Specified by:
hasClientSecretin interfaceOAuthSettingsOrBuilder- Returns:
- Whether the clientSecret field is set.
-
getClientSecret
public com.google.protobuf.StringValue getClientSecret()Optional. Input only. OAuth secret paired with client ID.
.google.protobuf.StringValue client_secret = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getClientSecretin interfaceOAuthSettingsOrBuilder- Returns:
- The clientSecret.
-
setClientSecret
Optional. Input only. OAuth secret paired with client ID.
.google.protobuf.StringValue client_secret = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; -
setClientSecret
public OAuthSettings.Builder setClientSecret(com.google.protobuf.StringValue.Builder builderForValue) Optional. Input only. OAuth secret paired with client ID.
.google.protobuf.StringValue client_secret = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; -
mergeClientSecret
Optional. Input only. OAuth secret paired with client ID.
.google.protobuf.StringValue client_secret = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; -
clearClientSecret
Optional. Input only. OAuth secret paired with client ID.
.google.protobuf.StringValue client_secret = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; -
getClientSecretBuilder
public com.google.protobuf.StringValue.Builder getClientSecretBuilder()Optional. Input only. OAuth secret paired with client ID.
.google.protobuf.StringValue client_secret = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; -
getClientSecretOrBuilder
public com.google.protobuf.StringValueOrBuilder getClientSecretOrBuilder()Optional. Input only. OAuth secret paired with client ID.
.google.protobuf.StringValue client_secret = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getClientSecretOrBuilderin interfaceOAuthSettingsOrBuilder
-
hasClientSecretSha256
public boolean hasClientSecretSha256()Output only. OAuth secret SHA256 paired with client ID.
.google.protobuf.StringValue client_secret_sha256 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasClientSecretSha256in interfaceOAuthSettingsOrBuilder- Returns:
- Whether the clientSecretSha256 field is set.
-
getClientSecretSha256
public com.google.protobuf.StringValue getClientSecretSha256()Output only. OAuth secret SHA256 paired with client ID.
.google.protobuf.StringValue client_secret_sha256 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getClientSecretSha256in interfaceOAuthSettingsOrBuilder- Returns:
- The clientSecretSha256.
-
setClientSecretSha256
Output only. OAuth secret SHA256 paired with client ID.
.google.protobuf.StringValue client_secret_sha256 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setClientSecretSha256
public OAuthSettings.Builder setClientSecretSha256(com.google.protobuf.StringValue.Builder builderForValue) Output only. OAuth secret SHA256 paired with client ID.
.google.protobuf.StringValue client_secret_sha256 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeClientSecretSha256
Output only. OAuth secret SHA256 paired with client ID.
.google.protobuf.StringValue client_secret_sha256 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearClientSecretSha256
Output only. OAuth secret SHA256 paired with client ID.
.google.protobuf.StringValue client_secret_sha256 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getClientSecretSha256Builder
public com.google.protobuf.StringValue.Builder getClientSecretSha256Builder()Output only. OAuth secret SHA256 paired with client ID.
.google.protobuf.StringValue client_secret_sha256 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getClientSecretSha256OrBuilder
public com.google.protobuf.StringValueOrBuilder getClientSecretSha256OrBuilder()Output only. OAuth secret SHA256 paired with client ID.
.google.protobuf.StringValue client_secret_sha256 = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getClientSecretSha256OrBuilderin interfaceOAuthSettingsOrBuilder
-
getProgrammaticClientsList
public com.google.protobuf.ProtocolStringList getProgrammaticClientsList()Optional. List of client ids allowed to use IAP programmatically.
repeated string programmatic_clients = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProgrammaticClientsListin interfaceOAuthSettingsOrBuilder- Returns:
- A list containing the programmaticClients.
-
getProgrammaticClientsCount
public int getProgrammaticClientsCount()Optional. List of client ids allowed to use IAP programmatically.
repeated string programmatic_clients = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProgrammaticClientsCountin interfaceOAuthSettingsOrBuilder- Returns:
- The count of programmaticClients.
-
getProgrammaticClients
Optional. List of client ids allowed to use IAP programmatically.
repeated string programmatic_clients = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProgrammaticClientsin interfaceOAuthSettingsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The programmaticClients at the given index.
-
getProgrammaticClientsBytes
public com.google.protobuf.ByteString getProgrammaticClientsBytes(int index) Optional. List of client ids allowed to use IAP programmatically.
repeated string programmatic_clients = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProgrammaticClientsBytesin interfaceOAuthSettingsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the programmaticClients at the given index.
-
setProgrammaticClients
Optional. List of client ids allowed to use IAP programmatically.
repeated string programmatic_clients = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The programmaticClients to set.- Returns:
- This builder for chaining.
-
addProgrammaticClients
Optional. List of client ids allowed to use IAP programmatically.
repeated string programmatic_clients = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The programmaticClients to add.- Returns:
- This builder for chaining.
-
addAllProgrammaticClients
Optional. List of client ids allowed to use IAP programmatically.
repeated string programmatic_clients = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The programmaticClients to add.- Returns:
- This builder for chaining.
-
clearProgrammaticClients
Optional. List of client ids allowed to use IAP programmatically.
repeated string programmatic_clients = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addProgrammaticClientsBytes
Optional. List of client ids allowed to use IAP programmatically.
repeated string programmatic_clients = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the programmaticClients to add.- Returns:
- This builder for chaining.
-