Skip to content

Commit

Permalink
Auto-generate files after cl/672710484
Browse files Browse the repository at this point in the history
  • Loading branch information
protobuf-team-bot committed Sep 9, 2024
1 parent 0b6e768 commit 960b5ba
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 15 deletions.
101 changes: 86 additions & 15 deletions csharp/src/Google.Protobuf.Test.TestProtos/UnittestFeatures.pb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static UnittestFeaturesReflection() {
"c3NhZ2UaTQoGTmVzdGVkMkMKC3Rlc3RfbmVzdGVkEhsuZ29vZ2xlLnByb3Rv",
"YnVmLkZlYXR1cmVTZXQYjU4gASgLMhAucGIuVGVzdEZlYXR1cmVzMkQKDHRl",
"c3RfbWVzc2FnZRIbLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0GI5OIAEo",
"CzIQLnBiLlRlc3RGZWF0dXJlcyLbCgoMVGVzdEZlYXR1cmVzEnsKDGZpbGVf",
"CzIQLnBiLlRlc3RGZWF0dXJlcyKsDAoMVGVzdEZlYXR1cmVzEnsKDGZpbGVf",
"ZmVhdHVyZRgBIAEoDjIPLnBiLkVudW1GZWF0dXJlQlSIAQGYAQGiAQsSBlZB",
"TFVFMRiEB6IBCxIGVkFMVUUyGOcHogELEgZWQUxVRTMY6AeiAQwSBlZBTFVF",
"NBidjQaiAQwSBlZBTFVFNRiejQayAQMI6AcSTAoXZXh0ZW5zaW9uX3Jhbmdl",
Expand Down Expand Up @@ -59,21 +59,32 @@ static UnittestFeaturesReflection() {
"IOkHElQKDmZ1dHVyZV9mZWF0dXJlGBIgASgOMg8ucGIuRW51bUZlYXR1cmVC",
"K4gBAZgBAZgBBKIBCxIGVkFMVUUxGIQHogELEgZWQUxVRTIY6QeyAQMI6QcS",
"VwoObGVnYWN5X2ZlYXR1cmUYEyABKA4yDy5wYi5FbnVtRmVhdHVyZUIuiAEB",
"mAEBmAEEogELEgZWQUxVRTEYhAeiAQsSBlZBTFVFMhjoB7IBBgjnByD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MVUU1EAUS",
"CgoGVkFMVUU2EAYSCgoGVkFMVUU3EAcSCgoGVkFMVUU4EAgSCgoGVkFMVUU5",
"EAkSCwoHVkFMVUUxMBAKEgsKB1ZBTFVFMTEQCxILCgdWQUxVRTEyEAwSCwoH",
"VkFMVUUxMxANEgsKB1ZBTFVFMTQQDhILCgdWQUxVRTE1EA8q4AIKFFZhbHVl",
"TGlmZXRpbWVGZWF0dXJlEh8KG1RFU1RfVkFMVUVfTElGRVRJTUVfVU5LTk9X",
"ThAAEhwKGFZBTFVFX0xJRkVUSU1FX0lOSEVSSVRFRBABEk4KFlZBTFVFX0xJ",
"RkVUSU1FX1NVUFBPUlQQAhoyIjAInY0GEJ6NBhoiQ3VzdG9tIGZlYXR1cmUg",
"ZGVwcmVjYXRpb24gd2FybmluZyCfjQYSJAocVkFMVUVfTElGRVRJTUVfRU1Q",
"VFlfU1VQUE9SVBADGgIiABIhChVWQUxVRV9MSUZFVElNRV9GVVRVUkUQBBoG",
"IgQInY0GEkkKGVZBTFVFX0xJRkVUSU1FX0RFUFJFQ0FURUQQBRoqIigQnY0G",
"GiJDdXN0b20gZmVhdHVyZSBkZXByZWNhdGlvbiB3YXJuaW5nEiUKFlZBTFVF",
"X0xJRkVUSU1FX1JFTU9WRUQQBhoJIgcQ6AcgnY0GOjwKBHRlc3QSGy5nb29n",
"bGUucHJvdG9idWYuRmVhdHVyZVNldBiPTiABKAsyEC5wYi5UZXN0RmVhdHVy",
"ZXNiCGVkaXRpb25zcOgH"));
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(new[] {typeof(global::Pb.EnumFeature), typeof(global::Pb.ValueLifetimeFeature), }, 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", "RemovedFeature", "FutureFeature", "LegacyFeature" }, 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", "ValueLifetimeFeature" }, null, null, null, null)
}));
}
#endregion
Expand Down Expand Up @@ -103,8 +114,16 @@ public enum EnumFeature {
[pbr::OriginalName("VALUE13")] Value13 = 13,
[pbr::OriginalName("VALUE14")] Value14 = 14,
[pbr::OriginalName("VALUE15")] Value15 = 15,
[pbr::OriginalName("VALUE_EMPTY_SUPPORT")] ValueEmptySupport = 98,
[pbr::OriginalName("VALUE_FUTURE")] ValueFuture = 99,
}

public enum ValueLifetimeFeature {
[pbr::OriginalName("TEST_VALUE_LIFETIME_UNKNOWN")] TestValueLifetimeUnknown = 0,
[pbr::OriginalName("VALUE_LIFETIME_INHERITED")] ValueLifetimeInherited = 1,
[pbr::OriginalName("VALUE_LIFETIME_SUPPORT")] ValueLifetimeSupport = 2,
[pbr::OriginalName("VALUE_LIFETIME_EMPTY_SUPPORT")] ValueLifetimeEmptySupport = 3,
[pbr::OriginalName("VALUE_LIFETIME_FUTURE")] ValueLifetimeFuture = 4,
[pbr::OriginalName("VALUE_LIFETIME_DEPRECATED")] ValueLifetimeDeprecated = 5,
[pbr::OriginalName("VALUE_LIFETIME_REMOVED")] ValueLifetimeRemoved = 6,
}

#endregion
Expand Down Expand Up @@ -513,6 +532,7 @@ public TestFeatures(TestFeatures other) : this() {
removedFeature_ = other.removedFeature_;
futureFeature_ = other.futureFeature_;
legacyFeature_ = other.legacyFeature_;
valueLifetimeFeature_ = other.valueLifetimeFeature_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -954,6 +974,33 @@ public void ClearLegacyFeature() {
_hasBits0 &= ~32768;
}

/// <summary>Field number for the "value_lifetime_feature" field.</summary>
public const int ValueLifetimeFeatureFieldNumber = 20;
private readonly static global::Pb.ValueLifetimeFeature ValueLifetimeFeatureDefaultValue = global::Pb.ValueLifetimeFeature.TestValueLifetimeUnknown;

private global::Pb.ValueLifetimeFeature valueLifetimeFeature_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Pb.ValueLifetimeFeature ValueLifetimeFeature {
get { if ((_hasBits0 & 65536) != 0) { return valueLifetimeFeature_; } else { return ValueLifetimeFeatureDefaultValue; } }
set {
_hasBits0 |= 65536;
valueLifetimeFeature_ = value;
}
}
/// <summary>Gets whether the "value_lifetime_feature" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasValueLifetimeFeature {
get { return (_hasBits0 & 65536) != 0; }
}
/// <summary>Clears the value of the "value_lifetime_feature" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearValueLifetimeFeature() {
_hasBits0 &= ~65536;
}

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

Expand All @@ -1008,6 +1056,7 @@ public override int GetHashCode() {
if (HasRemovedFeature) hash ^= RemovedFeature.GetHashCode();
if (HasFutureFeature) hash ^= FutureFeature.GetHashCode();
if (HasLegacyFeature) hash ^= LegacyFeature.GetHashCode();
if (HasValueLifetimeFeature) hash ^= ValueLifetimeFeature.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -1090,6 +1139,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(152, 1);
output.WriteEnum((int) LegacyFeature);
}
if (HasValueLifetimeFeature) {
output.WriteRawTag(160, 1);
output.WriteEnum((int) ValueLifetimeFeature);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand Down Expand Up @@ -1164,6 +1217,10 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(152, 1);
output.WriteEnum((int) LegacyFeature);
}
if (HasValueLifetimeFeature) {
output.WriteRawTag(160, 1);
output.WriteEnum((int) ValueLifetimeFeature);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand Down Expand Up @@ -1222,6 +1279,9 @@ public int CalculateSize() {
if (HasLegacyFeature) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) LegacyFeature);
}
if (HasValueLifetimeFeature) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ValueLifetimeFeature);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand Down Expand Up @@ -1282,6 +1342,9 @@ public void MergeFrom(TestFeatures other) {
if (other.HasLegacyFeature) {
LegacyFeature = other.LegacyFeature;
}
if (other.HasValueLifetimeFeature) {
ValueLifetimeFeature = other.ValueLifetimeFeature;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}

Expand Down Expand Up @@ -1365,6 +1428,10 @@ public void MergeFrom(pb::CodedInputStream input) {
LegacyFeature = (global::Pb.EnumFeature) input.ReadEnum();
break;
}
case 160: {
ValueLifetimeFeature = (global::Pb.ValueLifetimeFeature) input.ReadEnum();
break;
}
}
}
#endif
Expand Down Expand Up @@ -1448,6 +1515,10 @@ public void MergeFrom(pb::CodedInputStream input) {
LegacyFeature = (global::Pb.EnumFeature) input.ReadEnum();
break;
}
case 160: {
ValueLifetimeFeature = (global::Pb.ValueLifetimeFeature) input.ReadEnum();
break;
}
}
}
}
Expand Down
Binary file modified csharp/src/Google.Protobuf.Test/testprotos.pb
Binary file not shown.

0 comments on commit 960b5ba

Please sign in to comment.