Class AuthToken.Builder (0.41.0)

public static final class AuthToken.Builder extends GeneratedMessage.Builder<AuthToken.Builder> implements AuthTokenOrBuilder

Auth token for the instance.

Protobuf type google.cloud.memorystore.v1beta.AuthToken

Implements

AuthTokenOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public AuthToken build()
Returns
Type Description
AuthToken

buildPartial()

public AuthToken buildPartial()
Returns
Type Description
AuthToken

clear()

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

clearCreateTime()

public AuthToken.Builder clearCreateTime()

Output only. Create time of the auth token.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AuthToken.Builder

clearName()

public AuthToken.Builder clearName()

Identifier. Name of the auth token.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
AuthToken.Builder

This builder for chaining.

clearState()

public AuthToken.Builder clearState()

Output only. The state of the auth token.

.google.cloud.memorystore.v1beta.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AuthToken.Builder

This builder for chaining.

clearToken()

public AuthToken.Builder clearToken()

Output only. The auth token.

string token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AuthToken.Builder

This builder for chaining.

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time of the auth token.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time of the auth token.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time of the auth token.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public AuthToken getDefaultInstanceForType()
Returns
Type Description
AuthToken

getDescriptorForType()

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

getName()

public String getName()

Identifier. Name of the auth token.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of the auth token.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getState()

public AuthToken.State getState()

Output only. The state of the auth token.

.google.cloud.memorystore.v1beta.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AuthToken.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the auth token.

.google.cloud.memorystore.v1beta.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getToken()

public String getToken()

Output only. The auth token.

string token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The token.

getTokenBytes()

public ByteString getTokenBytes()

Output only. The auth token.

string token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for token.

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time of the auth token.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public AuthToken.Builder mergeCreateTime(Timestamp value)

Output only. Create time of the auth token.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AuthToken.Builder

mergeFrom(AuthToken other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCreateTime(Timestamp value)

public AuthToken.Builder setCreateTime(Timestamp value)

Output only. Create time of the auth token.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AuthToken.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AuthToken.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time of the auth token.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AuthToken.Builder

setName(String value)

public AuthToken.Builder setName(String value)

Identifier. Name of the auth token.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AuthToken.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AuthToken.Builder setNameBytes(ByteString value)

Identifier. Name of the auth token.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AuthToken.Builder

This builder for chaining.

setState(AuthToken.State value)

public AuthToken.Builder setState(AuthToken.State value)

Output only. The state of the auth token.

.google.cloud.memorystore.v1beta.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AuthToken.State

The state to set.

Returns
Type Description
AuthToken.Builder

This builder for chaining.

setStateValue(int value)

public AuthToken.Builder setStateValue(int value)

Output only. The state of the auth token.

.google.cloud.memorystore.v1beta.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
AuthToken.Builder

This builder for chaining.

setToken(String value)

public AuthToken.Builder setToken(String value)

Output only. The auth token.

string token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The token to set.

Returns
Type Description
AuthToken.Builder

This builder for chaining.

setTokenBytes(ByteString value)

public AuthToken.Builder setTokenBytes(ByteString value)

Output only. The auth token.

string token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for token to set.

Returns
Type Description
AuthToken.Builder

This builder for chaining.