Class GenerateAccessTokenRequest.Builder (0.22.0)

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

Request message for GenerateAccessToken.

Protobuf type google.cloud.workstations.v1beta.GenerateAccessTokenRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenerateAccessTokenRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GenerateAccessTokenRequest.Builder
Overrides

build()

public GenerateAccessTokenRequest build()
Returns
TypeDescription
GenerateAccessTokenRequest

buildPartial()

public GenerateAccessTokenRequest buildPartial()
Returns
TypeDescription
GenerateAccessTokenRequest

clear()

public GenerateAccessTokenRequest.Builder clear()
Returns
TypeDescription
GenerateAccessTokenRequest.Builder
Overrides

clearExpiration()

public GenerateAccessTokenRequest.Builder clearExpiration()
Returns
TypeDescription
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
TypeDescription
GenerateAccessTokenRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public GenerateAccessTokenRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GenerateAccessTokenRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerateAccessTokenRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GenerateAccessTokenRequest.Builder

This builder for chaining.

clone()

public GenerateAccessTokenRequest.Builder clone()
Returns
TypeDescription
GenerateAccessTokenRequest.Builder
Overrides

getDefaultInstanceForType()

public GenerateAccessTokenRequest getDefaultInstanceForType()
Returns
TypeDescription
GenerateAccessTokenRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpirationCase()

public GenerateAccessTokenRequest.ExpirationCase getExpirationCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the ttl field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
GenerateAccessTokenRequest.Builder

mergeFrom(GenerateAccessTokenRequest other)

public GenerateAccessTokenRequest.Builder mergeFrom(GenerateAccessTokenRequest other)
Parameter
NameDescription
otherGenerateAccessTokenRequest
Returns
TypeDescription
GenerateAccessTokenRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenerateAccessTokenRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GenerateAccessTokenRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GenerateAccessTokenRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
GenerateAccessTokenRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateAccessTokenRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
GenerateAccessTokenRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GenerateAccessTokenRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GenerateAccessTokenRequest.Builder
Overrides

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

public GenerateAccessTokenRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
GenerateAccessTokenRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerateAccessTokenRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The workstation to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for workstation to set.

Returns
TypeDescription
GenerateAccessTokenRequest.Builder

This builder for chaining.