Skip to content

Commit

Permalink
- field ReplyRequest.is_fold_comment_req and `ReplyResponse.has_fol…
Browse files Browse the repository at this point in the history
…d_comment` due to lumina37/aiotieba#123 (comment) @ tbm & interested
  • Loading branch information
n0099 committed May 19, 2023
1 parent b4941a8 commit 5d66404
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 152 deletions.
1 change: 0 additions & 1 deletion interested/Api/Request/ReplyRequest.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ message ReplyRequest {
Common common = 25;
int32 is_jumpfloor = 34;
int32 jumpfloor_num = 35;
int32 is_fold_comment_req = 78;
};
Data data = 1;
}
1 change: 0 additions & 1 deletion interested/Api/Response/ReplyResponse.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ message ReplyResponse {
repeated tbClient.post.Reply post_list = 6;
tbClient.post.common.Lbs location = 9;
repeated User user_list = 13;
int32 has_fold_comment = 68;
};
Data data = 2;
}
1 change: 0 additions & 1 deletion tbm/Api/Request/ReplyRequest.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ message ReplyRequest {
int32 rn = 13;
int32 pn = 18;
Common common = 25;
int32 is_fold_comment_req = 78;
};
Data data = 1;
}
1 change: 0 additions & 1 deletion tbm/Api/Response/ReplyResponse.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ message ReplyResponse {
tbClient.forum.SimpleForum forum = 2;
repeated tbClient.post.Reply post_list = 6;
repeated User user_list = 13;
int32 has_fold_comment = 68;
};
Data data = 2;
}
46 changes: 4 additions & 42 deletions tbm_cs/Api/Request/ReplyRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ static ReplyRequestReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ch5BcGkvUmVxdWVzdC9SZXBseVJlcXVlc3QucHJvdG8SFHRiQ2xpZW50LmFw",
"aS5yZXF1ZXN0GhhBcGkvUmVxdWVzdC9Db21tb24ucHJvdG8ivAEKDFJlcGx5",
"aS5yZXF1ZXN0GhhBcGkvUmVxdWVzdC9Db21tb24ucHJvdG8inwEKDFJlcGx5",
"UmVxdWVzdBI1CgRkYXRhGAEgASgLMicudGJDbGllbnQuYXBpLnJlcXVlc3Qu",
"UmVwbHlSZXF1ZXN0LkRhdGEadQoERGF0YRIKCgJrehgEIAEoAxIKCgJybhgN",
"UmVwbHlSZXF1ZXN0LkRhdGEaWAoERGF0YRIKCgJrehgEIAEoAxIKCgJybhgN",
"IAEoBRIKCgJwbhgSIAEoBRIsCgZjb21tb24YGSABKAsyHC50YkNsaWVudC5h",
"cGkucmVxdWVzdC5Db21tb24SGwoTaXNfZm9sZF9jb21tZW50X3JlcRhOIAEo",
"BWIGcHJvdG8z"));
"cGkucmVxdWVzdC5Db21tb25iBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::TbClient.Api.Request.CommonReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::TbClient.Api.Request.ReplyRequest), global::TbClient.Api.Request.ReplyRequest.Parser, new[]{ "Data" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::TbClient.Api.Request.ReplyRequest.Types.Data), global::TbClient.Api.Request.ReplyRequest.Types.Data.Parser, new[]{ "Kz", "Rn", "Pn", "Common", "IsFoldCommentReq" }, null, null, null, null)})
new pbr::GeneratedClrTypeInfo(typeof(global::TbClient.Api.Request.ReplyRequest), global::TbClient.Api.Request.ReplyRequest.Parser, new[]{ "Data" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::TbClient.Api.Request.ReplyRequest.Types.Data), global::TbClient.Api.Request.ReplyRequest.Types.Data.Parser, new[]{ "Kz", "Rn", "Pn", "Common" }, null, null, null, null)})
}));
}
#endregion
Expand Down Expand Up @@ -280,7 +279,6 @@ public Data(Data other) : this() {
rn_ = other.rn_;
pn_ = other.pn_;
common_ = other.common_ != null ? other.common_.Clone() : null;
isFoldCommentReq_ = other.isFoldCommentReq_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -338,18 +336,6 @@ public int Pn {
}
}

/// <summary>Field number for the "is_fold_comment_req" field.</summary>
public const int IsFoldCommentReqFieldNumber = 78;
private int isFoldCommentReq_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int IsFoldCommentReq {
get { return isFoldCommentReq_; }
set {
isFoldCommentReq_ = value;
}
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
Expand All @@ -369,7 +355,6 @@ public bool Equals(Data other) {
if (Rn != other.Rn) return false;
if (Pn != other.Pn) return false;
if (!object.Equals(Common, other.Common)) return false;
if (IsFoldCommentReq != other.IsFoldCommentReq) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand All @@ -381,7 +366,6 @@ public override int GetHashCode() {
if (Rn != 0) hash ^= Rn.GetHashCode();
if (Pn != 0) hash ^= Pn.GetHashCode();
if (common_ != null) hash ^= Common.GetHashCode();
if (IsFoldCommentReq != 0) hash ^= IsFoldCommentReq.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -416,10 +400,6 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(202, 1);
output.WriteMessage(Common);
}
if (IsFoldCommentReq != 0) {
output.WriteRawTag(240, 4);
output.WriteInt32(IsFoldCommentReq);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand All @@ -446,10 +426,6 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(202, 1);
output.WriteMessage(Common);
}
if (IsFoldCommentReq != 0) {
output.WriteRawTag(240, 4);
output.WriteInt32(IsFoldCommentReq);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand All @@ -472,9 +448,6 @@ public int CalculateSize() {
if (common_ != null) {
size += 2 + pb::CodedOutputStream.ComputeMessageSize(Common);
}
if (IsFoldCommentReq != 0) {
size += 2 + pb::CodedOutputStream.ComputeInt32Size(IsFoldCommentReq);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand Down Expand Up @@ -502,9 +475,6 @@ public void MergeFrom(Data other) {
}
Common.MergeFrom(other.Common);
}
if (other.IsFoldCommentReq != 0) {
IsFoldCommentReq = other.IsFoldCommentReq;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -539,10 +509,6 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(Common);
break;
}
case 624: {
IsFoldCommentReq = input.ReadInt32();
break;
}
}
}
#endif
Expand Down Expand Up @@ -577,10 +543,6 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(Common);
break;
}
case 624: {
IsFoldCommentReq = input.ReadInt32();
break;
}
}
}
}
Expand Down
47 changes: 5 additions & 42 deletions tbm_cs/Api/Response/ReplyResponse.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ static ReplyResponseReflection() {
"CiBBcGkvUmVzcG9uc2UvUmVwbHlSZXNwb25zZS5wcm90bxIVdGJDbGllbnQu",
"YXBpLnJlc3BvbnNlGhBQb3N0L1JlcGx5LnByb3RvGhdGb3J1bS9TaW1wbGVG",
"b3J1bS5wcm90bxoLRXJyb3IucHJvdG8aClBhZ2UucHJvdG8aClVzZXIucHJv",
"dG8ioQIKDVJlcGx5UmVzcG9uc2USHgoFZXJyb3IYASABKAsyDy50YkNsaWVu",
"dG8ihwIKDVJlcGx5UmVzcG9uc2USHgoFZXJyb3IYASABKAsyDy50YkNsaWVu",
"dC5FcnJvchI3CgRkYXRhGAIgASgLMikudGJDbGllbnQuYXBpLnJlc3BvbnNl",
"LlJlcGx5UmVzcG9uc2UuRGF0YRq2AQoERGF0YRIcCgRwYWdlGAMgASgLMg4u",
"LlJlcGx5UmVzcG9uc2UuRGF0YRqcAQoERGF0YRIcCgRwYWdlGAMgASgLMg4u",
"dGJDbGllbnQuUGFnZRIqCgVmb3J1bRgCIAEoCzIbLnRiQ2xpZW50LmZvcnVt",
"LlNpbXBsZUZvcnVtEicKCXBvc3RfbGlzdBgGIAMoCzIULnRiQ2xpZW50LnBv",
"c3QuUmVwbHkSIQoJdXNlcl9saXN0GA0gAygLMg4udGJDbGllbnQuVXNlchIY",
"ChBoYXNfZm9sZF9jb21tZW50GEQgASgFYgZwcm90bzM="));
"c3QuUmVwbHkSIQoJdXNlcl9saXN0GA0gAygLMg4udGJDbGllbnQuVXNlcmIG",
"cHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::TbClient.Post.ReplyReflection.Descriptor, global::TbClient.Forum.SimpleForumReflection.Descriptor, global::TbClient.ErrorReflection.Descriptor, global::TbClient.PageReflection.Descriptor, global::TbClient.UserReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::TbClient.Api.Response.ReplyResponse), global::TbClient.Api.Response.ReplyResponse.Parser, new[]{ "Error", "Data" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::TbClient.Api.Response.ReplyResponse.Types.Data), global::TbClient.Api.Response.ReplyResponse.Types.Data.Parser, new[]{ "Page", "Forum", "PostList", "UserList", "HasFoldComment" }, null, null, null, null)})
new pbr::GeneratedClrTypeInfo(typeof(global::TbClient.Api.Response.ReplyResponse), global::TbClient.Api.Response.ReplyResponse.Parser, new[]{ "Error", "Data" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::TbClient.Api.Response.ReplyResponse.Types.Data), global::TbClient.Api.Response.ReplyResponse.Types.Data.Parser, new[]{ "Page", "Forum", "PostList", "UserList" }, null, null, null, null)})
}));
}
#endregion
Expand Down Expand Up @@ -329,7 +329,6 @@ public Data(Data other) : this() {
forum_ = other.forum_ != null ? other.forum_.Clone() : null;
postList_ = other.postList_.Clone();
userList_ = other.userList_.Clone();
hasFoldComment_ = other.hasFoldComment_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -385,18 +384,6 @@ public Data Clone() {
get { return userList_; }
}

/// <summary>Field number for the "has_fold_comment" field.</summary>
public const int HasFoldCommentFieldNumber = 68;
private int hasFoldComment_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int HasFoldComment {
get { return hasFoldComment_; }
set {
hasFoldComment_ = value;
}
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
Expand All @@ -416,7 +403,6 @@ public bool Equals(Data other) {
if (!object.Equals(Forum, other.Forum)) return false;
if(!postList_.Equals(other.postList_)) return false;
if(!userList_.Equals(other.userList_)) return false;
if (HasFoldComment != other.HasFoldComment) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand All @@ -428,7 +414,6 @@ public override int GetHashCode() {
if (forum_ != null) hash ^= Forum.GetHashCode();
hash ^= postList_.GetHashCode();
hash ^= userList_.GetHashCode();
if (HasFoldComment != 0) hash ^= HasFoldComment.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -457,10 +442,6 @@ public void WriteTo(pb::CodedOutputStream output) {
}
postList_.WriteTo(output, _repeated_postList_codec);
userList_.WriteTo(output, _repeated_userList_codec);
if (HasFoldComment != 0) {
output.WriteRawTag(160, 4);
output.WriteInt32(HasFoldComment);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand All @@ -481,10 +462,6 @@ public void WriteTo(pb::CodedOutputStream output) {
}
postList_.WriteTo(ref output, _repeated_postList_codec);
userList_.WriteTo(ref output, _repeated_userList_codec);
if (HasFoldComment != 0) {
output.WriteRawTag(160, 4);
output.WriteInt32(HasFoldComment);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand All @@ -503,9 +480,6 @@ public int CalculateSize() {
}
size += postList_.CalculateSize(_repeated_postList_codec);
size += userList_.CalculateSize(_repeated_userList_codec);
if (HasFoldComment != 0) {
size += 2 + pb::CodedOutputStream.ComputeInt32Size(HasFoldComment);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand All @@ -532,9 +506,6 @@ public void MergeFrom(Data other) {
}
postList_.Add(other.postList_);
userList_.Add(other.userList_);
if (other.HasFoldComment != 0) {
HasFoldComment = other.HasFoldComment;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -572,10 +543,6 @@ public void MergeFrom(pb::CodedInputStream input) {
userList_.AddEntriesFrom(input, _repeated_userList_codec);
break;
}
case 544: {
HasFoldComment = input.ReadInt32();
break;
}
}
}
#endif
Expand Down Expand Up @@ -613,10 +580,6 @@ public void MergeFrom(pb::CodedInputStream input) {
userList_.AddEntriesFrom(ref input, _repeated_userList_codec);
break;
}
case 544: {
HasFoldComment = input.ReadInt32();
break;
}
}
}
}
Expand Down
9 changes: 4 additions & 5 deletions tbm_php/GPBMetadata/Api/Request/ReplyRequest.php

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

9 changes: 4 additions & 5 deletions tbm_php/GPBMetadata/Api/Response/ReplyResponse.php

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

27 changes: 0 additions & 27 deletions tbm_php/TbClient/Api/Request/ReplyRequest/Data.php

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

Loading

0 comments on commit 5d66404

Please sign in to comment.