Package com.buildless.service.v1
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Audience of the API under request.Client ID of the requesting application.Device code for the authorized session, as applicable.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) 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.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clearOrg()Explicit tenant org requested for access by the user, if applicable.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.clone()Audience 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 final com.google.protobuf.Descriptors.Descriptorcom.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.Signature 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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(ClientSession other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final ClientSession.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAudience(String value) Audience of the API under request.setAudienceBytes(com.google.protobuf.ByteString value) Audience of the API under request.Client ID of the requesting application.setClientBytes(com.google.protobuf.ByteString value) Client ID of the requesting application.Device code for the authorized session, as applicable.setDeviceBytes(com.google.protobuf.ByteString value) Device code for the authorized session, as applicable.setIdentity(String value) Specifies the public key which signed this request and should be bound to the client.setIdentityBytes(com.google.protobuf.ByteString value) 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.setNonceBytes(com.google.protobuf.ByteString value) Nonce value for this operation; must be unique for each request.Explicit tenant org requested for access by the user, if applicable.setOrgBytes(com.google.protobuf.ByteString value) Explicit tenant org requested for access by the user, if applicable.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSignature(String value) Signature from the private key present on the device, if applicable; expected to be encoded as base64.setSignatureBytes(com.google.protobuf.ByteString value) 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.setTokenBytes(com.google.protobuf.ByteString value) ID token to activate a session for; the access token is set to the authorization header.final ClientSession.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ClientSession.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.GeneratedMessageV3.Builder<ClientSession.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
-
setField
public ClientSession.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
-
setRepeatedField
public ClientSession.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
-
addRepeatedField
public ClientSession.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClientSession.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClientSession.Builder>- Throws:
IOException
-
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.
-
setNonce
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
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
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
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.
-
setToken
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
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
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
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.
-
setClient
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
Client ID of the requesting application.
string client = 3 [json_name = "client", (.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setClientBytes
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
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.
-
setSignature
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
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
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
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.
-
setIdentity
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
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
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
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.
-
setAudience
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
Audience of the API under request.
string audience = 6 [json_name = "audience", (.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setAudienceBytes
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
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.
-
setDevice
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
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
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
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.
-
setOrg
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
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
-
mergeUnknownFields
public final ClientSession.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ClientSession.Builder>
-