java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.yamcs.protobuf.ClientMessage
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,ClientMessageOrBuilder
public final class ClientMessage
extends com.google.protobuf.GeneratedMessageV3
implements ClientMessageOrBuilder
Protobuf type
yamcs.api.ClientMessage- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeyamcs.api.ClientMessageNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetCall()If applicable, the call associated with this message This should be used when the client is streaming multiple messages handled by the same call.static ClientMessagestatic final com.google.protobuf.Descriptors.DescriptorintgetId()Optional client-side message identifier, returned in reply messages.booleanIf set to true, permit the server to drop messages if writing the message would cause the channel to exceed the highWaterMark (see https://docs.yamcs.org/yamcs-server-manual/services/global/http-server/) This attribute is only applied when it is set on the first message of a call.intDeprecated.com.google.protobuf.AnyOptions specific to the typecom.google.protobuf.AnyOrBuilderOptions specific to the typecom.google.protobuf.Parser<ClientMessage>intgetType()Message type.com.google.protobuf.ByteStringMessage type.final com.google.protobuf.UnknownFieldSetinthashCode()booleanOptions specific to the typeprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic ClientMessage.Builderstatic ClientMessage.BuildernewBuilder(ClientMessage prototype) protected ClientMessage.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ClientMessageparseDelimitedFrom(InputStream input) static ClientMessageparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClientMessageparseFrom(byte[] data) static ClientMessageparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClientMessageparseFrom(com.google.protobuf.ByteString data) static ClientMessageparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClientMessageparseFrom(com.google.protobuf.CodedInputStream input) static ClientMessageparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClientMessageparseFrom(InputStream input) static ClientMessageparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClientMessageparseFrom(ByteBuffer data) static ClientMessageparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ClientMessage>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER- See Also:
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
CALL_FIELD_NUMBER
public static final int CALL_FIELD_NUMBER- See Also:
-
MAXDROPPEDWRITES_FIELD_NUMBER
public static final int MAXDROPPEDWRITES_FIELD_NUMBER- See Also:
-
LOWPRIORITY_FIELD_NUMBER
public static final int LOWPRIORITY_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
getType
Message type. Typically the name of a topic to subscribe to, or a built-in like "cancel".
string type = 1;- Specified by:
getTypein interfaceClientMessageOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Message type. Typically the name of a topic to subscribe to, or a built-in like "cancel".
string type = 1;- Specified by:
getTypeBytesin interfaceClientMessageOrBuilder- Returns:
- The bytes for type.
-
hasOptions
public boolean hasOptions()Options specific to the type
.google.protobuf.Any options = 2;- Specified by:
hasOptionsin interfaceClientMessageOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
public com.google.protobuf.Any getOptions()Options specific to the type
.google.protobuf.Any options = 2;- Specified by:
getOptionsin interfaceClientMessageOrBuilder- Returns:
- The options.
-
getOptionsOrBuilder
public com.google.protobuf.AnyOrBuilder getOptionsOrBuilder()Options specific to the type
.google.protobuf.Any options = 2;- Specified by:
getOptionsOrBuilderin interfaceClientMessageOrBuilder
-
getId
public int getId()Optional client-side message identifier, returned in reply messages.
int32 id = 3;- Specified by:
getIdin interfaceClientMessageOrBuilder- Returns:
- The id.
-
getCall
public int getCall()If applicable, the call associated with this message This should be used when the client is streaming multiple messages handled by the same call.
int32 call = 4;- Specified by:
getCallin interfaceClientMessageOrBuilder- Returns:
- The call.
-
getMaxDroppedWrites
Deprecated.If set, permit the server to keep a WebSocket connection despite frame writes getting dropped (channel not open or not writable). If unset the default is 0, meaning that if the server can't write a frame, it will close the connection (impacting all calls on that connection). This attribute is only applied when it is set on the first message of a call. Since Yamcs 5.7.6 this option is deprecated in favour of lowPriority below.
int32 maxDroppedWrites = 5 [deprecated = true];- Specified by:
getMaxDroppedWritesin interfaceClientMessageOrBuilder- Returns:
- The maxDroppedWrites.
-
getLowPriority
public boolean getLowPriority()If set to true, permit the server to drop messages if writing the message would cause the channel to exceed the highWaterMark (see https://docs.yamcs.org/yamcs-server-manual/services/global/http-server/) This attribute is only applied when it is set on the first message of a call. Note that if a message exceeds the highWaterMark, with this option set it will always be dropped. A warning will be printed in the Yamcs logs in this case.
bool lowPriority = 6;- Specified by:
getLowPriorityin interfaceClientMessageOrBuilder- Returns:
- The lowPriority.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ClientMessage parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClientMessage parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClientMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClientMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClientMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClientMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ClientMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ClientMessage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ClientMessage parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ClientMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ClientMessage.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-