From 19fcec84d8d7d21e796c7624e521b60d28ee21ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:45:59 +0200 Subject: Adding upstream version 16.2.11+ds. Signed-off-by: Daniel Baumann --- .../netcore/Thrift/Protocols/Entities/TField.cs | 37 +++++++++++++++++++++ .../lib/netcore/Thrift/Protocols/Entities/TList.cs | 33 +++++++++++++++++++ .../lib/netcore/Thrift/Protocols/Entities/TMap.cs | 36 ++++++++++++++++++++ .../netcore/Thrift/Protocols/Entities/TMessage.cs | 37 +++++++++++++++++++++ .../Thrift/Protocols/Entities/TMessageType.cs | 28 ++++++++++++++++ .../lib/netcore/Thrift/Protocols/Entities/TSet.cs | 38 ++++++++++++++++++++++ .../netcore/Thrift/Protocols/Entities/TStruct.cs | 30 +++++++++++++++++ .../lib/netcore/Thrift/Protocols/Entities/TType.cs | 37 +++++++++++++++++++++ 8 files changed, 276 insertions(+) create mode 100644 src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TField.cs create mode 100644 src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TList.cs create mode 100644 src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TMap.cs create mode 100644 src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TMessage.cs create mode 100644 src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TMessageType.cs create mode 100644 src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TSet.cs create mode 100644 src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TStruct.cs create mode 100644 src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TType.cs (limited to 'src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities') diff --git a/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TField.cs b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TField.cs new file mode 100644 index 000000000..d311535e7 --- /dev/null +++ b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TField.cs @@ -0,0 +1,37 @@ +// Licensed to the Apache Software Foundation(ASF) under one +// or more contributor license agreements.See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership.The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +namespace Thrift.Protocols.Entities +{ + // ReSharper disable once InconsistentNaming + public struct TField + { + public TField(string name, TType type, short id) + { + Name = name; + Type = type; + ID = id; + } + + public string Name { get; set; } + + public TType Type { get; set; } + + // ReSharper disable once InconsistentNaming - do not rename - it used for generation + public short ID { get; set; } + } +} \ No newline at end of file diff --git a/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TList.cs b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TList.cs new file mode 100644 index 000000000..ce232207c --- /dev/null +++ b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TList.cs @@ -0,0 +1,33 @@ +// Licensed to the Apache Software Foundation(ASF) under one +// or more contributor license agreements.See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership.The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +namespace Thrift.Protocols.Entities +{ + // ReSharper disable once InconsistentNaming + public struct TList + { + public TList(TType elementType, int count) + { + ElementType = elementType; + Count = count; + } + + public TType ElementType { get; set; } + + public int Count { get; set; } + } +} \ No newline at end of file diff --git a/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TMap.cs b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TMap.cs new file mode 100644 index 000000000..9195593db --- /dev/null +++ b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TMap.cs @@ -0,0 +1,36 @@ +// Licensed to the Apache Software Foundation(ASF) under one +// or more contributor license agreements.See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership.The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +namespace Thrift.Protocols.Entities +{ + // ReSharper disable once InconsistentNaming + public struct TMap + { + public TMap(TType keyType, TType valueType, int count) + { + KeyType = keyType; + ValueType = valueType; + Count = count; + } + + public TType KeyType { get; set; } + + public TType ValueType { get; set; } + + public int Count { get; set; } + } +} \ No newline at end of file diff --git a/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TMessage.cs b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TMessage.cs new file mode 100644 index 000000000..17f49298f --- /dev/null +++ b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TMessage.cs @@ -0,0 +1,37 @@ +// Licensed to the Apache Software Foundation(ASF) under one +// or more contributor license agreements.See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership.The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +namespace Thrift.Protocols.Entities +{ + // ReSharper disable once InconsistentNaming + public struct TMessage + { + public TMessage(string name, TMessageType type, int seqid) + { + Name = name; + Type = type; + SeqID = seqid; + } + + public string Name { get; set; } + + public TMessageType Type { get; set; } + + // ReSharper disable once InconsistentNaming - do not rename - it used for generation + public int SeqID { get; set; } + } +} \ No newline at end of file diff --git a/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TMessageType.cs b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TMessageType.cs new file mode 100644 index 000000000..d7b9a2275 --- /dev/null +++ b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TMessageType.cs @@ -0,0 +1,28 @@ +// Licensed to the Apache Software Foundation(ASF) under one +// or more contributor license agreements.See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership.The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +namespace Thrift.Protocols.Entities +{ + // ReSharper disable once InconsistentNaming + public enum TMessageType + { + Call = 1, + Reply = 2, + Exception = 3, + Oneway = 4 + } +} \ No newline at end of file diff --git a/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TSet.cs b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TSet.cs new file mode 100644 index 000000000..a583b54a6 --- /dev/null +++ b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TSet.cs @@ -0,0 +1,38 @@ +// Licensed to the Apache Software Foundation(ASF) under one +// or more contributor license agreements.See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership.The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +namespace Thrift.Protocols.Entities +{ + // ReSharper disable once InconsistentNaming + public struct TSet + { + public TSet(TType elementType, int count) + { + ElementType = elementType; + Count = count; + } + + public TSet(TList list) + : this(list.ElementType, list.Count) + { + } + + public TType ElementType { get; set; } + + public int Count { get; set; } + } +} \ No newline at end of file diff --git a/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TStruct.cs b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TStruct.cs new file mode 100644 index 000000000..a28dcc3d0 --- /dev/null +++ b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TStruct.cs @@ -0,0 +1,30 @@ +// Licensed to the Apache Software Foundation(ASF) under one +// or more contributor license agreements.See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership.The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +namespace Thrift.Protocols.Entities +{ + // ReSharper disable once InconsistentNaming + public struct TStruct + { + public TStruct(string name) + { + Name = name; + } + + public string Name { get; set; } + } +} \ No newline at end of file diff --git a/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TType.cs b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TType.cs new file mode 100644 index 000000000..ebe781c95 --- /dev/null +++ b/src/jaegertracing/thrift/lib/netcore/Thrift/Protocols/Entities/TType.cs @@ -0,0 +1,37 @@ +// Licensed to the Apache Software Foundation(ASF) under one +// or more contributor license agreements.See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership.The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +namespace Thrift.Protocols.Entities +{ + // ReSharper disable once InconsistentNaming + public enum TType : byte + { + Stop = 0, + Void = 1, + Bool = 2, + Byte = 3, + Double = 4, + I16 = 6, + I32 = 8, + I64 = 10, + String = 11, + Struct = 12, + Map = 13, + Set = 14, + List = 15 + } +} \ No newline at end of file -- cgit v1.2.3