public static final class AuthToken.Builder extends GeneratedMessage.Builder<AuthToken.Builder> implements AuthTokenOrBuilderAuth token for the instance.
Protobuf type google.cloud.memorystore.v1.AuthToken
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AuthToken.BuilderImplements
AuthTokenOrBuilderStatic 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 |
|
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.v1.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 |
|
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.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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AuthToken.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AuthToken.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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.v1.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
AuthToken.StateThe 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.v1.AuthToken.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for token to set. |
| Returns | |
|---|---|
| Type | Description |
AuthToken.Builder |
This builder for chaining. |