public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Uuid = input.ReadString(); break; } case 18: { if (position_ == null) { Position = new global::Tech.Takenoko.Grpcspring.Proto.Vector3_(); } input.ReadMessage(Position); break; } case 26: { if (rotation_ == null) { Rotation = new global::Tech.Takenoko.Grpcspring.Proto.Vector3_(); } input.ReadMessage(Rotation); break; } case 34: { if (status_ == null) { Status = new global::Tech.Takenoko.Grpcspring.Proto.Status_(); } input.ReadMessage(Status); break; } } } #endif }
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Uuid = input.ReadString(); break; } case 18: { if (position_ == null) { Position = new global::Tech.Takenoko.Grpcspring.Proto.Vector3_(); } input.ReadMessage(Position); break; } case 26: { if (rotation_ == null) { Rotation = new global::Tech.Takenoko.Grpcspring.Proto.Vector3_(); } input.ReadMessage(Rotation); break; } case 34: { if (status_ == null) { Status = new global::Tech.Takenoko.Grpcspring.Proto.Status_(); } input.ReadMessage(Status); break; } } } }
public void MergeFrom(MoveRequest other) { if (other == null) { return; } if (other.Uuid.Length != 0) { Uuid = other.Uuid; } if (other.position_ != null) { if (position_ == null) { Position = new global::Tech.Takenoko.Grpcspring.Proto.Vector3_(); } Position.MergeFrom(other.Position); } if (other.rotation_ != null) { if (rotation_ == null) { Rotation = new global::Tech.Takenoko.Grpcspring.Proto.Vector3_(); } Rotation.MergeFrom(other.Rotation); } if (other.status_ != null) { if (status_ == null) { Status = new global::Tech.Takenoko.Grpcspring.Proto.Status_(); } Status.MergeFrom(other.Status); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }