Skip to content

Commit

Permalink
Auto-generate files after cl/623630219
Browse files Browse the repository at this point in the history
  • Loading branch information
protobuf-team-bot committed Apr 10, 2024
1 parent b3b4497 commit 22c1178
Show file tree
Hide file tree
Showing 2 changed files with 195 additions and 30 deletions.
225 changes: 195 additions & 30 deletions csharp/src/Google.Protobuf.Test.TestProtos/UnittestFeatures.pb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,40 +29,49 @@ static UnittestFeaturesReflection() {
"c3NhZ2UaTQoGTmVzdGVkMkMKC3Rlc3RfbmVzdGVkEhsuZ29vZ2xlLnByb3Rv",
"YnVmLkZlYXR1cmVTZXQYjU4gASgLMhAucGIuVGVzdEZlYXR1cmVzMkQKDHRl",
"c3RfbWVzc2FnZRIbLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0GI5OIAEo",
"CzIQLnBiLlRlc3RGZWF0dXJlcyLOBwoMVGVzdEZlYXR1cmVzEnUKDGZpbGVf",
"ZmVhdHVyZRgBIAEoDjIPLnBiLkVudW1GZWF0dXJlQk6IAQGYAQGiAQsSBlZB",
"TFVFMRjmB6IBCxIGVkFMVUUyGOcHogELEgZWQUxVRTMY6AeiAQwSBlZBTFVF",
"NBidjQaiAQwSBlZBTFVFNRiejQYSRgoXZXh0ZW5zaW9uX3JhbmdlX2ZlYXR1",
"cmUYAiABKA4yDy5wYi5FbnVtRmVhdHVyZUIUiAEBmAECogELEgZWQUxVRTEY",
"5gcSPgoPbWVzc2FnZV9mZWF0dXJlGAMgASgOMg8ucGIuRW51bUZlYXR1cmVC",
"FIgBAZgBA6IBCxIGVkFMVUUxGOYHEjwKDWZpZWxkX2ZlYXR1cmUYBCABKA4y",
"Dy5wYi5FbnVtRmVhdHVyZUIUiAEBmAEEogELEgZWQUxVRTEY5gcSPAoNb25l",
"b2ZfZmVhdHVyZRgFIAEoDjIPLnBiLkVudW1GZWF0dXJlQhSIAQGYAQWiAQsS",
"BlZBTFVFMRjmBxI7CgxlbnVtX2ZlYXR1cm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jmByDoByrm",
"AQoLRW51bUZlYXR1cmUSHQoZVEVTVF9FTlVNX0ZFQVRVUkVfVU5LTk9XThAA",
"EgoKBlZBTFVFMRABEgoKBlZBTFVFMhACEgoKBlZBTFVFMxADEgoKBlZBTFVF",
"NBAEEgoKBlZBTFVFNRAFEgoKBlZBTFVFNhAGEgoKBlZBTFVFNxAHEgoKBlZB",
"TFVFOBAIEgoKBlZBTFVFORAJEgsKB1ZBTFVFMTAQChILCgdWQUxVRTExEAsS",
"CwoHVkFMVUUxMhAMEgsKB1ZBTFVFMTMQDRILCgdWQUxVRTE0EA4SCwoHVkFM",
"VUUxNRAPOjwKBHRlc3QSGy5nb29nbGUucHJvdG9idWYuRmVhdHVyZVNldBiP",
"TiABKAsyEC5wYi5UZXN0RmVhdHVyZXM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Pb.EnumFeature), }, new pb::Extension[] { UnittestFeaturesExtensions.Test }, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.TestMessage), global::Pb.TestMessage.Parser, null, null, null, new pb::Extension[] { global::Pb.TestMessage.Extensions.TestMessage }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Pb.TestMessage.Types.Nested), global::Pb.TestMessage.Types.Nested.Parser, null, null, null, new pb::Extension[] { global::Pb.TestMessage.Types.Nested.Extensions.TestNested }, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.TestFeatures), global::Pb.TestFeatures.Parser, new[]{ "FileFeature", "ExtensionRangeFeature", "MessageFeature", "FieldFeature", "OneofFeature", "EnumFeature", "EnumEntryFeature", "ServiceFeature", "MethodFeature", "MultipleFeature", "BoolFieldFeature", "SourceFeature", "SourceFeature2" }, null, null, null, null)
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.TestFeatures), global::Pb.TestFeatures.Parser, new[]{ "FileFeature", "ExtensionRangeFeature", "MessageFeature", "FieldFeature", "OneofFeature", "EnumFeature", "EnumEntryFeature", "ServiceFeature", "MethodFeature", "MultipleFeature", "BoolFieldFeature", "SourceFeature", "SourceFeature2", "RemovedFeature", "FutureFeature", "LegacyFeature" }, null, null, null, null)
}));
}
#endregion
Expand Down Expand Up @@ -497,6 +506,9 @@ public TestFeatures(TestFeatures other) : this() {
boolFieldFeature_ = other.boolFieldFeature_;
sourceFeature_ = other.sourceFeature_;
sourceFeature2_ = other.sourceFeature2_;
removedFeature_ = other.removedFeature_;
futureFeature_ = other.futureFeature_;
legacyFeature_ = other.legacyFeature_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -857,6 +869,87 @@ public void ClearSourceFeature2() {
_hasBits0 &= ~4096;
}

/// <summary>Field number for the "removed_feature" field.</summary>
public const int RemovedFeatureFieldNumber = 17;
private readonly static global::Pb.EnumFeature RemovedFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown;

private global::Pb.EnumFeature removedFeature_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Pb.EnumFeature RemovedFeature {
get { if ((_hasBits0 & 8192) != 0) { return removedFeature_; } else { return RemovedFeatureDefaultValue; } }
set {
_hasBits0 |= 8192;
removedFeature_ = value;
}
}
/// <summary>Gets whether the "removed_feature" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasRemovedFeature {
get { return (_hasBits0 & 8192) != 0; }
}
/// <summary>Clears the value of the "removed_feature" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearRemovedFeature() {
_hasBits0 &= ~8192;
}

/// <summary>Field number for the "future_feature" field.</summary>
public const int FutureFeatureFieldNumber = 18;
private readonly static global::Pb.EnumFeature FutureFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown;

private global::Pb.EnumFeature futureFeature_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Pb.EnumFeature FutureFeature {
get { if ((_hasBits0 & 16384) != 0) { return futureFeature_; } else { return FutureFeatureDefaultValue; } }
set {
_hasBits0 |= 16384;
futureFeature_ = value;
}
}
/// <summary>Gets whether the "future_feature" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasFutureFeature {
get { return (_hasBits0 & 16384) != 0; }
}
/// <summary>Clears the value of the "future_feature" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearFutureFeature() {
_hasBits0 &= ~16384;
}

/// <summary>Field number for the "legacy_feature" field.</summary>
public const int LegacyFeatureFieldNumber = 19;
private readonly static global::Pb.EnumFeature LegacyFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown;

private global::Pb.EnumFeature legacyFeature_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Pb.EnumFeature LegacyFeature {
get { if ((_hasBits0 & 32768) != 0) { return legacyFeature_; } else { return LegacyFeatureDefaultValue; } }
set {
_hasBits0 |= 32768;
legacyFeature_ = value;
}
}
/// <summary>Gets whether the "legacy_feature" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasLegacyFeature {
get { return (_hasBits0 & 32768) != 0; }
}
/// <summary>Clears the value of the "legacy_feature" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearLegacyFeature() {
_hasBits0 &= ~32768;
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
Expand Down Expand Up @@ -885,6 +978,9 @@ public bool Equals(TestFeatures other) {
if (BoolFieldFeature != other.BoolFieldFeature) return false;
if (SourceFeature != other.SourceFeature) return false;
if (SourceFeature2 != other.SourceFeature2) return false;
if (RemovedFeature != other.RemovedFeature) return false;
if (FutureFeature != other.FutureFeature) return false;
if (LegacyFeature != other.LegacyFeature) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand All @@ -905,6 +1001,9 @@ public override int GetHashCode() {
if (HasBoolFieldFeature) hash ^= BoolFieldFeature.GetHashCode();
if (HasSourceFeature) hash ^= SourceFeature.GetHashCode();
if (HasSourceFeature2) hash ^= SourceFeature2.GetHashCode();
if (HasRemovedFeature) hash ^= RemovedFeature.GetHashCode();
if (HasFutureFeature) hash ^= FutureFeature.GetHashCode();
if (HasLegacyFeature) hash ^= LegacyFeature.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -975,6 +1074,18 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(128, 1);
output.WriteEnum((int) SourceFeature2);
}
if (HasRemovedFeature) {
output.WriteRawTag(136, 1);
output.WriteEnum((int) RemovedFeature);
}
if (HasFutureFeature) {
output.WriteRawTag(144, 1);
output.WriteEnum((int) FutureFeature);
}
if (HasLegacyFeature) {
output.WriteRawTag(152, 1);
output.WriteEnum((int) LegacyFeature);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand Down Expand Up @@ -1037,6 +1148,18 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(128, 1);
output.WriteEnum((int) SourceFeature2);
}
if (HasRemovedFeature) {
output.WriteRawTag(136, 1);
output.WriteEnum((int) RemovedFeature);
}
if (HasFutureFeature) {
output.WriteRawTag(144, 1);
output.WriteEnum((int) FutureFeature);
}
if (HasLegacyFeature) {
output.WriteRawTag(152, 1);
output.WriteEnum((int) LegacyFeature);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand Down Expand Up @@ -1086,6 +1209,15 @@ public int CalculateSize() {
if (HasSourceFeature2) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SourceFeature2);
}
if (HasRemovedFeature) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RemovedFeature);
}
if (HasFutureFeature) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FutureFeature);
}
if (HasLegacyFeature) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) LegacyFeature);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand Down Expand Up @@ -1137,6 +1269,15 @@ public void MergeFrom(TestFeatures other) {
if (other.HasSourceFeature2) {
SourceFeature2 = other.SourceFeature2;
}
if (other.HasRemovedFeature) {
RemovedFeature = other.RemovedFeature;
}
if (other.HasFutureFeature) {
FutureFeature = other.FutureFeature;
}
if (other.HasLegacyFeature) {
LegacyFeature = other.LegacyFeature;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -1208,6 +1349,18 @@ public void MergeFrom(pb::CodedInputStream input) {
SourceFeature2 = (global::Pb.EnumFeature) input.ReadEnum();
break;
}
case 136: {
RemovedFeature = (global::Pb.EnumFeature) input.ReadEnum();
break;
}
case 144: {
FutureFeature = (global::Pb.EnumFeature) input.ReadEnum();
break;
}
case 152: {
LegacyFeature = (global::Pb.EnumFeature) input.ReadEnum();
break;
}
}
}
#endif
Expand Down Expand Up @@ -1279,6 +1432,18 @@ public void MergeFrom(pb::CodedInputStream input) {
SourceFeature2 = (global::Pb.EnumFeature) input.ReadEnum();
break;
}
case 136: {
RemovedFeature = (global::Pb.EnumFeature) input.ReadEnum();
break;
}
case 144: {
FutureFeature = (global::Pb.EnumFeature) input.ReadEnum();
break;
}
case 152: {
LegacyFeature = (global::Pb.EnumFeature) input.ReadEnum();
break;
}
}
}
}
Expand Down
Binary file modified csharp/src/Google.Protobuf.Test/testprotos.pb
Binary file not shown.

0 comments on commit 22c1178

Please sign in to comment.