aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/TestBed/SlowNorthwindProtoFile.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/TestBed/SlowNorthwindProtoFile.cs')
-rw-r--r--csharp/TestBed/SlowNorthwindProtoFile.cs1142
1 files changed, 1142 insertions, 0 deletions
diff --git a/csharp/TestBed/SlowNorthwindProtoFile.cs b/csharp/TestBed/SlowNorthwindProtoFile.cs
new file mode 100644
index 00000000..8984f328
--- /dev/null
+++ b/csharp/TestBed/SlowNorthwindProtoFile.cs
@@ -0,0 +1,1142 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+
+using pb = global::Google.ProtocolBuffers;
+using pbc = global::Google.ProtocolBuffers.Collections;
+using pbd = global::Google.ProtocolBuffers.Descriptors;
+using scg = global::System.Collections.Generic;
+namespace SlowNorthwind {
+
+ public static partial class SlowNorthwindProtoFile {
+
+ #region Descriptor
+ public static pbd::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static readonly pbd::FileDescriptor descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom (
+ new byte[] {
+ 0x0a, 0x0f, 0x73, 0x6c, 0x6f, 0x77, 0x6e, 0x77, 0x69, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x73,
+ 0x6c, 0x6f, 0x77, 0x6e, 0x6f, 0x72, 0x74, 0x68, 0x77, 0x69, 0x6e, 0x64, 0x1a, 0x0d, 0x73, 0x6c, 0x6f, 0x77, 0x62, 0x63,
+ 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x30, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12,
+ 0x24, 0x0a, 0x06, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x73, 0x6c,
+ 0x6f, 0x77, 0x6e, 0x6f, 0x72, 0x74, 0x68, 0x77, 0x69, 0x6e, 0x64, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x8e, 0x03,
+ 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x0f, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x05, 0x12, 0x12, 0x0a, 0x0a, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x44, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x12, 0x12, 0x0a, 0x0a, 0x45, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x49, 0x44, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x05, 0x12, 0x24, 0x0a, 0x09, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x44, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x62, 0x63, 0x6c, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69,
+ 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0c, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x18, 0x05,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x62, 0x63, 0x6c, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54,
+ 0x69, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0b, 0x53, 0x68, 0x69, 0x70, 0x70, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x18, 0x06,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x62, 0x63, 0x6c, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54,
+ 0x69, 0x6d, 0x65, 0x12, 0x0f, 0x0a, 0x07, 0x53, 0x68, 0x69, 0x70, 0x56, 0x69, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05,
+ 0x12, 0x21, 0x0a, 0x07, 0x46, 0x72, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e,
+ 0x73, 0x6c, 0x6f, 0x77, 0x62, 0x63, 0x6c, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x12, 0x10, 0x0a, 0x08, 0x53,
+ 0x68, 0x69, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x12, 0x13, 0x0a, 0x0b, 0x53, 0x68, 0x69,
+ 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x12, 0x10, 0x0a, 0x08, 0x53, 0x68,
+ 0x69, 0x70, 0x43, 0x69, 0x74, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x12, 0x12, 0x0a, 0x0a, 0x53, 0x68, 0x69, 0x70,
+ 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x12, 0x16, 0x0a, 0x0e, 0x53, 0x68, 0x69, 0x70,
+ 0x50, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x12, 0x13, 0x0a, 0x0b,
+ 0x53, 0x68, 0x69, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x12, 0x27, 0x0a,
+ 0x05, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x6e,
+ 0x6f, 0x72, 0x74, 0x68, 0x77, 0x69, 0x6e, 0x64, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x22, 0x78,
+ 0x0a, 0x09, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x0f, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72,
+ 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x11, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x49,
+ 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x12, 0x23, 0x0a, 0x09, 0x55, 0x6e, 0x69, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x62, 0x63, 0x6c, 0x2e, 0x44, 0x65, 0x63,
+ 0x69, 0x6d, 0x61, 0x6c, 0x12, 0x10, 0x0a, 0x08, 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01,
+ 0x28, 0x11, 0x12, 0x10, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02,
+ 0x42, 0x29, 0xc2, 0x3e, 0x0d, 0x53, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x72, 0x74, 0x68, 0x77, 0x69, 0x6e, 0x64, 0xca, 0x3e,
+ 0x16, 0x53, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x72, 0x74, 0x68, 0x77, 0x69, 0x6e, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x46,
+ 0x69, 0x6c, 0x65,
+ }, new pbd::FileDescriptor[] {
+ global::Google.ProtocolBuffers.SlowBcl.SlowBclProtoFile.Descriptor,
+ });
+ #endregion
+
+ #region Extensions
+ #endregion
+
+ #region Static variables
+ internal static readonly pbd::MessageDescriptor internal__static_slownorthwind_Database__Descriptor
+ = Descriptor.MessageTypes[0];
+ internal static pb::FieldAccess.FieldAccessorTable<global::SlowNorthwind.Database, global::SlowNorthwind.Database.Builder> internal__static_slownorthwind_Database__FieldAccessorTable
+ = new pb::FieldAccess.FieldAccessorTable<global::SlowNorthwind.Database, global::SlowNorthwind.Database.Builder>(internal__static_slownorthwind_Database__Descriptor,
+ new string[] { "Orders", });
+ internal static readonly pbd::MessageDescriptor internal__static_slownorthwind_Order__Descriptor
+ = Descriptor.MessageTypes[1];
+ internal static pb::FieldAccess.FieldAccessorTable<global::SlowNorthwind.Order, global::SlowNorthwind.Order.Builder> internal__static_slownorthwind_Order__FieldAccessorTable
+ = new pb::FieldAccess.FieldAccessorTable<global::SlowNorthwind.Order, global::SlowNorthwind.Order.Builder>(internal__static_slownorthwind_Order__Descriptor,
+ new string[] { "OrderID", "CustomerID", "EmployeeID", "OrderDate", "RequiredDate", "ShippedDate", "ShipVia", "Freight", "ShipName", "ShipAddress", "ShipCity", "ShipRegion", "ShipPostalCode", "ShipCountry", "Lines", });
+ internal static readonly pbd::MessageDescriptor internal__static_slownorthwind_OrderLine__Descriptor
+ = Descriptor.MessageTypes[2];
+ internal static pb::FieldAccess.FieldAccessorTable<global::SlowNorthwind.OrderLine, global::SlowNorthwind.OrderLine.Builder> internal__static_slownorthwind_OrderLine__FieldAccessorTable
+ = new pb::FieldAccess.FieldAccessorTable<global::SlowNorthwind.OrderLine, global::SlowNorthwind.OrderLine.Builder>(internal__static_slownorthwind_OrderLine__Descriptor,
+ new string[] { "OrderID", "ProductID", "UnitPrice", "Quantity", "Discount", });
+ #endregion
+
+ }
+
+ #region Enums
+ #endregion
+
+ #region Messages
+ public sealed partial class Database : pb::GeneratedMessage<Database, Database.Builder> {
+ private static readonly Database defaultInstance = new Database();
+ public static Database DefaultInstance {
+ get { return defaultInstance; }
+ }
+
+ public override Database DefaultInstanceForType {
+ get { return defaultInstance; }
+ }
+
+ protected override Database ThisMessage {
+ get { return this; }
+ }
+
+ public static pbd::MessageDescriptor Descriptor {
+ get { return global::SlowNorthwind.SlowNorthwindProtoFile.internal__static_slownorthwind_Database__Descriptor; }
+ }
+
+ protected override pb::FieldAccess.FieldAccessorTable<Database, Database.Builder> InternalFieldAccessors {
+ get { return global::SlowNorthwind.SlowNorthwindProtoFile.internal__static_slownorthwind_Database__FieldAccessorTable; }
+ }
+
+ // repeated .slownorthwind.Order Orders = 1;
+ private scg::IList<global::SlowNorthwind.Order> orders_ = pbc::Lists<global::SlowNorthwind.Order>.Empty;
+ public scg::IList<global::SlowNorthwind.Order> OrdersList {
+ get { return orders_; }
+ }
+ public int OrdersCount
+ { get { return orders_.Count; }
+ }
+ public global::SlowNorthwind.Order GetOrders(int index) {
+ return orders_ [index];
+ }
+
+ public static global::SlowNorthwind.Database ParseFrom(pb::ByteString data) {
+ return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
+ }
+ public static global::SlowNorthwind.Database ParseFrom(pb::ByteString data,
+ pb::ExtensionRegistry extensionRegistry) {
+ return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
+ .BuildParsed();
+ }
+ public static global::SlowNorthwind.Database ParseFrom(byte[] data) {
+ return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
+ }
+ public static global::SlowNorthwind.Database ParseFrom(byte[] data,
+ pb::ExtensionRegistry extensionRegistry) {
+ return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
+ .BuildParsed();
+ }
+ public static global::SlowNorthwind.Database ParseFrom(global::System.IO.Stream input) {
+ return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
+ }
+ public static global::SlowNorthwind.Database ParseFrom(
+ global::System.IO.Stream input,
+ pb::ExtensionRegistry extensionRegistry) {
+ return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
+ .BuildParsed();
+ }
+ public static global::SlowNorthwind.Database ParseFrom(pb::CodedInputStream input) {
+ return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
+ }
+ public static global::SlowNorthwind.Database ParseFrom(pb::CodedInputStream input,
+ pb::ExtensionRegistry extensionRegistry) {
+ return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
+ .BuildParsed();
+ }
+
+ public static Builder CreateBuilder() { return new Builder(); }
+ public override Builder CreateBuilderForType() { return new Builder(); }
+ public static Builder CreateBuilder(global::SlowNorthwind.Database prototype) {
+ return (Builder) new Builder().MergeFrom(prototype);
+ }
+
+ public sealed partial class Builder : pb::GeneratedBuilder<global::SlowNorthwind.Database, Builder> {
+ protected override Builder ThisBuilder {
+ get { return this; }
+ }
+
+ // Construct using global::SlowNorthwind.Database.CreateBuilder()
+ internal Builder() {}
+
+ global::SlowNorthwind.Database result = new global::SlowNorthwind.Database();
+
+ protected override global::SlowNorthwind.Database MessageBeingBuilt {
+ get { return result; }
+ }
+
+ public override Builder Clear() {
+ result = new global::SlowNorthwind.Database();
+ return this;
+ }
+
+ public override Builder Clone() {
+ return new Builder().MergeFrom(result);
+ }
+
+ public override pbd::MessageDescriptor DescriptorForType {
+ get { return global::SlowNorthwind.Database.Descriptor; }
+ }
+
+ public override global::SlowNorthwind.Database DefaultInstanceForType {
+ get { return global::SlowNorthwind.Database.DefaultInstance; }
+ }
+
+ public override global::SlowNorthwind.Database BuildPartial() {
+ if (result.orders_ != pbc::Lists<global::SlowNorthwind.Order>.Empty) {
+ result.orders_ = pbc::Lists<global::SlowNorthwind.Order>.AsReadOnly(result.orders_);
+ }
+ global::SlowNorthwind.Database returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+
+ // repeated .slownorthwind.Order Orders = 1;
+ public scg::IList<global::SlowNorthwind.Order> OrdersList {
+ get { return pbc::Lists.AsReadOnly(result.orders_); }
+ }
+ public int OrdersCount {
+ get { return result.OrdersCount; }
+ }
+ public global::SlowNorthwind.Order GetOrders(int index) {
+ return result.GetOrders(index);
+ }
+ public Builder SetOrders(int index, global::SlowNorthwind.Order value) {
+ result.orders_[index] = value;
+ return this;
+ }
+ public Builder SetOrders(int index, global::SlowNorthwind.Order.Builder builderForValue) {
+ result.orders_[index] = builderForValue.Build();
+ return this;
+ }
+ public Builder AddOrders(global::SlowNorthwind.Order value) {
+ if (result.orders_ == pbc::Lists<global::SlowNorthwind.Order>.Empty) {
+ result.orders_ = new scg::List<global::SlowNorthwind.Order>();
+ }
+ result.orders_.Add(value);
+ return this;
+ }
+ public Builder AddOrders(global::SlowNorthwind.Order.Builder builderForValue) {
+ if (result.orders_ == pbc::Lists<global::SlowNorthwind.Order>.Empty) {
+ result.orders_ = new scg::List<global::SlowNorthwind.Order>();
+ }
+ result.orders_.Add(builderForValue.Build());
+ return this;
+ }
+ public Builder AddRangeOrders(scg::IEnumerable<global::SlowNorthwind.Order> values) {
+ if (result.orders_ == pbc::Lists<global::SlowNorthwind.Order>.Empty) {
+ result.orders_ = new scg::List<global::SlowNorthwind.Order>();
+ }
+ base.AddRange(values, result.orders_);
+ return this;
+ }
+ public Builder ClearOrders() {
+ result.orders_ = pbc::Lists<global::SlowNorthwind.Order>.Empty;
+ return this;
+ }
+ }
+ }
+
+ public sealed partial class Order : pb::GeneratedMessage<Order, Order.Builder> {
+ private static readonly Order defaultInstance = new Order();
+ public static Order DefaultInstance {
+ get { return defaultInstance; }
+ }
+
+ public override Order DefaultInstanceForType {
+ get { return defaultInstance; }
+ }
+
+ protected override Order ThisMessage {
+ get { return this; }
+ }
+
+ public static pbd::MessageDescriptor Descriptor {
+ get { return global::SlowNorthwind.SlowNorthwindProtoFile.internal__static_slownorthwind_Order__Descriptor; }
+ }
+
+ protected override pb::FieldAccess.FieldAccessorTable<Order, Order.Builder> InternalFieldAccessors {
+ get { return global::SlowNorthwind.SlowNorthwindProtoFile.internal__static_slownorthwind_Order__FieldAccessorTable; }
+ }
+
+ // optional int32 OrderID = 1;
+ private bool hasOrderID;
+ private int orderID_ = 0;
+ public bool HasOrderID {
+ get { return hasOrderID; }
+ }
+ public int OrderID {
+ get { return orderID_; }
+ }
+
+ // optional string CustomerID = 2;
+ private bool hasCustomerID;
+ private string customerID_ = "";
+ public bool HasCustomerID {
+ get { return hasCustomerID; }
+ }
+ public string CustomerID {
+ get { return customerID_; }
+ }
+
+ // optional int32 EmployeeID = 3;
+ private bool hasEmployeeID;
+ private int employeeID_ = 0;
+ public bool HasEmployeeID {
+ get { return hasEmployeeID; }
+ }
+ public int EmployeeID {
+ get { return employeeID_; }
+ }
+
+ // optional .slowbcl.DateTime OrderDate = 4;
+ private bool hasOrderDate;
+ private global::Google.ProtocolBuffers.SlowBcl.DateTime orderDate_ = global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance;
+ public bool HasOrderDate {
+ get { return hasOrderDate; }
+ }
+ public global::Google.ProtocolBuffers.SlowBcl.DateTime OrderDate {
+ get { return orderDate_; }
+ }
+
+ // optional .slowbcl.DateTime RequiredDate = 5;
+ private bool hasRequiredDate;
+ private global::Google.ProtocolBuffers.SlowBcl.DateTime requiredDate_ = global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance;
+ public bool HasRequiredDate {
+ get { return hasRequiredDate; }
+ }
+ public global::Google.ProtocolBuffers.SlowBcl.DateTime RequiredDate {
+ get { return requiredDate_; }
+ }
+
+ // optional .slowbcl.DateTime ShippedDate = 6;
+ private bool hasShippedDate;
+ private global::Google.ProtocolBuffers.SlowBcl.DateTime shippedDate_ = global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance;
+ public bool HasShippedDate {
+ get { return hasShippedDate; }
+ }
+ public global::Google.ProtocolBuffers.SlowBcl.DateTime ShippedDate {
+ get { return shippedDate_; }
+ }
+
+ // optional int32 ShipVia = 7;
+ private bool hasShipVia;
+ private int shipVia_ = 0;
+ public bool HasShipVia {
+ get { return hasShipVia; }
+ }
+ public int ShipVia {
+ get { return shipVia_; }
+ }
+
+ // optional .slowbcl.Decimal Freight = 8;
+ private bool hasFreight;
+ private global::Google.ProtocolBuffers.SlowBcl.Decimal freight_ = global::Google.ProtocolBuffers.SlowBcl.Decimal.DefaultInstance;
+ public bool HasFreight {
+ get { return hasFreight; }
+ }
+ public global::Google.ProtocolBuffers.SlowBcl.Decimal Freight {
+ get { return freight_; }
+ }
+
+ // optional string ShipName = 9;
+ private bool hasShipName;
+ private string shipName_ = "";
+ public bool HasShipName {
+ get { return hasShipName; }
+ }
+ public string ShipName {
+ get { return shipName_; }
+ }
+
+ // optional string ShipAddress = 10;
+ private bool hasShipAddress;
+ private string shipAddress_ = "";
+ public bool HasShipAddress {
+ get { return hasShipAddress; }
+ }
+ public string ShipAddress {
+ get { return shipAddress_; }
+ }
+
+ // optional string ShipCity = 11;
+ private bool hasShipCity;
+ private string shipCity_ = "";
+ public bool HasShipCity {
+ get { return hasShipCity; }
+ }
+ public string ShipCity {
+ get { return shipCity_; }
+ }
+
+ // optional string ShipRegion = 12;
+ private bool hasShipRegion;
+ private string shipRegion_ = "";
+ public bool HasShipRegion {
+ get { return hasShipRegion; }
+ }
+ public string ShipRegion {
+ get { return shipRegion_; }
+ }
+
+ // optional string ShipPostalCode = 13;
+ private bool hasShipPostalCode;
+ private string shipPostalCode_ = "";
+ public bool HasShipPostalCode {
+ get { return hasShipPostalCode; }
+ }
+ public string ShipPostalCode {
+ get { return shipPostalCode_; }
+ }
+
+ // optional string ShipCountry = 14;
+ private bool hasShipCountry;
+ private string shipCountry_ = "";
+ public bool HasShipCountry {
+ get { return hasShipCountry; }
+ }
+ public string ShipCountry {
+ get { return shipCountry_; }
+ }
+
+ // repeated .slownorthwind.OrderLine Lines = 15;
+ private scg::IList<global::SlowNorthwind.OrderLine> lines_ = pbc::Lists<global::SlowNorthwind.OrderLine>.Empty;
+ public scg::IList<global::SlowNorthwind.OrderLine> LinesList {
+ get { return lines_; }
+ }
+ public int LinesCount
+ { get { return lines_.Count; }
+ }
+ public global::SlowNorthwind.OrderLine GetLines(int index) {
+ return lines_ [index];
+ }
+
+ public static global::SlowNorthwind.Order ParseFrom(pb::ByteString data) {
+ return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
+ }
+ public static global::SlowNorthwind.Order ParseFrom(pb::ByteString data,
+ pb::ExtensionRegistry extensionRegistry) {
+ return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
+ .BuildParsed();
+ }
+ public static global::SlowNorthwind.Order ParseFrom(byte[] data) {
+ return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
+ }
+ public static global::SlowNorthwind.Order ParseFrom(byte[] data,
+ pb::ExtensionRegistry extensionRegistry) {
+ return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
+ .BuildParsed();
+ }
+ public static global::SlowNorthwind.Order ParseFrom(global::System.IO.Stream input) {
+ return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
+ }
+ public static global::SlowNorthwind.Order ParseFrom(
+ global::System.IO.Stream input,
+ pb::ExtensionRegistry extensionRegistry) {
+ return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
+ .BuildParsed();
+ }
+ public static global::SlowNorthwind.Order ParseFrom(pb::CodedInputStream input) {
+ return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
+ }
+ public static global::SlowNorthwind.Order ParseFrom(pb::CodedInputStream input,
+ pb::ExtensionRegistry extensionRegistry) {
+ return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
+ .BuildParsed();
+ }
+
+ public static Builder CreateBuilder() { return new Builder(); }
+ public override Builder CreateBuilderForType() { return new Builder(); }
+ public static Builder CreateBuilder(global::SlowNorthwind.Order prototype) {
+ return (Builder) new Builder().MergeFrom(prototype);
+ }
+
+ public sealed partial class Builder : pb::GeneratedBuilder<global::SlowNorthwind.Order, Builder> {
+ protected override Builder ThisBuilder {
+ get { return this; }
+ }
+
+ // Construct using global::SlowNorthwind.Order.CreateBuilder()
+ internal Builder() {}
+
+ global::SlowNorthwind.Order result = new global::SlowNorthwind.Order();
+
+ protected override global::SlowNorthwind.Order MessageBeingBuilt {
+ get { return result; }
+ }
+
+ public override Builder Clear() {
+ result = new global::SlowNorthwind.Order();
+ return this;
+ }
+
+ public override Builder Clone() {
+ return new Builder().MergeFrom(result);
+ }
+
+ public override pbd::MessageDescriptor DescriptorForType {
+ get { return global::SlowNorthwind.Order.Descriptor; }
+ }
+
+ public override global::SlowNorthwind.Order DefaultInstanceForType {
+ get { return global::SlowNorthwind.Order.DefaultInstance; }
+ }
+
+ public override global::SlowNorthwind.Order BuildPartial() {
+ if (result.lines_ != pbc::Lists<global::SlowNorthwind.OrderLine>.Empty) {
+ result.lines_ = pbc::Lists<global::SlowNorthwind.OrderLine>.AsReadOnly(result.lines_);
+ }
+ global::SlowNorthwind.Order returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+
+ // optional int32 OrderID = 1;
+ public bool HasOrderID {
+ get { return result.HasOrderID; }
+ }
+ public int OrderID {
+ get { return result.OrderID; }
+ set { SetOrderID(value); }
+ }
+ public Builder SetOrderID(int value) {
+ result.hasOrderID = true;
+ result.orderID_ = value;
+ return this;
+ }
+ public Builder ClearOrderID() {
+ result.hasOrderID = false;
+ result.orderID_ = 0;
+ return this;
+ }
+
+ // optional string CustomerID = 2;
+ public bool HasCustomerID {
+ get { return result.HasCustomerID; }
+ }
+ public string CustomerID {
+ get { return result.CustomerID; }
+ set { SetCustomerID(value); }
+ }
+ public Builder SetCustomerID(string value) {
+ result.hasCustomerID = true;
+ result.customerID_ = value;
+ return this;
+ }
+ public Builder ClearCustomerID() {
+ result.hasCustomerID = false;
+ result.customerID_ = "";
+ return this;
+ }
+
+ // optional int32 EmployeeID = 3;
+ public bool HasEmployeeID {
+ get { return result.HasEmployeeID; }
+ }
+ public int EmployeeID {
+ get { return result.EmployeeID; }
+ set { SetEmployeeID(value); }
+ }
+ public Builder SetEmployeeID(int value) {
+ result.hasEmployeeID = true;
+ result.employeeID_ = value;
+ return this;
+ }
+ public Builder ClearEmployeeID() {
+ result.hasEmployeeID = false;
+ result.employeeID_ = 0;
+ return this;
+ }
+
+ // optional .slowbcl.DateTime OrderDate = 4;
+ public bool HasOrderDate {
+ get { return result.HasOrderDate; }
+ }
+ public global::Google.ProtocolBuffers.SlowBcl.DateTime OrderDate {
+ get { return result.OrderDate; }
+ set { SetOrderDate(value); }
+ }
+ public Builder SetOrderDate(global::Google.ProtocolBuffers.SlowBcl.DateTime value) {
+ result.hasOrderDate = true;
+ result.orderDate_ = value;
+ return this;
+ }
+ public Builder SetOrderDate(global::Google.ProtocolBuffers.SlowBcl.DateTime.Builder builderForValue) {
+ result.hasOrderDate = true;
+ result.orderDate_ = builderForValue.Build();
+ return this;
+ }
+ public Builder MergeOrderDate(global::Google.ProtocolBuffers.SlowBcl.DateTime value) {
+ if (result.HasOrderDate &&
+ result.orderDate_ != global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance) {
+ result.orderDate_ =
+ global::Google.ProtocolBuffers.SlowBcl.DateTime.CreateBuilder(result.orderDate_).MergeFrom(value).BuildPartial();
+ } else {
+ result.orderDate_ = value;
+ }
+ result.hasOrderDate = true;
+ return this;
+ }
+ public Builder ClearOrderDate() {
+ result.hasOrderDate = false;
+ result.orderDate_ = global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance;
+ return this;
+ }
+
+ // optional .slowbcl.DateTime RequiredDate = 5;
+ public bool HasRequiredDate {
+ get { return result.HasRequiredDate; }
+ }
+ public global::Google.ProtocolBuffers.SlowBcl.DateTime RequiredDate {
+ get { return result.RequiredDate; }
+ set { SetRequiredDate(value); }
+ }
+ public Builder SetRequiredDate(global::Google.ProtocolBuffers.SlowBcl.DateTime value) {
+ result.hasRequiredDate = true;
+ result.requiredDate_ = value;
+ return this;
+ }
+ public Builder SetRequiredDate(global::Google.ProtocolBuffers.SlowBcl.DateTime.Builder builderForValue) {
+ result.hasRequiredDate = true;
+ result.requiredDate_ = builderForValue.Build();
+ return this;
+ }
+ public Builder MergeRequiredDate(global::Google.ProtocolBuffers.SlowBcl.DateTime value) {
+ if (result.HasRequiredDate &&
+ result.requiredDate_ != global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance) {
+ result.requiredDate_ =
+ global::Google.ProtocolBuffers.SlowBcl.DateTime.CreateBuilder(result.requiredDate_).MergeFrom(value).BuildPartial();
+ } else {
+ result.requiredDate_ = value;
+ }
+ result.hasRequiredDate = true;
+ return this;
+ }
+ public Builder ClearRequiredDate() {
+ result.hasRequiredDate = false;
+ result.requiredDate_ = global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance;
+ return this;
+ }
+
+ // optional .slowbcl.DateTime ShippedDate = 6;
+ public bool HasShippedDate {
+ get { return result.HasShippedDate; }
+ }
+ public global::Google.ProtocolBuffers.SlowBcl.DateTime ShippedDate {
+ get { return result.ShippedDate; }
+ set { SetShippedDate(value); }
+ }
+ public Builder SetShippedDate(global::Google.ProtocolBuffers.SlowBcl.DateTime value) {
+ result.hasShippedDate = true;
+ result.shippedDate_ = value;
+ return this;
+ }
+ public Builder SetShippedDate(global::Google.ProtocolBuffers.SlowBcl.DateTime.Builder builderForValue) {
+ result.hasShippedDate = true;
+ result.shippedDate_ = builderForValue.Build();
+ return this;
+ }
+ public Builder MergeShippedDate(global::Google.ProtocolBuffers.SlowBcl.DateTime value) {
+ if (result.HasShippedDate &&
+ result.shippedDate_ != global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance) {
+ result.shippedDate_ =
+ global::Google.ProtocolBuffers.SlowBcl.DateTime.CreateBuilder(result.shippedDate_).MergeFrom(value).BuildPartial();
+ } else {
+ result.shippedDate_ = value;
+ }
+ result.hasShippedDate = true;
+ return this;
+ }
+ public Builder ClearShippedDate() {
+ result.hasShippedDate = false;
+ result.shippedDate_ = global::Google.ProtocolBuffers.SlowBcl.DateTime.DefaultInstance;
+ return this;
+ }
+
+ // optional int32 ShipVia = 7;
+ public bool HasShipVia {
+ get { return result.HasShipVia; }
+ }
+ public int ShipVia {
+ get { return result.ShipVia; }
+ set { SetShipVia(value); }
+ }
+ public Builder SetShipVia(int value) {
+ result.hasShipVia = true;
+ result.shipVia_ = value;
+ return this;
+ }
+ public Builder ClearShipVia() {
+ result.hasShipVia = false;
+ result.shipVia_ = 0;
+ return this;
+ }
+
+ // optional .slowbcl.Decimal Freight = 8;
+ public bool HasFreight {
+ get { return result.HasFreight; }
+ }
+ public global::Google.ProtocolBuffers.SlowBcl.Decimal Freight {
+ get { return result.Freight; }
+ set { SetFreight(value); }
+ }
+ public Builder SetFreight(global::Google.ProtocolBuffers.SlowBcl.Decimal value) {
+ result.hasFreight = true;
+ result.freight_ = value;
+ return this;
+ }
+ public Builder SetFreight(global::Google.ProtocolBuffers.SlowBcl.Decimal.Builder builderForValue) {
+ result.hasFreight = true;
+ result.freight_ = builderForValue.Build();
+ return this;
+ }
+ public Builder MergeFreight(global::Google.ProtocolBuffers.SlowBcl.Decimal value) {
+ if (result.HasFreight &&
+ result.freight_ != global::Google.ProtocolBuffers.SlowBcl.Decimal.DefaultInstance) {
+ result.freight_ =
+ global::Google.ProtocolBuffers.SlowBcl.Decimal.CreateBuilder(result.freight_).MergeFrom(value).BuildPartial();
+ } else {
+ result.freight_ = value;
+ }
+ result.hasFreight = true;
+ return this;
+ }
+ public Builder ClearFreight() {
+ result.hasFreight = false;
+ result.freight_ = global::Google.ProtocolBuffers.SlowBcl.Decimal.DefaultInstance;
+ return this;
+ }
+
+ // optional string ShipName = 9;
+ public bool HasShipName {
+ get { return result.HasShipName; }
+ }
+ public string ShipName {
+ get { return result.ShipName; }
+ set { SetShipName(value); }
+ }
+ public Builder SetShipName(string value) {
+ result.hasShipName = true;
+ result.shipName_ = value;
+ return this;
+ }
+ public Builder ClearShipName() {
+ result.hasShipName = false;
+ result.shipName_ = "";
+ return this;
+ }
+
+ // optional string ShipAddress = 10;
+ public bool HasShipAddress {
+ get { return result.HasShipAddress; }
+ }
+ public string ShipAddress {
+ get { return result.ShipAddress; }
+ set { SetShipAddress(value); }
+ }
+ public Builder SetShipAddress(string value) {
+ result.hasShipAddress = true;
+ result.shipAddress_ = value;
+ return this;
+ }
+ public Builder ClearShipAddress() {
+ result.hasShipAddress = false;
+ result.shipAddress_ = "";
+ return this;
+ }
+
+ // optional string ShipCity = 11;
+ public bool HasShipCity {
+ get { return result.HasShipCity; }
+ }
+ public string ShipCity {
+ get { return result.ShipCity; }
+ set { SetShipCity(value); }
+ }
+ public Builder SetShipCity(string value) {
+ result.hasShipCity = true;
+ result.shipCity_ = value;
+ return this;
+ }
+ public Builder ClearShipCity() {
+ result.hasShipCity = false;
+ result.shipCity_ = "";
+ return this;
+ }
+
+ // optional string ShipRegion = 12;
+ public bool HasShipRegion {
+ get { return result.HasShipRegion; }
+ }
+ public string ShipRegion {
+ get { return result.ShipRegion; }
+ set { SetShipRegion(value); }
+ }
+ public Builder SetShipRegion(string value) {
+ result.hasShipRegion = true;
+ result.shipRegion_ = value;
+ return this;
+ }
+ public Builder ClearShipRegion() {
+ result.hasShipRegion = false;
+ result.shipRegion_ = "";
+ return this;
+ }
+
+ // optional string ShipPostalCode = 13;
+ public bool HasShipPostalCode {
+ get { return result.HasShipPostalCode; }
+ }
+ public string ShipPostalCode {
+ get { return result.ShipPostalCode; }
+ set { SetShipPostalCode(value); }
+ }
+ public Builder SetShipPostalCode(string value) {
+ result.hasShipPostalCode = true;
+ result.shipPostalCode_ = value;
+ return this;
+ }
+ public Builder ClearShipPostalCode() {
+ result.hasShipPostalCode = false;
+ result.shipPostalCode_ = "";
+ return this;
+ }
+
+ // optional string ShipCountry = 14;
+ public bool HasShipCountry {
+ get { return result.HasShipCountry; }
+ }
+ public string ShipCountry {
+ get { return result.ShipCountry; }
+ set { SetShipCountry(value); }
+ }
+ public Builder SetShipCountry(string value) {
+ result.hasShipCountry = true;
+ result.shipCountry_ = value;
+ return this;
+ }
+ public Builder ClearShipCountry() {
+ result.hasShipCountry = false;
+ result.shipCountry_ = "";
+ return this;
+ }
+
+ // repeated .slownorthwind.OrderLine Lines = 15;
+ public scg::IList<global::SlowNorthwind.OrderLine> LinesList {
+ get { return pbc::Lists.AsReadOnly(result.lines_); }
+ }
+ public int LinesCount {
+ get { return result.LinesCount; }
+ }
+ public global::SlowNorthwind.OrderLine GetLines(int index) {
+ return result.GetLines(index);
+ }
+ public Builder SetLines(int index, global::SlowNorthwind.OrderLine value) {
+ result.lines_[index] = value;
+ return this;
+ }
+ public Builder SetLines(int index, global::SlowNorthwind.OrderLine.Builder builderForValue) {
+ result.lines_[index] = builderForValue.Build();
+ return this;
+ }
+ public Builder AddLines(global::SlowNorthwind.OrderLine value) {
+ if (result.lines_ == pbc::Lists<global::SlowNorthwind.OrderLine>.Empty) {
+ result.lines_ = new scg::List<global::SlowNorthwind.OrderLine>();
+ }
+ result.lines_.Add(value);
+ return this;
+ }
+ public Builder AddLines(global::SlowNorthwind.OrderLine.Builder builderForValue) {
+ if (result.lines_ == pbc::Lists<global::SlowNorthwind.OrderLine>.Empty) {
+ result.lines_ = new scg::List<global::SlowNorthwind.OrderLine>();
+ }
+ result.lines_.Add(builderForValue.Build());
+ return this;
+ }
+ public Builder AddRangeLines(scg::IEnumerable<global::SlowNorthwind.OrderLine> values) {
+ if (result.lines_ == pbc::Lists<global::SlowNorthwind.OrderLine>.Empty) {
+ result.lines_ = new scg::List<global::SlowNorthwind.OrderLine>();
+ }
+ base.AddRange(values, result.lines_);
+ return this;
+ }
+ public Builder ClearLines() {
+ result.lines_ = pbc::Lists<global::SlowNorthwind.OrderLine>.Empty;
+ return this;
+ }
+ }
+ }
+
+ public sealed partial class OrderLine : pb::GeneratedMessage<OrderLine, OrderLine.Builder> {
+ private static readonly OrderLine defaultInstance = new OrderLine();
+ public static OrderLine DefaultInstance {
+ get { return defaultInstance; }
+ }
+
+ public override OrderLine DefaultInstanceForType {
+ get { return defaultInstance; }
+ }
+
+ protected override OrderLine ThisMessage {
+ get { return this; }
+ }
+
+ public static pbd::MessageDescriptor Descriptor {
+ get { return global::SlowNorthwind.SlowNorthwindProtoFile.internal__static_slownorthwind_OrderLine__Descriptor; }
+ }
+
+ protected override pb::FieldAccess.FieldAccessorTable<OrderLine, OrderLine.Builder> InternalFieldAccessors {
+ get { return global::SlowNorthwind.SlowNorthwindProtoFile.internal__static_slownorthwind_OrderLine__FieldAccessorTable; }
+ }
+
+ // optional int32 OrderID = 1;
+ private bool hasOrderID;
+ private int orderID_ = 0;
+ public bool HasOrderID {
+ get { return hasOrderID; }
+ }
+ public int OrderID {
+ get { return orderID_; }
+ }
+
+ // optional int32 ProductID = 2;
+ private bool hasProductID;
+ private int productID_ = 0;
+ public bool HasProductID {
+ get { return hasProductID; }
+ }
+ public int ProductID {
+ get { return productID_; }
+ }
+
+ // optional .slowbcl.Decimal UnitPrice = 3;
+ private bool hasUnitPrice;
+ private global::Google.ProtocolBuffers.SlowBcl.Decimal unitPrice_ = global::Google.ProtocolBuffers.SlowBcl.Decimal.DefaultInstance;
+ public bool HasUnitPrice {
+ get { return hasUnitPrice; }
+ }
+ public global::Google.ProtocolBuffers.SlowBcl.Decimal UnitPrice {
+ get { return unitPrice_; }
+ }
+
+ // optional sint32 Quantity = 4;
+ private bool hasQuantity;
+ private int quantity_ = 0;
+ public bool HasQuantity {
+ get { return hasQuantity; }
+ }
+ public int Quantity {
+ get { return quantity_; }
+ }
+
+ // optional float Discount = 5;
+ private bool hasDiscount;
+ private float discount_ = 0F;
+ public bool HasDiscount {
+ get { return hasDiscount; }
+ }
+ public float Discount {
+ get { return discount_; }
+ }
+
+ public static global::SlowNorthwind.OrderLine ParseFrom(pb::ByteString data) {
+ return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
+ }
+ public static global::SlowNorthwind.OrderLine ParseFrom(pb::ByteString data,
+ pb::ExtensionRegistry extensionRegistry) {
+ return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
+ .BuildParsed();
+ }
+ public static global::SlowNorthwind.OrderLine ParseFrom(byte[] data) {
+ return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
+ }
+ public static global::SlowNorthwind.OrderLine ParseFrom(byte[] data,
+ pb::ExtensionRegistry extensionRegistry) {
+ return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
+ .BuildParsed();
+ }
+ public static global::SlowNorthwind.OrderLine ParseFrom(global::System.IO.Stream input) {
+ return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
+ }
+ public static global::SlowNorthwind.OrderLine ParseFrom(
+ global::System.IO.Stream input,
+ pb::ExtensionRegistry extensionRegistry) {
+ return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
+ .BuildParsed();
+ }
+ public static global::SlowNorthwind.OrderLine ParseFrom(pb::CodedInputStream input) {
+ return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
+ }
+ public static global::SlowNorthwind.OrderLine ParseFrom(pb::CodedInputStream input,
+ pb::ExtensionRegistry extensionRegistry) {
+ return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
+ .BuildParsed();
+ }
+
+ public static Builder CreateBuilder() { return new Builder(); }
+ public override Builder CreateBuilderForType() { return new Builder(); }
+ public static Builder CreateBuilder(global::SlowNorthwind.OrderLine prototype) {
+ return (Builder) new Builder().MergeFrom(prototype);
+ }
+
+ public sealed partial class Builder : pb::GeneratedBuilder<global::SlowNorthwind.OrderLine, Builder> {
+ protected override Builder ThisBuilder {
+ get { return this; }
+ }
+
+ // Construct using global::SlowNorthwind.OrderLine.CreateBuilder()
+ internal Builder() {}
+
+ global::SlowNorthwind.OrderLine result = new global::SlowNorthwind.OrderLine();
+
+ protected override global::SlowNorthwind.OrderLine MessageBeingBuilt {
+ get { return result; }
+ }
+
+ public override Builder Clear() {
+ result = new global::SlowNorthwind.OrderLine();
+ return this;
+ }
+
+ public override Builder Clone() {
+ return new Builder().MergeFrom(result);
+ }
+
+ public override pbd::MessageDescriptor DescriptorForType {
+ get { return global::SlowNorthwind.OrderLine.Descriptor; }
+ }
+
+ public override global::SlowNorthwind.OrderLine DefaultInstanceForType {
+ get { return global::SlowNorthwind.OrderLine.DefaultInstance; }
+ }
+
+ public override global::SlowNorthwind.OrderLine BuildPartial() {
+ global::SlowNorthwind.OrderLine returnMe = result;
+ result = null;
+ return returnMe;
+ }
+
+
+ // optional int32 OrderID = 1;
+ public bool HasOrderID {
+ get { return result.HasOrderID; }
+ }
+ public int OrderID {
+ get { return result.OrderID; }
+ set { SetOrderID(value); }
+ }
+ public Builder SetOrderID(int value) {
+ result.hasOrderID = true;
+ result.orderID_ = value;
+ return this;
+ }
+ public Builder ClearOrderID() {
+ result.hasOrderID = false;
+ result.orderID_ = 0;
+ return this;
+ }
+
+ // optional int32 ProductID = 2;
+ public bool HasProductID {
+ get { return result.HasProductID; }
+ }
+ public int ProductID {
+ get { return result.ProductID; }
+ set { SetProductID(value); }
+ }
+ public Builder SetProductID(int value) {
+ result.hasProductID = true;
+ result.productID_ = value;
+ return this;
+ }
+ public Builder ClearProductID() {
+ result.hasProductID = false;
+ result.productID_ = 0;
+ return this;
+ }
+
+ // optional .slowbcl.Decimal UnitPrice = 3;
+ public bool HasUnitPrice {
+ get { return result.HasUnitPrice; }
+ }
+ public global::Google.ProtocolBuffers.SlowBcl.Decimal UnitPrice {
+ get { return result.UnitPrice; }
+ set { SetUnitPrice(value); }
+ }
+ public Builder SetUnitPrice(global::Google.ProtocolBuffers.SlowBcl.Decimal value) {
+ result.hasUnitPrice = true;
+ result.unitPrice_ = value;
+ return this;
+ }
+ public Builder SetUnitPrice(global::Google.ProtocolBuffers.SlowBcl.Decimal.Builder builderForValue) {
+ result.hasUnitPrice = true;
+ result.unitPrice_ = builderForValue.Build();
+ return this;
+ }
+ public Builder MergeUnitPrice(global::Google.ProtocolBuffers.SlowBcl.Decimal value) {
+ if (result.HasUnitPrice &&
+ result.unitPrice_ != global::Google.ProtocolBuffers.SlowBcl.Decimal.DefaultInstance) {
+ result.unitPrice_ =
+ global::Google.ProtocolBuffers.SlowBcl.Decimal.CreateBuilder(result.unitPrice_).MergeFrom(value).BuildPartial();
+ } else {
+ result.unitPrice_ = value;
+ }
+ result.hasUnitPrice = true;
+ return this;
+ }
+ public Builder ClearUnitPrice() {
+ result.hasUnitPrice = false;
+ result.unitPrice_ = global::Google.ProtocolBuffers.SlowBcl.Decimal.DefaultInstance;
+ return this;
+ }
+
+ // optional sint32 Quantity = 4;
+ public bool HasQuantity {
+ get { return result.HasQuantity; }
+ }
+ public int Quantity {
+ get { return result.Quantity; }
+ set { SetQuantity(value); }
+ }
+ public Builder SetQuantity(int value) {
+ result.hasQuantity = true;
+ result.quantity_ = value;
+ return this;
+ }
+ public Builder ClearQuantity() {
+ result.hasQuantity = false;
+ result.quantity_ = 0;
+ return this;
+ }
+
+ // optional float Discount = 5;
+ public bool HasDiscount {
+ get { return result.HasDiscount; }
+ }
+ public float Discount {
+ get { return result.Discount; }
+ set { SetDiscount(value); }
+ }
+ public Builder SetDiscount(float value) {
+ result.hasDiscount = true;
+ result.discount_ = value;
+ return this;
+ }
+ public Builder ClearDiscount() {
+ result.hasDiscount = false;
+ result.discount_ = 0F;
+ return this;
+ }
+ }
+ }
+
+ #endregion
+
+ #region Services
+ #endregion
+}