public byte[] GetProtoBufferBytes() { CheckRequiredFields(); ProtoBufferWriter writer = new ProtoBufferWriter(); writer.Write(1,(int)AFooEnum); writer.Write(2,Foo); writer.Write(3,ValueList); return writer.GetProtoBufferBytes(); }
public byte[] GetProtoBufferBytes() { CheckRequiredFields(); ProtoBufferWriter writer = new ProtoBufferWriter(); writer.Write(1,(int)RequiredEnum); writer.Write(2,(int)OptionalEnum); foreach(FooEnum v in RepeatedEnumList) { writer.Write(3,(int)v); } return writer.GetProtoBufferBytes(); }