1
// Licensed to the Apache Software Foundation (ASF) under one or more
2
// contributor license agreements. See the NOTICE file distributed with
3
// this work for additional information regarding copyright ownership.
4
// The ASF licenses this file to You under the Apache License, Version 2.0
5
// (the "License"); you may not use this file except in compliance with
6
// the License. You may obtain a copy of the License at
8
// http://www.apache.org/licenses/LICENSE-2.0
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
// See the License for the specific language governing permissions and
14
// limitations under the License.
16
"name": "SimpleExampleMessage",
18
"validVersions": "0-2",
19
"flexibleVersions": "1+",
21
{ "name": "processId", "versions": "1+", "type": "uuid" },
22
{ "name": "myTaggedIntArray", "type": "[]int32",
23
"taggedVersions": "1+", "tag": 0 },
24
{ "name": "myNullableString", "type": "string", "default": "null",
25
"nullableVersions": "1+", "taggedVersions": "1+", "tag": 1 },
26
{ "name": "myInt16", "type": "int16", "default": "123",
27
"taggedVersions": "1+", "tag": 2 },
28
{ "name": "myFloat64", "type": "float64", "default": "12.34",
29
"taggedVersions": "1+", "tag": 3 },
30
{ "name": "myString", "type": "string", "taggedVersions": "1+", "tag": 4 },
31
{ "name": "myBytes", "type": "bytes",
32
"nullableVersions": "1+", "taggedVersions": "1+", "tag": 5 },
33
{ "name": "taggedUuid", "type": "uuid", "default": "H3KKO4NTRPaCWtEmm3vW7A",
34
"taggedVersions": "1+", "tag": 6 },
35
{ "name": "taggedLong", "type": "int64", "default": "0xcafcacafcacafca",
36
"taggedVersions": "1+", "tag": 7 },
37
{ "name": "zeroCopyByteBuffer", "versions": "1", "type": "bytes", "zeroCopy": true },
38
{ "name": "nullableZeroCopyByteBuffer", "versions": "1", "nullableVersions": "0+",
39
"type": "bytes", "zeroCopy": true },
40
{ "name": "myStruct", "type": "MyStruct", "versions": "2+", "about": "Test Struct field",
42
{ "name": "structId", "type": "int32", "versions": "2+", "about": "Int field in struct"},
43
{ "name": "arrayInStruct", "type": "[]StructArray", "versions": "2+",
45
{ "name": "arrayFieldId", "type": "int32", "versions": "2+"}
48
{ "name": "myTaggedStruct", "type": "TaggedStruct", "versions": "2+", "about": "Test Tagged Struct field",
49
"taggedVersions": "2+", "tag": 8,
51
{ "name": "structId", "type": "string", "versions": "2+", "about": "String field in struct"}
53
{ "name": "taggedLongFlexibleVersionSubset", "type": "int64", "default": "0", "ignorable": true,
54
"taggedVersions": "2+", "tag": 9 },
55
{ "name": "myCommonStruct", "type": "TestCommonStruct", "versions": "0+"},
56
{ "name": "myOtherCommonStruct", "type": "TestCommonStruct", "versions": "0+"},
57
{ "name": "myUint16", "type": "uint16", "versions": "1+", "default": "33000" },
58
{ "name": "myUint32", "type": "uint32", "versions": "1+", "default": "1234567" }
61
{ "name": "TestCommonStruct", "versions": "0+", "fields": [
62
{ "name": "foo", "type": "int32", "default": "123", "versions": "0+" },
63
{ "name": "bar", "type": "int32", "default": "123", "versions": "0+" }