Class ScanConfig.Authentication.GoogleAccount.Builder (2.85.0)

public static final class ScanConfig.Authentication.GoogleAccount.Builder extends GeneratedMessage.Builder<ScanConfig.Authentication.GoogleAccount.Builder> implements ScanConfig.Authentication.GoogleAccountOrBuilder

Describes authentication configuration that uses a Google account.

Protobuf type google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount

Static Methods

getDescriptor()

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

Methods

build()

public ScanConfig.Authentication.GoogleAccount build()
Returns
Type Description
ScanConfig.Authentication.GoogleAccount

buildPartial()

public ScanConfig.Authentication.GoogleAccount buildPartial()
Returns
Type Description
ScanConfig.Authentication.GoogleAccount

clear()

public ScanConfig.Authentication.GoogleAccount.Builder clear()
Returns
Type Description
ScanConfig.Authentication.GoogleAccount.Builder
Overrides

clearPassword()

public ScanConfig.Authentication.GoogleAccount.Builder clearPassword()

Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.

string password = 2;

Returns
Type Description
ScanConfig.Authentication.GoogleAccount.Builder

This builder for chaining.

clearUsername()

public ScanConfig.Authentication.GoogleAccount.Builder clearUsername()

Required. The user name of the Google account.

string username = 1;

Returns
Type Description
ScanConfig.Authentication.GoogleAccount.Builder

This builder for chaining.

getDefaultInstanceForType()

public ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType()
Returns
Type Description
ScanConfig.Authentication.GoogleAccount

getDescriptorForType()

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

getPassword()

public String getPassword()

Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.

string password = 2;

Returns
Type Description
String

The password.

getPasswordBytes()

public ByteString getPasswordBytes()

Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.

string password = 2;

Returns
Type Description
ByteString

The bytes for password.

getUsername()

public String getUsername()

Required. The user name of the Google account.

string username = 1;

Returns
Type Description
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

Required. The user name of the Google account.

string username = 1;

Returns
Type Description
ByteString

The bytes for username.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ScanConfig.Authentication.GoogleAccount other)

public ScanConfig.Authentication.GoogleAccount.Builder mergeFrom(ScanConfig.Authentication.GoogleAccount other)
Parameter
Name Description
other ScanConfig.Authentication.GoogleAccount
Returns
Type Description
ScanConfig.Authentication.GoogleAccount.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ScanConfig.Authentication.GoogleAccount.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ScanConfig.Authentication.GoogleAccount.Builder
Overrides

setPassword(String value)

public ScanConfig.Authentication.GoogleAccount.Builder setPassword(String value)

Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.

string password = 2;

Parameter
Name Description
value String

The password to set.

Returns
Type Description
ScanConfig.Authentication.GoogleAccount.Builder

This builder for chaining.

setPasswordBytes(ByteString value)

public ScanConfig.Authentication.GoogleAccount.Builder setPasswordBytes(ByteString value)

Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs.

string password = 2;

Parameter
Name Description
value ByteString

The bytes for password to set.

Returns
Type Description
ScanConfig.Authentication.GoogleAccount.Builder

This builder for chaining.

setUsername(String value)

public ScanConfig.Authentication.GoogleAccount.Builder setUsername(String value)

Required. The user name of the Google account.

string username = 1;

Parameter
Name Description
value String

The username to set.

Returns
Type Description
ScanConfig.Authentication.GoogleAccount.Builder

This builder for chaining.

setUsernameBytes(ByteString value)

public ScanConfig.Authentication.GoogleAccount.Builder setUsernameBytes(ByteString value)

Required. The user name of the Google account.

string username = 1;

Parameter
Name Description
value ByteString

The bytes for username to set.

Returns
Type Description
ScanConfig.Authentication.GoogleAccount.Builder

This builder for chaining.