java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<SessionInfo.Builder>
org.yamcs.protobuf.SessionInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,SessionInfoOrBuilder
- Enclosing class:
- SessionInfo
public static final class SessionInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<SessionInfo.Builder>
implements SessionInfoOrBuilder
Protobuf type
yamcs.protobuf.iam.SessionInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddAllClients
(Iterable<String> values) repeated string clients = 8;
addClients
(String value) repeated string clients = 8;
addClientsBytes
(com.google.protobuf.ByteString value) repeated string clients = 8;
addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
repeated string clients = 8;
optional .google.protobuf.Timestamp expirationTime = 7;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) optional string hostname = 4;
clearId()
Session identifieroptional string ipAddress = 3;
optional .google.protobuf.Timestamp lastAccessTime = 6;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional .google.protobuf.Timestamp startTime = 5;
optional string username = 2;
clone()
getClients
(int index) repeated string clients = 8;
com.google.protobuf.ByteString
getClientsBytes
(int index) repeated string clients = 8;
int
repeated string clients = 8;
com.google.protobuf.ProtocolStringList
repeated string clients = 8;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Timestamp
optional .google.protobuf.Timestamp expirationTime = 7;
com.google.protobuf.Timestamp.Builder
optional .google.protobuf.Timestamp expirationTime = 7;
com.google.protobuf.TimestampOrBuilder
optional .google.protobuf.Timestamp expirationTime = 7;
optional string hostname = 4;
com.google.protobuf.ByteString
optional string hostname = 4;
getId()
Session identifiercom.google.protobuf.ByteString
Session identifieroptional string ipAddress = 3;
com.google.protobuf.ByteString
optional string ipAddress = 3;
com.google.protobuf.Timestamp
optional .google.protobuf.Timestamp lastAccessTime = 6;
com.google.protobuf.Timestamp.Builder
optional .google.protobuf.Timestamp lastAccessTime = 6;
com.google.protobuf.TimestampOrBuilder
optional .google.protobuf.Timestamp lastAccessTime = 6;
com.google.protobuf.Timestamp
optional .google.protobuf.Timestamp startTime = 5;
com.google.protobuf.Timestamp.Builder
optional .google.protobuf.Timestamp startTime = 5;
com.google.protobuf.TimestampOrBuilder
optional .google.protobuf.Timestamp startTime = 5;
optional string username = 2;
com.google.protobuf.ByteString
optional string username = 2;
boolean
optional .google.protobuf.Timestamp expirationTime = 7;
boolean
optional string hostname = 4;
boolean
hasId()
Session identifierboolean
optional string ipAddress = 3;
boolean
optional .google.protobuf.Timestamp lastAccessTime = 6;
boolean
optional .google.protobuf.Timestamp startTime = 5;
boolean
optional string username = 2;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeExpirationTime
(com.google.protobuf.Timestamp value) optional .google.protobuf.Timestamp expirationTime = 7;
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(SessionInfo other) mergeLastAccessTime
(com.google.protobuf.Timestamp value) optional .google.protobuf.Timestamp lastAccessTime = 6;
mergeStartTime
(com.google.protobuf.Timestamp value) optional .google.protobuf.Timestamp startTime = 5;
final SessionInfo.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setClients
(int index, String value) repeated string clients = 8;
setExpirationTime
(com.google.protobuf.Timestamp value) optional .google.protobuf.Timestamp expirationTime = 7;
setExpirationTime
(com.google.protobuf.Timestamp.Builder builderForValue) optional .google.protobuf.Timestamp expirationTime = 7;
setHostname
(String value) optional string hostname = 4;
setHostnameBytes
(com.google.protobuf.ByteString value) optional string hostname = 4;
Session identifiersetIdBytes
(com.google.protobuf.ByteString value) Session identifiersetIpAddress
(String value) optional string ipAddress = 3;
setIpAddressBytes
(com.google.protobuf.ByteString value) optional string ipAddress = 3;
setLastAccessTime
(com.google.protobuf.Timestamp value) optional .google.protobuf.Timestamp lastAccessTime = 6;
setLastAccessTime
(com.google.protobuf.Timestamp.Builder builderForValue) optional .google.protobuf.Timestamp lastAccessTime = 6;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartTime
(com.google.protobuf.Timestamp value) optional .google.protobuf.Timestamp startTime = 5;
setStartTime
(com.google.protobuf.Timestamp.Builder builderForValue) optional .google.protobuf.Timestamp startTime = 5;
final SessionInfo.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setUsername
(String value) optional string username = 2;
setUsernameBytes
(com.google.protobuf.ByteString value) optional string username = 2;
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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionInfo.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionInfo.Builder>
-
setField
public SessionInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionInfo.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionInfo.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionInfo.Builder>
-
setRepeatedField
public SessionInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionInfo.Builder>
-
addRepeatedField
public SessionInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SessionInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionInfo.Builder>
-
mergeFrom
public SessionInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SessionInfo.Builder>
- Throws:
IOException
-
hasId
public boolean hasId()Session identifier
optional string id = 1;
- Specified by:
hasId
in interfaceSessionInfoOrBuilder
- Returns:
- Whether the id field is set.
-
getId
Session identifier
optional string id = 1;
- Specified by:
getId
in interfaceSessionInfoOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Session identifier
optional string id = 1;
- Specified by:
getIdBytes
in interfaceSessionInfoOrBuilder
- Returns:
- The bytes for id.
-
setId
Session identifier
optional string id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
Session identifier
optional string id = 1;
- Returns:
- This builder for chaining.
-
setIdBytes
Session identifier
optional string id = 1;
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasUsername
public boolean hasUsername()optional string username = 2;
- Specified by:
hasUsername
in interfaceSessionInfoOrBuilder
- Returns:
- Whether the username field is set.
-
getUsername
optional string username = 2;
- Specified by:
getUsername
in interfaceSessionInfoOrBuilder
- Returns:
- The username.
-
getUsernameBytes
public com.google.protobuf.ByteString getUsernameBytes()optional string username = 2;
- Specified by:
getUsernameBytes
in interfaceSessionInfoOrBuilder
- Returns:
- The bytes for username.
-
setUsername
optional string username = 2;
- Parameters:
value
- The username to set.- Returns:
- This builder for chaining.
-
clearUsername
optional string username = 2;
- Returns:
- This builder for chaining.
-
setUsernameBytes
optional string username = 2;
- Parameters:
value
- The bytes for username to set.- Returns:
- This builder for chaining.
-
hasIpAddress
public boolean hasIpAddress()optional string ipAddress = 3;
- Specified by:
hasIpAddress
in interfaceSessionInfoOrBuilder
- Returns:
- Whether the ipAddress field is set.
-
getIpAddress
optional string ipAddress = 3;
- Specified by:
getIpAddress
in interfaceSessionInfoOrBuilder
- Returns:
- The ipAddress.
-
getIpAddressBytes
public com.google.protobuf.ByteString getIpAddressBytes()optional string ipAddress = 3;
- Specified by:
getIpAddressBytes
in interfaceSessionInfoOrBuilder
- Returns:
- The bytes for ipAddress.
-
setIpAddress
optional string ipAddress = 3;
- Parameters:
value
- The ipAddress to set.- Returns:
- This builder for chaining.
-
clearIpAddress
optional string ipAddress = 3;
- Returns:
- This builder for chaining.
-
setIpAddressBytes
optional string ipAddress = 3;
- Parameters:
value
- The bytes for ipAddress to set.- Returns:
- This builder for chaining.
-
hasHostname
public boolean hasHostname()optional string hostname = 4;
- Specified by:
hasHostname
in interfaceSessionInfoOrBuilder
- Returns:
- Whether the hostname field is set.
-
getHostname
optional string hostname = 4;
- Specified by:
getHostname
in interfaceSessionInfoOrBuilder
- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()optional string hostname = 4;
- Specified by:
getHostnameBytes
in interfaceSessionInfoOrBuilder
- Returns:
- The bytes for hostname.
-
setHostname
optional string hostname = 4;
- Parameters:
value
- The hostname to set.- Returns:
- This builder for chaining.
-
clearHostname
optional string hostname = 4;
- Returns:
- This builder for chaining.
-
setHostnameBytes
optional string hostname = 4;
- Parameters:
value
- The bytes for hostname to set.- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()optional .google.protobuf.Timestamp startTime = 5;
- Specified by:
hasStartTime
in interfaceSessionInfoOrBuilder
- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()optional .google.protobuf.Timestamp startTime = 5;
- Specified by:
getStartTime
in interfaceSessionInfoOrBuilder
- Returns:
- The startTime.
-
setStartTime
optional .google.protobuf.Timestamp startTime = 5;
-
setStartTime
optional .google.protobuf.Timestamp startTime = 5;
-
mergeStartTime
optional .google.protobuf.Timestamp startTime = 5;
-
clearStartTime
optional .google.protobuf.Timestamp startTime = 5;
-
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()optional .google.protobuf.Timestamp startTime = 5;
-
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()optional .google.protobuf.Timestamp startTime = 5;
- Specified by:
getStartTimeOrBuilder
in interfaceSessionInfoOrBuilder
-
hasLastAccessTime
public boolean hasLastAccessTime()optional .google.protobuf.Timestamp lastAccessTime = 6;
- Specified by:
hasLastAccessTime
in interfaceSessionInfoOrBuilder
- Returns:
- Whether the lastAccessTime field is set.
-
getLastAccessTime
public com.google.protobuf.Timestamp getLastAccessTime()optional .google.protobuf.Timestamp lastAccessTime = 6;
- Specified by:
getLastAccessTime
in interfaceSessionInfoOrBuilder
- Returns:
- The lastAccessTime.
-
setLastAccessTime
optional .google.protobuf.Timestamp lastAccessTime = 6;
-
setLastAccessTime
optional .google.protobuf.Timestamp lastAccessTime = 6;
-
mergeLastAccessTime
optional .google.protobuf.Timestamp lastAccessTime = 6;
-
clearLastAccessTime
optional .google.protobuf.Timestamp lastAccessTime = 6;
-
getLastAccessTimeBuilder
public com.google.protobuf.Timestamp.Builder getLastAccessTimeBuilder()optional .google.protobuf.Timestamp lastAccessTime = 6;
-
getLastAccessTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastAccessTimeOrBuilder()optional .google.protobuf.Timestamp lastAccessTime = 6;
- Specified by:
getLastAccessTimeOrBuilder
in interfaceSessionInfoOrBuilder
-
hasExpirationTime
public boolean hasExpirationTime()optional .google.protobuf.Timestamp expirationTime = 7;
- Specified by:
hasExpirationTime
in interfaceSessionInfoOrBuilder
- Returns:
- Whether the expirationTime field is set.
-
getExpirationTime
public com.google.protobuf.Timestamp getExpirationTime()optional .google.protobuf.Timestamp expirationTime = 7;
- Specified by:
getExpirationTime
in interfaceSessionInfoOrBuilder
- Returns:
- The expirationTime.
-
setExpirationTime
optional .google.protobuf.Timestamp expirationTime = 7;
-
setExpirationTime
optional .google.protobuf.Timestamp expirationTime = 7;
-
mergeExpirationTime
optional .google.protobuf.Timestamp expirationTime = 7;
-
clearExpirationTime
optional .google.protobuf.Timestamp expirationTime = 7;
-
getExpirationTimeBuilder
public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder()optional .google.protobuf.Timestamp expirationTime = 7;
-
getExpirationTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder()optional .google.protobuf.Timestamp expirationTime = 7;
- Specified by:
getExpirationTimeOrBuilder
in interfaceSessionInfoOrBuilder
-
getClientsList
public com.google.protobuf.ProtocolStringList getClientsList()repeated string clients = 8;
- Specified by:
getClientsList
in interfaceSessionInfoOrBuilder
- Returns:
- A list containing the clients.
-
getClientsCount
public int getClientsCount()repeated string clients = 8;
- Specified by:
getClientsCount
in interfaceSessionInfoOrBuilder
- Returns:
- The count of clients.
-
getClients
repeated string clients = 8;
- Specified by:
getClients
in interfaceSessionInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The clients at the given index.
-
getClientsBytes
public com.google.protobuf.ByteString getClientsBytes(int index) repeated string clients = 8;
- Specified by:
getClientsBytes
in interfaceSessionInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the clients at the given index.
-
setClients
repeated string clients = 8;
- Parameters:
index
- The index to set the value at.value
- The clients to set.- Returns:
- This builder for chaining.
-
addClients
repeated string clients = 8;
- Parameters:
value
- The clients to add.- Returns:
- This builder for chaining.
-
addAllClients
repeated string clients = 8;
- Parameters:
values
- The clients to add.- Returns:
- This builder for chaining.
-
clearClients
repeated string clients = 8;
- Returns:
- This builder for chaining.
-
addClientsBytes
repeated string clients = 8;
- Parameters:
value
- The bytes of the clients to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SessionInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionInfo.Builder>
-
mergeUnknownFields
public final SessionInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SessionInfo.Builder>
-