Class GenerateAccessTokenRequest.Builder (0.43.0)

public static final class GenerateAccessTokenRequest.Builder extends GeneratedMessageV3.Builder<GenerateAccessTokenRequest.Builder> implements GenerateAccessTokenRequestOrBuilder

Request message for GenerateAccessToken.

Protobuf type google.cloud.workstations.v1.GenerateAccessTokenRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenerateAccessTokenRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerateAccessTokenRequest.Builder
Overrides

build()

public GenerateAccessTokenRequest build()
Returns
Type Description
GenerateAccessTokenRequest

buildPartial()

public GenerateAccessTokenRequest buildPartial()
Returns
Type Description
GenerateAccessTokenRequest

clear()

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

clearExpiration()

public GenerateAccessTokenRequest.Builder clearExpiration()
Returns
Type Description
GenerateAccessTokenRequest.Builder

clearExpireTime()

public GenerateAccessTokenRequest.Builder clearExpireTime()

Desired expiration time of the access token. This value must be at most 24 hours in the future. If a value is not specified, the token's expiration time will be set to a default value of 1 hour in the future.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
GenerateAccessTokenRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public GenerateAccessTokenRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GenerateAccessTokenRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerateAccessTokenRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GenerateAccessTokenRequest.Builder
Overrides

clearTtl()

public GenerateAccessTokenRequest.Builder clearTtl()

Desired lifetime duration of the access token. This value must be at most 24 hours. If a value is not specified, the token's lifetime will be set to a default value of 1 hour.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
GenerateAccessTokenRequest.Builder

clearWorkstation()

public GenerateAccessTokenRequest.Builder clearWorkstation()

Required. Name of the workstation for which the access token should be generated.

string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GenerateAccessTokenRequest.Builder

This builder for chaining.

clone()

public GenerateAccessTokenRequest.Builder clone()
Returns
Type Description
GenerateAccessTokenRequest.Builder
Overrides

getDefaultInstanceForType()

public GenerateAccessTokenRequest getDefaultInstanceForType()
Returns
Type Description
GenerateAccessTokenRequest

getDescriptorForType()

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

getExpirationCase()

public GenerateAccessTokenRequest.ExpirationCase getExpirationCase()
Returns
Type Description
GenerateAccessTokenRequest.ExpirationCase

getExpireTime()

public Timestamp getExpireTime()

Desired expiration time of the access token. This value must be at most 24 hours in the future. If a value is not specified, the token's expiration time will be set to a default value of 1 hour in the future.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

Desired expiration time of the access token. This value must be at most 24 hours in the future. If a value is not specified, the token's expiration time will be set to a default value of 1 hour in the future.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Desired expiration time of the access token. This value must be at most 24 hours in the future. If a value is not specified, the token's expiration time will be set to a default value of 1 hour in the future.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
TimestampOrBuilder

getTtl()

public Duration getTtl()

Desired lifetime duration of the access token. This value must be at most 24 hours. If a value is not specified, the token's lifetime will be set to a default value of 1 hour.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
Duration

The ttl.

getTtlBuilder()

public Duration.Builder getTtlBuilder()

Desired lifetime duration of the access token. This value must be at most 24 hours. If a value is not specified, the token's lifetime will be set to a default value of 1 hour.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
Builder

getTtlOrBuilder()

public DurationOrBuilder getTtlOrBuilder()

Desired lifetime duration of the access token. This value must be at most 24 hours. If a value is not specified, the token's lifetime will be set to a default value of 1 hour.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
DurationOrBuilder

getWorkstation()

public String getWorkstation()

Required. Name of the workstation for which the access token should be generated.

string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The workstation.

getWorkstationBytes()

public ByteString getWorkstationBytes()

Required. Name of the workstation for which the access token should be generated.

string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for workstation.

hasExpireTime()

public boolean hasExpireTime()

Desired expiration time of the access token. This value must be at most 24 hours in the future. If a value is not specified, the token's expiration time will be set to a default value of 1 hour in the future.

.google.protobuf.Timestamp expire_time = 2;

Returns
Type Description
boolean

Whether the expireTime field is set.

hasTtl()

public boolean hasTtl()

Desired lifetime duration of the access token. This value must be at most 24 hours. If a value is not specified, the token's lifetime will be set to a default value of 1 hour.

.google.protobuf.Duration ttl = 3;

Returns
Type Description
boolean

Whether the ttl field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpireTime(Timestamp value)

public GenerateAccessTokenRequest.Builder mergeExpireTime(Timestamp value)

Desired expiration time of the access token. This value must be at most 24 hours in the future. If a value is not specified, the token's expiration time will be set to a default value of 1 hour in the future.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
GenerateAccessTokenRequest.Builder

mergeFrom(GenerateAccessTokenRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTtl(Duration value)

public GenerateAccessTokenRequest.Builder mergeTtl(Duration value)

Desired lifetime duration of the access token. This value must be at most 24 hours. If a value is not specified, the token's lifetime will be set to a default value of 1 hour.

.google.protobuf.Duration ttl = 3;

Parameter
Name Description
value Duration
Returns
Type Description
GenerateAccessTokenRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateAccessTokenRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerateAccessTokenRequest.Builder
Overrides

setExpireTime(Timestamp value)

public GenerateAccessTokenRequest.Builder setExpireTime(Timestamp value)

Desired expiration time of the access token. This value must be at most 24 hours in the future. If a value is not specified, the token's expiration time will be set to a default value of 1 hour in the future.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
GenerateAccessTokenRequest.Builder

setExpireTime(Timestamp.Builder builderForValue)

public GenerateAccessTokenRequest.Builder setExpireTime(Timestamp.Builder builderForValue)

Desired expiration time of the access token. This value must be at most 24 hours in the future. If a value is not specified, the token's expiration time will be set to a default value of 1 hour in the future.

.google.protobuf.Timestamp expire_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GenerateAccessTokenRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GenerateAccessTokenRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerateAccessTokenRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GenerateAccessTokenRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GenerateAccessTokenRequest.Builder
Overrides

setTtl(Duration value)

public GenerateAccessTokenRequest.Builder setTtl(Duration value)

Desired lifetime duration of the access token. This value must be at most 24 hours. If a value is not specified, the token's lifetime will be set to a default value of 1 hour.

.google.protobuf.Duration ttl = 3;

Parameter
Name Description
value Duration
Returns
Type Description
GenerateAccessTokenRequest.Builder

setTtl(Duration.Builder builderForValue)

public GenerateAccessTokenRequest.Builder setTtl(Duration.Builder builderForValue)

Desired lifetime duration of the access token. This value must be at most 24 hours. If a value is not specified, the token's lifetime will be set to a default value of 1 hour.

.google.protobuf.Duration ttl = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GenerateAccessTokenRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerateAccessTokenRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerateAccessTokenRequest.Builder
Overrides

setWorkstation(String value)

public GenerateAccessTokenRequest.Builder setWorkstation(String value)

Required. Name of the workstation for which the access token should be generated.

string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The workstation to set.

Returns
Type Description
GenerateAccessTokenRequest.Builder

This builder for chaining.

setWorkstationBytes(ByteString value)

public GenerateAccessTokenRequest.Builder setWorkstationBytes(ByteString value)

Required. Name of the workstation for which the access token should be generated.

string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for workstation to set.

Returns
Type Description
GenerateAccessTokenRequest.Builder

This builder for chaining.