Package com.buildless.service.v1
Class ClientSession
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.buildless.service.v1.ClientSession
- All Implemented Interfaces:
ClientSessionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class ClientSession
extends com.google.protobuf.GeneratedMessageV3
implements ClientSessionOrBuilder
Request to activate a client-side session, by exchanging an authorized access token for a session ticket, which contains activation info for the user's account. If information is needed which is not presented (for example, a selected context), then a response is returned which indicates a partial activation, and the client should prompt the user for additional information. After this data has been gathered from the user, the request should be re-submitted with the additional data.Protobuf type
buildless.service.v1.ClientSession- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRequest to activate a client-side session, by exchanging an authorized access token for a session ticket, which contains activation info for the user's account.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 Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanAudience of the API under request.com.google.protobuf.ByteStringAudience of the API under request.Client ID of the requesting application.com.google.protobuf.ByteStringClient ID of the requesting application.static ClientSessionstatic final com.google.protobuf.Descriptors.DescriptorDevice code for the authorized session, as applicable.com.google.protobuf.ByteStringDevice code for the authorized session, as applicable.Specifies the public key which signed this request and should be bound to the client.com.google.protobuf.ByteStringSpecifies the public key which signed this request and should be bound to the client.getNonce()Nonce value for this operation; must be unique for each request.com.google.protobuf.ByteStringNonce value for this operation; must be unique for each request.getOrg()Explicit tenant org requested for access by the user, if applicable.com.google.protobuf.ByteStringExplicit tenant org requested for access by the user, if applicable.com.google.protobuf.Parser<ClientSession>intSignature from the private key present on the device, if applicable; expected to be encoded as base64.com.google.protobuf.ByteStringSignature from the private key present on the device, if applicable; expected to be encoded as base64.getToken()ID token to activate a session for; the access token is set to the authorization header.com.google.protobuf.ByteStringID token to activate a session for; the access token is set to the authorization header.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic ClientSession.Builderstatic ClientSession.BuildernewBuilder(ClientSession prototype) protected ClientSession.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ClientSessionparseDelimitedFrom(InputStream input) static ClientSessionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClientSessionparseFrom(byte[] data) static ClientSessionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClientSessionparseFrom(com.google.protobuf.ByteString data) static ClientSessionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClientSessionparseFrom(com.google.protobuf.CodedInputStream input) static ClientSessionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClientSessionparseFrom(InputStream input) static ClientSessionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClientSessionparseFrom(ByteBuffer data) static ClientSessionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ClientSession>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NONCE_FIELD_NUMBER
public static final int NONCE_FIELD_NUMBER- See Also:
-
TOKEN_FIELD_NUMBER
public static final int TOKEN_FIELD_NUMBER- See Also:
-
CLIENT_FIELD_NUMBER
public static final int CLIENT_FIELD_NUMBER- See Also:
-
SIGNATURE_FIELD_NUMBER
public static final int SIGNATURE_FIELD_NUMBER- See Also:
-
IDENTITY_FIELD_NUMBER
public static final int IDENTITY_FIELD_NUMBER- See Also:
-
AUDIENCE_FIELD_NUMBER
public static final int AUDIENCE_FIELD_NUMBER- See Also:
-
DEVICE_FIELD_NUMBER
public static final int DEVICE_FIELD_NUMBER- See Also:
-
ORG_FIELD_NUMBER
public static final int ORG_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- 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
-
getNonce
Nonce value for this operation; must be unique for each request.
string nonce = 1 [json_name = "nonce", (.google.api.field_behavior) = REQUIRED];- Specified by:
getNoncein interfaceClientSessionOrBuilder- Returns:
- The nonce.
-
getNonceBytes
public com.google.protobuf.ByteString getNonceBytes()Nonce value for this operation; must be unique for each request.
string nonce = 1 [json_name = "nonce", (.google.api.field_behavior) = REQUIRED];- Specified by:
getNonceBytesin interfaceClientSessionOrBuilder- Returns:
- The bytes for nonce.
-
getToken
ID token to activate a session for; the access token is set to the authorization header.
string token = 2 [json_name = "token", (.google.api.field_behavior) = REQUIRED];- Specified by:
getTokenin interfaceClientSessionOrBuilder- Returns:
- The token.
-
getTokenBytes
public com.google.protobuf.ByteString getTokenBytes()ID token to activate a session for; the access token is set to the authorization header.
string token = 2 [json_name = "token", (.google.api.field_behavior) = REQUIRED];- Specified by:
getTokenBytesin interfaceClientSessionOrBuilder- Returns:
- The bytes for token.
-
getClient
Client ID of the requesting application.
string client = 3 [json_name = "client", (.google.api.field_behavior) = REQUIRED];- Specified by:
getClientin interfaceClientSessionOrBuilder- Returns:
- The client.
-
getClientBytes
public com.google.protobuf.ByteString getClientBytes()Client ID of the requesting application.
string client = 3 [json_name = "client", (.google.api.field_behavior) = REQUIRED];- Specified by:
getClientBytesin interfaceClientSessionOrBuilder- Returns:
- The bytes for client.
-
getSignature
Signature from the private key present on the device, if applicable; expected to be encoded as base64.
string signature = 4 [json_name = "signature", (.google.api.field_behavior) = REQUIRED];- Specified by:
getSignaturein interfaceClientSessionOrBuilder- Returns:
- The signature.
-
getSignatureBytes
public com.google.protobuf.ByteString getSignatureBytes()Signature from the private key present on the device, if applicable; expected to be encoded as base64.
string signature = 4 [json_name = "signature", (.google.api.field_behavior) = REQUIRED];- Specified by:
getSignatureBytesin interfaceClientSessionOrBuilder- Returns:
- The bytes for signature.
-
getIdentity
Specifies the public key which signed this request and should be bound to the client. Encoded as base64.
string identity = 5 [json_name = "identity", (.google.api.field_behavior) = REQUIRED];- Specified by:
getIdentityin interfaceClientSessionOrBuilder- Returns:
- The identity.
-
getIdentityBytes
public com.google.protobuf.ByteString getIdentityBytes()Specifies the public key which signed this request and should be bound to the client. Encoded as base64.
string identity = 5 [json_name = "identity", (.google.api.field_behavior) = REQUIRED];- Specified by:
getIdentityBytesin interfaceClientSessionOrBuilder- Returns:
- The bytes for identity.
-
getAudience
Audience of the API under request.
string audience = 6 [json_name = "audience", (.google.api.field_behavior) = REQUIRED];- Specified by:
getAudiencein interfaceClientSessionOrBuilder- Returns:
- The audience.
-
getAudienceBytes
public com.google.protobuf.ByteString getAudienceBytes()Audience of the API under request.
string audience = 6 [json_name = "audience", (.google.api.field_behavior) = REQUIRED];- Specified by:
getAudienceBytesin interfaceClientSessionOrBuilder- Returns:
- The bytes for audience.
-
getDevice
Device code for the authorized session, as applicable.
string device = 7 [json_name = "device", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getDevicein interfaceClientSessionOrBuilder- Returns:
- The device.
-
getDeviceBytes
public com.google.protobuf.ByteString getDeviceBytes()Device code for the authorized session, as applicable.
string device = 7 [json_name = "device", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeviceBytesin interfaceClientSessionOrBuilder- Returns:
- The bytes for device.
-
getOrg
Explicit tenant org requested for access by the user, if applicable.
string org = 8 [json_name = "org", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getOrgin interfaceClientSessionOrBuilder- Returns:
- The org.
-
getOrgBytes
public com.google.protobuf.ByteString getOrgBytes()Explicit tenant org requested for access by the user, if applicable.
string org = 8 [json_name = "org", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getOrgBytesin interfaceClientSessionOrBuilder- Returns:
- The bytes for org.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- 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
- 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 ClientSession parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClientSession parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClientSession parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClientSession parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClientSession parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClientSession parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ClientSession parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ClientSession parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ClientSession parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ClientSession parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ClientSession.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-