public static final class GenerateAccessTokenRequest.Builder extends GeneratedMessage.Builder<GenerateAccessTokenRequest.Builder> implements GenerateAccessTokenRequestOrBuilderRequest message for GenerateAccessToken.
Protobuf type google.cloud.workstations.v1beta.GenerateAccessTokenRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GenerateAccessTokenRequest.BuilderImplements
GenerateAccessTokenRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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 |
|
clearPort()
public GenerateAccessTokenRequest.Builder clearPort()Optional. Port for which the access token should be generated. If specified, the generated access token grants access only to the specified port of the workstation. If specified, values must be within the range [1 - 65535]. If not specified, the generated access token grants access to all ports of the workstation.
int32 port = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenerateAccessTokenRequest.Builder |
This builder for chaining. |
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. |
getDefaultInstanceForType()
public GenerateAccessTokenRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GenerateAccessTokenRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
|
getPort()
public int getPort()Optional. Port for which the access token should be generated. If specified, the generated access token grants access only to the specified port of the workstation. If specified, values must be within the range [1 - 65535]. If not specified, the generated access token grants access to all ports of the workstation.
int32 port = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The port. |
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GenerateAccessTokenRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GenerateAccessTokenRequest.Builder |
|
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 |
|
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 |
|
setPort(int value)
public GenerateAccessTokenRequest.Builder setPort(int value)Optional. Port for which the access token should be generated. If specified, the generated access token grants access only to the specified port of the workstation. If specified, values must be within the range [1 - 65535]. If not specified, the generated access token grants access to all ports of the workstation.
int32 port = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe port to set. |
| Returns | |
|---|---|
| Type | Description |
GenerateAccessTokenRequest.Builder |
This builder for chaining. |
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for workstation to set. |
| Returns | |
|---|---|
| Type | Description |
GenerateAccessTokenRequest.Builder |
This builder for chaining. |