-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
836 additions
and
483 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
11 changes: 4 additions & 7 deletions
11
tbm_php/TbClient/Post/Thread/PBAbstract.php → tbm_php/TbClient/Post/Common/PBAbstract.php
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.