MCPcopy Create free account
hub / github.com/bufbuild/buf-examples / InternalWriteTo

Method InternalWriteTo

cli/managed-mode/gen/proto/csharp/Weather.cs:464–486  ·  view source on GitHub ↗
(ref pb::WriteContext output)

Source from the content-addressed store, hash-verified

462
463 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
465 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
466 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
467 if (location_ != null) {
468 output.WriteRawTag(10);
469 output.WriteMessage(Location);
470 }
471 if (Temperature != 0F) {
472 output.WriteRawTag(21);
473 output.WriteFloat(Temperature);
474 }
475 if (WindSpeed != 0F) {
476 output.WriteRawTag(29);
477 output.WriteFloat(WindSpeed);
478 }
479 if (Condition != global::Acme.Weather.V1.Condition.Unknown) {
480 output.WriteRawTag(32);
481 output.WriteEnum((int) Condition);
482 }
483 if (_unknownFields != null) {
484 _unknownFields.WriteTo(ref output);
485 }
486 }
487 #endif
488
489 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]

Callers

nothing calls this directly

Calls 1

WriteToMethod · 0.45

Tested by

no test coverage detected