Skip to content

Commit

Permalink
$ ./protoc.sh tbm php cs
Browse files Browse the repository at this point in the history
  • Loading branch information
n0099 committed Dec 29, 2022
1 parent b481df3 commit 2e20f38
Show file tree
Hide file tree
Showing 10 changed files with 836 additions and 483 deletions.
456 changes: 456 additions & 0 deletions tbm_cs/Post/Common/Abstract.g.cs

Large diffs are not rendered by default.

461 changes: 20 additions & 441 deletions tbm_cs/Post/Thread.g.cs

Large diffs are not rendered by default.

223 changes: 223 additions & 0 deletions tbm_cs/Wrapper/ThreadAbstractWrapper.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Wrapper/ThreadAbstractWrapper.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021, 8981
#region Designer generated code

using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace TbClient.Wrapper {

/// <summary>Holder for reflection information generated from Wrapper/ThreadAbstractWrapper.proto</summary>
public static partial class ThreadAbstractWrapperReflection {

#region Descriptor
/// <summary>File descriptor for Wrapper/ThreadAbstractWrapper.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;

static ThreadAbstractWrapperReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiNXcmFwcGVyL1RocmVhZEFic3RyYWN0V3JhcHBlci5wcm90bxIQdGJDbGll",
"bnQud3JhcHBlchoaUG9zdC9Db21tb24vQWJzdHJhY3QucHJvdG8iRgoVVGhy",
"ZWFkQWJzdHJhY3RXcmFwcGVyEi0KBXZhbHVlGAEgAygLMh4udGJDbGllbnQu",
"cG9zdC5jb21tb24uQWJzdHJhY3RiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::TbClient.Post.Common.AbstractReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::TbClient.Wrapper.ThreadAbstractWrapper), global::TbClient.Wrapper.ThreadAbstractWrapper.Parser, new[]{ "Value" }, null, null, null, null)
}));
}
#endregion

}
#region Messages
public sealed partial class ThreadAbstractWrapper : pb::IMessage<ThreadAbstractWrapper>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ThreadAbstractWrapper> _parser = new pb::MessageParser<ThreadAbstractWrapper>(() => new ThreadAbstractWrapper());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ThreadAbstractWrapper> Parser { get { return _parser; } }

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::TbClient.Wrapper.ThreadAbstractWrapperReflection.Descriptor.MessageTypes[0]; }
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ThreadAbstractWrapper() {
OnConstruction();
}

partial void OnConstruction();

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ThreadAbstractWrapper(ThreadAbstractWrapper other) : this() {
value_ = other.value_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ThreadAbstractWrapper Clone() {
return new ThreadAbstractWrapper(this);
}

/// <summary>Field number for the "value" field.</summary>
public const int ValueFieldNumber = 1;
private static readonly pb::FieldCodec<global::TbClient.Post.Common.Abstract> _repeated_value_codec
= pb::FieldCodec.ForMessage(10, global::TbClient.Post.Common.Abstract.Parser);
private readonly pbc::RepeatedField<global::TbClient.Post.Common.Abstract> value_ = new pbc::RepeatedField<global::TbClient.Post.Common.Abstract>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::TbClient.Post.Common.Abstract> Value {
get { return value_; }
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ThreadAbstractWrapper);
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ThreadAbstractWrapper other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!value_.Equals(other.value_)) return false;
return Equals(_unknownFields, other._unknownFields);
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= value_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
value_.WriteTo(output, _repeated_value_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}

#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
value_.WriteTo(ref output, _repeated_value_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += value_.CalculateSize(_repeated_value_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ThreadAbstractWrapper other) {
if (other == null) {
return;
}
value_.Add(other.value_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
value_.AddEntriesFrom(input, _repeated_value_codec);
break;
}
}
}
#endif
}

#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
value_.AddEntriesFrom(ref input, _repeated_value_codec);
break;
}
}
}
}
#endif

}

#endregion

}

#endregion Designer generated code
35 changes: 35 additions & 0 deletions tbm_php/GPBMetadata/Post/Common/PBAbstract.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 5 additions & 13 deletions tbm_php/GPBMetadata/Post/Thread.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions tbm_php/GPBMetadata/Wrapper/ThreadAbstractWrapper.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2e20f38

Please sign in to comment.