Class GenerateAccessTokenRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest
-
- All Implemented Interfaces:
GenerateAccessTokenRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class GenerateAccessTokenRequest extends com.google.protobuf.GeneratedMessageV3 implements GenerateAccessTokenRequestOrBuilder
Request message for GenerateAccessToken.
Protobuf typegoogle.cloud.workstations.v1beta.GenerateAccessTokenRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerateAccessTokenRequest.BuilderRequest message for GenerateAccessToken.static classGenerateAccessTokenRequest.ExpirationCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intEXPIRE_TIME_FIELD_NUMBERstatic intTTL_FIELD_NUMBERstatic intWORKSTATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static GenerateAccessTokenRequestgetDefaultInstance()GenerateAccessTokenRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()GenerateAccessTokenRequest.ExpirationCasegetExpirationCase()com.google.protobuf.TimestampgetExpireTime()Desired expiration time of the access token.com.google.protobuf.TimestampOrBuildergetExpireTimeOrBuilder()Desired expiration time of the access token.com.google.protobuf.Parser<GenerateAccessTokenRequest>getParserForType()intgetSerializedSize()com.google.protobuf.DurationgetTtl()Desired lifetime duration of the access token.com.google.protobuf.DurationOrBuildergetTtlOrBuilder()Desired lifetime duration of the access token.StringgetWorkstation()Required.com.google.protobuf.ByteStringgetWorkstationBytes()Required.booleanhasExpireTime()Desired expiration time of the access token.inthashCode()booleanhasTtl()Desired lifetime duration of the access token.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static GenerateAccessTokenRequest.BuildernewBuilder()static GenerateAccessTokenRequest.BuildernewBuilder(GenerateAccessTokenRequest prototype)GenerateAccessTokenRequest.BuildernewBuilderForType()protected GenerateAccessTokenRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static GenerateAccessTokenRequestparseDelimitedFrom(InputStream input)static GenerateAccessTokenRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerateAccessTokenRequestparseFrom(byte[] data)static GenerateAccessTokenRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerateAccessTokenRequestparseFrom(com.google.protobuf.ByteString data)static GenerateAccessTokenRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerateAccessTokenRequestparseFrom(com.google.protobuf.CodedInputStream input)static GenerateAccessTokenRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerateAccessTokenRequestparseFrom(InputStream input)static GenerateAccessTokenRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerateAccessTokenRequestparseFrom(ByteBuffer data)static GenerateAccessTokenRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<GenerateAccessTokenRequest>parser()GenerateAccessTokenRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
EXPIRE_TIME_FIELD_NUMBER
public static final int EXPIRE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TTL_FIELD_NUMBER
public static final int TTL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WORKSTATION_FIELD_NUMBER
public static final int WORKSTATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getExpirationCase
public GenerateAccessTokenRequest.ExpirationCase getExpirationCase()
- Specified by:
getExpirationCasein interfaceGenerateAccessTokenRequestOrBuilder
-
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.
-
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.
-
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
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) = { ... }- 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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GenerateAccessTokenRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateAccessTokenRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateAccessTokenRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateAccessTokenRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateAccessTokenRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateAccessTokenRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateAccessTokenRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GenerateAccessTokenRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GenerateAccessTokenRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GenerateAccessTokenRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static GenerateAccessTokenRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GenerateAccessTokenRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public GenerateAccessTokenRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static GenerateAccessTokenRequest.Builder newBuilder()
-
newBuilder
public static GenerateAccessTokenRequest.Builder newBuilder(GenerateAccessTokenRequest prototype)
-
toBuilder
public GenerateAccessTokenRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GenerateAccessTokenRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static GenerateAccessTokenRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<GenerateAccessTokenRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<GenerateAccessTokenRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public GenerateAccessTokenRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-