Package org.yamcs.protobuf
Class ClientConnectionInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ClientConnectionInfo.Builder>
org.yamcs.protobuf.ClientConnectionInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,ClientConnectionInfoOrBuilder
- Enclosing class:
- ClientConnectionInfo
public static final class ClientConnectionInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ClientConnectionInfo.Builder>
implements ClientConnectionInfoOrBuilder
Protobuf type
yamcs.protobuf.server.ClientConnectionInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
optional bool active = 3;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
clearId()
optional string id = 1;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional bool open = 2;
optional uint64 readBytes = 6;
optional uint64 readThroughput = 8;
optional string remoteAddress = 5;
optional string username = 11;
optional bool writable = 4;
optional uint64 writeThroughput = 9;
optional uint64 writtenBytes = 7;
clone()
boolean
optional bool active = 3;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
getId()
optional string id = 1;
com.google.protobuf.ByteString
optional string id = 1;
boolean
getOpen()
optional bool open = 2;
long
optional uint64 readBytes = 6;
long
optional uint64 readThroughput = 8;
optional string remoteAddress = 5;
com.google.protobuf.ByteString
optional string remoteAddress = 5;
optional string username = 11;
com.google.protobuf.ByteString
optional string username = 11;
boolean
optional bool writable = 4;
long
optional uint64 writeThroughput = 9;
long
optional uint64 writtenBytes = 7;
boolean
optional bool active = 3;
boolean
optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
boolean
hasId()
optional string id = 1;
boolean
hasOpen()
optional bool open = 2;
boolean
optional uint64 readBytes = 6;
boolean
optional uint64 readThroughput = 8;
boolean
optional string remoteAddress = 5;
boolean
optional string username = 11;
boolean
optional bool writable = 4;
boolean
optional uint64 writeThroughput = 9;
boolean
optional uint64 writtenBytes = 7;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ClientConnectionInfo other) optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setActive
(boolean value) optional bool active = 3;
optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
setHttpRequest
(ClientConnectionInfo.HttpRequestInfo.Builder builderForValue) optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
optional string id = 1;
setIdBytes
(com.google.protobuf.ByteString value) optional string id = 1;
setOpen
(boolean value) optional bool open = 2;
setReadBytes
(long value) optional uint64 readBytes = 6;
setReadThroughput
(long value) optional uint64 readThroughput = 8;
setRemoteAddress
(String value) optional string remoteAddress = 5;
setRemoteAddressBytes
(com.google.protobuf.ByteString value) optional string remoteAddress = 5;
setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setUsername
(String value) optional string username = 11;
setUsernameBytes
(com.google.protobuf.ByteString value) optional string username = 11;
setWritable
(boolean value) optional bool writable = 4;
setWriteThroughput
(long value) optional uint64 writeThroughput = 9;
setWrittenBytes
(long value) optional uint64 writtenBytes = 7;
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<ClientConnectionInfo.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<ClientConnectionInfo.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<ClientConnectionInfo.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<ClientConnectionInfo.Builder>
-
setField
public ClientConnectionInfo.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<ClientConnectionInfo.Builder>
-
clearField
public ClientConnectionInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClientConnectionInfo.Builder>
-
clearOneof
public ClientConnectionInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClientConnectionInfo.Builder>
-
setRepeatedField
public ClientConnectionInfo.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<ClientConnectionInfo.Builder>
-
addRepeatedField
public ClientConnectionInfo.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<ClientConnectionInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ClientConnectionInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClientConnectionInfo.Builder>
-
mergeFrom
public ClientConnectionInfo.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<ClientConnectionInfo.Builder>
- Throws:
IOException
-
hasId
public boolean hasId()optional string id = 1;
- Specified by:
hasId
in interfaceClientConnectionInfoOrBuilder
- Returns:
- Whether the id field is set.
-
getId
optional string id = 1;
- Specified by:
getId
in interfaceClientConnectionInfoOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()optional string id = 1;
- Specified by:
getIdBytes
in interfaceClientConnectionInfoOrBuilder
- Returns:
- The bytes for id.
-
setId
optional string id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
optional string id = 1;
- Returns:
- This builder for chaining.
-
setIdBytes
optional string id = 1;
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasOpen
public boolean hasOpen()optional bool open = 2;
- Specified by:
hasOpen
in interfaceClientConnectionInfoOrBuilder
- Returns:
- Whether the open field is set.
-
getOpen
public boolean getOpen()optional bool open = 2;
- Specified by:
getOpen
in interfaceClientConnectionInfoOrBuilder
- Returns:
- The open.
-
setOpen
optional bool open = 2;
- Parameters:
value
- The open to set.- Returns:
- This builder for chaining.
-
clearOpen
optional bool open = 2;
- Returns:
- This builder for chaining.
-
hasActive
public boolean hasActive()optional bool active = 3;
- Specified by:
hasActive
in interfaceClientConnectionInfoOrBuilder
- Returns:
- Whether the active field is set.
-
getActive
public boolean getActive()optional bool active = 3;
- Specified by:
getActive
in interfaceClientConnectionInfoOrBuilder
- Returns:
- The active.
-
setActive
optional bool active = 3;
- Parameters:
value
- The active to set.- Returns:
- This builder for chaining.
-
clearActive
optional bool active = 3;
- Returns:
- This builder for chaining.
-
hasWritable
public boolean hasWritable()optional bool writable = 4;
- Specified by:
hasWritable
in interfaceClientConnectionInfoOrBuilder
- Returns:
- Whether the writable field is set.
-
getWritable
public boolean getWritable()optional bool writable = 4;
- Specified by:
getWritable
in interfaceClientConnectionInfoOrBuilder
- Returns:
- The writable.
-
setWritable
optional bool writable = 4;
- Parameters:
value
- The writable to set.- Returns:
- This builder for chaining.
-
clearWritable
optional bool writable = 4;
- Returns:
- This builder for chaining.
-
hasRemoteAddress
public boolean hasRemoteAddress()optional string remoteAddress = 5;
- Specified by:
hasRemoteAddress
in interfaceClientConnectionInfoOrBuilder
- Returns:
- Whether the remoteAddress field is set.
-
getRemoteAddress
optional string remoteAddress = 5;
- Specified by:
getRemoteAddress
in interfaceClientConnectionInfoOrBuilder
- Returns:
- The remoteAddress.
-
getRemoteAddressBytes
public com.google.protobuf.ByteString getRemoteAddressBytes()optional string remoteAddress = 5;
- Specified by:
getRemoteAddressBytes
in interfaceClientConnectionInfoOrBuilder
- Returns:
- The bytes for remoteAddress.
-
setRemoteAddress
optional string remoteAddress = 5;
- Parameters:
value
- The remoteAddress to set.- Returns:
- This builder for chaining.
-
clearRemoteAddress
optional string remoteAddress = 5;
- Returns:
- This builder for chaining.
-
setRemoteAddressBytes
optional string remoteAddress = 5;
- Parameters:
value
- The bytes for remoteAddress to set.- Returns:
- This builder for chaining.
-
hasReadBytes
public boolean hasReadBytes()optional uint64 readBytes = 6;
- Specified by:
hasReadBytes
in interfaceClientConnectionInfoOrBuilder
- Returns:
- Whether the readBytes field is set.
-
getReadBytes
public long getReadBytes()optional uint64 readBytes = 6;
- Specified by:
getReadBytes
in interfaceClientConnectionInfoOrBuilder
- Returns:
- The readBytes.
-
setReadBytes
optional uint64 readBytes = 6;
- Parameters:
value
- The readBytes to set.- Returns:
- This builder for chaining.
-
clearReadBytes
optional uint64 readBytes = 6;
- Returns:
- This builder for chaining.
-
hasWrittenBytes
public boolean hasWrittenBytes()optional uint64 writtenBytes = 7;
- Specified by:
hasWrittenBytes
in interfaceClientConnectionInfoOrBuilder
- Returns:
- Whether the writtenBytes field is set.
-
getWrittenBytes
public long getWrittenBytes()optional uint64 writtenBytes = 7;
- Specified by:
getWrittenBytes
in interfaceClientConnectionInfoOrBuilder
- Returns:
- The writtenBytes.
-
setWrittenBytes
optional uint64 writtenBytes = 7;
- Parameters:
value
- The writtenBytes to set.- Returns:
- This builder for chaining.
-
clearWrittenBytes
optional uint64 writtenBytes = 7;
- Returns:
- This builder for chaining.
-
hasReadThroughput
public boolean hasReadThroughput()optional uint64 readThroughput = 8;
- Specified by:
hasReadThroughput
in interfaceClientConnectionInfoOrBuilder
- Returns:
- Whether the readThroughput field is set.
-
getReadThroughput
public long getReadThroughput()optional uint64 readThroughput = 8;
- Specified by:
getReadThroughput
in interfaceClientConnectionInfoOrBuilder
- Returns:
- The readThroughput.
-
setReadThroughput
optional uint64 readThroughput = 8;
- Parameters:
value
- The readThroughput to set.- Returns:
- This builder for chaining.
-
clearReadThroughput
optional uint64 readThroughput = 8;
- Returns:
- This builder for chaining.
-
hasWriteThroughput
public boolean hasWriteThroughput()optional uint64 writeThroughput = 9;
- Specified by:
hasWriteThroughput
in interfaceClientConnectionInfoOrBuilder
- Returns:
- Whether the writeThroughput field is set.
-
getWriteThroughput
public long getWriteThroughput()optional uint64 writeThroughput = 9;
- Specified by:
getWriteThroughput
in interfaceClientConnectionInfoOrBuilder
- Returns:
- The writeThroughput.
-
setWriteThroughput
optional uint64 writeThroughput = 9;
- Parameters:
value
- The writeThroughput to set.- Returns:
- This builder for chaining.
-
clearWriteThroughput
optional uint64 writeThroughput = 9;
- Returns:
- This builder for chaining.
-
hasHttpRequest
public boolean hasHttpRequest()optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
- Specified by:
hasHttpRequest
in interfaceClientConnectionInfoOrBuilder
- Returns:
- Whether the httpRequest field is set.
-
getHttpRequest
optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
- Specified by:
getHttpRequest
in interfaceClientConnectionInfoOrBuilder
- Returns:
- The httpRequest.
-
setHttpRequest
optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
-
setHttpRequest
public ClientConnectionInfo.Builder setHttpRequest(ClientConnectionInfo.HttpRequestInfo.Builder builderForValue) optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
-
mergeHttpRequest
optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
-
clearHttpRequest
optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
-
getHttpRequestBuilder
optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
-
getHttpRequestOrBuilder
optional .yamcs.protobuf.server.ClientConnectionInfo.HttpRequestInfo httpRequest = 10;
- Specified by:
getHttpRequestOrBuilder
in interfaceClientConnectionInfoOrBuilder
-
hasUsername
public boolean hasUsername()optional string username = 11;
- Specified by:
hasUsername
in interfaceClientConnectionInfoOrBuilder
- Returns:
- Whether the username field is set.
-
getUsername
optional string username = 11;
- Specified by:
getUsername
in interfaceClientConnectionInfoOrBuilder
- Returns:
- The username.
-
getUsernameBytes
public com.google.protobuf.ByteString getUsernameBytes()optional string username = 11;
- Specified by:
getUsernameBytes
in interfaceClientConnectionInfoOrBuilder
- Returns:
- The bytes for username.
-
setUsername
optional string username = 11;
- Parameters:
value
- The username to set.- Returns:
- This builder for chaining.
-
clearUsername
optional string username = 11;
- Returns:
- This builder for chaining.
-
setUsernameBytes
optional string username = 11;
- Parameters:
value
- The bytes for username to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ClientConnectionInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClientConnectionInfo.Builder>
-
mergeUnknownFields
public final ClientConnectionInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClientConnectionInfo.Builder>
-