5206 lines
177 KiB
C#
5206 lines
177 KiB
C#
// Copyright 2020 Google LLC
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: demo.proto
|
|
// </auto-generated>
|
|
#pragma warning disable 1591, 0612, 3021
|
|
#region Designer generated code
|
|
|
|
using pb = global::Google.Protobuf;
|
|
using pbc = global::Google.Protobuf.Collections;
|
|
using pbr = global::Google.Protobuf.Reflection;
|
|
using scg = global::System.Collections.Generic;
|
|
namespace Hipstershop {
|
|
|
|
/// <summary>Holder for reflection information generated from demo.proto</summary>
|
|
public static partial class DemoReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for demo.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static DemoReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"CgpkZW1vLnByb3RvEgtoaXBzdGVyc2hvcCIwCghDYXJ0SXRlbRISCgpwcm9k",
|
|
"dWN0X2lkGAEgASgJEhAKCHF1YW50aXR5GAIgASgFIkYKDkFkZEl0ZW1SZXF1",
|
|
"ZXN0Eg8KB3VzZXJfaWQYASABKAkSIwoEaXRlbRgCIAEoCzIVLmhpcHN0ZXJz",
|
|
"aG9wLkNhcnRJdGVtIiMKEEVtcHR5Q2FydFJlcXVlc3QSDwoHdXNlcl9pZBgB",
|
|
"IAEoCSIhCg5HZXRDYXJ0UmVxdWVzdBIPCgd1c2VyX2lkGAEgASgJIj0KBENh",
|
|
"cnQSDwoHdXNlcl9pZBgBIAEoCRIkCgVpdGVtcxgCIAMoCzIVLmhpcHN0ZXJz",
|
|
"aG9wLkNhcnRJdGVtIgcKBUVtcHR5IkIKGkxpc3RSZWNvbW1lbmRhdGlvbnNS",
|
|
"ZXF1ZXN0Eg8KB3VzZXJfaWQYASABKAkSEwoLcHJvZHVjdF9pZHMYAiADKAki",
|
|
"MgobTGlzdFJlY29tbWVuZGF0aW9uc1Jlc3BvbnNlEhMKC3Byb2R1Y3RfaWRz",
|
|
"GAEgAygJInAKB1Byb2R1Y3QSCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRIT",
|
|
"CgtkZXNjcmlwdGlvbhgDIAEoCRIPCgdwaWN0dXJlGAQgASgJEiUKCXByaWNl",
|
|
"X3VzZBgFIAEoCzISLmhpcHN0ZXJzaG9wLk1vbmV5Ij4KFExpc3RQcm9kdWN0",
|
|
"c1Jlc3BvbnNlEiYKCHByb2R1Y3RzGAEgAygLMhQuaGlwc3RlcnNob3AuUHJv",
|
|
"ZHVjdCIfChFHZXRQcm9kdWN0UmVxdWVzdBIKCgJpZBgBIAEoCSImChVTZWFy",
|
|
"Y2hQcm9kdWN0c1JlcXVlc3QSDQoFcXVlcnkYASABKAkiPwoWU2VhcmNoUHJv",
|
|
"ZHVjdHNSZXNwb25zZRIlCgdyZXN1bHRzGAEgAygLMhQuaGlwc3RlcnNob3Au",
|
|
"UHJvZHVjdCJeCg9HZXRRdW90ZVJlcXVlc3QSJQoHYWRkcmVzcxgBIAEoCzIU",
|
|
"LmhpcHN0ZXJzaG9wLkFkZHJlc3MSJAoFaXRlbXMYAiADKAsyFS5oaXBzdGVy",
|
|
"c2hvcC5DYXJ0SXRlbSI4ChBHZXRRdW90ZVJlc3BvbnNlEiQKCGNvc3RfdXNk",
|
|
"GAEgASgLMhIuaGlwc3RlcnNob3AuTW9uZXkiXwoQU2hpcE9yZGVyUmVxdWVz",
|
|
"dBIlCgdhZGRyZXNzGAEgASgLMhQuaGlwc3RlcnNob3AuQWRkcmVzcxIkCgVp",
|
|
"dGVtcxgCIAMoCzIVLmhpcHN0ZXJzaG9wLkNhcnRJdGVtIigKEVNoaXBPcmRl",
|
|
"clJlc3BvbnNlEhMKC3RyYWNraW5nX2lkGAEgASgJImEKB0FkZHJlc3MSFgoO",
|
|
"c3RyZWV0X2FkZHJlc3MYASABKAkSDAoEY2l0eRgCIAEoCRINCgVzdGF0ZRgD",
|
|
"IAEoCRIPCgdjb3VudHJ5GAQgASgJEhAKCHppcF9jb2RlGAUgASgFIjwKBU1v",
|
|
"bmV5EhUKDWN1cnJlbmN5X2NvZGUYASABKAkSDQoFdW5pdHMYAiABKAMSDQoF",
|
|
"bmFub3MYAyABKAUiOAoeR2V0U3VwcG9ydGVkQ3VycmVuY2llc1Jlc3BvbnNl",
|
|
"EhYKDmN1cnJlbmN5X2NvZGVzGAEgAygJIk4KGUN1cnJlbmN5Q29udmVyc2lv",
|
|
"blJlcXVlc3QSIAoEZnJvbRgBIAEoCzISLmhpcHN0ZXJzaG9wLk1vbmV5Eg8K",
|
|
"B3RvX2NvZGUYAiABKAkikAEKDkNyZWRpdENhcmRJbmZvEhoKEmNyZWRpdF9j",
|
|
"YXJkX251bWJlchgBIAEoCRIXCg9jcmVkaXRfY2FyZF9jdnYYAiABKAUSIwob",
|
|
"Y3JlZGl0X2NhcmRfZXhwaXJhdGlvbl95ZWFyGAMgASgFEiQKHGNyZWRpdF9j",
|
|
"YXJkX2V4cGlyYXRpb25fbW9udGgYBCABKAUiZQoNQ2hhcmdlUmVxdWVzdBIi",
|
|
"CgZhbW91bnQYASABKAsyEi5oaXBzdGVyc2hvcC5Nb25leRIwCgtjcmVkaXRf",
|
|
"Y2FyZBgCIAEoCzIbLmhpcHN0ZXJzaG9wLkNyZWRpdENhcmRJbmZvIigKDkNo",
|
|
"YXJnZVJlc3BvbnNlEhYKDnRyYW5zYWN0aW9uX2lkGAEgASgJIlIKCU9yZGVy",
|
|
"SXRlbRIjCgRpdGVtGAEgASgLMhUuaGlwc3RlcnNob3AuQ2FydEl0ZW0SIAoE",
|
|
"Y29zdBgCIAEoCzISLmhpcHN0ZXJzaG9wLk1vbmV5Ir8BCgtPcmRlclJlc3Vs",
|
|
"dBIQCghvcmRlcl9pZBgBIAEoCRIcChRzaGlwcGluZ190cmFja2luZ19pZBgC",
|
|
"IAEoCRIpCg1zaGlwcGluZ19jb3N0GAMgASgLMhIuaGlwc3RlcnNob3AuTW9u",
|
|
"ZXkSLgoQc2hpcHBpbmdfYWRkcmVzcxgEIAEoCzIULmhpcHN0ZXJzaG9wLkFk",
|
|
"ZHJlc3MSJQoFaXRlbXMYBSADKAsyFi5oaXBzdGVyc2hvcC5PcmRlckl0ZW0i",
|
|
"VgocU2VuZE9yZGVyQ29uZmlybWF0aW9uUmVxdWVzdBINCgVlbWFpbBgBIAEo",
|
|
"CRInCgVvcmRlchgCIAEoCzIYLmhpcHN0ZXJzaG9wLk9yZGVyUmVzdWx0IqMB",
|
|
"ChFQbGFjZU9yZGVyUmVxdWVzdBIPCgd1c2VyX2lkGAEgASgJEhUKDXVzZXJf",
|
|
"Y3VycmVuY3kYAiABKAkSJQoHYWRkcmVzcxgDIAEoCzIULmhpcHN0ZXJzaG9w",
|
|
"LkFkZHJlc3MSDQoFZW1haWwYBSABKAkSMAoLY3JlZGl0X2NhcmQYBiABKAsy",
|
|
"Gy5oaXBzdGVyc2hvcC5DcmVkaXRDYXJkSW5mbyI9ChJQbGFjZU9yZGVyUmVz",
|
|
"cG9uc2USJwoFb3JkZXIYASABKAsyGC5oaXBzdGVyc2hvcC5PcmRlclJlc3Vs",
|
|
"dCIhCglBZFJlcXVlc3QSFAoMY29udGV4dF9rZXlzGAEgAygJIioKCkFkUmVz",
|
|
"cG9uc2USHAoDYWRzGAEgAygLMg8uaGlwc3RlcnNob3AuQWQiKAoCQWQSFAoM",
|
|
"cmVkaXJlY3RfdXJsGAEgASgJEgwKBHRleHQYAiABKAkyygEKC0NhcnRTZXJ2",
|
|
"aWNlEjwKB0FkZEl0ZW0SGy5oaXBzdGVyc2hvcC5BZGRJdGVtUmVxdWVzdBoS",
|
|
"LmhpcHN0ZXJzaG9wLkVtcHR5IgASOwoHR2V0Q2FydBIbLmhpcHN0ZXJzaG9w",
|
|
"LkdldENhcnRSZXF1ZXN0GhEuaGlwc3RlcnNob3AuQ2FydCIAEkAKCUVtcHR5",
|
|
"Q2FydBIdLmhpcHN0ZXJzaG9wLkVtcHR5Q2FydFJlcXVlc3QaEi5oaXBzdGVy",
|
|
"c2hvcC5FbXB0eSIAMoMBChVSZWNvbW1lbmRhdGlvblNlcnZpY2USagoTTGlz",
|
|
"dFJlY29tbWVuZGF0aW9ucxInLmhpcHN0ZXJzaG9wLkxpc3RSZWNvbW1lbmRh",
|
|
"dGlvbnNSZXF1ZXN0GiguaGlwc3RlcnNob3AuTGlzdFJlY29tbWVuZGF0aW9u",
|
|
"c1Jlc3BvbnNlIgAygwIKFVByb2R1Y3RDYXRhbG9nU2VydmljZRJHCgxMaXN0",
|
|
"UHJvZHVjdHMSEi5oaXBzdGVyc2hvcC5FbXB0eRohLmhpcHN0ZXJzaG9wLkxp",
|
|
"c3RQcm9kdWN0c1Jlc3BvbnNlIgASRAoKR2V0UHJvZHVjdBIeLmhpcHN0ZXJz",
|
|
"aG9wLkdldFByb2R1Y3RSZXF1ZXN0GhQuaGlwc3RlcnNob3AuUHJvZHVjdCIA",
|
|
"ElsKDlNlYXJjaFByb2R1Y3RzEiIuaGlwc3RlcnNob3AuU2VhcmNoUHJvZHVj",
|
|
"dHNSZXF1ZXN0GiMuaGlwc3RlcnNob3AuU2VhcmNoUHJvZHVjdHNSZXNwb25z",
|
|
"ZSIAMqoBCg9TaGlwcGluZ1NlcnZpY2USSQoIR2V0UXVvdGUSHC5oaXBzdGVy",
|
|
"c2hvcC5HZXRRdW90ZVJlcXVlc3QaHS5oaXBzdGVyc2hvcC5HZXRRdW90ZVJl",
|
|
"c3BvbnNlIgASTAoJU2hpcE9yZGVyEh0uaGlwc3RlcnNob3AuU2hpcE9yZGVy",
|
|
"UmVxdWVzdBoeLmhpcHN0ZXJzaG9wLlNoaXBPcmRlclJlc3BvbnNlIgAytwEK",
|
|
"D0N1cnJlbmN5U2VydmljZRJbChZHZXRTdXBwb3J0ZWRDdXJyZW5jaWVzEhIu",
|
|
"aGlwc3RlcnNob3AuRW1wdHkaKy5oaXBzdGVyc2hvcC5HZXRTdXBwb3J0ZWRD",
|
|
"dXJyZW5jaWVzUmVzcG9uc2UiABJHCgdDb252ZXJ0EiYuaGlwc3RlcnNob3Au",
|
|
"Q3VycmVuY3lDb252ZXJzaW9uUmVxdWVzdBoSLmhpcHN0ZXJzaG9wLk1vbmV5",
|
|
"IgAyVQoOUGF5bWVudFNlcnZpY2USQwoGQ2hhcmdlEhouaGlwc3RlcnNob3Au",
|
|
"Q2hhcmdlUmVxdWVzdBobLmhpcHN0ZXJzaG9wLkNoYXJnZVJlc3BvbnNlIgAy",
|
|
"aAoMRW1haWxTZXJ2aWNlElgKFVNlbmRPcmRlckNvbmZpcm1hdGlvbhIpLmhp",
|
|
"cHN0ZXJzaG9wLlNlbmRPcmRlckNvbmZpcm1hdGlvblJlcXVlc3QaEi5oaXBz",
|
|
"dGVyc2hvcC5FbXB0eSIAMmIKD0NoZWNrb3V0U2VydmljZRJPCgpQbGFjZU9y",
|
|
"ZGVyEh4uaGlwc3RlcnNob3AuUGxhY2VPcmRlclJlcXVlc3QaHy5oaXBzdGVy",
|
|
"c2hvcC5QbGFjZU9yZGVyUmVzcG9uc2UiADJICglBZFNlcnZpY2USOwoGR2V0",
|
|
"QWRzEhYuaGlwc3RlcnNob3AuQWRSZXF1ZXN0GhcuaGlwc3RlcnNob3AuQWRS",
|
|
"ZXNwb25zZSIAYgZwcm90bzM="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.CartItem), global::Hipstershop.CartItem.Parser, new[]{ "ProductId", "Quantity" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.AddItemRequest), global::Hipstershop.AddItemRequest.Parser, new[]{ "UserId", "Item" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.EmptyCartRequest), global::Hipstershop.EmptyCartRequest.Parser, new[]{ "UserId" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.GetCartRequest), global::Hipstershop.GetCartRequest.Parser, new[]{ "UserId" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.Cart), global::Hipstershop.Cart.Parser, new[]{ "UserId", "Items" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.Empty), global::Hipstershop.Empty.Parser, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.ListRecommendationsRequest), global::Hipstershop.ListRecommendationsRequest.Parser, new[]{ "UserId", "ProductIds" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.ListRecommendationsResponse), global::Hipstershop.ListRecommendationsResponse.Parser, new[]{ "ProductIds" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.Product), global::Hipstershop.Product.Parser, new[]{ "Id", "Name", "Description", "Picture", "PriceUsd" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.ListProductsResponse), global::Hipstershop.ListProductsResponse.Parser, new[]{ "Products" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.GetProductRequest), global::Hipstershop.GetProductRequest.Parser, new[]{ "Id" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.SearchProductsRequest), global::Hipstershop.SearchProductsRequest.Parser, new[]{ "Query" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.SearchProductsResponse), global::Hipstershop.SearchProductsResponse.Parser, new[]{ "Results" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.GetQuoteRequest), global::Hipstershop.GetQuoteRequest.Parser, new[]{ "Address", "Items" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.GetQuoteResponse), global::Hipstershop.GetQuoteResponse.Parser, new[]{ "CostUsd" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.ShipOrderRequest), global::Hipstershop.ShipOrderRequest.Parser, new[]{ "Address", "Items" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.ShipOrderResponse), global::Hipstershop.ShipOrderResponse.Parser, new[]{ "TrackingId" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.Address), global::Hipstershop.Address.Parser, new[]{ "StreetAddress", "City", "State", "Country", "ZipCode" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.Money), global::Hipstershop.Money.Parser, new[]{ "CurrencyCode", "Units", "Nanos" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.GetSupportedCurrenciesResponse), global::Hipstershop.GetSupportedCurrenciesResponse.Parser, new[]{ "CurrencyCodes" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.CurrencyConversionRequest), global::Hipstershop.CurrencyConversionRequest.Parser, new[]{ "From", "ToCode" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.CreditCardInfo), global::Hipstershop.CreditCardInfo.Parser, new[]{ "CreditCardNumber", "CreditCardCvv", "CreditCardExpirationYear", "CreditCardExpirationMonth" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.ChargeRequest), global::Hipstershop.ChargeRequest.Parser, new[]{ "Amount", "CreditCard" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.ChargeResponse), global::Hipstershop.ChargeResponse.Parser, new[]{ "TransactionId" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.OrderItem), global::Hipstershop.OrderItem.Parser, new[]{ "Item", "Cost" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.OrderResult), global::Hipstershop.OrderResult.Parser, new[]{ "OrderId", "ShippingTrackingId", "ShippingCost", "ShippingAddress", "Items" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.SendOrderConfirmationRequest), global::Hipstershop.SendOrderConfirmationRequest.Parser, new[]{ "Email", "Order" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.PlaceOrderRequest), global::Hipstershop.PlaceOrderRequest.Parser, new[]{ "UserId", "UserCurrency", "Address", "Email", "CreditCard" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.PlaceOrderResponse), global::Hipstershop.PlaceOrderResponse.Parser, new[]{ "Order" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.AdRequest), global::Hipstershop.AdRequest.Parser, new[]{ "ContextKeys" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.AdResponse), global::Hipstershop.AdResponse.Parser, new[]{ "Ads" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Hipstershop.Ad), global::Hipstershop.Ad.Parser, new[]{ "RedirectUrl", "Text" }, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
public sealed partial class CartItem : pb::IMessage<CartItem> {
|
|
private static readonly pb::MessageParser<CartItem> _parser = new pb::MessageParser<CartItem>(() => new CartItem());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<CartItem> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[0]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public CartItem() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public CartItem(CartItem other) : this() {
|
|
productId_ = other.productId_;
|
|
quantity_ = other.quantity_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public CartItem Clone() {
|
|
return new CartItem(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "product_id" field.</summary>
|
|
public const int ProductIdFieldNumber = 1;
|
|
private string productId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string ProductId {
|
|
get { return productId_; }
|
|
set {
|
|
productId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "quantity" field.</summary>
|
|
public const int QuantityFieldNumber = 2;
|
|
private int quantity_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int Quantity {
|
|
get { return quantity_; }
|
|
set {
|
|
quantity_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as CartItem);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(CartItem other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (ProductId != other.ProductId) return false;
|
|
if (Quantity != other.Quantity) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (ProductId.Length != 0) hash ^= ProductId.GetHashCode();
|
|
if (Quantity != 0) hash ^= Quantity.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (ProductId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(ProductId);
|
|
}
|
|
if (Quantity != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(Quantity);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (ProductId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ProductId);
|
|
}
|
|
if (Quantity != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Quantity);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(CartItem other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.ProductId.Length != 0) {
|
|
ProductId = other.ProductId;
|
|
}
|
|
if (other.Quantity != 0) {
|
|
Quantity = other.Quantity;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
ProductId = input.ReadString();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Quantity = input.ReadInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class AddItemRequest : pb::IMessage<AddItemRequest> {
|
|
private static readonly pb::MessageParser<AddItemRequest> _parser = new pb::MessageParser<AddItemRequest>(() => new AddItemRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<AddItemRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[1]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public AddItemRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public AddItemRequest(AddItemRequest other) : this() {
|
|
userId_ = other.userId_;
|
|
Item = other.item_ != null ? other.Item.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public AddItemRequest Clone() {
|
|
return new AddItemRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "user_id" field.</summary>
|
|
public const int UserIdFieldNumber = 1;
|
|
private string userId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string UserId {
|
|
get { return userId_; }
|
|
set {
|
|
userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "item" field.</summary>
|
|
public const int ItemFieldNumber = 2;
|
|
private global::Hipstershop.CartItem item_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.CartItem Item {
|
|
get { return item_; }
|
|
set {
|
|
item_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as AddItemRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(AddItemRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (UserId != other.UserId) return false;
|
|
if (!object.Equals(Item, other.Item)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (UserId.Length != 0) hash ^= UserId.GetHashCode();
|
|
if (item_ != null) hash ^= Item.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (UserId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(UserId);
|
|
}
|
|
if (item_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(Item);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (UserId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
|
}
|
|
if (item_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(AddItemRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.UserId.Length != 0) {
|
|
UserId = other.UserId;
|
|
}
|
|
if (other.item_ != null) {
|
|
if (item_ == null) {
|
|
item_ = new global::Hipstershop.CartItem();
|
|
}
|
|
Item.MergeFrom(other.Item);
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
UserId = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (item_ == null) {
|
|
item_ = new global::Hipstershop.CartItem();
|
|
}
|
|
input.ReadMessage(item_);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class EmptyCartRequest : pb::IMessage<EmptyCartRequest> {
|
|
private static readonly pb::MessageParser<EmptyCartRequest> _parser = new pb::MessageParser<EmptyCartRequest>(() => new EmptyCartRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<EmptyCartRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[2]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public EmptyCartRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public EmptyCartRequest(EmptyCartRequest other) : this() {
|
|
userId_ = other.userId_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public EmptyCartRequest Clone() {
|
|
return new EmptyCartRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "user_id" field.</summary>
|
|
public const int UserIdFieldNumber = 1;
|
|
private string userId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string UserId {
|
|
get { return userId_; }
|
|
set {
|
|
userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as EmptyCartRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(EmptyCartRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (UserId != other.UserId) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (UserId.Length != 0) hash ^= UserId.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (UserId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(UserId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (UserId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(EmptyCartRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.UserId.Length != 0) {
|
|
UserId = other.UserId;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
UserId = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class GetCartRequest : pb::IMessage<GetCartRequest> {
|
|
private static readonly pb::MessageParser<GetCartRequest> _parser = new pb::MessageParser<GetCartRequest>(() => new GetCartRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<GetCartRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[3]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetCartRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetCartRequest(GetCartRequest other) : this() {
|
|
userId_ = other.userId_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetCartRequest Clone() {
|
|
return new GetCartRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "user_id" field.</summary>
|
|
public const int UserIdFieldNumber = 1;
|
|
private string userId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string UserId {
|
|
get { return userId_; }
|
|
set {
|
|
userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as GetCartRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(GetCartRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (UserId != other.UserId) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (UserId.Length != 0) hash ^= UserId.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (UserId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(UserId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (UserId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(GetCartRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.UserId.Length != 0) {
|
|
UserId = other.UserId;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
UserId = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class Cart : pb::IMessage<Cart> {
|
|
private static readonly pb::MessageParser<Cart> _parser = new pb::MessageParser<Cart>(() => new Cart());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<Cart> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[4]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Cart() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Cart(Cart other) : this() {
|
|
userId_ = other.userId_;
|
|
items_ = other.items_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Cart Clone() {
|
|
return new Cart(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "user_id" field.</summary>
|
|
public const int UserIdFieldNumber = 1;
|
|
private string userId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string UserId {
|
|
get { return userId_; }
|
|
set {
|
|
userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "items" field.</summary>
|
|
public const int ItemsFieldNumber = 2;
|
|
private static readonly pb::FieldCodec<global::Hipstershop.CartItem> _repeated_items_codec
|
|
= pb::FieldCodec.ForMessage(18, global::Hipstershop.CartItem.Parser);
|
|
private readonly pbc::RepeatedField<global::Hipstershop.CartItem> items_ = new pbc::RepeatedField<global::Hipstershop.CartItem>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::Hipstershop.CartItem> Items {
|
|
get { return items_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Cart);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(Cart other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (UserId != other.UserId) return false;
|
|
if(!items_.Equals(other.items_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (UserId.Length != 0) hash ^= UserId.GetHashCode();
|
|
hash ^= items_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (UserId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(UserId);
|
|
}
|
|
items_.WriteTo(output, _repeated_items_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (UserId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
|
}
|
|
size += items_.CalculateSize(_repeated_items_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(Cart other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.UserId.Length != 0) {
|
|
UserId = other.UserId;
|
|
}
|
|
items_.Add(other.items_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
UserId = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
items_.AddEntriesFrom(input, _repeated_items_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class Empty : pb::IMessage<Empty> {
|
|
private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<Empty> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[5]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Empty() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Empty(Empty other) : this() {
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Empty Clone() {
|
|
return new Empty(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Empty);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(Empty other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(Empty other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class ListRecommendationsRequest : pb::IMessage<ListRecommendationsRequest> {
|
|
private static readonly pb::MessageParser<ListRecommendationsRequest> _parser = new pb::MessageParser<ListRecommendationsRequest>(() => new ListRecommendationsRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<ListRecommendationsRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[6]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ListRecommendationsRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ListRecommendationsRequest(ListRecommendationsRequest other) : this() {
|
|
userId_ = other.userId_;
|
|
productIds_ = other.productIds_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ListRecommendationsRequest Clone() {
|
|
return new ListRecommendationsRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "user_id" field.</summary>
|
|
public const int UserIdFieldNumber = 1;
|
|
private string userId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string UserId {
|
|
get { return userId_; }
|
|
set {
|
|
userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "product_ids" field.</summary>
|
|
public const int ProductIdsFieldNumber = 2;
|
|
private static readonly pb::FieldCodec<string> _repeated_productIds_codec
|
|
= pb::FieldCodec.ForString(18);
|
|
private readonly pbc::RepeatedField<string> productIds_ = new pbc::RepeatedField<string>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<string> ProductIds {
|
|
get { return productIds_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ListRecommendationsRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(ListRecommendationsRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (UserId != other.UserId) return false;
|
|
if(!productIds_.Equals(other.productIds_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (UserId.Length != 0) hash ^= UserId.GetHashCode();
|
|
hash ^= productIds_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (UserId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(UserId);
|
|
}
|
|
productIds_.WriteTo(output, _repeated_productIds_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (UserId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
|
}
|
|
size += productIds_.CalculateSize(_repeated_productIds_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(ListRecommendationsRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.UserId.Length != 0) {
|
|
UserId = other.UserId;
|
|
}
|
|
productIds_.Add(other.productIds_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
UserId = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
productIds_.AddEntriesFrom(input, _repeated_productIds_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class ListRecommendationsResponse : pb::IMessage<ListRecommendationsResponse> {
|
|
private static readonly pb::MessageParser<ListRecommendationsResponse> _parser = new pb::MessageParser<ListRecommendationsResponse>(() => new ListRecommendationsResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<ListRecommendationsResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[7]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ListRecommendationsResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ListRecommendationsResponse(ListRecommendationsResponse other) : this() {
|
|
productIds_ = other.productIds_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ListRecommendationsResponse Clone() {
|
|
return new ListRecommendationsResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "product_ids" field.</summary>
|
|
public const int ProductIdsFieldNumber = 1;
|
|
private static readonly pb::FieldCodec<string> _repeated_productIds_codec
|
|
= pb::FieldCodec.ForString(10);
|
|
private readonly pbc::RepeatedField<string> productIds_ = new pbc::RepeatedField<string>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<string> ProductIds {
|
|
get { return productIds_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ListRecommendationsResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(ListRecommendationsResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!productIds_.Equals(other.productIds_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
hash ^= productIds_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
productIds_.WriteTo(output, _repeated_productIds_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
size += productIds_.CalculateSize(_repeated_productIds_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(ListRecommendationsResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
productIds_.Add(other.productIds_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
productIds_.AddEntriesFrom(input, _repeated_productIds_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class Product : pb::IMessage<Product> {
|
|
private static readonly pb::MessageParser<Product> _parser = new pb::MessageParser<Product>(() => new Product());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<Product> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[8]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Product() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Product(Product other) : this() {
|
|
id_ = other.id_;
|
|
name_ = other.name_;
|
|
description_ = other.description_;
|
|
picture_ = other.picture_;
|
|
PriceUsd = other.priceUsd_ != null ? other.PriceUsd.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Product Clone() {
|
|
return new Product(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private string id_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "name" field.</summary>
|
|
public const int NameFieldNumber = 2;
|
|
private string name_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Name {
|
|
get { return name_; }
|
|
set {
|
|
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "description" field.</summary>
|
|
public const int DescriptionFieldNumber = 3;
|
|
private string description_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Description {
|
|
get { return description_; }
|
|
set {
|
|
description_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "picture" field.</summary>
|
|
public const int PictureFieldNumber = 4;
|
|
private string picture_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Picture {
|
|
get { return picture_; }
|
|
set {
|
|
picture_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "price_usd" field.</summary>
|
|
public const int PriceUsdFieldNumber = 5;
|
|
private global::Hipstershop.Money priceUsd_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.Money PriceUsd {
|
|
get { return priceUsd_; }
|
|
set {
|
|
priceUsd_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Product);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(Product other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
if (Name != other.Name) return false;
|
|
if (Description != other.Description) return false;
|
|
if (Picture != other.Picture) return false;
|
|
if (!object.Equals(PriceUsd, other.PriceUsd)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Id.Length != 0) hash ^= Id.GetHashCode();
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode();
|
|
if (Description.Length != 0) hash ^= Description.GetHashCode();
|
|
if (Picture.Length != 0) hash ^= Picture.GetHashCode();
|
|
if (priceUsd_ != null) hash ^= PriceUsd.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (Id.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Id);
|
|
}
|
|
if (Name.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Name);
|
|
}
|
|
if (Description.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(Description);
|
|
}
|
|
if (Picture.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(Picture);
|
|
}
|
|
if (priceUsd_ != null) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(PriceUsd);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Id.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
|
}
|
|
if (Name.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
}
|
|
if (Description.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Description);
|
|
}
|
|
if (Picture.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Picture);
|
|
}
|
|
if (priceUsd_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(PriceUsd);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(Product other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id.Length != 0) {
|
|
Id = other.Id;
|
|
}
|
|
if (other.Name.Length != 0) {
|
|
Name = other.Name;
|
|
}
|
|
if (other.Description.Length != 0) {
|
|
Description = other.Description;
|
|
}
|
|
if (other.Picture.Length != 0) {
|
|
Picture = other.Picture;
|
|
}
|
|
if (other.priceUsd_ != null) {
|
|
if (priceUsd_ == null) {
|
|
priceUsd_ = new global::Hipstershop.Money();
|
|
}
|
|
PriceUsd.MergeFrom(other.PriceUsd);
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
Description = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
Picture = input.ReadString();
|
|
break;
|
|
}
|
|
case 42: {
|
|
if (priceUsd_ == null) {
|
|
priceUsd_ = new global::Hipstershop.Money();
|
|
}
|
|
input.ReadMessage(priceUsd_);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class ListProductsResponse : pb::IMessage<ListProductsResponse> {
|
|
private static readonly pb::MessageParser<ListProductsResponse> _parser = new pb::MessageParser<ListProductsResponse>(() => new ListProductsResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<ListProductsResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[9]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ListProductsResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ListProductsResponse(ListProductsResponse other) : this() {
|
|
products_ = other.products_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ListProductsResponse Clone() {
|
|
return new ListProductsResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "products" field.</summary>
|
|
public const int ProductsFieldNumber = 1;
|
|
private static readonly pb::FieldCodec<global::Hipstershop.Product> _repeated_products_codec
|
|
= pb::FieldCodec.ForMessage(10, global::Hipstershop.Product.Parser);
|
|
private readonly pbc::RepeatedField<global::Hipstershop.Product> products_ = new pbc::RepeatedField<global::Hipstershop.Product>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::Hipstershop.Product> Products {
|
|
get { return products_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ListProductsResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(ListProductsResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!products_.Equals(other.products_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
hash ^= products_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
products_.WriteTo(output, _repeated_products_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
size += products_.CalculateSize(_repeated_products_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(ListProductsResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
products_.Add(other.products_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
products_.AddEntriesFrom(input, _repeated_products_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class GetProductRequest : pb::IMessage<GetProductRequest> {
|
|
private static readonly pb::MessageParser<GetProductRequest> _parser = new pb::MessageParser<GetProductRequest>(() => new GetProductRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<GetProductRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[10]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetProductRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetProductRequest(GetProductRequest other) : this() {
|
|
id_ = other.id_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetProductRequest Clone() {
|
|
return new GetProductRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private string id_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as GetProductRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(GetProductRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Id.Length != 0) hash ^= Id.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (Id.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Id);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Id.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(GetProductRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id.Length != 0) {
|
|
Id = other.Id;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class SearchProductsRequest : pb::IMessage<SearchProductsRequest> {
|
|
private static readonly pb::MessageParser<SearchProductsRequest> _parser = new pb::MessageParser<SearchProductsRequest>(() => new SearchProductsRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<SearchProductsRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[11]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public SearchProductsRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public SearchProductsRequest(SearchProductsRequest other) : this() {
|
|
query_ = other.query_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public SearchProductsRequest Clone() {
|
|
return new SearchProductsRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "query" field.</summary>
|
|
public const int QueryFieldNumber = 1;
|
|
private string query_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Query {
|
|
get { return query_; }
|
|
set {
|
|
query_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as SearchProductsRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(SearchProductsRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Query != other.Query) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Query.Length != 0) hash ^= Query.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (Query.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Query);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Query.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Query);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(SearchProductsRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Query.Length != 0) {
|
|
Query = other.Query;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
Query = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class SearchProductsResponse : pb::IMessage<SearchProductsResponse> {
|
|
private static readonly pb::MessageParser<SearchProductsResponse> _parser = new pb::MessageParser<SearchProductsResponse>(() => new SearchProductsResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<SearchProductsResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[12]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public SearchProductsResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public SearchProductsResponse(SearchProductsResponse other) : this() {
|
|
results_ = other.results_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public SearchProductsResponse Clone() {
|
|
return new SearchProductsResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "results" field.</summary>
|
|
public const int ResultsFieldNumber = 1;
|
|
private static readonly pb::FieldCodec<global::Hipstershop.Product> _repeated_results_codec
|
|
= pb::FieldCodec.ForMessage(10, global::Hipstershop.Product.Parser);
|
|
private readonly pbc::RepeatedField<global::Hipstershop.Product> results_ = new pbc::RepeatedField<global::Hipstershop.Product>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::Hipstershop.Product> Results {
|
|
get { return results_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as SearchProductsResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(SearchProductsResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!results_.Equals(other.results_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
hash ^= results_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
results_.WriteTo(output, _repeated_results_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
size += results_.CalculateSize(_repeated_results_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(SearchProductsResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
results_.Add(other.results_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
results_.AddEntriesFrom(input, _repeated_results_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class GetQuoteRequest : pb::IMessage<GetQuoteRequest> {
|
|
private static readonly pb::MessageParser<GetQuoteRequest> _parser = new pb::MessageParser<GetQuoteRequest>(() => new GetQuoteRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<GetQuoteRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[13]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetQuoteRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetQuoteRequest(GetQuoteRequest other) : this() {
|
|
Address = other.address_ != null ? other.Address.Clone() : null;
|
|
items_ = other.items_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetQuoteRequest Clone() {
|
|
return new GetQuoteRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "address" field.</summary>
|
|
public const int AddressFieldNumber = 1;
|
|
private global::Hipstershop.Address address_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.Address Address {
|
|
get { return address_; }
|
|
set {
|
|
address_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "items" field.</summary>
|
|
public const int ItemsFieldNumber = 2;
|
|
private static readonly pb::FieldCodec<global::Hipstershop.CartItem> _repeated_items_codec
|
|
= pb::FieldCodec.ForMessage(18, global::Hipstershop.CartItem.Parser);
|
|
private readonly pbc::RepeatedField<global::Hipstershop.CartItem> items_ = new pbc::RepeatedField<global::Hipstershop.CartItem>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::Hipstershop.CartItem> Items {
|
|
get { return items_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as GetQuoteRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(GetQuoteRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(Address, other.Address)) return false;
|
|
if(!items_.Equals(other.items_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (address_ != null) hash ^= Address.GetHashCode();
|
|
hash ^= items_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (address_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Address);
|
|
}
|
|
items_.WriteTo(output, _repeated_items_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (address_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
|
|
}
|
|
size += items_.CalculateSize(_repeated_items_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(GetQuoteRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.address_ != null) {
|
|
if (address_ == null) {
|
|
address_ = new global::Hipstershop.Address();
|
|
}
|
|
Address.MergeFrom(other.Address);
|
|
}
|
|
items_.Add(other.items_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
if (address_ == null) {
|
|
address_ = new global::Hipstershop.Address();
|
|
}
|
|
input.ReadMessage(address_);
|
|
break;
|
|
}
|
|
case 18: {
|
|
items_.AddEntriesFrom(input, _repeated_items_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class GetQuoteResponse : pb::IMessage<GetQuoteResponse> {
|
|
private static readonly pb::MessageParser<GetQuoteResponse> _parser = new pb::MessageParser<GetQuoteResponse>(() => new GetQuoteResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<GetQuoteResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[14]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetQuoteResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetQuoteResponse(GetQuoteResponse other) : this() {
|
|
CostUsd = other.costUsd_ != null ? other.CostUsd.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetQuoteResponse Clone() {
|
|
return new GetQuoteResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "cost_usd" field.</summary>
|
|
public const int CostUsdFieldNumber = 1;
|
|
private global::Hipstershop.Money costUsd_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.Money CostUsd {
|
|
get { return costUsd_; }
|
|
set {
|
|
costUsd_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as GetQuoteResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(GetQuoteResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(CostUsd, other.CostUsd)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (costUsd_ != null) hash ^= CostUsd.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (costUsd_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(CostUsd);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (costUsd_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CostUsd);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(GetQuoteResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.costUsd_ != null) {
|
|
if (costUsd_ == null) {
|
|
costUsd_ = new global::Hipstershop.Money();
|
|
}
|
|
CostUsd.MergeFrom(other.CostUsd);
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
if (costUsd_ == null) {
|
|
costUsd_ = new global::Hipstershop.Money();
|
|
}
|
|
input.ReadMessage(costUsd_);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class ShipOrderRequest : pb::IMessage<ShipOrderRequest> {
|
|
private static readonly pb::MessageParser<ShipOrderRequest> _parser = new pb::MessageParser<ShipOrderRequest>(() => new ShipOrderRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<ShipOrderRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[15]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ShipOrderRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ShipOrderRequest(ShipOrderRequest other) : this() {
|
|
Address = other.address_ != null ? other.Address.Clone() : null;
|
|
items_ = other.items_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ShipOrderRequest Clone() {
|
|
return new ShipOrderRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "address" field.</summary>
|
|
public const int AddressFieldNumber = 1;
|
|
private global::Hipstershop.Address address_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.Address Address {
|
|
get { return address_; }
|
|
set {
|
|
address_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "items" field.</summary>
|
|
public const int ItemsFieldNumber = 2;
|
|
private static readonly pb::FieldCodec<global::Hipstershop.CartItem> _repeated_items_codec
|
|
= pb::FieldCodec.ForMessage(18, global::Hipstershop.CartItem.Parser);
|
|
private readonly pbc::RepeatedField<global::Hipstershop.CartItem> items_ = new pbc::RepeatedField<global::Hipstershop.CartItem>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::Hipstershop.CartItem> Items {
|
|
get { return items_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ShipOrderRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(ShipOrderRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(Address, other.Address)) return false;
|
|
if(!items_.Equals(other.items_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (address_ != null) hash ^= Address.GetHashCode();
|
|
hash ^= items_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (address_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Address);
|
|
}
|
|
items_.WriteTo(output, _repeated_items_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (address_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
|
|
}
|
|
size += items_.CalculateSize(_repeated_items_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(ShipOrderRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.address_ != null) {
|
|
if (address_ == null) {
|
|
address_ = new global::Hipstershop.Address();
|
|
}
|
|
Address.MergeFrom(other.Address);
|
|
}
|
|
items_.Add(other.items_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
if (address_ == null) {
|
|
address_ = new global::Hipstershop.Address();
|
|
}
|
|
input.ReadMessage(address_);
|
|
break;
|
|
}
|
|
case 18: {
|
|
items_.AddEntriesFrom(input, _repeated_items_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class ShipOrderResponse : pb::IMessage<ShipOrderResponse> {
|
|
private static readonly pb::MessageParser<ShipOrderResponse> _parser = new pb::MessageParser<ShipOrderResponse>(() => new ShipOrderResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<ShipOrderResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[16]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ShipOrderResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ShipOrderResponse(ShipOrderResponse other) : this() {
|
|
trackingId_ = other.trackingId_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ShipOrderResponse Clone() {
|
|
return new ShipOrderResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "tracking_id" field.</summary>
|
|
public const int TrackingIdFieldNumber = 1;
|
|
private string trackingId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string TrackingId {
|
|
get { return trackingId_; }
|
|
set {
|
|
trackingId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ShipOrderResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(ShipOrderResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (TrackingId != other.TrackingId) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (TrackingId.Length != 0) hash ^= TrackingId.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (TrackingId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(TrackingId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (TrackingId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackingId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(ShipOrderResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.TrackingId.Length != 0) {
|
|
TrackingId = other.TrackingId;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
TrackingId = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class Address : pb::IMessage<Address> {
|
|
private static readonly pb::MessageParser<Address> _parser = new pb::MessageParser<Address>(() => new Address());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<Address> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[17]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Address() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Address(Address other) : this() {
|
|
streetAddress_ = other.streetAddress_;
|
|
city_ = other.city_;
|
|
state_ = other.state_;
|
|
country_ = other.country_;
|
|
zipCode_ = other.zipCode_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Address Clone() {
|
|
return new Address(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "street_address" field.</summary>
|
|
public const int StreetAddressFieldNumber = 1;
|
|
private string streetAddress_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string StreetAddress {
|
|
get { return streetAddress_; }
|
|
set {
|
|
streetAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "city" field.</summary>
|
|
public const int CityFieldNumber = 2;
|
|
private string city_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string City {
|
|
get { return city_; }
|
|
set {
|
|
city_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "state" field.</summary>
|
|
public const int StateFieldNumber = 3;
|
|
private string state_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string State {
|
|
get { return state_; }
|
|
set {
|
|
state_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "country" field.</summary>
|
|
public const int CountryFieldNumber = 4;
|
|
private string country_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Country {
|
|
get { return country_; }
|
|
set {
|
|
country_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "zip_code" field.</summary>
|
|
public const int ZipCodeFieldNumber = 5;
|
|
private int zipCode_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int ZipCode {
|
|
get { return zipCode_; }
|
|
set {
|
|
zipCode_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Address);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(Address other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (StreetAddress != other.StreetAddress) return false;
|
|
if (City != other.City) return false;
|
|
if (State != other.State) return false;
|
|
if (Country != other.Country) return false;
|
|
if (ZipCode != other.ZipCode) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (StreetAddress.Length != 0) hash ^= StreetAddress.GetHashCode();
|
|
if (City.Length != 0) hash ^= City.GetHashCode();
|
|
if (State.Length != 0) hash ^= State.GetHashCode();
|
|
if (Country.Length != 0) hash ^= Country.GetHashCode();
|
|
if (ZipCode != 0) hash ^= ZipCode.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (StreetAddress.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(StreetAddress);
|
|
}
|
|
if (City.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(City);
|
|
}
|
|
if (State.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(State);
|
|
}
|
|
if (Country.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(Country);
|
|
}
|
|
if (ZipCode != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt32(ZipCode);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (StreetAddress.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(StreetAddress);
|
|
}
|
|
if (City.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(City);
|
|
}
|
|
if (State.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(State);
|
|
}
|
|
if (Country.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Country);
|
|
}
|
|
if (ZipCode != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ZipCode);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(Address other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.StreetAddress.Length != 0) {
|
|
StreetAddress = other.StreetAddress;
|
|
}
|
|
if (other.City.Length != 0) {
|
|
City = other.City;
|
|
}
|
|
if (other.State.Length != 0) {
|
|
State = other.State;
|
|
}
|
|
if (other.Country.Length != 0) {
|
|
Country = other.Country;
|
|
}
|
|
if (other.ZipCode != 0) {
|
|
ZipCode = other.ZipCode;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
StreetAddress = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
City = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
State = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
Country = input.ReadString();
|
|
break;
|
|
}
|
|
case 40: {
|
|
ZipCode = input.ReadInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Represents an amount of money with its currency type.
|
|
/// </summary>
|
|
public sealed partial class Money : pb::IMessage<Money> {
|
|
private static readonly pb::MessageParser<Money> _parser = new pb::MessageParser<Money>(() => new Money());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<Money> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[18]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Money() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Money(Money other) : this() {
|
|
currencyCode_ = other.currencyCode_;
|
|
units_ = other.units_;
|
|
nanos_ = other.nanos_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Money Clone() {
|
|
return new Money(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "currency_code" field.</summary>
|
|
public const int CurrencyCodeFieldNumber = 1;
|
|
private string currencyCode_ = "";
|
|
/// <summary>
|
|
/// The 3-letter currency code defined in ISO 4217.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string CurrencyCode {
|
|
get { return currencyCode_; }
|
|
set {
|
|
currencyCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "units" field.</summary>
|
|
public const int UnitsFieldNumber = 2;
|
|
private long units_;
|
|
/// <summary>
|
|
/// The whole units of the amount.
|
|
/// For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public long Units {
|
|
get { return units_; }
|
|
set {
|
|
units_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "nanos" field.</summary>
|
|
public const int NanosFieldNumber = 3;
|
|
private int nanos_;
|
|
/// <summary>
|
|
/// Number of nano (10^-9) units of the amount.
|
|
/// The value must be between -999,999,999 and +999,999,999 inclusive.
|
|
/// If `units` is positive, `nanos` must be positive or zero.
|
|
/// If `units` is zero, `nanos` can be positive, zero, or negative.
|
|
/// If `units` is negative, `nanos` must be negative or zero.
|
|
/// For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int Nanos {
|
|
get { return nanos_; }
|
|
set {
|
|
nanos_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Money);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(Money other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (CurrencyCode != other.CurrencyCode) return false;
|
|
if (Units != other.Units) return false;
|
|
if (Nanos != other.Nanos) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (CurrencyCode.Length != 0) hash ^= CurrencyCode.GetHashCode();
|
|
if (Units != 0L) hash ^= Units.GetHashCode();
|
|
if (Nanos != 0) hash ^= Nanos.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (CurrencyCode.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(CurrencyCode);
|
|
}
|
|
if (Units != 0L) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt64(Units);
|
|
}
|
|
if (Nanos != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(Nanos);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (CurrencyCode.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(CurrencyCode);
|
|
}
|
|
if (Units != 0L) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Units);
|
|
}
|
|
if (Nanos != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Nanos);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(Money other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.CurrencyCode.Length != 0) {
|
|
CurrencyCode = other.CurrencyCode;
|
|
}
|
|
if (other.Units != 0L) {
|
|
Units = other.Units;
|
|
}
|
|
if (other.Nanos != 0) {
|
|
Nanos = other.Nanos;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
CurrencyCode = input.ReadString();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Units = input.ReadInt64();
|
|
break;
|
|
}
|
|
case 24: {
|
|
Nanos = input.ReadInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class GetSupportedCurrenciesResponse : pb::IMessage<GetSupportedCurrenciesResponse> {
|
|
private static readonly pb::MessageParser<GetSupportedCurrenciesResponse> _parser = new pb::MessageParser<GetSupportedCurrenciesResponse>(() => new GetSupportedCurrenciesResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<GetSupportedCurrenciesResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[19]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetSupportedCurrenciesResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetSupportedCurrenciesResponse(GetSupportedCurrenciesResponse other) : this() {
|
|
currencyCodes_ = other.currencyCodes_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public GetSupportedCurrenciesResponse Clone() {
|
|
return new GetSupportedCurrenciesResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "currency_codes" field.</summary>
|
|
public const int CurrencyCodesFieldNumber = 1;
|
|
private static readonly pb::FieldCodec<string> _repeated_currencyCodes_codec
|
|
= pb::FieldCodec.ForString(10);
|
|
private readonly pbc::RepeatedField<string> currencyCodes_ = new pbc::RepeatedField<string>();
|
|
/// <summary>
|
|
/// The 3-letter currency code defined in ISO 4217.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<string> CurrencyCodes {
|
|
get { return currencyCodes_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as GetSupportedCurrenciesResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(GetSupportedCurrenciesResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!currencyCodes_.Equals(other.currencyCodes_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
hash ^= currencyCodes_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
currencyCodes_.WriteTo(output, _repeated_currencyCodes_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
size += currencyCodes_.CalculateSize(_repeated_currencyCodes_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(GetSupportedCurrenciesResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
currencyCodes_.Add(other.currencyCodes_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
currencyCodes_.AddEntriesFrom(input, _repeated_currencyCodes_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class CurrencyConversionRequest : pb::IMessage<CurrencyConversionRequest> {
|
|
private static readonly pb::MessageParser<CurrencyConversionRequest> _parser = new pb::MessageParser<CurrencyConversionRequest>(() => new CurrencyConversionRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<CurrencyConversionRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[20]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public CurrencyConversionRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public CurrencyConversionRequest(CurrencyConversionRequest other) : this() {
|
|
From = other.from_ != null ? other.From.Clone() : null;
|
|
toCode_ = other.toCode_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public CurrencyConversionRequest Clone() {
|
|
return new CurrencyConversionRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "from" field.</summary>
|
|
public const int FromFieldNumber = 1;
|
|
private global::Hipstershop.Money from_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.Money From {
|
|
get { return from_; }
|
|
set {
|
|
from_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "to_code" field.</summary>
|
|
public const int ToCodeFieldNumber = 2;
|
|
private string toCode_ = "";
|
|
/// <summary>
|
|
/// The 3-letter currency code defined in ISO 4217.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string ToCode {
|
|
get { return toCode_; }
|
|
set {
|
|
toCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as CurrencyConversionRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(CurrencyConversionRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(From, other.From)) return false;
|
|
if (ToCode != other.ToCode) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (from_ != null) hash ^= From.GetHashCode();
|
|
if (ToCode.Length != 0) hash ^= ToCode.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (from_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(From);
|
|
}
|
|
if (ToCode.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(ToCode);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (from_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(From);
|
|
}
|
|
if (ToCode.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ToCode);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(CurrencyConversionRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.from_ != null) {
|
|
if (from_ == null) {
|
|
from_ = new global::Hipstershop.Money();
|
|
}
|
|
From.MergeFrom(other.From);
|
|
}
|
|
if (other.ToCode.Length != 0) {
|
|
ToCode = other.ToCode;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
if (from_ == null) {
|
|
from_ = new global::Hipstershop.Money();
|
|
}
|
|
input.ReadMessage(from_);
|
|
break;
|
|
}
|
|
case 18: {
|
|
ToCode = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class CreditCardInfo : pb::IMessage<CreditCardInfo> {
|
|
private static readonly pb::MessageParser<CreditCardInfo> _parser = new pb::MessageParser<CreditCardInfo>(() => new CreditCardInfo());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<CreditCardInfo> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[21]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public CreditCardInfo() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public CreditCardInfo(CreditCardInfo other) : this() {
|
|
creditCardNumber_ = other.creditCardNumber_;
|
|
creditCardCvv_ = other.creditCardCvv_;
|
|
creditCardExpirationYear_ = other.creditCardExpirationYear_;
|
|
creditCardExpirationMonth_ = other.creditCardExpirationMonth_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public CreditCardInfo Clone() {
|
|
return new CreditCardInfo(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "credit_card_number" field.</summary>
|
|
public const int CreditCardNumberFieldNumber = 1;
|
|
private string creditCardNumber_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string CreditCardNumber {
|
|
get { return creditCardNumber_; }
|
|
set {
|
|
creditCardNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "credit_card_cvv" field.</summary>
|
|
public const int CreditCardCvvFieldNumber = 2;
|
|
private int creditCardCvv_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CreditCardCvv {
|
|
get { return creditCardCvv_; }
|
|
set {
|
|
creditCardCvv_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "credit_card_expiration_year" field.</summary>
|
|
public const int CreditCardExpirationYearFieldNumber = 3;
|
|
private int creditCardExpirationYear_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CreditCardExpirationYear {
|
|
get { return creditCardExpirationYear_; }
|
|
set {
|
|
creditCardExpirationYear_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "credit_card_expiration_month" field.</summary>
|
|
public const int CreditCardExpirationMonthFieldNumber = 4;
|
|
private int creditCardExpirationMonth_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CreditCardExpirationMonth {
|
|
get { return creditCardExpirationMonth_; }
|
|
set {
|
|
creditCardExpirationMonth_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as CreditCardInfo);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(CreditCardInfo other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (CreditCardNumber != other.CreditCardNumber) return false;
|
|
if (CreditCardCvv != other.CreditCardCvv) return false;
|
|
if (CreditCardExpirationYear != other.CreditCardExpirationYear) return false;
|
|
if (CreditCardExpirationMonth != other.CreditCardExpirationMonth) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (CreditCardNumber.Length != 0) hash ^= CreditCardNumber.GetHashCode();
|
|
if (CreditCardCvv != 0) hash ^= CreditCardCvv.GetHashCode();
|
|
if (CreditCardExpirationYear != 0) hash ^= CreditCardExpirationYear.GetHashCode();
|
|
if (CreditCardExpirationMonth != 0) hash ^= CreditCardExpirationMonth.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (CreditCardNumber.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(CreditCardNumber);
|
|
}
|
|
if (CreditCardCvv != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(CreditCardCvv);
|
|
}
|
|
if (CreditCardExpirationYear != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(CreditCardExpirationYear);
|
|
}
|
|
if (CreditCardExpirationMonth != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(CreditCardExpirationMonth);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (CreditCardNumber.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(CreditCardNumber);
|
|
}
|
|
if (CreditCardCvv != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CreditCardCvv);
|
|
}
|
|
if (CreditCardExpirationYear != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CreditCardExpirationYear);
|
|
}
|
|
if (CreditCardExpirationMonth != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CreditCardExpirationMonth);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(CreditCardInfo other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.CreditCardNumber.Length != 0) {
|
|
CreditCardNumber = other.CreditCardNumber;
|
|
}
|
|
if (other.CreditCardCvv != 0) {
|
|
CreditCardCvv = other.CreditCardCvv;
|
|
}
|
|
if (other.CreditCardExpirationYear != 0) {
|
|
CreditCardExpirationYear = other.CreditCardExpirationYear;
|
|
}
|
|
if (other.CreditCardExpirationMonth != 0) {
|
|
CreditCardExpirationMonth = other.CreditCardExpirationMonth;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
CreditCardNumber = input.ReadString();
|
|
break;
|
|
}
|
|
case 16: {
|
|
CreditCardCvv = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
CreditCardExpirationYear = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
CreditCardExpirationMonth = input.ReadInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class ChargeRequest : pb::IMessage<ChargeRequest> {
|
|
private static readonly pb::MessageParser<ChargeRequest> _parser = new pb::MessageParser<ChargeRequest>(() => new ChargeRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<ChargeRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[22]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ChargeRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ChargeRequest(ChargeRequest other) : this() {
|
|
Amount = other.amount_ != null ? other.Amount.Clone() : null;
|
|
CreditCard = other.creditCard_ != null ? other.CreditCard.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ChargeRequest Clone() {
|
|
return new ChargeRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "amount" field.</summary>
|
|
public const int AmountFieldNumber = 1;
|
|
private global::Hipstershop.Money amount_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.Money Amount {
|
|
get { return amount_; }
|
|
set {
|
|
amount_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "credit_card" field.</summary>
|
|
public const int CreditCardFieldNumber = 2;
|
|
private global::Hipstershop.CreditCardInfo creditCard_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.CreditCardInfo CreditCard {
|
|
get { return creditCard_; }
|
|
set {
|
|
creditCard_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ChargeRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(ChargeRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(Amount, other.Amount)) return false;
|
|
if (!object.Equals(CreditCard, other.CreditCard)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (amount_ != null) hash ^= Amount.GetHashCode();
|
|
if (creditCard_ != null) hash ^= CreditCard.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (amount_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Amount);
|
|
}
|
|
if (creditCard_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(CreditCard);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (amount_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Amount);
|
|
}
|
|
if (creditCard_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreditCard);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(ChargeRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.amount_ != null) {
|
|
if (amount_ == null) {
|
|
amount_ = new global::Hipstershop.Money();
|
|
}
|
|
Amount.MergeFrom(other.Amount);
|
|
}
|
|
if (other.creditCard_ != null) {
|
|
if (creditCard_ == null) {
|
|
creditCard_ = new global::Hipstershop.CreditCardInfo();
|
|
}
|
|
CreditCard.MergeFrom(other.CreditCard);
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
if (amount_ == null) {
|
|
amount_ = new global::Hipstershop.Money();
|
|
}
|
|
input.ReadMessage(amount_);
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (creditCard_ == null) {
|
|
creditCard_ = new global::Hipstershop.CreditCardInfo();
|
|
}
|
|
input.ReadMessage(creditCard_);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class ChargeResponse : pb::IMessage<ChargeResponse> {
|
|
private static readonly pb::MessageParser<ChargeResponse> _parser = new pb::MessageParser<ChargeResponse>(() => new ChargeResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<ChargeResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[23]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ChargeResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ChargeResponse(ChargeResponse other) : this() {
|
|
transactionId_ = other.transactionId_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ChargeResponse Clone() {
|
|
return new ChargeResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "transaction_id" field.</summary>
|
|
public const int TransactionIdFieldNumber = 1;
|
|
private string transactionId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string TransactionId {
|
|
get { return transactionId_; }
|
|
set {
|
|
transactionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ChargeResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(ChargeResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (TransactionId != other.TransactionId) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (TransactionId.Length != 0) hash ^= TransactionId.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (TransactionId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(TransactionId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (TransactionId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(TransactionId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(ChargeResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.TransactionId.Length != 0) {
|
|
TransactionId = other.TransactionId;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
TransactionId = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class OrderItem : pb::IMessage<OrderItem> {
|
|
private static readonly pb::MessageParser<OrderItem> _parser = new pb::MessageParser<OrderItem>(() => new OrderItem());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<OrderItem> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[24]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public OrderItem() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public OrderItem(OrderItem other) : this() {
|
|
Item = other.item_ != null ? other.Item.Clone() : null;
|
|
Cost = other.cost_ != null ? other.Cost.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public OrderItem Clone() {
|
|
return new OrderItem(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "item" field.</summary>
|
|
public const int ItemFieldNumber = 1;
|
|
private global::Hipstershop.CartItem item_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.CartItem Item {
|
|
get { return item_; }
|
|
set {
|
|
item_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "cost" field.</summary>
|
|
public const int CostFieldNumber = 2;
|
|
private global::Hipstershop.Money cost_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.Money Cost {
|
|
get { return cost_; }
|
|
set {
|
|
cost_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as OrderItem);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(OrderItem other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(Item, other.Item)) return false;
|
|
if (!object.Equals(Cost, other.Cost)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (item_ != null) hash ^= Item.GetHashCode();
|
|
if (cost_ != null) hash ^= Cost.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (item_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Item);
|
|
}
|
|
if (cost_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(Cost);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (item_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item);
|
|
}
|
|
if (cost_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Cost);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(OrderItem other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.item_ != null) {
|
|
if (item_ == null) {
|
|
item_ = new global::Hipstershop.CartItem();
|
|
}
|
|
Item.MergeFrom(other.Item);
|
|
}
|
|
if (other.cost_ != null) {
|
|
if (cost_ == null) {
|
|
cost_ = new global::Hipstershop.Money();
|
|
}
|
|
Cost.MergeFrom(other.Cost);
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
if (item_ == null) {
|
|
item_ = new global::Hipstershop.CartItem();
|
|
}
|
|
input.ReadMessage(item_);
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (cost_ == null) {
|
|
cost_ = new global::Hipstershop.Money();
|
|
}
|
|
input.ReadMessage(cost_);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class OrderResult : pb::IMessage<OrderResult> {
|
|
private static readonly pb::MessageParser<OrderResult> _parser = new pb::MessageParser<OrderResult>(() => new OrderResult());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<OrderResult> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[25]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public OrderResult() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public OrderResult(OrderResult other) : this() {
|
|
orderId_ = other.orderId_;
|
|
shippingTrackingId_ = other.shippingTrackingId_;
|
|
ShippingCost = other.shippingCost_ != null ? other.ShippingCost.Clone() : null;
|
|
ShippingAddress = other.shippingAddress_ != null ? other.ShippingAddress.Clone() : null;
|
|
items_ = other.items_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public OrderResult Clone() {
|
|
return new OrderResult(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "order_id" field.</summary>
|
|
public const int OrderIdFieldNumber = 1;
|
|
private string orderId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string OrderId {
|
|
get { return orderId_; }
|
|
set {
|
|
orderId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "shipping_tracking_id" field.</summary>
|
|
public const int ShippingTrackingIdFieldNumber = 2;
|
|
private string shippingTrackingId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string ShippingTrackingId {
|
|
get { return shippingTrackingId_; }
|
|
set {
|
|
shippingTrackingId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "shipping_cost" field.</summary>
|
|
public const int ShippingCostFieldNumber = 3;
|
|
private global::Hipstershop.Money shippingCost_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.Money ShippingCost {
|
|
get { return shippingCost_; }
|
|
set {
|
|
shippingCost_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "shipping_address" field.</summary>
|
|
public const int ShippingAddressFieldNumber = 4;
|
|
private global::Hipstershop.Address shippingAddress_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.Address ShippingAddress {
|
|
get { return shippingAddress_; }
|
|
set {
|
|
shippingAddress_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "items" field.</summary>
|
|
public const int ItemsFieldNumber = 5;
|
|
private static readonly pb::FieldCodec<global::Hipstershop.OrderItem> _repeated_items_codec
|
|
= pb::FieldCodec.ForMessage(42, global::Hipstershop.OrderItem.Parser);
|
|
private readonly pbc::RepeatedField<global::Hipstershop.OrderItem> items_ = new pbc::RepeatedField<global::Hipstershop.OrderItem>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::Hipstershop.OrderItem> Items {
|
|
get { return items_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as OrderResult);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(OrderResult other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (OrderId != other.OrderId) return false;
|
|
if (ShippingTrackingId != other.ShippingTrackingId) return false;
|
|
if (!object.Equals(ShippingCost, other.ShippingCost)) return false;
|
|
if (!object.Equals(ShippingAddress, other.ShippingAddress)) return false;
|
|
if(!items_.Equals(other.items_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (OrderId.Length != 0) hash ^= OrderId.GetHashCode();
|
|
if (ShippingTrackingId.Length != 0) hash ^= ShippingTrackingId.GetHashCode();
|
|
if (shippingCost_ != null) hash ^= ShippingCost.GetHashCode();
|
|
if (shippingAddress_ != null) hash ^= ShippingAddress.GetHashCode();
|
|
hash ^= items_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (OrderId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(OrderId);
|
|
}
|
|
if (ShippingTrackingId.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(ShippingTrackingId);
|
|
}
|
|
if (shippingCost_ != null) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(ShippingCost);
|
|
}
|
|
if (shippingAddress_ != null) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(ShippingAddress);
|
|
}
|
|
items_.WriteTo(output, _repeated_items_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (OrderId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderId);
|
|
}
|
|
if (ShippingTrackingId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ShippingTrackingId);
|
|
}
|
|
if (shippingCost_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ShippingCost);
|
|
}
|
|
if (shippingAddress_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ShippingAddress);
|
|
}
|
|
size += items_.CalculateSize(_repeated_items_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(OrderResult other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.OrderId.Length != 0) {
|
|
OrderId = other.OrderId;
|
|
}
|
|
if (other.ShippingTrackingId.Length != 0) {
|
|
ShippingTrackingId = other.ShippingTrackingId;
|
|
}
|
|
if (other.shippingCost_ != null) {
|
|
if (shippingCost_ == null) {
|
|
shippingCost_ = new global::Hipstershop.Money();
|
|
}
|
|
ShippingCost.MergeFrom(other.ShippingCost);
|
|
}
|
|
if (other.shippingAddress_ != null) {
|
|
if (shippingAddress_ == null) {
|
|
shippingAddress_ = new global::Hipstershop.Address();
|
|
}
|
|
ShippingAddress.MergeFrom(other.ShippingAddress);
|
|
}
|
|
items_.Add(other.items_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
OrderId = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
ShippingTrackingId = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
if (shippingCost_ == null) {
|
|
shippingCost_ = new global::Hipstershop.Money();
|
|
}
|
|
input.ReadMessage(shippingCost_);
|
|
break;
|
|
}
|
|
case 34: {
|
|
if (shippingAddress_ == null) {
|
|
shippingAddress_ = new global::Hipstershop.Address();
|
|
}
|
|
input.ReadMessage(shippingAddress_);
|
|
break;
|
|
}
|
|
case 42: {
|
|
items_.AddEntriesFrom(input, _repeated_items_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class SendOrderConfirmationRequest : pb::IMessage<SendOrderConfirmationRequest> {
|
|
private static readonly pb::MessageParser<SendOrderConfirmationRequest> _parser = new pb::MessageParser<SendOrderConfirmationRequest>(() => new SendOrderConfirmationRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<SendOrderConfirmationRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[26]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public SendOrderConfirmationRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public SendOrderConfirmationRequest(SendOrderConfirmationRequest other) : this() {
|
|
email_ = other.email_;
|
|
Order = other.order_ != null ? other.Order.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public SendOrderConfirmationRequest Clone() {
|
|
return new SendOrderConfirmationRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "email" field.</summary>
|
|
public const int EmailFieldNumber = 1;
|
|
private string email_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Email {
|
|
get { return email_; }
|
|
set {
|
|
email_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "order" field.</summary>
|
|
public const int OrderFieldNumber = 2;
|
|
private global::Hipstershop.OrderResult order_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.OrderResult Order {
|
|
get { return order_; }
|
|
set {
|
|
order_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as SendOrderConfirmationRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(SendOrderConfirmationRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Email != other.Email) return false;
|
|
if (!object.Equals(Order, other.Order)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Email.Length != 0) hash ^= Email.GetHashCode();
|
|
if (order_ != null) hash ^= Order.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (Email.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Email);
|
|
}
|
|
if (order_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(Order);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Email.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Email);
|
|
}
|
|
if (order_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Order);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(SendOrderConfirmationRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Email.Length != 0) {
|
|
Email = other.Email;
|
|
}
|
|
if (other.order_ != null) {
|
|
if (order_ == null) {
|
|
order_ = new global::Hipstershop.OrderResult();
|
|
}
|
|
Order.MergeFrom(other.Order);
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
Email = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (order_ == null) {
|
|
order_ = new global::Hipstershop.OrderResult();
|
|
}
|
|
input.ReadMessage(order_);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class PlaceOrderRequest : pb::IMessage<PlaceOrderRequest> {
|
|
private static readonly pb::MessageParser<PlaceOrderRequest> _parser = new pb::MessageParser<PlaceOrderRequest>(() => new PlaceOrderRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<PlaceOrderRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[27]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public PlaceOrderRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public PlaceOrderRequest(PlaceOrderRequest other) : this() {
|
|
userId_ = other.userId_;
|
|
userCurrency_ = other.userCurrency_;
|
|
Address = other.address_ != null ? other.Address.Clone() : null;
|
|
email_ = other.email_;
|
|
CreditCard = other.creditCard_ != null ? other.CreditCard.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public PlaceOrderRequest Clone() {
|
|
return new PlaceOrderRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "user_id" field.</summary>
|
|
public const int UserIdFieldNumber = 1;
|
|
private string userId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string UserId {
|
|
get { return userId_; }
|
|
set {
|
|
userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "user_currency" field.</summary>
|
|
public const int UserCurrencyFieldNumber = 2;
|
|
private string userCurrency_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string UserCurrency {
|
|
get { return userCurrency_; }
|
|
set {
|
|
userCurrency_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "address" field.</summary>
|
|
public const int AddressFieldNumber = 3;
|
|
private global::Hipstershop.Address address_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.Address Address {
|
|
get { return address_; }
|
|
set {
|
|
address_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "email" field.</summary>
|
|
public const int EmailFieldNumber = 5;
|
|
private string email_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Email {
|
|
get { return email_; }
|
|
set {
|
|
email_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "credit_card" field.</summary>
|
|
public const int CreditCardFieldNumber = 6;
|
|
private global::Hipstershop.CreditCardInfo creditCard_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.CreditCardInfo CreditCard {
|
|
get { return creditCard_; }
|
|
set {
|
|
creditCard_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as PlaceOrderRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(PlaceOrderRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (UserId != other.UserId) return false;
|
|
if (UserCurrency != other.UserCurrency) return false;
|
|
if (!object.Equals(Address, other.Address)) return false;
|
|
if (Email != other.Email) return false;
|
|
if (!object.Equals(CreditCard, other.CreditCard)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (UserId.Length != 0) hash ^= UserId.GetHashCode();
|
|
if (UserCurrency.Length != 0) hash ^= UserCurrency.GetHashCode();
|
|
if (address_ != null) hash ^= Address.GetHashCode();
|
|
if (Email.Length != 0) hash ^= Email.GetHashCode();
|
|
if (creditCard_ != null) hash ^= CreditCard.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (UserId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(UserId);
|
|
}
|
|
if (UserCurrency.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(UserCurrency);
|
|
}
|
|
if (address_ != null) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(Address);
|
|
}
|
|
if (Email.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(Email);
|
|
}
|
|
if (creditCard_ != null) {
|
|
output.WriteRawTag(50);
|
|
output.WriteMessage(CreditCard);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (UserId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
|
}
|
|
if (UserCurrency.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserCurrency);
|
|
}
|
|
if (address_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
|
|
}
|
|
if (Email.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Email);
|
|
}
|
|
if (creditCard_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreditCard);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(PlaceOrderRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.UserId.Length != 0) {
|
|
UserId = other.UserId;
|
|
}
|
|
if (other.UserCurrency.Length != 0) {
|
|
UserCurrency = other.UserCurrency;
|
|
}
|
|
if (other.address_ != null) {
|
|
if (address_ == null) {
|
|
address_ = new global::Hipstershop.Address();
|
|
}
|
|
Address.MergeFrom(other.Address);
|
|
}
|
|
if (other.Email.Length != 0) {
|
|
Email = other.Email;
|
|
}
|
|
if (other.creditCard_ != null) {
|
|
if (creditCard_ == null) {
|
|
creditCard_ = new global::Hipstershop.CreditCardInfo();
|
|
}
|
|
CreditCard.MergeFrom(other.CreditCard);
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
UserId = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
UserCurrency = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
if (address_ == null) {
|
|
address_ = new global::Hipstershop.Address();
|
|
}
|
|
input.ReadMessage(address_);
|
|
break;
|
|
}
|
|
case 42: {
|
|
Email = input.ReadString();
|
|
break;
|
|
}
|
|
case 50: {
|
|
if (creditCard_ == null) {
|
|
creditCard_ = new global::Hipstershop.CreditCardInfo();
|
|
}
|
|
input.ReadMessage(creditCard_);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class PlaceOrderResponse : pb::IMessage<PlaceOrderResponse> {
|
|
private static readonly pb::MessageParser<PlaceOrderResponse> _parser = new pb::MessageParser<PlaceOrderResponse>(() => new PlaceOrderResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<PlaceOrderResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[28]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public PlaceOrderResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public PlaceOrderResponse(PlaceOrderResponse other) : this() {
|
|
Order = other.order_ != null ? other.Order.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public PlaceOrderResponse Clone() {
|
|
return new PlaceOrderResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "order" field.</summary>
|
|
public const int OrderFieldNumber = 1;
|
|
private global::Hipstershop.OrderResult order_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Hipstershop.OrderResult Order {
|
|
get { return order_; }
|
|
set {
|
|
order_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as PlaceOrderResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(PlaceOrderResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(Order, other.Order)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (order_ != null) hash ^= Order.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (order_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Order);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (order_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Order);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(PlaceOrderResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.order_ != null) {
|
|
if (order_ == null) {
|
|
order_ = new global::Hipstershop.OrderResult();
|
|
}
|
|
Order.MergeFrom(other.Order);
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
if (order_ == null) {
|
|
order_ = new global::Hipstershop.OrderResult();
|
|
}
|
|
input.ReadMessage(order_);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class AdRequest : pb::IMessage<AdRequest> {
|
|
private static readonly pb::MessageParser<AdRequest> _parser = new pb::MessageParser<AdRequest>(() => new AdRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<AdRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[29]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public AdRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public AdRequest(AdRequest other) : this() {
|
|
contextKeys_ = other.contextKeys_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public AdRequest Clone() {
|
|
return new AdRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "context_keys" field.</summary>
|
|
public const int ContextKeysFieldNumber = 1;
|
|
private static readonly pb::FieldCodec<string> _repeated_contextKeys_codec
|
|
= pb::FieldCodec.ForString(10);
|
|
private readonly pbc::RepeatedField<string> contextKeys_ = new pbc::RepeatedField<string>();
|
|
/// <summary>
|
|
/// List of important key words from the current page describing the context.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<string> ContextKeys {
|
|
get { return contextKeys_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as AdRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(AdRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!contextKeys_.Equals(other.contextKeys_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
hash ^= contextKeys_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
contextKeys_.WriteTo(output, _repeated_contextKeys_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
size += contextKeys_.CalculateSize(_repeated_contextKeys_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(AdRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
contextKeys_.Add(other.contextKeys_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
contextKeys_.AddEntriesFrom(input, _repeated_contextKeys_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class AdResponse : pb::IMessage<AdResponse> {
|
|
private static readonly pb::MessageParser<AdResponse> _parser = new pb::MessageParser<AdResponse>(() => new AdResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<AdResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[30]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public AdResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public AdResponse(AdResponse other) : this() {
|
|
ads_ = other.ads_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public AdResponse Clone() {
|
|
return new AdResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "ads" field.</summary>
|
|
public const int AdsFieldNumber = 1;
|
|
private static readonly pb::FieldCodec<global::Hipstershop.Ad> _repeated_ads_codec
|
|
= pb::FieldCodec.ForMessage(10, global::Hipstershop.Ad.Parser);
|
|
private readonly pbc::RepeatedField<global::Hipstershop.Ad> ads_ = new pbc::RepeatedField<global::Hipstershop.Ad>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::Hipstershop.Ad> Ads {
|
|
get { return ads_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as AdResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(AdResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!ads_.Equals(other.ads_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
hash ^= ads_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
ads_.WriteTo(output, _repeated_ads_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
size += ads_.CalculateSize(_repeated_ads_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(AdResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
ads_.Add(other.ads_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
ads_.AddEntriesFrom(input, _repeated_ads_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class Ad : pb::IMessage<Ad> {
|
|
private static readonly pb::MessageParser<Ad> _parser = new pb::MessageParser<Ad>(() => new Ad());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<Ad> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Hipstershop.DemoReflection.Descriptor.MessageTypes[31]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Ad() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Ad(Ad other) : this() {
|
|
redirectUrl_ = other.redirectUrl_;
|
|
text_ = other.text_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public Ad Clone() {
|
|
return new Ad(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "redirect_url" field.</summary>
|
|
public const int RedirectUrlFieldNumber = 1;
|
|
private string redirectUrl_ = "";
|
|
/// <summary>
|
|
/// url to redirect to when an ad is clicked.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string RedirectUrl {
|
|
get { return redirectUrl_; }
|
|
set {
|
|
redirectUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "text" field.</summary>
|
|
public const int TextFieldNumber = 2;
|
|
private string text_ = "";
|
|
/// <summary>
|
|
/// short advertisement text to display.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Text {
|
|
get { return text_; }
|
|
set {
|
|
text_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Ad);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(Ad other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (RedirectUrl != other.RedirectUrl) return false;
|
|
if (Text != other.Text) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (RedirectUrl.Length != 0) hash ^= RedirectUrl.GetHashCode();
|
|
if (Text.Length != 0) hash ^= Text.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (RedirectUrl.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(RedirectUrl);
|
|
}
|
|
if (Text.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Text);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (RedirectUrl.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(RedirectUrl);
|
|
}
|
|
if (Text.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(Ad other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.RedirectUrl.Length != 0) {
|
|
RedirectUrl = other.RedirectUrl;
|
|
}
|
|
if (other.Text.Length != 0) {
|
|
Text = other.Text;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
RedirectUrl = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Text = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|