Class ClientSession.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
com.buildless.service.v1.ClientSession.Builder
All Implemented Interfaces:
ClientSessionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ClientSession

public static final class ClientSession.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder> 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
  • Method Details

    • 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.Builder<ClientSession.Builder>
    • clear

      public ClientSession.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
    • getDefaultInstanceForType

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

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

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

      public ClientSession.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
    • setField

      public ClientSession.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
    • clearField

      public ClientSession.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
    • clearOneof

      public ClientSession.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
    • setRepeatedField

      public ClientSession.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
    • addRepeatedField

      public ClientSession.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
    • mergeFrom

      public ClientSession.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClientSession.Builder>
    • mergeFrom

      public ClientSession.Builder mergeFrom(ClientSession other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
    • mergeFrom

      public ClientSession.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClientSession.Builder>
      Throws:
      IOException
    • 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.
    • setNonce

      public ClientSession.Builder setNonce(String value)
       Nonce value for this operation; must be unique for each request.
       
      string nonce = 1 [json_name = "nonce", (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The nonce to set.
      Returns:
      This builder for chaining.
    • clearNonce

      public ClientSession.Builder clearNonce()
       Nonce value for this operation; must be unique for each request.
       
      string nonce = 1 [json_name = "nonce", (.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNonceBytes

      public ClientSession.Builder setNonceBytes(com.google.protobuf.ByteString value)
       Nonce value for this operation; must be unique for each request.
       
      string nonce = 1 [json_name = "nonce", (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for nonce to set.
      Returns:
      This builder for chaining.
    • 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.
    • setToken

      public ClientSession.Builder setToken(String value)
       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];
      Parameters:
      value - The token to set.
      Returns:
      This builder for chaining.
    • clearToken

      public ClientSession.Builder clearToken()
       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];
      Returns:
      This builder for chaining.
    • setTokenBytes

      public ClientSession.Builder setTokenBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for token to set.
      Returns:
      This builder for chaining.
    • 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.
    • setClient

      public ClientSession.Builder setClient(String value)
       Client ID of the requesting application.
       
      string client = 3 [json_name = "client", (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The client to set.
      Returns:
      This builder for chaining.
    • clearClient

      public ClientSession.Builder clearClient()
       Client ID of the requesting application.
       
      string client = 3 [json_name = "client", (.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setClientBytes

      public ClientSession.Builder setClientBytes(com.google.protobuf.ByteString value)
       Client ID of the requesting application.
       
      string client = 3 [json_name = "client", (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for client to set.
      Returns:
      This builder for chaining.
    • 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.
    • setSignature

      public ClientSession.Builder setSignature(String value)
       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];
      Parameters:
      value - The signature to set.
      Returns:
      This builder for chaining.
    • clearSignature

      public ClientSession.Builder clearSignature()
       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];
      Returns:
      This builder for chaining.
    • setSignatureBytes

      public ClientSession.Builder setSignatureBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for signature to set.
      Returns:
      This builder for chaining.
    • 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.
    • setIdentity

      public ClientSession.Builder setIdentity(String value)
       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];
      Parameters:
      value - The identity to set.
      Returns:
      This builder for chaining.
    • clearIdentity

      public ClientSession.Builder clearIdentity()
       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];
      Returns:
      This builder for chaining.
    • setIdentityBytes

      public ClientSession.Builder setIdentityBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for identity to set.
      Returns:
      This builder for chaining.
    • 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.
    • setAudience

      public ClientSession.Builder setAudience(String value)
       Audience of the API under request.
       
      string audience = 6 [json_name = "audience", (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The audience to set.
      Returns:
      This builder for chaining.
    • clearAudience

      public ClientSession.Builder clearAudience()
       Audience of the API under request.
       
      string audience = 6 [json_name = "audience", (.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAudienceBytes

      public ClientSession.Builder setAudienceBytes(com.google.protobuf.ByteString value)
       Audience of the API under request.
       
      string audience = 6 [json_name = "audience", (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for audience to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDevice

      public ClientSession.Builder setDevice(String value)
       Device code for the authorized session, as applicable.
       
      string device = 7 [json_name = "device", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The device to set.
      Returns:
      This builder for chaining.
    • clearDevice

      public ClientSession.Builder clearDevice()
       Device code for the authorized session, as applicable.
       
      string device = 7 [json_name = "device", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDeviceBytes

      public ClientSession.Builder setDeviceBytes(com.google.protobuf.ByteString value)
       Device code for the authorized session, as applicable.
       
      string device = 7 [json_name = "device", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for device to set.
      Returns:
      This builder for chaining.
    • 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.
    • setOrg

      public ClientSession.Builder setOrg(String value)
       Explicit tenant org requested for access by the user, if applicable.
       
      string org = 8 [json_name = "org", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The org to set.
      Returns:
      This builder for chaining.
    • clearOrg

      public ClientSession.Builder clearOrg()
       Explicit tenant org requested for access by the user, if applicable.
       
      string org = 8 [json_name = "org", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setOrgBytes

      public ClientSession.Builder setOrgBytes(com.google.protobuf.ByteString value)
       Explicit tenant org requested for access by the user, if applicable.
       
      string org = 8 [json_name = "org", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for org to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ClientSession.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
    • mergeUnknownFields

      public final ClientSession.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>