csharptest | 35b6852 | 2011-05-20 12:22:21 -0500 | [diff] [blame] | 1 | // Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT!
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 2 |
|
| 3 | using pb = global::Google.ProtocolBuffers;
|
| 4 | using pbc = global::Google.ProtocolBuffers.Collections;
|
| 5 | using pbd = global::Google.ProtocolBuffers.Descriptors;
|
| 6 | using scg = global::System.Collections.Generic;
|
| 7 | namespace Google.ProtocolBuffers.TestProtos {
|
| 8 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 9 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 10 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 11 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 12 | public static partial class UnitTestEmbedOptimizeForProtoFile {
|
| 13 |
|
| 14 | #region Extension registration
|
| 15 | public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
|
| 16 | }
|
| 17 | #endregion
|
| 18 | #region Static variables
|
| 19 | internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmbedOptimizedForSize__Descriptor;
|
| 20 | internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmbedOptimizedForSize, global::Google.ProtocolBuffers.TestProtos.TestEmbedOptimizedForSize.Builder> internal__static_protobuf_unittest_TestEmbedOptimizedForSize__FieldAccessorTable;
|
| 21 | #endregion
|
| 22 | #region Descriptor
|
| 23 | public static pbd::FileDescriptor Descriptor {
|
| 24 | get { return descriptor; }
|
| 25 | }
|
| 26 | private static pbd::FileDescriptor descriptor;
|
| 27 |
|
| 28 | static UnitTestEmbedOptimizeForProtoFile() {
|
| 29 | byte[] descriptorData = global::System.Convert.FromBase64String(
|
| 30 | "CjFnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfZW1iZWRfb3B0aW1pemVfZm9y" +
|
| 31 | "LnByb3RvEhFwcm90b2J1Zl91bml0dGVzdBokZ29vZ2xlL3Byb3RvYnVmL2Nz" +
|
| 32 | "aGFycF9vcHRpb25zLnByb3RvGitnb29nbGUvcHJvdG9idWYvdW5pdHRlc3Rf" +
|
| 33 | "b3B0aW1pemVfZm9yLnByb3RvIqEBChlUZXN0RW1iZWRPcHRpbWl6ZWRGb3JT" +
|
| 34 | "aXplEkEKEG9wdGlvbmFsX21lc3NhZ2UYASABKAsyJy5wcm90b2J1Zl91bml0" +
|
| 35 | "dGVzdC5UZXN0T3B0aW1pemVkRm9yU2l6ZRJBChByZXBlYXRlZF9tZXNzYWdl" +
|
| 36 | "GAIgAygLMicucHJvdG9idWZfdW5pdHRlc3QuVGVzdE9wdGltaXplZEZvclNp" +
|
| 37 | "emVCS0gBwj5GCiFHb29nbGUuUHJvdG9jb2xCdWZmZXJzLlRlc3RQcm90b3MS" +
|
| 38 | "IVVuaXRUZXN0RW1iZWRPcHRpbWl6ZUZvclByb3RvRmlsZQ==");
|
| 39 | pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
|
| 40 | descriptor = root;
|
| 41 | internal__static_protobuf_unittest_TestEmbedOptimizedForSize__Descriptor = Descriptor.MessageTypes[0];
|
| 42 | internal__static_protobuf_unittest_TestEmbedOptimizedForSize__FieldAccessorTable =
|
| 43 | new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmbedOptimizedForSize, global::Google.ProtocolBuffers.TestProtos.TestEmbedOptimizedForSize.Builder>(internal__static_protobuf_unittest_TestEmbedOptimizedForSize__Descriptor,
|
| 44 | new string[] { "OptionalMessage", "RepeatedMessage", });
|
| 45 | pb::ExtensionRegistry registry = pb::ExtensionRegistry.CreateInstance();
|
| 46 | RegisterAllExtensions(registry);
|
| 47 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.RegisterAllExtensions(registry);
|
| 48 | global::Google.ProtocolBuffers.TestProtos.UnitTestOptimizeForProtoFile.RegisterAllExtensions(registry);
|
| 49 | return registry;
|
| 50 | };
|
| 51 | pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
|
| 52 | new pbd::FileDescriptor[] {
|
| 53 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor,
|
| 54 | global::Google.ProtocolBuffers.TestProtos.UnitTestOptimizeForProtoFile.Descriptor,
|
| 55 | }, assigner);
|
| 56 | }
|
| 57 | #endregion
|
| 58 |
|
| 59 | }
|
| 60 | #region Messages
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 61 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 62 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 63 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 64 | public sealed partial class TestEmbedOptimizedForSize : pb::GeneratedMessage<TestEmbedOptimizedForSize, TestEmbedOptimizedForSize.Builder> {
|
| 65 | private static readonly TestEmbedOptimizedForSize defaultInstance = new Builder().BuildPartial();
|
| 66 | public static TestEmbedOptimizedForSize DefaultInstance {
|
| 67 | get { return defaultInstance; }
|
| 68 | }
|
| 69 |
|
| 70 | public override TestEmbedOptimizedForSize DefaultInstanceForType {
|
| 71 | get { return defaultInstance; }
|
| 72 | }
|
| 73 |
|
| 74 | protected override TestEmbedOptimizedForSize ThisMessage {
|
| 75 | get { return this; }
|
| 76 | }
|
| 77 |
|
| 78 | public static pbd::MessageDescriptor Descriptor {
|
| 79 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestEmbedOptimizeForProtoFile.internal__static_protobuf_unittest_TestEmbedOptimizedForSize__Descriptor; }
|
| 80 | }
|
| 81 |
|
| 82 | protected override pb::FieldAccess.FieldAccessorTable<TestEmbedOptimizedForSize, TestEmbedOptimizedForSize.Builder> InternalFieldAccessors {
|
| 83 | get { return global::Google.ProtocolBuffers.TestProtos.UnitTestEmbedOptimizeForProtoFile.internal__static_protobuf_unittest_TestEmbedOptimizedForSize__FieldAccessorTable; }
|
| 84 | }
|
| 85 |
|
| 86 | public const int OptionalMessageFieldNumber = 1;
|
| 87 | private bool hasOptionalMessage;
|
| 88 | private global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize.DefaultInstance;
|
| 89 | public bool HasOptionalMessage {
|
| 90 | get { return hasOptionalMessage; }
|
| 91 | }
|
| 92 | public global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize OptionalMessage {
|
| 93 | get { return optionalMessage_; }
|
| 94 | }
|
| 95 |
|
| 96 | public const int RepeatedMessageFieldNumber = 2;
|
| 97 | private pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize> repeatedMessage_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize>();
|
| 98 | public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize> RepeatedMessageList {
|
| 99 | get { return repeatedMessage_; }
|
| 100 | }
|
| 101 | public int RepeatedMessageCount {
|
| 102 | get { return repeatedMessage_.Count; }
|
| 103 | }
|
| 104 | public global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize GetRepeatedMessage(int index) {
|
| 105 | return repeatedMessage_[index];
|
| 106 | }
|
| 107 |
|
| 108 | public override bool IsInitialized {
|
| 109 | get {
|
| 110 | if (HasOptionalMessage) {
|
| 111 | if (!OptionalMessage.IsInitialized) return false;
|
| 112 | }
|
| 113 | foreach (global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize element in RepeatedMessageList) {
|
| 114 | if (!element.IsInitialized) return false;
|
| 115 | }
|
| 116 | return true;
|
| 117 | }
|
| 118 | }
|
| 119 |
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 120 | public override void WriteTo(pb::ICodedOutputStream output) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 121 | int size = SerializedSize;
|
| 122 | if (HasOptionalMessage) {
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 123 | output.WriteMessage(1, "optional_message", OptionalMessage);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 124 | }
|
csharptest | 90922db | 2011-06-03 11:57:47 -0500 | [diff] [blame] | 125 | if (repeatedMessage_.Count > 0) {
|
csharptest | ffafdaa | 2011-06-03 12:58:14 -0500 | [diff] [blame] | 126 | output.WriteArray(pbd::FieldType.Message, 2, "repeated_message", repeatedMessage_);
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 127 | }
|
| 128 | UnknownFields.WriteTo(output);
|
| 129 | }
|
| 130 |
|
| 131 | private int memoizedSerializedSize = -1;
|
| 132 | public override int SerializedSize {
|
| 133 | get {
|
| 134 | int size = memoizedSerializedSize;
|
| 135 | if (size != -1) return size;
|
| 136 |
|
| 137 | size = 0;
|
| 138 | if (HasOptionalMessage) {
|
| 139 | size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage);
|
| 140 | }
|
| 141 | foreach (global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize element in RepeatedMessageList) {
|
| 142 | size += pb::CodedOutputStream.ComputeMessageSize(2, element);
|
| 143 | }
|
| 144 | size += UnknownFields.SerializedSize;
|
| 145 | memoizedSerializedSize = size;
|
| 146 | return size;
|
| 147 | }
|
| 148 | }
|
| 149 |
|
| 150 | public static TestEmbedOptimizedForSize ParseFrom(pb::ByteString data) {
|
| 151 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 152 | }
|
| 153 | public static TestEmbedOptimizedForSize ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 154 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 155 | }
|
| 156 | public static TestEmbedOptimizedForSize ParseFrom(byte[] data) {
|
| 157 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 158 | }
|
| 159 | public static TestEmbedOptimizedForSize ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 160 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 161 | }
|
| 162 | public static TestEmbedOptimizedForSize ParseFrom(global::System.IO.Stream input) {
|
| 163 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 164 | }
|
| 165 | public static TestEmbedOptimizedForSize ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 166 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 167 | }
|
| 168 | public static TestEmbedOptimizedForSize ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 169 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 170 | }
|
| 171 | public static TestEmbedOptimizedForSize ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 172 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 173 | }
|
| 174 | public static TestEmbedOptimizedForSize ParseFrom(pb::CodedInputStream input) {
|
| 175 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 176 | }
|
| 177 | public static TestEmbedOptimizedForSize ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 178 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 179 | }
|
| 180 | public static Builder CreateBuilder() { return new Builder(); }
|
| 181 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 182 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 183 | public static Builder CreateBuilder(TestEmbedOptimizedForSize prototype) {
|
| 184 | return (Builder) new Builder().MergeFrom(prototype);
|
| 185 | }
|
| 186 |
|
csharptest | 445bdce | 2011-05-20 15:50:54 -0500 | [diff] [blame] | 187 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 188 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 189 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 190 | public sealed partial class Builder : pb::GeneratedBuilder<TestEmbedOptimizedForSize, Builder> {
|
| 191 | protected override Builder ThisBuilder {
|
| 192 | get { return this; }
|
| 193 | }
|
| 194 | public Builder() {}
|
| 195 |
|
| 196 | TestEmbedOptimizedForSize result = new TestEmbedOptimizedForSize();
|
| 197 |
|
| 198 | protected override TestEmbedOptimizedForSize MessageBeingBuilt {
|
| 199 | get { return result; }
|
| 200 | }
|
| 201 |
|
| 202 | public override Builder Clear() {
|
| 203 | result = new TestEmbedOptimizedForSize();
|
| 204 | return this;
|
| 205 | }
|
| 206 |
|
| 207 | public override Builder Clone() {
|
| 208 | return new Builder().MergeFrom(result);
|
| 209 | }
|
| 210 |
|
| 211 | public override pbd::MessageDescriptor DescriptorForType {
|
| 212 | get { return global::Google.ProtocolBuffers.TestProtos.TestEmbedOptimizedForSize.Descriptor; }
|
| 213 | }
|
| 214 |
|
| 215 | public override TestEmbedOptimizedForSize DefaultInstanceForType {
|
| 216 | get { return global::Google.ProtocolBuffers.TestProtos.TestEmbedOptimizedForSize.DefaultInstance; }
|
| 217 | }
|
| 218 |
|
| 219 | public override TestEmbedOptimizedForSize BuildPartial() {
|
| 220 | if (result == null) {
|
| 221 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 222 | }
|
| 223 | result.repeatedMessage_.MakeReadOnly();
|
| 224 | TestEmbedOptimizedForSize returnMe = result;
|
| 225 | result = null;
|
| 226 | return returnMe;
|
| 227 | }
|
| 228 |
|
| 229 | public override Builder MergeFrom(pb::IMessage other) {
|
| 230 | if (other is TestEmbedOptimizedForSize) {
|
| 231 | return MergeFrom((TestEmbedOptimizedForSize) other);
|
| 232 | } else {
|
| 233 | base.MergeFrom(other);
|
| 234 | return this;
|
| 235 | }
|
| 236 | }
|
| 237 |
|
| 238 | public override Builder MergeFrom(TestEmbedOptimizedForSize other) {
|
| 239 | if (other == global::Google.ProtocolBuffers.TestProtos.TestEmbedOptimizedForSize.DefaultInstance) return this;
|
| 240 | if (other.HasOptionalMessage) {
|
| 241 | MergeOptionalMessage(other.OptionalMessage);
|
| 242 | }
|
| 243 | if (other.repeatedMessage_.Count != 0) {
|
| 244 | base.AddRange(other.repeatedMessage_, result.repeatedMessage_);
|
| 245 | }
|
| 246 | this.MergeUnknownFields(other.UnknownFields);
|
| 247 | return this;
|
| 248 | }
|
| 249 |
|
| 250 | public override Builder MergeFrom(pb::CodedInputStream input) {
|
| 251 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 252 | }
|
| 253 |
|
| 254 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 255 | pb::UnknownFieldSet.Builder unknownFields = null;
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame^] | 256 | uint tag;
|
| 257 | string field_name;
|
| 258 | while (input.ReadTag(out tag, out field_name)) {
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 259 | switch (tag) {
|
| 260 | case 0: {
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame^] | 261 | throw InvalidProtocolBufferException.InvalidTag();
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 262 | }
|
| 263 | default: {
|
| 264 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 265 | if (unknownFields != null) {
|
| 266 | this.UnknownFields = unknownFields.Build();
|
| 267 | }
|
| 268 | return this;
|
| 269 | }
|
| 270 | if (unknownFields == null) {
|
| 271 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 272 | }
|
| 273 | ParseUnknownField(input, unknownFields, extensionRegistry, tag);
|
| 274 | break;
|
| 275 | }
|
| 276 | case 10: {
|
| 277 | global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize.CreateBuilder();
|
| 278 | if (HasOptionalMessage) {
|
| 279 | subBuilder.MergeFrom(OptionalMessage);
|
| 280 | }
|
| 281 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 282 | OptionalMessage = subBuilder.BuildPartial();
|
| 283 | break;
|
| 284 | }
|
| 285 | case 18: {
|
| 286 | global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize.CreateBuilder();
|
| 287 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 288 | AddRepeatedMessage(subBuilder.BuildPartial());
|
| 289 | break;
|
| 290 | }
|
| 291 | }
|
| 292 | }
|
csharptest | 123e534 | 2011-06-03 14:15:21 -0500 | [diff] [blame^] | 293 |
|
| 294 | if (unknownFields != null) {
|
| 295 | this.UnknownFields = unknownFields.Build();
|
| 296 | }
|
| 297 | return this;
|
Jon Skeet | 82bb0f1 | 2011-04-03 20:17:12 +0100 | [diff] [blame] | 298 | }
|
| 299 |
|
| 300 |
|
| 301 | public bool HasOptionalMessage {
|
| 302 | get { return result.HasOptionalMessage; }
|
| 303 | }
|
| 304 | public global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize OptionalMessage {
|
| 305 | get { return result.OptionalMessage; }
|
| 306 | set { SetOptionalMessage(value); }
|
| 307 | }
|
| 308 | public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize value) {
|
| 309 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 310 | result.hasOptionalMessage = true;
|
| 311 | result.optionalMessage_ = value;
|
| 312 | return this;
|
| 313 | }
|
| 314 | public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize.Builder builderForValue) {
|
| 315 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 316 | result.hasOptionalMessage = true;
|
| 317 | result.optionalMessage_ = builderForValue.Build();
|
| 318 | return this;
|
| 319 | }
|
| 320 | public Builder MergeOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize value) {
|
| 321 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 322 | if (result.HasOptionalMessage &&
|
| 323 | result.optionalMessage_ != global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize.DefaultInstance) {
|
| 324 | result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial();
|
| 325 | } else {
|
| 326 | result.optionalMessage_ = value;
|
| 327 | }
|
| 328 | result.hasOptionalMessage = true;
|
| 329 | return this;
|
| 330 | }
|
| 331 | public Builder ClearOptionalMessage() {
|
| 332 | result.hasOptionalMessage = false;
|
| 333 | result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize.DefaultInstance;
|
| 334 | return this;
|
| 335 | }
|
| 336 |
|
| 337 | public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize> RepeatedMessageList {
|
| 338 | get { return result.repeatedMessage_; }
|
| 339 | }
|
| 340 | public int RepeatedMessageCount {
|
| 341 | get { return result.RepeatedMessageCount; }
|
| 342 | }
|
| 343 | public global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize GetRepeatedMessage(int index) {
|
| 344 | return result.GetRepeatedMessage(index);
|
| 345 | }
|
| 346 | public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize value) {
|
| 347 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 348 | result.repeatedMessage_[index] = value;
|
| 349 | return this;
|
| 350 | }
|
| 351 | public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize.Builder builderForValue) {
|
| 352 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 353 | result.repeatedMessage_[index] = builderForValue.Build();
|
| 354 | return this;
|
| 355 | }
|
| 356 | public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize value) {
|
| 357 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 358 | result.repeatedMessage_.Add(value);
|
| 359 | return this;
|
| 360 | }
|
| 361 | public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize.Builder builderForValue) {
|
| 362 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 363 | result.repeatedMessage_.Add(builderForValue.Build());
|
| 364 | return this;
|
| 365 | }
|
| 366 | public Builder AddRangeRepeatedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestOptimizedForSize> values) {
|
| 367 | base.AddRange(values, result.repeatedMessage_);
|
| 368 | return this;
|
| 369 | }
|
| 370 | public Builder ClearRepeatedMessage() {
|
| 371 | result.repeatedMessage_.Clear();
|
| 372 | return this;
|
| 373 | }
|
| 374 | }
|
| 375 | static TestEmbedOptimizedForSize() {
|
| 376 | object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestEmbedOptimizeForProtoFile.Descriptor, null);
|
| 377 | }
|
| 378 | }
|
| 379 |
|
| 380 | #endregion
|
| 381 |
|
| 382 | }
|