Class OAuthPasswordGrantCredentials.Builder (0.37.0)

public static final class OAuthPasswordGrantCredentials.Builder extends GeneratedMessage.Builder<OAuthPasswordGrantCredentials.Builder> implements OAuthPasswordGrantCredentialsOrBuilder

OAuth 2.0 password grant. See https://tools.ietf.org/html/rfc6749.

Protobuf type google.cloud.chronicle.v1.OAuthPasswordGrantCredentials

Static Methods

getDescriptor()

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

Methods

build()

public OAuthPasswordGrantCredentials build()
Returns
Type Description
OAuthPasswordGrantCredentials

buildPartial()

public OAuthPasswordGrantCredentials buildPartial()
Returns
Type Description
OAuthPasswordGrantCredentials

clear()

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

clearClientId()

public OAuthPasswordGrantCredentials.Builder clearClientId()

Client ID.

string client_id = 2;

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.

clearClientSecret()

public OAuthPasswordGrantCredentials.Builder clearClientSecret()

Client secret.

string client_secret = 3;

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.

clearPassword()

public OAuthPasswordGrantCredentials.Builder clearPassword()

Password.

string password = 5;

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.

clearTokenEndpoint()

public OAuthPasswordGrantCredentials.Builder clearTokenEndpoint()

Token endpoint to get the OAuth token from.

string token_endpoint = 1;

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.

clearUser()

public OAuthPasswordGrantCredentials.Builder clearUser()

Username.

string user = 4;

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.

getClientId()

public String getClientId()

Client ID.

string client_id = 2;

Returns
Type Description
String

The clientId.

getClientIdBytes()

public ByteString getClientIdBytes()

Client ID.

string client_id = 2;

Returns
Type Description
ByteString

The bytes for clientId.

getClientSecret()

public String getClientSecret()

Client secret.

string client_secret = 3;

Returns
Type Description
String

The clientSecret.

getClientSecretBytes()

public ByteString getClientSecretBytes()

Client secret.

string client_secret = 3;

Returns
Type Description
ByteString

The bytes for clientSecret.

getDefaultInstanceForType()

public OAuthPasswordGrantCredentials getDefaultInstanceForType()
Returns
Type Description
OAuthPasswordGrantCredentials

getDescriptorForType()

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

getPassword()

public String getPassword()

Password.

string password = 5;

Returns
Type Description
String

The password.

getPasswordBytes()

public ByteString getPasswordBytes()

Password.

string password = 5;

Returns
Type Description
ByteString

The bytes for password.

getTokenEndpoint()

public String getTokenEndpoint()

Token endpoint to get the OAuth token from.

string token_endpoint = 1;

Returns
Type Description
String

The tokenEndpoint.

getTokenEndpointBytes()

public ByteString getTokenEndpointBytes()

Token endpoint to get the OAuth token from.

string token_endpoint = 1;

Returns
Type Description
ByteString

The bytes for tokenEndpoint.

getUser()

public String getUser()

Username.

string user = 4;

Returns
Type Description
String

The user.

getUserBytes()

public ByteString getUserBytes()

Username.

string user = 4;

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(OAuthPasswordGrantCredentials other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setClientId(String value)

public OAuthPasswordGrantCredentials.Builder setClientId(String value)

Client ID.

string client_id = 2;

Parameter
Name Description
value String

The clientId to set.

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.

setClientIdBytes(ByteString value)

public OAuthPasswordGrantCredentials.Builder setClientIdBytes(ByteString value)

Client ID.

string client_id = 2;

Parameter
Name Description
value ByteString

The bytes for clientId to set.

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.

setClientSecret(String value)

public OAuthPasswordGrantCredentials.Builder setClientSecret(String value)

Client secret.

string client_secret = 3;

Parameter
Name Description
value String

The clientSecret to set.

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.

setClientSecretBytes(ByteString value)

public OAuthPasswordGrantCredentials.Builder setClientSecretBytes(ByteString value)

Client secret.

string client_secret = 3;

Parameter
Name Description
value ByteString

The bytes for clientSecret to set.

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.

setPassword(String value)

public OAuthPasswordGrantCredentials.Builder setPassword(String value)

Password.

string password = 5;

Parameter
Name Description
value String

The password to set.

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.

setPasswordBytes(ByteString value)

public OAuthPasswordGrantCredentials.Builder setPasswordBytes(ByteString value)

Password.

string password = 5;

Parameter
Name Description
value ByteString

The bytes for password to set.

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.

setTokenEndpoint(String value)

public OAuthPasswordGrantCredentials.Builder setTokenEndpoint(String value)

Token endpoint to get the OAuth token from.

string token_endpoint = 1;

Parameter
Name Description
value String

The tokenEndpoint to set.

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.

setTokenEndpointBytes(ByteString value)

public OAuthPasswordGrantCredentials.Builder setTokenEndpointBytes(ByteString value)

Token endpoint to get the OAuth token from.

string token_endpoint = 1;

Parameter
Name Description
value ByteString

The bytes for tokenEndpoint to set.

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.

setUser(String value)

public OAuthPasswordGrantCredentials.Builder setUser(String value)

Username.

string user = 4;

Parameter
Name Description
value String

The user to set.

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.

setUserBytes(ByteString value)

public OAuthPasswordGrantCredentials.Builder setUserBytes(ByteString value)

Username.

string user = 4;

Parameter
Name Description
value ByteString

The bytes for user to set.

Returns
Type Description
OAuthPasswordGrantCredentials.Builder

This builder for chaining.