Class AuthToken (0.41.0)

public final class AuthToken extends GeneratedMessage implements AuthTokenOrBuilder

Auth token for the instance.

Protobuf type google.cloud.memorystore.v1.AuthToken

Implements

AuthTokenOrBuilder

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

TOKEN_FIELD_NUMBER

public static final int TOKEN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AuthToken getDefaultInstance()
Returns
Type Description
AuthToken

getDescriptor()

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

newBuilder()

public static AuthToken.Builder newBuilder()
Returns
Type Description
AuthToken.Builder

newBuilder(AuthToken prototype)

public static AuthToken.Builder newBuilder(AuthToken prototype)
Parameter
Name Description
prototype AuthToken
Returns
Type Description
AuthToken.Builder

parseDelimitedFrom(InputStream input)

public static AuthToken parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthToken
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthToken parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthToken
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AuthToken parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AuthToken
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AuthToken parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthToken
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AuthToken parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AuthToken
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AuthToken parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthToken
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AuthToken parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AuthToken
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthToken parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthToken
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AuthToken parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AuthToken
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AuthToken parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthToken
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AuthToken parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AuthToken
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AuthToken parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthToken
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AuthToken> parser()
Returns
Type Description
Parser<AuthToken>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

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.

getParserForType()

public Parser<AuthToken> getParserForType()
Returns
Type Description
Parser<AuthToken>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public AuthToken.State getState()

Output only. The state of the auth token.

.google.cloud.memorystore.v1.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.v1.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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AuthToken.Builder newBuilderForType()
Returns
Type Description
AuthToken.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AuthToken.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AuthToken.Builder
Overrides

toBuilder()

public AuthToken.Builder toBuilder()
Returns
Type Description
AuthToken.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException