aboutsummaryrefslogtreecommitdiff
path: root/csharp/TestBed/java/slownorthwind/Slownwind.java
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/TestBed/java/slownorthwind/Slownwind.java')
-rw-r--r--csharp/TestBed/java/slownorthwind/Slownwind.java1132
1 files changed, 0 insertions, 1132 deletions
diff --git a/csharp/TestBed/java/slownorthwind/Slownwind.java b/csharp/TestBed/java/slownorthwind/Slownwind.java
deleted file mode 100644
index 23c6193b..00000000
--- a/csharp/TestBed/java/slownorthwind/Slownwind.java
+++ /dev/null
@@ -1,1132 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-
-package slownorthwind;
-
-public final class Slownwind {
- private Slownwind() {}
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static final com.google.protobuf.Descriptors.FileDescriptor
- descriptor = buildDescriptor();
- private static
- com.google.protobuf.Descriptors.FileDescriptor
- buildDescriptor() {
- java.lang.String descriptorData =
- "\n\017slownwind.proto\022\rslownorthwind\032\rslowbc" +
- "l.proto\"0\n\010Database\022$\n\006Orders\030\001 \003(\0132\024.sl" +
- "ownorthwind.Order\"\216\003\n\005Order\022\017\n\007OrderID\030\001" +
- " \001(\005\022\022\n\nCustomerID\030\002 \001(\t\022\022\n\nEmployeeID\030\003" +
- " \001(\005\022$\n\tOrderDate\030\004 \001(\0132\021.slowbcl.DateTi" +
- "me\022\'\n\014RequiredDate\030\005 \001(\0132\021.slowbcl.DateT" +
- "ime\022&\n\013ShippedDate\030\006 \001(\0132\021.slowbcl.DateT" +
- "ime\022\017\n\007ShipVia\030\007 \001(\005\022!\n\007Freight\030\010 \001(\0132\020." +
- "slowbcl.Decimal\022\020\n\010ShipName\030\t \001(\t\022\023\n\013Shi" +
- "pAddress\030\n \001(\t\022\020\n\010ShipCity\030\013 \001(\t\022\022\n\nShip" +
- "Region\030\014 \001(\t\022\026\n\016ShipPostalCode\030\r \001(\t\022\023\n\013" +
- "ShipCountry\030\016 \001(\t\022\'\n\005Lines\030\017 \003(\0132\030.slown" +
- "orthwind.OrderLine\"x\n\tOrderLine\022\017\n\007Order" +
- "ID\030\001 \001(\005\022\021\n\tProductID\030\002 \001(\005\022#\n\tUnitPrice" +
- "\030\003 \001(\0132\020.slowbcl.Decimal\022\020\n\010Quantity\030\004 \001" +
- "(\021\022\020\n\010Discount\030\005 \001(\002B)\302>\rSlowNorthwind\312>" +
- "\026SlowNorthwindProtoFile";
- try {
- return com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- slowbcl.Slowbcl.getDescriptor(),
- });
- } catch (Exception e) {
- throw new RuntimeException(
- "Failed to parse protocol buffer descriptor for " +
- "\"slownwind.proto\".", e);
- }
- }
-
- public static final class Database extends
- com.google.protobuf.GeneratedMessage {
- // Use Database.newBuilder() to construct.
- private Database() {}
-
- private static final Database defaultInstance = new Database();
- public static Database getDefaultInstance() {
- return defaultInstance;
- }
-
- public Database getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return slownorthwind.Slownwind.internal_static_slownorthwind_Database_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return slownorthwind.Slownwind.internal_static_slownorthwind_Database_fieldAccessorTable;
- }
-
- // repeated .slownorthwind.Order Orders = 1;
- private java.util.List<slownorthwind.Slownwind.Order> orders_ =
- java.util.Collections.emptyList();
- public java.util.List<slownorthwind.Slownwind.Order> getOrdersList() {
- return orders_;
- }
- public int getOrdersCount() { return orders_.size(); }
- public slownorthwind.Slownwind.Order getOrders(int index) {
- return orders_.get(index);
- }
-
- public static slownorthwind.Slownwind.Database parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static slownorthwind.Slownwind.Database parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistry extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static slownorthwind.Slownwind.Database parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static slownorthwind.Slownwind.Database parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistry extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static slownorthwind.Slownwind.Database parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static slownorthwind.Slownwind.Database parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistry extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static slownorthwind.Slownwind.Database parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static slownorthwind.Slownwind.Database parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistry extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return new Builder(); }
- public Builder newBuilderForType() { return new Builder(); }
- public static Builder newBuilder(slownorthwind.Slownwind.Database prototype) {
- return new Builder().mergeFrom(prototype);
- }
-
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- // Construct using slownorthwind.Slownwind.Database.newBuilder()
- private Builder() {}
-
- slownorthwind.Slownwind.Database result = new slownorthwind.Slownwind.Database();
-
- protected slownorthwind.Slownwind.Database internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- result = new slownorthwind.Slownwind.Database();
- return this;
- }
-
- public Builder clone() {
- return new Builder().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return slownorthwind.Slownwind.Database.getDescriptor();
- }
-
- public slownorthwind.Slownwind.Database getDefaultInstanceForType() {
- return slownorthwind.Slownwind.Database.getDefaultInstance();
- }
-
- public slownorthwind.Slownwind.Database build() {
- if (!isInitialized()) {
- throw new com.google.protobuf.UninitializedMessageException(
- result);
- }
- return buildPartial();
- }
-
- private slownorthwind.Slownwind.Database buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw new com.google.protobuf.UninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public slownorthwind.Slownwind.Database buildPartial() {
- if (result.orders_ != java.util.Collections.EMPTY_LIST) {
- result.orders_ =
- java.util.Collections.unmodifiableList(result.orders_);
- }
- slownorthwind.Slownwind.Database returnMe = result;
- result = null;
- return returnMe;
- }
-
-
- // repeated .slownorthwind.Order Orders = 1;
- public java.util.List<slownorthwind.Slownwind.Order> getOrdersList() {
- return java.util.Collections.unmodifiableList(result.orders_);
- }
- public int getOrdersCount() {
- return result.getOrdersCount();
- }
- public slownorthwind.Slownwind.Order getOrders(int index) {
- return result.getOrders(index);
- }
- public Builder setOrders(int index, slownorthwind.Slownwind.Order value) {
- result.orders_.set(index, value);
- return this;
- }
- public Builder setOrders(int index, slownorthwind.Slownwind.Order.Builder builderForValue) {
- result.orders_.set(index, builderForValue.build());
- return this;
- }
- public Builder addOrders(slownorthwind.Slownwind.Order value) {
- if (result.orders_.isEmpty()) {
- result.orders_ = new java.util.ArrayList<slownorthwind.Slownwind.Order>();
- }
- result.orders_.add(value);
- return this;
- }
- public Builder addOrders(slownorthwind.Slownwind.Order.Builder builderForValue) {
- if (result.orders_.isEmpty()) {
- result.orders_ = new java.util.ArrayList<slownorthwind.Slownwind.Order>();
- }
- result.orders_.add(builderForValue.build());
- return this;
- }
- public Builder addAllOrders(
- java.lang.Iterable<? extends slownorthwind.Slownwind.Order> values) {
- if (result.orders_.isEmpty()) {
- result.orders_ = new java.util.ArrayList<slownorthwind.Slownwind.Order>();
- }
- super.addAll(values, result.orders_);
- return this;
- }
- public Builder clearOrders() {
- result.orders_ = java.util.Collections.emptyList();
- return this;
- }
- }
- }
-
- public static final class Order extends
- com.google.protobuf.GeneratedMessage {
- // Use Order.newBuilder() to construct.
- private Order() {}
-
- private static final Order defaultInstance = new Order();
- public static Order getDefaultInstance() {
- return defaultInstance;
- }
-
- public Order getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return slownorthwind.Slownwind.internal_static_slownorthwind_Order_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return slownorthwind.Slownwind.internal_static_slownorthwind_Order_fieldAccessorTable;
- }
-
- // optional int32 OrderID = 1;
- private boolean hasOrderID;
- private int orderID_ = 0;
- public boolean hasOrderID() { return hasOrderID; }
- public int getOrderID() { return orderID_; }
-
- // optional string CustomerID = 2;
- private boolean hasCustomerID;
- private java.lang.String customerID_ = "";
- public boolean hasCustomerID() { return hasCustomerID; }
- public java.lang.String getCustomerID() { return customerID_; }
-
- // optional int32 EmployeeID = 3;
- private boolean hasEmployeeID;
- private int employeeID_ = 0;
- public boolean hasEmployeeID() { return hasEmployeeID; }
- public int getEmployeeID() { return employeeID_; }
-
- // optional .slowbcl.DateTime OrderDate = 4;
- private boolean hasOrderDate;
- private slowbcl.Slowbcl.DateTime orderDate_ = slowbcl.Slowbcl.DateTime.getDefaultInstance();
- public boolean hasOrderDate() { return hasOrderDate; }
- public slowbcl.Slowbcl.DateTime getOrderDate() { return orderDate_; }
-
- // optional .slowbcl.DateTime RequiredDate = 5;
- private boolean hasRequiredDate;
- private slowbcl.Slowbcl.DateTime requiredDate_ = slowbcl.Slowbcl.DateTime.getDefaultInstance();
- public boolean hasRequiredDate() { return hasRequiredDate; }
- public slowbcl.Slowbcl.DateTime getRequiredDate() { return requiredDate_; }
-
- // optional .slowbcl.DateTime ShippedDate = 6;
- private boolean hasShippedDate;
- private slowbcl.Slowbcl.DateTime shippedDate_ = slowbcl.Slowbcl.DateTime.getDefaultInstance();
- public boolean hasShippedDate() { return hasShippedDate; }
- public slowbcl.Slowbcl.DateTime getShippedDate() { return shippedDate_; }
-
- // optional int32 ShipVia = 7;
- private boolean hasShipVia;
- private int shipVia_ = 0;
- public boolean hasShipVia() { return hasShipVia; }
- public int getShipVia() { return shipVia_; }
-
- // optional .slowbcl.Decimal Freight = 8;
- private boolean hasFreight;
- private slowbcl.Slowbcl.Decimal freight_ = slowbcl.Slowbcl.Decimal.getDefaultInstance();
- public boolean hasFreight() { return hasFreight; }
- public slowbcl.Slowbcl.Decimal getFreight() { return freight_; }
-
- // optional string ShipName = 9;
- private boolean hasShipName;
- private java.lang.String shipName_ = "";
- public boolean hasShipName() { return hasShipName; }
- public java.lang.String getShipName() { return shipName_; }
-
- // optional string ShipAddress = 10;
- private boolean hasShipAddress;
- private java.lang.String shipAddress_ = "";
- public boolean hasShipAddress() { return hasShipAddress; }
- public java.lang.String getShipAddress() { return shipAddress_; }
-
- // optional string ShipCity = 11;
- private boolean hasShipCity;
- private java.lang.String shipCity_ = "";
- public boolean hasShipCity() { return hasShipCity; }
- public java.lang.String getShipCity() { return shipCity_; }
-
- // optional string ShipRegion = 12;
- private boolean hasShipRegion;
- private java.lang.String shipRegion_ = "";
- public boolean hasShipRegion() { return hasShipRegion; }
- public java.lang.String getShipRegion() { return shipRegion_; }
-
- // optional string ShipPostalCode = 13;
- private boolean hasShipPostalCode;
- private java.lang.String shipPostalCode_ = "";
- public boolean hasShipPostalCode() { return hasShipPostalCode; }
- public java.lang.String getShipPostalCode() { return shipPostalCode_; }
-
- // optional string ShipCountry = 14;
- private boolean hasShipCountry;
- private java.lang.String shipCountry_ = "";
- public boolean hasShipCountry() { return hasShipCountry; }
- public java.lang.String getShipCountry() { return shipCountry_; }
-
- // repeated .slownorthwind.OrderLine Lines = 15;
- private java.util.List<slownorthwind.Slownwind.OrderLine> lines_ =
- java.util.Collections.emptyList();
- public java.util.List<slownorthwind.Slownwind.OrderLine> getLinesList() {
- return lines_;
- }
- public int getLinesCount() { return lines_.size(); }
- public slownorthwind.Slownwind.OrderLine getLines(int index) {
- return lines_.get(index);
- }
-
- public static slownorthwind.Slownwind.Order parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static slownorthwind.Slownwind.Order parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistry extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static slownorthwind.Slownwind.Order parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static slownorthwind.Slownwind.Order parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistry extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static slownorthwind.Slownwind.Order parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static slownorthwind.Slownwind.Order parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistry extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static slownorthwind.Slownwind.Order parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static slownorthwind.Slownwind.Order parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistry extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return new Builder(); }
- public Builder newBuilderForType() { return new Builder(); }
- public static Builder newBuilder(slownorthwind.Slownwind.Order prototype) {
- return new Builder().mergeFrom(prototype);
- }
-
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- // Construct using slownorthwind.Slownwind.Order.newBuilder()
- private Builder() {}
-
- slownorthwind.Slownwind.Order result = new slownorthwind.Slownwind.Order();
-
- protected slownorthwind.Slownwind.Order internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- result = new slownorthwind.Slownwind.Order();
- return this;
- }
-
- public Builder clone() {
- return new Builder().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return slownorthwind.Slownwind.Order.getDescriptor();
- }
-
- public slownorthwind.Slownwind.Order getDefaultInstanceForType() {
- return slownorthwind.Slownwind.Order.getDefaultInstance();
- }
-
- public slownorthwind.Slownwind.Order build() {
- if (!isInitialized()) {
- throw new com.google.protobuf.UninitializedMessageException(
- result);
- }
- return buildPartial();
- }
-
- private slownorthwind.Slownwind.Order buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw new com.google.protobuf.UninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public slownorthwind.Slownwind.Order buildPartial() {
- if (result.lines_ != java.util.Collections.EMPTY_LIST) {
- result.lines_ =
- java.util.Collections.unmodifiableList(result.lines_);
- }
- slownorthwind.Slownwind.Order returnMe = result;
- result = null;
- return returnMe;
- }
-
-
- // optional int32 OrderID = 1;
- public boolean hasOrderID() {
- return result.hasOrderID();
- }
- public int getOrderID() {
- return result.getOrderID();
- }
- 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 boolean hasCustomerID() {
- return result.hasCustomerID();
- }
- public java.lang.String getCustomerID() {
- return result.getCustomerID();
- }
- public Builder setCustomerID(java.lang.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 boolean hasEmployeeID() {
- return result.hasEmployeeID();
- }
- public int getEmployeeID() {
- return result.getEmployeeID();
- }
- 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 boolean hasOrderDate() {
- return result.hasOrderDate();
- }
- public slowbcl.Slowbcl.DateTime getOrderDate() {
- return result.getOrderDate();
- }
- public Builder setOrderDate(slowbcl.Slowbcl.DateTime value) {
- result.hasOrderDate = true;
- result.orderDate_ = value;
- return this;
- }
- public Builder setOrderDate(slowbcl.Slowbcl.DateTime.Builder builderForValue) {
- result.hasOrderDate = true;
- result.orderDate_ = builderForValue.build();
- return this;
- }
- public Builder mergeOrderDate(slowbcl.Slowbcl.DateTime value) {
- if (result.hasOrderDate() &&
- result.orderDate_ != slowbcl.Slowbcl.DateTime.getDefaultInstance()) {
- result.orderDate_ =
- slowbcl.Slowbcl.DateTime.newBuilder(result.orderDate_).mergeFrom(value).buildPartial();
- } else {
- result.orderDate_ = value;
- }
- result.hasOrderDate = true;
- return this;
- }
- public Builder clearOrderDate() {
- result.hasOrderDate = false;
- result.orderDate_ = slowbcl.Slowbcl.DateTime.getDefaultInstance();
- return this;
- }
-
- // optional .slowbcl.DateTime RequiredDate = 5;
- public boolean hasRequiredDate() {
- return result.hasRequiredDate();
- }
- public slowbcl.Slowbcl.DateTime getRequiredDate() {
- return result.getRequiredDate();
- }
- public Builder setRequiredDate(slowbcl.Slowbcl.DateTime value) {
- result.hasRequiredDate = true;
- result.requiredDate_ = value;
- return this;
- }
- public Builder setRequiredDate(slowbcl.Slowbcl.DateTime.Builder builderForValue) {
- result.hasRequiredDate = true;
- result.requiredDate_ = builderForValue.build();
- return this;
- }
- public Builder mergeRequiredDate(slowbcl.Slowbcl.DateTime value) {
- if (result.hasRequiredDate() &&
- result.requiredDate_ != slowbcl.Slowbcl.DateTime.getDefaultInstance()) {
- result.requiredDate_ =
- slowbcl.Slowbcl.DateTime.newBuilder(result.requiredDate_).mergeFrom(value).buildPartial();
- } else {
- result.requiredDate_ = value;
- }
- result.hasRequiredDate = true;
- return this;
- }
- public Builder clearRequiredDate() {
- result.hasRequiredDate = false;
- result.requiredDate_ = slowbcl.Slowbcl.DateTime.getDefaultInstance();
- return this;
- }
-
- // optional .slowbcl.DateTime ShippedDate = 6;
- public boolean hasShippedDate() {
- return result.hasShippedDate();
- }
- public slowbcl.Slowbcl.DateTime getShippedDate() {
- return result.getShippedDate();
- }
- public Builder setShippedDate(slowbcl.Slowbcl.DateTime value) {
- result.hasShippedDate = true;
- result.shippedDate_ = value;
- return this;
- }
- public Builder setShippedDate(slowbcl.Slowbcl.DateTime.Builder builderForValue) {
- result.hasShippedDate = true;
- result.shippedDate_ = builderForValue.build();
- return this;
- }
- public Builder mergeShippedDate(slowbcl.Slowbcl.DateTime value) {
- if (result.hasShippedDate() &&
- result.shippedDate_ != slowbcl.Slowbcl.DateTime.getDefaultInstance()) {
- result.shippedDate_ =
- slowbcl.Slowbcl.DateTime.newBuilder(result.shippedDate_).mergeFrom(value).buildPartial();
- } else {
- result.shippedDate_ = value;
- }
- result.hasShippedDate = true;
- return this;
- }
- public Builder clearShippedDate() {
- result.hasShippedDate = false;
- result.shippedDate_ = slowbcl.Slowbcl.DateTime.getDefaultInstance();
- return this;
- }
-
- // optional int32 ShipVia = 7;
- public boolean hasShipVia() {
- return result.hasShipVia();
- }
- public int getShipVia() {
- return result.getShipVia();
- }
- 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 boolean hasFreight() {
- return result.hasFreight();
- }
- public slowbcl.Slowbcl.Decimal getFreight() {
- return result.getFreight();
- }
- public Builder setFreight(slowbcl.Slowbcl.Decimal value) {
- result.hasFreight = true;
- result.freight_ = value;
- return this;
- }
- public Builder setFreight(slowbcl.Slowbcl.Decimal.Builder builderForValue) {
- result.hasFreight = true;
- result.freight_ = builderForValue.build();
- return this;
- }
- public Builder mergeFreight(slowbcl.Slowbcl.Decimal value) {
- if (result.hasFreight() &&
- result.freight_ != slowbcl.Slowbcl.Decimal.getDefaultInstance()) {
- result.freight_ =
- slowbcl.Slowbcl.Decimal.newBuilder(result.freight_).mergeFrom(value).buildPartial();
- } else {
- result.freight_ = value;
- }
- result.hasFreight = true;
- return this;
- }
- public Builder clearFreight() {
- result.hasFreight = false;
- result.freight_ = slowbcl.Slowbcl.Decimal.getDefaultInstance();
- return this;
- }
-
- // optional string ShipName = 9;
- public boolean hasShipName() {
- return result.hasShipName();
- }
- public java.lang.String getShipName() {
- return result.getShipName();
- }
- public Builder setShipName(java.lang.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 boolean hasShipAddress() {
- return result.hasShipAddress();
- }
- public java.lang.String getShipAddress() {
- return result.getShipAddress();
- }
- public Builder setShipAddress(java.lang.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 boolean hasShipCity() {
- return result.hasShipCity();
- }
- public java.lang.String getShipCity() {
- return result.getShipCity();
- }
- public Builder setShipCity(java.lang.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 boolean hasShipRegion() {
- return result.hasShipRegion();
- }
- public java.lang.String getShipRegion() {
- return result.getShipRegion();
- }
- public Builder setShipRegion(java.lang.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 boolean hasShipPostalCode() {
- return result.hasShipPostalCode();
- }
- public java.lang.String getShipPostalCode() {
- return result.getShipPostalCode();
- }
- public Builder setShipPostalCode(java.lang.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 boolean hasShipCountry() {
- return result.hasShipCountry();
- }
- public java.lang.String getShipCountry() {
- return result.getShipCountry();
- }
- public Builder setShipCountry(java.lang.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 java.util.List<slownorthwind.Slownwind.OrderLine> getLinesList() {
- return java.util.Collections.unmodifiableList(result.lines_);
- }
- public int getLinesCount() {
- return result.getLinesCount();
- }
- public slownorthwind.Slownwind.OrderLine getLines(int index) {
- return result.getLines(index);
- }
- public Builder setLines(int index, slownorthwind.Slownwind.OrderLine value) {
- result.lines_.set(index, value);
- return this;
- }
- public Builder setLines(int index, slownorthwind.Slownwind.OrderLine.Builder builderForValue) {
- result.lines_.set(index, builderForValue.build());
- return this;
- }
- public Builder addLines(slownorthwind.Slownwind.OrderLine value) {
- if (result.lines_.isEmpty()) {
- result.lines_ = new java.util.ArrayList<slownorthwind.Slownwind.OrderLine>();
- }
- result.lines_.add(value);
- return this;
- }
- public Builder addLines(slownorthwind.Slownwind.OrderLine.Builder builderForValue) {
- if (result.lines_.isEmpty()) {
- result.lines_ = new java.util.ArrayList<slownorthwind.Slownwind.OrderLine>();
- }
- result.lines_.add(builderForValue.build());
- return this;
- }
- public Builder addAllLines(
- java.lang.Iterable<? extends slownorthwind.Slownwind.OrderLine> values) {
- if (result.lines_.isEmpty()) {
- result.lines_ = new java.util.ArrayList<slownorthwind.Slownwind.OrderLine>();
- }
- super.addAll(values, result.lines_);
- return this;
- }
- public Builder clearLines() {
- result.lines_ = java.util.Collections.emptyList();
- return this;
- }
- }
- }
-
- public static final class OrderLine extends
- com.google.protobuf.GeneratedMessage {
- // Use OrderLine.newBuilder() to construct.
- private OrderLine() {}
-
- private static final OrderLine defaultInstance = new OrderLine();
- public static OrderLine getDefaultInstance() {
- return defaultInstance;
- }
-
- public OrderLine getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return slownorthwind.Slownwind.internal_static_slownorthwind_OrderLine_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return slownorthwind.Slownwind.internal_static_slownorthwind_OrderLine_fieldAccessorTable;
- }
-
- // optional int32 OrderID = 1;
- private boolean hasOrderID;
- private int orderID_ = 0;
- public boolean hasOrderID() { return hasOrderID; }
- public int getOrderID() { return orderID_; }
-
- // optional int32 ProductID = 2;
- private boolean hasProductID;
- private int productID_ = 0;
- public boolean hasProductID() { return hasProductID; }
- public int getProductID() { return productID_; }
-
- // optional .slowbcl.Decimal UnitPrice = 3;
- private boolean hasUnitPrice;
- private slowbcl.Slowbcl.Decimal unitPrice_ = slowbcl.Slowbcl.Decimal.getDefaultInstance();
- public boolean hasUnitPrice() { return hasUnitPrice; }
- public slowbcl.Slowbcl.Decimal getUnitPrice() { return unitPrice_; }
-
- // optional sint32 Quantity = 4;
- private boolean hasQuantity;
- private int quantity_ = 0;
- public boolean hasQuantity() { return hasQuantity; }
- public int getQuantity() { return quantity_; }
-
- // optional float Discount = 5;
- private boolean hasDiscount;
- private float discount_ = 0F;
- public boolean hasDiscount() { return hasDiscount; }
- public float getDiscount() { return discount_; }
-
- public static slownorthwind.Slownwind.OrderLine parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static slownorthwind.Slownwind.OrderLine parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistry extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static slownorthwind.Slownwind.OrderLine parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static slownorthwind.Slownwind.OrderLine parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistry extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static slownorthwind.Slownwind.OrderLine parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static slownorthwind.Slownwind.OrderLine parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistry extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static slownorthwind.Slownwind.OrderLine parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static slownorthwind.Slownwind.OrderLine parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistry extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return new Builder(); }
- public Builder newBuilderForType() { return new Builder(); }
- public static Builder newBuilder(slownorthwind.Slownwind.OrderLine prototype) {
- return new Builder().mergeFrom(prototype);
- }
-
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> {
- // Construct using slownorthwind.Slownwind.OrderLine.newBuilder()
- private Builder() {}
-
- slownorthwind.Slownwind.OrderLine result = new slownorthwind.Slownwind.OrderLine();
-
- protected slownorthwind.Slownwind.OrderLine internalGetResult() {
- return result;
- }
-
- public Builder clear() {
- result = new slownorthwind.Slownwind.OrderLine();
- return this;
- }
-
- public Builder clone() {
- return new Builder().mergeFrom(result);
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return slownorthwind.Slownwind.OrderLine.getDescriptor();
- }
-
- public slownorthwind.Slownwind.OrderLine getDefaultInstanceForType() {
- return slownorthwind.Slownwind.OrderLine.getDefaultInstance();
- }
-
- public slownorthwind.Slownwind.OrderLine build() {
- if (!isInitialized()) {
- throw new com.google.protobuf.UninitializedMessageException(
- result);
- }
- return buildPartial();
- }
-
- private slownorthwind.Slownwind.OrderLine buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
- throw new com.google.protobuf.UninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return buildPartial();
- }
-
- public slownorthwind.Slownwind.OrderLine buildPartial() {
- slownorthwind.Slownwind.OrderLine returnMe = result;
- result = null;
- return returnMe;
- }
-
-
- // optional int32 OrderID = 1;
- public boolean hasOrderID() {
- return result.hasOrderID();
- }
- public int getOrderID() {
- return result.getOrderID();
- }
- 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 boolean hasProductID() {
- return result.hasProductID();
- }
- public int getProductID() {
- return result.getProductID();
- }
- 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 boolean hasUnitPrice() {
- return result.hasUnitPrice();
- }
- public slowbcl.Slowbcl.Decimal getUnitPrice() {
- return result.getUnitPrice();
- }
- public Builder setUnitPrice(slowbcl.Slowbcl.Decimal value) {
- result.hasUnitPrice = true;
- result.unitPrice_ = value;
- return this;
- }
- public Builder setUnitPrice(slowbcl.Slowbcl.Decimal.Builder builderForValue) {
- result.hasUnitPrice = true;
- result.unitPrice_ = builderForValue.build();
- return this;
- }
- public Builder mergeUnitPrice(slowbcl.Slowbcl.Decimal value) {
- if (result.hasUnitPrice() &&
- result.unitPrice_ != slowbcl.Slowbcl.Decimal.getDefaultInstance()) {
- result.unitPrice_ =
- slowbcl.Slowbcl.Decimal.newBuilder(result.unitPrice_).mergeFrom(value).buildPartial();
- } else {
- result.unitPrice_ = value;
- }
- result.hasUnitPrice = true;
- return this;
- }
- public Builder clearUnitPrice() {
- result.hasUnitPrice = false;
- result.unitPrice_ = slowbcl.Slowbcl.Decimal.getDefaultInstance();
- return this;
- }
-
- // optional sint32 Quantity = 4;
- public boolean hasQuantity() {
- return result.hasQuantity();
- }
- public int getQuantity() {
- return result.getQuantity();
- }
- 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 boolean hasDiscount() {
- return result.hasDiscount();
- }
- public float getDiscount() {
- return result.getDiscount();
- }
- public Builder setDiscount(float value) {
- result.hasDiscount = true;
- result.discount_ = value;
- return this;
- }
- public Builder clearDiscount() {
- result.hasDiscount = false;
- result.discount_ = 0F;
- return this;
- }
- }
- }
-
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_slownorthwind_Database_descriptor =
- getDescriptor().getMessageTypes().get(0);
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_slownorthwind_Database_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_slownorthwind_Database_descriptor,
- new java.lang.String[] { "Orders", },
- slownorthwind.Slownwind.Database.class,
- slownorthwind.Slownwind.Database.Builder.class);
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_slownorthwind_Order_descriptor =
- getDescriptor().getMessageTypes().get(1);
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_slownorthwind_Order_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_slownorthwind_Order_descriptor,
- new java.lang.String[] { "OrderID", "CustomerID", "EmployeeID", "OrderDate", "RequiredDate", "ShippedDate", "ShipVia", "Freight", "ShipName", "ShipAddress", "ShipCity", "ShipRegion", "ShipPostalCode", "ShipCountry", "Lines", },
- slownorthwind.Slownwind.Order.class,
- slownorthwind.Slownwind.Order.Builder.class);
- private static final com.google.protobuf.Descriptors.Descriptor
- internal_static_slownorthwind_OrderLine_descriptor =
- getDescriptor().getMessageTypes().get(2);
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_slownorthwind_OrderLine_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_slownorthwind_OrderLine_descriptor,
- new java.lang.String[] { "OrderID", "ProductID", "UnitPrice", "Quantity", "Discount", },
- slownorthwind.Slownwind.OrderLine.class,
- slownorthwind.Slownwind.OrderLine.Builder.class);
-}