Class OAuth2.Builder (0.18.0)

public static final class OAuth2.Builder extends GeneratedMessageV3.Builder<OAuth2.Builder> implements OAuth2OrBuilder

The OAuth 2.0 Settings

Protobuf type google.cloud.iap.v1.OAuth2

Implements

OAuth2OrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OAuth2 build()
Returns
Type Description
OAuth2

buildPartial()

public OAuth2 buildPartial()
Returns
Type Description
OAuth2

clear()

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

clearClientId()

public OAuth2.Builder clearClientId()

The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.

string client_id = 1;

Returns
Type Description
OAuth2.Builder

This builder for chaining.

clearClientSecret()

public OAuth2.Builder clearClientSecret()

Input only. The OAuth 2.0 client secret created while registering the client ID.

string client_secret = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
OAuth2.Builder

This builder for chaining.

clearClientSecretSha256()

public OAuth2.Builder clearClientSecretSha256()

Output only. SHA256 hash value for the client secret. This field is returned by IAP when the settings are retrieved.

string client_secret_sha256 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
OAuth2.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getClientId()

public String getClientId()

The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.

string client_id = 1;

Returns
Type Description
String

The clientId.

getClientIdBytes()

public ByteString getClientIdBytes()

The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.

string client_id = 1;

Returns
Type Description
ByteString

The bytes for clientId.

getClientSecret()

public String getClientSecret()

Input only. The OAuth 2.0 client secret created while registering the client ID.

string client_secret = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
String

The clientSecret.

getClientSecretBytes()

public ByteString getClientSecretBytes()

Input only. The OAuth 2.0 client secret created while registering the client ID.

string client_secret = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ByteString

The bytes for clientSecret.

getClientSecretSha256()

public String getClientSecretSha256()

Output only. SHA256 hash value for the client secret. This field is returned by IAP when the settings are retrieved.

string client_secret_sha256 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The clientSecretSha256.

getClientSecretSha256Bytes()

public ByteString getClientSecretSha256Bytes()

Output only. SHA256 hash value for the client secret. This field is returned by IAP when the settings are retrieved.

string client_secret_sha256 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for clientSecretSha256.

getDefaultInstanceForType()

public OAuth2 getDefaultInstanceForType()
Returns
Type Description
OAuth2

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OAuth2 other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setClientId(String value)

public OAuth2.Builder setClientId(String value)

The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.

string client_id = 1;

Parameter
Name Description
value String

The clientId to set.

Returns
Type Description
OAuth2.Builder

This builder for chaining.

setClientIdBytes(ByteString value)

public OAuth2.Builder setClientIdBytes(ByteString value)

The OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.

string client_id = 1;

Parameter
Name Description
value ByteString

The bytes for clientId to set.

Returns
Type Description
OAuth2.Builder

This builder for chaining.

setClientSecret(String value)

public OAuth2.Builder setClientSecret(String value)

Input only. The OAuth 2.0 client secret created while registering the client ID.

string client_secret = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value String

The clientSecret to set.

Returns
Type Description
OAuth2.Builder

This builder for chaining.

setClientSecretBytes(ByteString value)

public OAuth2.Builder setClientSecretBytes(ByteString value)

Input only. The OAuth 2.0 client secret created while registering the client ID.

string client_secret = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for clientSecret to set.

Returns
Type Description
OAuth2.Builder

This builder for chaining.

setClientSecretSha256(String value)

public OAuth2.Builder setClientSecretSha256(String value)

Output only. SHA256 hash value for the client secret. This field is returned by IAP when the settings are retrieved.

string client_secret_sha256 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The clientSecretSha256 to set.

Returns
Type Description
OAuth2.Builder

This builder for chaining.

setClientSecretSha256Bytes(ByteString value)

public OAuth2.Builder setClientSecretSha256Bytes(ByteString value)

Output only. SHA256 hash value for the client secret. This field is returned by IAP when the settings are retrieved.

string client_secret_sha256 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for clientSecretSha256 to set.

Returns
Type Description
OAuth2.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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