Package io.deephaven.proto.auth
Class Token.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Token.Builder>
io.deephaven.proto.auth.Token.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TokenOrBuilder,Cloneable
- Enclosing class:
- Token
public static final class Token.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Token.Builder>
implements TokenOrBuilder
A token is a server-generated identifier for a client that allows the client to present themselves to other services using the token as a means of verifying identity and credentials; the other service can validate a token provided by a client with an authentication server to confirm the claimed identity and credentials.Protobuf type
io.deephaven.proto.auth.Token-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The ip address of the authentication server that produced the token.The service for which the token is intended.The actual token payload.The credentials for the token.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringThe ip address of the authentication server that produced the token.The service for which the token is intended.com.google.protobuf.ByteStringThe service for which the token is intended.longThe actual token payload.The credentials for the token.The credentials for the token.The credentials for the token.booleanThe credentials for the token.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUserContext(UserContext value) The credentials for the token.setIpAddress(com.google.protobuf.ByteString value) The ip address of the authentication server that produced the token.setService(String value) The service for which the token is intended.setServiceBytes(com.google.protobuf.ByteString value) The service for which the token is intended.setTokenId(long value) The actual token payload.setUserContext(UserContext value) The credentials for the token.setUserContext(UserContext.Builder builderForValue) The credentials for the token.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Token.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Token.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.GeneratedMessage.Builder<Token.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Token.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Token.Builder>
-
mergeFrom
public Token.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<Token.Builder>- Throws:
IOException
-
getTokenId
public long getTokenId()The actual token payload.
fixed64 token_id = 1;- Specified by:
getTokenIdin interfaceTokenOrBuilder- Returns:
- The tokenId.
-
setTokenId
The actual token payload.
fixed64 token_id = 1;- Parameters:
value- The tokenId to set.- Returns:
- This builder for chaining.
-
clearTokenId
The actual token payload.
fixed64 token_id = 1;- Returns:
- This builder for chaining.
-
getService
The service for which the token is intended.
string service = 2;- Specified by:
getServicein interfaceTokenOrBuilder- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.ByteString getServiceBytes()The service for which the token is intended.
string service = 2;- Specified by:
getServiceBytesin interfaceTokenOrBuilder- Returns:
- The bytes for service.
-
setService
The service for which the token is intended.
string service = 2;- Parameters:
value- The service to set.- Returns:
- This builder for chaining.
-
clearService
The service for which the token is intended.
string service = 2;- Returns:
- This builder for chaining.
-
setServiceBytes
The service for which the token is intended.
string service = 2;- Parameters:
value- The bytes for service to set.- Returns:
- This builder for chaining.
-
hasUserContext
public boolean hasUserContext()The credentials for the token.
.io.deephaven.proto.auth.UserContext user_context = 3;- Specified by:
hasUserContextin interfaceTokenOrBuilder- Returns:
- Whether the userContext field is set.
-
getUserContext
The credentials for the token.
.io.deephaven.proto.auth.UserContext user_context = 3;- Specified by:
getUserContextin interfaceTokenOrBuilder- Returns:
- The userContext.
-
setUserContext
The credentials for the token.
.io.deephaven.proto.auth.UserContext user_context = 3; -
setUserContext
The credentials for the token.
.io.deephaven.proto.auth.UserContext user_context = 3; -
mergeUserContext
The credentials for the token.
.io.deephaven.proto.auth.UserContext user_context = 3; -
clearUserContext
The credentials for the token.
.io.deephaven.proto.auth.UserContext user_context = 3; -
getUserContextBuilder
The credentials for the token.
.io.deephaven.proto.auth.UserContext user_context = 3; -
getUserContextOrBuilder
The credentials for the token.
.io.deephaven.proto.auth.UserContext user_context = 3;- Specified by:
getUserContextOrBuilderin interfaceTokenOrBuilder
-
getIpAddress
public com.google.protobuf.ByteString getIpAddress()The ip address of the authentication server that produced the token.
bytes ip_address = 4;- Specified by:
getIpAddressin interfaceTokenOrBuilder- Returns:
- The ipAddress.
-
setIpAddress
The ip address of the authentication server that produced the token.
bytes ip_address = 4;- Parameters:
value- The ipAddress to set.- Returns:
- This builder for chaining.
-
clearIpAddress
The ip address of the authentication server that produced the token.
bytes ip_address = 4;- Returns:
- This builder for chaining.
-