Class GenerateAccessTokenRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerateAccessTokenRequest.Builder>
com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder
- All Implemented Interfaces:
GenerateAccessTokenRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenerateAccessTokenRequest
public static final class GenerateAccessTokenRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GenerateAccessTokenRequest.Builder>
implements GenerateAccessTokenRequestOrBuilder
Request message for GenerateAccessToken.Protobuf type
google.cloud.workstations.v1beta.GenerateAccessTokenRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Desired expiration time of the access token.clearTtl()Desired lifetime duration of the access token.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampDesired expiration time of the access token.com.google.protobuf.Timestamp.BuilderDesired expiration time of the access token.com.google.protobuf.TimestampOrBuilderDesired expiration time of the access token.com.google.protobuf.DurationgetTtl()Desired lifetime duration of the access token.com.google.protobuf.Duration.BuilderDesired lifetime duration of the access token.com.google.protobuf.DurationOrBuilderDesired lifetime duration of the access token.Required.com.google.protobuf.ByteStringRequired.booleanDesired expiration time of the access token.booleanhasTtl()Desired lifetime duration of the access token.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeExpireTime(com.google.protobuf.Timestamp value) Desired expiration time of the access token.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTtl(com.google.protobuf.Duration value) Desired lifetime duration of the access token.setExpireTime(com.google.protobuf.Timestamp value) Desired expiration time of the access token.setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) Desired expiration time of the access token.setTtl(com.google.protobuf.Duration value) Desired lifetime duration of the access token.setTtl(com.google.protobuf.Duration.Builder builderForValue) Desired lifetime duration of the access token.setWorkstation(String value) Required.setWorkstationBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GenerateAccessTokenRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GenerateAccessTokenRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GenerateAccessTokenRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateAccessTokenRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GenerateAccessTokenRequest.Builder>
-
mergeFrom
public GenerateAccessTokenRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateAccessTokenRequest.Builder>- Throws:
IOException
-
getExpirationCase
- Specified by:
getExpirationCasein interfaceGenerateAccessTokenRequestOrBuilder
-
clearExpiration
-
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;- Specified by:
hasExpireTimein interfaceGenerateAccessTokenRequestOrBuilder- Returns:
- Whether the expireTime field is set.
-
getExpireTime
public com.google.protobuf.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;- Specified by:
getExpireTimein interfaceGenerateAccessTokenRequestOrBuilder- Returns:
- The expireTime.
-
setExpireTime
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
public GenerateAccessTokenRequest.Builder setExpireTime(com.google.protobuf.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; -
mergeExpireTime
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; -
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; -
getExpireTimeBuilder
public com.google.protobuf.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 com.google.protobuf.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;- Specified by:
getExpireTimeOrBuilderin interfaceGenerateAccessTokenRequestOrBuilder
-
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;- Specified by:
hasTtlin interfaceGenerateAccessTokenRequestOrBuilder- Returns:
- Whether the ttl field is set.
-
getTtl
public com.google.protobuf.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;- Specified by:
getTtlin interfaceGenerateAccessTokenRequestOrBuilder- Returns:
- The ttl.
-
setTtl
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; -
setTtl
public GenerateAccessTokenRequest.Builder setTtl(com.google.protobuf.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; -
mergeTtl
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; -
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; -
getTtlBuilder
public com.google.protobuf.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 com.google.protobuf.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;- Specified by:
getTtlOrBuilderin interfaceGenerateAccessTokenRequestOrBuilder
-
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) = { ... }- Specified by:
getWorkstationin interfaceGenerateAccessTokenRequestOrBuilder- Returns:
- The workstation.
-
getWorkstationBytes
public com.google.protobuf.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) = { ... }- Specified by:
getWorkstationBytesin interfaceGenerateAccessTokenRequestOrBuilder- Returns:
- The bytes for workstation.
-
setWorkstation
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) = { ... }- Parameters:
value- The workstation to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setWorkstationBytes
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) = { ... }- Parameters:
value- The bytes for workstation to set.- Returns:
- This builder for chaining.
-