Class UsernameSecretAuth.Builder (0.37.0)

public static final class UsernameSecretAuth.Builder extends GeneratedMessage.Builder<UsernameSecretAuth.Builder> implements UsernameSecretAuthOrBuilder

Info for username and secret based authentication.

Protobuf type google.cloud.chronicle.v1.UsernameSecretAuth

Static Methods

getDescriptor()

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

Methods

build()

public UsernameSecretAuth build()
Returns
Type Description
UsernameSecretAuth

buildPartial()

public UsernameSecretAuth buildPartial()
Returns
Type Description
UsernameSecretAuth

clear()

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

clearSecret()

public UsernameSecretAuth.Builder clearSecret()

Secret of the account identified by user_name.

string secret = 2;

Returns
Type Description
UsernameSecretAuth.Builder

This builder for chaining.

clearUser()

public UsernameSecretAuth.Builder clearUser()

Username of an identity used for authentication.

string user = 1;

Returns
Type Description
UsernameSecretAuth.Builder

This builder for chaining.

getDefaultInstanceForType()

public UsernameSecretAuth getDefaultInstanceForType()
Returns
Type Description
UsernameSecretAuth

getDescriptorForType()

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

getSecret()

public String getSecret()

Secret of the account identified by user_name.

string secret = 2;

Returns
Type Description
String

The secret.

getSecretBytes()

public ByteString getSecretBytes()

Secret of the account identified by user_name.

string secret = 2;

Returns
Type Description
ByteString

The bytes for secret.

getUser()

public String getUser()

Username of an identity used for authentication.

string user = 1;

Returns
Type Description
String

The user.

getUserBytes()

public ByteString getUserBytes()

Username of an identity used for authentication.

string user = 1;

Returns
Type Description
ByteString

The bytes for user.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UsernameSecretAuth other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSecret(String value)

public UsernameSecretAuth.Builder setSecret(String value)

Secret of the account identified by user_name.

string secret = 2;

Parameter
Name Description
value String

The secret to set.

Returns
Type Description
UsernameSecretAuth.Builder

This builder for chaining.

setSecretBytes(ByteString value)

public UsernameSecretAuth.Builder setSecretBytes(ByteString value)

Secret of the account identified by user_name.

string secret = 2;

Parameter
Name Description
value ByteString

The bytes for secret to set.

Returns
Type Description
UsernameSecretAuth.Builder

This builder for chaining.

setUser(String value)

public UsernameSecretAuth.Builder setUser(String value)

Username of an identity used for authentication.

string user = 1;

Parameter
Name Description
value String

The user to set.

Returns
Type Description
UsernameSecretAuth.Builder

This builder for chaining.

setUserBytes(ByteString value)

public UsernameSecretAuth.Builder setUserBytes(ByteString value)

Username of an identity used for authentication.

string user = 1;

Parameter
Name Description
value ByteString

The bytes for user to set.

Returns
Type Description
UsernameSecretAuth.Builder

This builder for chaining.