public static final class GenerateAccessTokenRequest.Builder extends GeneratedMessageV3.Builder<GenerateAccessTokenRequest.Builder> implements GenerateAccessTokenRequestOrBuilder
Request message for GenerateAccessToken.
Protobuf type google.cloud.workstations.v1beta.GenerateAccessTokenRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateAccessTokenRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GenerateAccessTokenRequest build()
buildPartial()
public GenerateAccessTokenRequest buildPartial()
clear()
public GenerateAccessTokenRequest.Builder clear()
Overrides
clearExpiration()
public GenerateAccessTokenRequest.Builder clearExpiration()
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;
clearField(Descriptors.FieldDescriptor field)
public GenerateAccessTokenRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateAccessTokenRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
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) = { ... }
clone()
public GenerateAccessTokenRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public GenerateAccessTokenRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getExpirationCase()
public GenerateAccessTokenRequest.ExpirationCase getExpirationCase()
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;
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;
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;
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;
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()
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(GenerateAccessTokenRequest other)
public GenerateAccessTokenRequest.Builder mergeFrom(GenerateAccessTokenRequest other)
public GenerateAccessTokenRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GenerateAccessTokenRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateAccessTokenRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateAccessTokenRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerateAccessTokenRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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
|
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
|
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateAccessTokenRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|