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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    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.

    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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Audience of the API under request.
    com.google.protobuf.ByteString
    Audience of the API under request.
    Client ID of the requesting application.
    com.google.protobuf.ByteString
    Client ID of the requesting application.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Device code for the authorized session, as applicable.
    com.google.protobuf.ByteString
    Device 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.ByteString
    Specifies the public key which signed this request and should be bound to the client.
    Nonce value for this operation; must be unique for each request.
    com.google.protobuf.ByteString
    Nonce value for this operation; must be unique for each request.
    Explicit tenant org requested for access by the user, if applicable.
    com.google.protobuf.ByteString
    Explicit tenant org requested for access by the user, if applicable.
    com.google.protobuf.Parser<ClientSession>
     
    int
     
    Signature from the private key present on the device, if applicable; expected to be encoded as base64.
    com.google.protobuf.ByteString
    Signature from the private key present on the device, if applicable; expected to be encoded as base64.
    ID token to activate a session for; the access token is set to the authorization header.
    com.google.protobuf.ByteString
    ID token to activate a session for; the access token is set to the authorization header.
    int
     
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<ClientSession>
     
     
    void
    writeTo(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, 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

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getNonce

      public String 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:
      getNonce in interface ClientSessionOrBuilder
      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:
      getNonceBytes in interface ClientSessionOrBuilder
      Returns:
      The bytes for nonce.
    • getToken

      public String 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:
      getToken in interface ClientSessionOrBuilder
      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:
      getTokenBytes in interface ClientSessionOrBuilder
      Returns:
      The bytes for token.
    • getClient

      public String getClient()
       Client ID of the requesting application.
       
      string client = 3 [json_name = "client", (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClient in interface ClientSessionOrBuilder
      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:
      getClientBytes in interface ClientSessionOrBuilder
      Returns:
      The bytes for client.
    • getSignature

      public String 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:
      getSignature in interface ClientSessionOrBuilder
      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:
      getSignatureBytes in interface ClientSessionOrBuilder
      Returns:
      The bytes for signature.
    • getIdentity

      public String 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:
      getIdentity in interface ClientSessionOrBuilder
      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:
      getIdentityBytes in interface ClientSessionOrBuilder
      Returns:
      The bytes for identity.
    • getAudience

      public String getAudience()
       Audience of the API under request.
       
      string audience = 6 [json_name = "audience", (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAudience in interface ClientSessionOrBuilder
      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:
      getAudienceBytes in interface ClientSessionOrBuilder
      Returns:
      The bytes for audience.
    • getDevice

      public String getDevice()
       Device code for the authorized session, as applicable.
       
      string device = 7 [json_name = "device", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDevice in interface ClientSessionOrBuilder
      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:
      getDeviceBytes in interface ClientSessionOrBuilder
      Returns:
      The bytes for device.
    • getOrg

      public String 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:
      getOrg in interface ClientSessionOrBuilder
      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:
      getOrgBytes in interface ClientSessionOrBuilder
      Returns:
      The bytes for org.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static ClientSession parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ClientSession parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ClientSession parseDelimitedFrom(InputStream input) throws IOException
      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

      public ClientSession.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ClientSession.Builder newBuilder()
    • newBuilder

      public static ClientSession.Builder newBuilder(ClientSession prototype)
    • toBuilder

      public ClientSession.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ClientSession.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static ClientSession getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ClientSession> parser()
    • getParserForType

      public com.google.protobuf.Parser<ClientSession> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public ClientSession getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder