C# Class Google.Protobuf.SampleMessages

Helper methods to create sample instances of types generated from unit test messages.
Mostra file Open project: dropbox/protobuf Class Usage Examples

Public Methods

Method Description
CreateFullTestAllTypes ( ) : TestAllTypes

Creates a new sample TestAllTypes message with all fields populated. The "oneof" field is populated with the string property (OneofString).

Method Details

CreateFullTestAllTypes() public static method

Creates a new sample TestAllTypes message with all fields populated. The "oneof" field is populated with the string property (OneofString).
public static CreateFullTestAllTypes ( ) : TestAllTypes
return TestAllTypes