Message which are capable of handling dynamic data types.
This is not the preferred way of using RST, but cannot be avoided in certain cases. If possible, use semantically-defined data types.
Represents a call to a named method with multiple <Could not resolve reference to Value> as arguments.
Code author: Johannes Wienke <jwienke@techfak.uni-bielefeld.de>
Type : | OCTET-VECTOR |
---|
Name of the method to call.
ASCII string.
Type : | array of rst.generic.Value |
---|
The method arguments.
message MethodCall {
/**
* Name of the method to call.
*
* ASCII string.
*/
required bytes name = 1;
/**
* The method arguments.
*/
repeated Value arguments = 2;
}
A list of key-value pairs.
Code author: Arne Nordmann <anordman@techfak.uni-bielefeld.de>
Type : | array of rst.generic.KeyValuePair |
---|
The list of key-value pairs.
Ordering is ignored and duplicated keys must be avoided.
message Dictionary {
/**
* The list of key-value pairs.
*
* Ordering is ignored and duplicated keys must be avoided.
*/
repeated KeyValuePair entries = 1;
}
Combines a generic value with an identifying string key.
Code author: Arne Nordmann <anordman@techfak.uni-bielefeld.de>
Type : | ASCII-STRING |
---|
The key of this entry.
Type : | rst.generic.Value |
---|
The value.
message KeyValuePair {
/**
* The key of this entry.
*/
required string key = 1;
/**
* The value.
*/
required Value value = 2;
}
A representation of a generic value with a dynamic type.
Each value has a declared type in type indicating which of the remaining type-specific fields contains the value, expect for VOID, where no value is transported at all (most useful for return types).
Code author: Johannes Wienke <jwienke@techfak.uni-bielefeld.de>
Type : | rst.generic.Value.Type |
---|
The type of the value transported in this message.
Type : | INT64 |
---|
Not documented
Type : | FLOAT64 |
---|
Not documented
Type : | ASCII-STRING |
---|
Not documented
Type : | BOOL |
---|
Not documented
Type : | OCTET-VECTOR |
---|
Not documented
Type : | array of rst.generic.Value |
---|
Contained elements can be of different types and ordering is important.
package rst.generic;
option java_outer_classname = "ValueType";
/**
* A representation of a generic value with a dynamic type.
*
* Each value has a declared type in @ref .type indicating which of the
* remaining type-specific fields contains the value, expect for
* @ref .Type.VOID, where no value is transported at all (most useful for return
* types).
*
* @author Johannes Wienke <jwienke@techfak.uni-bielefeld.de>
*/
message Value {
/**
* The list of supported types.
*/
enum Type {
VOID = 1;
INT = 2;
DOUBLE = 3;
STRING = 4;
BOOL = 5;
BINARY = 6;
/**
* Indicate that a list of Values is contained in @ref Value.array
* representing an array.
*/
ARRAY = 7;
}
/**
* The type of the value transported in this message.
*/
required Type type = 1;
optional int64 int = 2;
optional double double = 3;
optional string string = 4;
optional bool bool = 5;
optional bytes binary = 6;
/**
* Contained elements can be of different types and ordering is important.
*/
repeated Value array = 7;
}
The list of supported types.
Not documented
Not documented
Not documented
Not documented
Not documented
Not documented
Indicate that a list of Values is contained in <Could not resolve reference to Value.array> representing an array.
enum Type {
VOID = 1;
INT = 2;
DOUBLE = 3;
STRING = 4;
BOOL = 5;
BINARY = 6;
/**
* Indicate that a list of Values is contained in @ref Value.array
* representing an array.
*/
ARRAY = 7;
}
Enter search terms or a module, class or function name.