x
This commit is contained in:
43
gen/web/payment/v1/payment_pb.d.ts
vendored
Normal file
43
gen/web/payment/v1/payment_pb.d.ts
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
import * as google_type_money_pb from '../../google/type/money_pb';
|
||||
|
||||
|
||||
export class Order extends jspb.Message {
|
||||
getOrderId(): string;
|
||||
setOrderId(value: string): Order;
|
||||
|
||||
getRecipientId(): string;
|
||||
setRecipientId(value: string): Order;
|
||||
|
||||
getAmount(): google_type_money_pb.Money | undefined;
|
||||
setAmount(value?: google_type_money_pb.Money): Order;
|
||||
hasAmount(): boolean;
|
||||
clearAmount(): Order;
|
||||
|
||||
getPaymentProvider(): PaymentProvider;
|
||||
setPaymentProvider(value: PaymentProvider): Order;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Order.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Order): Order.AsObject;
|
||||
static serializeBinaryToWriter(message: Order, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Order;
|
||||
static deserializeBinaryFromReader(message: Order, reader: jspb.BinaryReader): Order;
|
||||
}
|
||||
|
||||
export namespace Order {
|
||||
export type AsObject = {
|
||||
orderId: string,
|
||||
recipientId: string,
|
||||
amount?: google_type_money_pb.Money.AsObject,
|
||||
paymentProvider: PaymentProvider,
|
||||
}
|
||||
}
|
||||
|
||||
export enum PaymentProvider {
|
||||
PAYMENT_PROVIDER_UNSPECIFIED = 0,
|
||||
PAYMENT_PROVIDER_STRIPE = 1,
|
||||
PAYMENT_PROVIDER_PAYPAL = 2,
|
||||
PAYMENT_PROVIDER_APPLE = 3,
|
||||
}
|
||||
300
gen/web/payment/v1/payment_pb.js
Normal file
300
gen/web/payment/v1/payment_pb.js
Normal file
@@ -0,0 +1,300 @@
|
||||
// source: payment/v1/payment.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {missingRequire} reports error on implicit type usages.
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = (function() {
|
||||
if (this) { return this; }
|
||||
if (typeof window !== 'undefined') { return window; }
|
||||
if (typeof global !== 'undefined') { return global; }
|
||||
if (typeof self !== 'undefined') { return self; }
|
||||
return Function('return this')();
|
||||
}.call(null));
|
||||
|
||||
var google_type_money_pb = require('../../google/type/money_pb.js');
|
||||
goog.object.extend(proto, google_type_money_pb);
|
||||
goog.exportSymbol('proto.payment.v1.Order', null, global);
|
||||
goog.exportSymbol('proto.payment.v1.PaymentProvider', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.payment.v1.Order = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.payment.v1.Order, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.payment.v1.Order.displayName = 'proto.payment.v1.Order';
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.payment.v1.Order.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.payment.v1.Order.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.payment.v1.Order} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.payment.v1.Order.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
orderId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
recipientId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
amount: (f = msg.getAmount()) && google_type_money_pb.Money.toObject(includeInstance, f),
|
||||
paymentProvider: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.payment.v1.Order}
|
||||
*/
|
||||
proto.payment.v1.Order.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.payment.v1.Order;
|
||||
return proto.payment.v1.Order.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.payment.v1.Order} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.payment.v1.Order}
|
||||
*/
|
||||
proto.payment.v1.Order.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setOrderId(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setRecipientId(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = new google_type_money_pb.Money;
|
||||
reader.readMessage(value,google_type_money_pb.Money.deserializeBinaryFromReader);
|
||||
msg.setAmount(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {!proto.payment.v1.PaymentProvider} */ (reader.readEnum());
|
||||
msg.setPaymentProvider(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.payment.v1.Order.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.payment.v1.Order.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.payment.v1.Order} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.payment.v1.Order.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getOrderId();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getRecipientId();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getAmount();
|
||||
if (f != null) {
|
||||
writer.writeMessage(
|
||||
3,
|
||||
f,
|
||||
google_type_money_pb.Money.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getPaymentProvider();
|
||||
if (f !== 0.0) {
|
||||
writer.writeEnum(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string order_id = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.payment.v1.Order.prototype.getOrderId = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.payment.v1.Order} returns this
|
||||
*/
|
||||
proto.payment.v1.Order.prototype.setOrderId = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string recipient_id = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.payment.v1.Order.prototype.getRecipientId = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.payment.v1.Order} returns this
|
||||
*/
|
||||
proto.payment.v1.Order.prototype.setRecipientId = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional google.type.Money amount = 3;
|
||||
* @return {?proto.google.type.Money}
|
||||
*/
|
||||
proto.payment.v1.Order.prototype.getAmount = function() {
|
||||
return /** @type{?proto.google.type.Money} */ (
|
||||
jspb.Message.getWrapperField(this, google_type_money_pb.Money, 3));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?proto.google.type.Money|undefined} value
|
||||
* @return {!proto.payment.v1.Order} returns this
|
||||
*/
|
||||
proto.payment.v1.Order.prototype.setAmount = function(value) {
|
||||
return jspb.Message.setWrapperField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
* @return {!proto.payment.v1.Order} returns this
|
||||
*/
|
||||
proto.payment.v1.Order.prototype.clearAmount = function() {
|
||||
return this.setAmount(undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.payment.v1.Order.prototype.hasAmount = function() {
|
||||
return jspb.Message.getField(this, 3) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional PaymentProvider payment_provider = 4;
|
||||
* @return {!proto.payment.v1.PaymentProvider}
|
||||
*/
|
||||
proto.payment.v1.Order.prototype.getPaymentProvider = function() {
|
||||
return /** @type {!proto.payment.v1.PaymentProvider} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.payment.v1.PaymentProvider} value
|
||||
* @return {!proto.payment.v1.Order} returns this
|
||||
*/
|
||||
proto.payment.v1.Order.prototype.setPaymentProvider = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.payment.v1.PaymentProvider = {
|
||||
PAYMENT_PROVIDER_UNSPECIFIED: 0,
|
||||
PAYMENT_PROVIDER_STRIPE: 1,
|
||||
PAYMENT_PROVIDER_PAYPAL: 2,
|
||||
PAYMENT_PROVIDER_APPLE: 3
|
||||
};
|
||||
|
||||
goog.object.extend(exports, proto.payment.v1);
|
||||
67
gen/web/pet/v1/pet_grpc_web_pb.d.ts
vendored
Normal file
67
gen/web/pet/v1/pet_grpc_web_pb.d.ts
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
import * as grpcWeb from 'grpc-web';
|
||||
|
||||
import * as pet_v1_pet_pb from '../../pet/v1/pet_pb';
|
||||
|
||||
|
||||
export class PetStoreServiceClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
getPet(
|
||||
request: pet_v1_pet_pb.GetPetRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.RpcError,
|
||||
response: pet_v1_pet_pb.GetPetResponse) => void
|
||||
): grpcWeb.ClientReadableStream<pet_v1_pet_pb.GetPetResponse>;
|
||||
|
||||
putPet(
|
||||
request: pet_v1_pet_pb.PutPetRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.RpcError,
|
||||
response: pet_v1_pet_pb.PutPetResponse) => void
|
||||
): grpcWeb.ClientReadableStream<pet_v1_pet_pb.PutPetResponse>;
|
||||
|
||||
deletePet(
|
||||
request: pet_v1_pet_pb.DeletePetRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.RpcError,
|
||||
response: pet_v1_pet_pb.DeletePetResponse) => void
|
||||
): grpcWeb.ClientReadableStream<pet_v1_pet_pb.DeletePetResponse>;
|
||||
|
||||
purchasePet(
|
||||
request: pet_v1_pet_pb.PurchasePetRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.RpcError,
|
||||
response: pet_v1_pet_pb.PurchasePetResponse) => void
|
||||
): grpcWeb.ClientReadableStream<pet_v1_pet_pb.PurchasePetResponse>;
|
||||
|
||||
}
|
||||
|
||||
export class PetStoreServicePromiseClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
getPet(
|
||||
request: pet_v1_pet_pb.GetPetRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<pet_v1_pet_pb.GetPetResponse>;
|
||||
|
||||
putPet(
|
||||
request: pet_v1_pet_pb.PutPetRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<pet_v1_pet_pb.PutPetResponse>;
|
||||
|
||||
deletePet(
|
||||
request: pet_v1_pet_pb.DeletePetRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<pet_v1_pet_pb.DeletePetResponse>;
|
||||
|
||||
purchasePet(
|
||||
request: pet_v1_pet_pb.PurchasePetRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<pet_v1_pet_pb.PurchasePetResponse>;
|
||||
|
||||
}
|
||||
|
||||
323
gen/web/pet/v1/pet_grpc_web_pb.js
Normal file
323
gen/web/pet/v1/pet_grpc_web_pb.js
Normal file
@@ -0,0 +1,323 @@
|
||||
/**
|
||||
* @fileoverview gRPC-Web generated client stub for pet.v1
|
||||
* @enhanceable
|
||||
* @public
|
||||
*/
|
||||
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
|
||||
|
||||
const grpc = {};
|
||||
grpc.web = require('grpc-web');
|
||||
|
||||
|
||||
var payment_v1_payment_pb = require('../../payment/v1/payment_pb.js')
|
||||
|
||||
var google_type_datetime_pb = require('../../google/type/datetime_pb.js')
|
||||
const proto = {};
|
||||
proto.pet = {};
|
||||
proto.pet.v1 = require('./pet_pb.js');
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?grpc.web.ClientOptions} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.pet.v1.PetStoreServiceClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options.format = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?grpc.web.ClientOptions} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.pet.v1.PetStoreServicePromiseClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options.format = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.pet.v1.GetPetRequest,
|
||||
* !proto.pet.v1.GetPetResponse>}
|
||||
*/
|
||||
const methodDescriptor_PetStoreService_GetPet = new grpc.web.MethodDescriptor(
|
||||
'/pet.v1.PetStoreService/GetPet',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.pet.v1.GetPetRequest,
|
||||
proto.pet.v1.GetPetResponse,
|
||||
/**
|
||||
* @param {!proto.pet.v1.GetPetRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.pet.v1.GetPetResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.pet.v1.GetPetRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.RpcError, ?proto.pet.v1.GetPetResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.pet.v1.GetPetResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.pet.v1.PetStoreServiceClient.prototype.getPet =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/pet.v1.PetStoreService/GetPet',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_PetStoreService_GetPet,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.pet.v1.GetPetRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>=} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.pet.v1.GetPetResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.pet.v1.PetStoreServicePromiseClient.prototype.getPet =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/pet.v1.PetStoreService/GetPet',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_PetStoreService_GetPet);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.pet.v1.PutPetRequest,
|
||||
* !proto.pet.v1.PutPetResponse>}
|
||||
*/
|
||||
const methodDescriptor_PetStoreService_PutPet = new grpc.web.MethodDescriptor(
|
||||
'/pet.v1.PetStoreService/PutPet',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.pet.v1.PutPetRequest,
|
||||
proto.pet.v1.PutPetResponse,
|
||||
/**
|
||||
* @param {!proto.pet.v1.PutPetRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.pet.v1.PutPetResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.pet.v1.PutPetRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.RpcError, ?proto.pet.v1.PutPetResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.pet.v1.PutPetResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.pet.v1.PetStoreServiceClient.prototype.putPet =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/pet.v1.PetStoreService/PutPet',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_PetStoreService_PutPet,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.pet.v1.PutPetRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>=} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.pet.v1.PutPetResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.pet.v1.PetStoreServicePromiseClient.prototype.putPet =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/pet.v1.PetStoreService/PutPet',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_PetStoreService_PutPet);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.pet.v1.DeletePetRequest,
|
||||
* !proto.pet.v1.DeletePetResponse>}
|
||||
*/
|
||||
const methodDescriptor_PetStoreService_DeletePet = new grpc.web.MethodDescriptor(
|
||||
'/pet.v1.PetStoreService/DeletePet',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.pet.v1.DeletePetRequest,
|
||||
proto.pet.v1.DeletePetResponse,
|
||||
/**
|
||||
* @param {!proto.pet.v1.DeletePetRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.pet.v1.DeletePetResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.pet.v1.DeletePetRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.RpcError, ?proto.pet.v1.DeletePetResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.pet.v1.DeletePetResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.pet.v1.PetStoreServiceClient.prototype.deletePet =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/pet.v1.PetStoreService/DeletePet',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_PetStoreService_DeletePet,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.pet.v1.DeletePetRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>=} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.pet.v1.DeletePetResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.pet.v1.PetStoreServicePromiseClient.prototype.deletePet =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/pet.v1.PetStoreService/DeletePet',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_PetStoreService_DeletePet);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.pet.v1.PurchasePetRequest,
|
||||
* !proto.pet.v1.PurchasePetResponse>}
|
||||
*/
|
||||
const methodDescriptor_PetStoreService_PurchasePet = new grpc.web.MethodDescriptor(
|
||||
'/pet.v1.PetStoreService/PurchasePet',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.pet.v1.PurchasePetRequest,
|
||||
proto.pet.v1.PurchasePetResponse,
|
||||
/**
|
||||
* @param {!proto.pet.v1.PurchasePetRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.pet.v1.PurchasePetResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.pet.v1.PurchasePetRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.RpcError, ?proto.pet.v1.PurchasePetResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.pet.v1.PurchasePetResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.pet.v1.PetStoreServiceClient.prototype.purchasePet =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/pet.v1.PetStoreService/PurchasePet',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_PetStoreService_PurchasePet,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.pet.v1.PurchasePetRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>=} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.pet.v1.PurchasePetResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.pet.v1.PetStoreServicePromiseClient.prototype.purchasePet =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/pet.v1.PetStoreService/PurchasePet',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_PetStoreService_PurchasePet);
|
||||
};
|
||||
|
||||
|
||||
module.exports = proto.pet.v1;
|
||||
|
||||
195
gen/web/pet/v1/pet_pb.d.ts
vendored
Normal file
195
gen/web/pet/v1/pet_pb.d.ts
vendored
Normal file
@@ -0,0 +1,195 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
import * as payment_v1_payment_pb from '../../payment/v1/payment_pb';
|
||||
import * as google_type_datetime_pb from '../../google/type/datetime_pb';
|
||||
|
||||
|
||||
export class Pet extends jspb.Message {
|
||||
getPetType(): PetType;
|
||||
setPetType(value: PetType): Pet;
|
||||
|
||||
getPetId(): string;
|
||||
setPetId(value: string): Pet;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): Pet;
|
||||
|
||||
getCreatedAt(): google_type_datetime_pb.DateTime | undefined;
|
||||
setCreatedAt(value?: google_type_datetime_pb.DateTime): Pet;
|
||||
hasCreatedAt(): boolean;
|
||||
clearCreatedAt(): Pet;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Pet.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Pet): Pet.AsObject;
|
||||
static serializeBinaryToWriter(message: Pet, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Pet;
|
||||
static deserializeBinaryFromReader(message: Pet, reader: jspb.BinaryReader): Pet;
|
||||
}
|
||||
|
||||
export namespace Pet {
|
||||
export type AsObject = {
|
||||
petType: PetType,
|
||||
petId: string,
|
||||
name: string,
|
||||
createdAt?: google_type_datetime_pb.DateTime.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetPetRequest extends jspb.Message {
|
||||
getPetId(): string;
|
||||
setPetId(value: string): GetPetRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetPetRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetPetRequest): GetPetRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetPetRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetPetRequest;
|
||||
static deserializeBinaryFromReader(message: GetPetRequest, reader: jspb.BinaryReader): GetPetRequest;
|
||||
}
|
||||
|
||||
export namespace GetPetRequest {
|
||||
export type AsObject = {
|
||||
petId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetPetResponse extends jspb.Message {
|
||||
getPet(): Pet | undefined;
|
||||
setPet(value?: Pet): GetPetResponse;
|
||||
hasPet(): boolean;
|
||||
clearPet(): GetPetResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetPetResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetPetResponse): GetPetResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetPetResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetPetResponse;
|
||||
static deserializeBinaryFromReader(message: GetPetResponse, reader: jspb.BinaryReader): GetPetResponse;
|
||||
}
|
||||
|
||||
export namespace GetPetResponse {
|
||||
export type AsObject = {
|
||||
pet?: Pet.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class PutPetRequest extends jspb.Message {
|
||||
getPetType(): PetType;
|
||||
setPetType(value: PetType): PutPetRequest;
|
||||
|
||||
getName(): string;
|
||||
setName(value: string): PutPetRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PutPetRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PutPetRequest): PutPetRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: PutPetRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PutPetRequest;
|
||||
static deserializeBinaryFromReader(message: PutPetRequest, reader: jspb.BinaryReader): PutPetRequest;
|
||||
}
|
||||
|
||||
export namespace PutPetRequest {
|
||||
export type AsObject = {
|
||||
petType: PetType,
|
||||
name: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class PutPetResponse extends jspb.Message {
|
||||
getPet(): Pet | undefined;
|
||||
setPet(value?: Pet): PutPetResponse;
|
||||
hasPet(): boolean;
|
||||
clearPet(): PutPetResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PutPetResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PutPetResponse): PutPetResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: PutPetResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PutPetResponse;
|
||||
static deserializeBinaryFromReader(message: PutPetResponse, reader: jspb.BinaryReader): PutPetResponse;
|
||||
}
|
||||
|
||||
export namespace PutPetResponse {
|
||||
export type AsObject = {
|
||||
pet?: Pet.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeletePetRequest extends jspb.Message {
|
||||
getPetId(): string;
|
||||
setPetId(value: string): DeletePetRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeletePetRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeletePetRequest): DeletePetRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: DeletePetRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeletePetRequest;
|
||||
static deserializeBinaryFromReader(message: DeletePetRequest, reader: jspb.BinaryReader): DeletePetRequest;
|
||||
}
|
||||
|
||||
export namespace DeletePetRequest {
|
||||
export type AsObject = {
|
||||
petId: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeletePetResponse extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeletePetResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeletePetResponse): DeletePetResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: DeletePetResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeletePetResponse;
|
||||
static deserializeBinaryFromReader(message: DeletePetResponse, reader: jspb.BinaryReader): DeletePetResponse;
|
||||
}
|
||||
|
||||
export namespace DeletePetResponse {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
export class PurchasePetRequest extends jspb.Message {
|
||||
getPetId(): string;
|
||||
setPetId(value: string): PurchasePetRequest;
|
||||
|
||||
getOrder(): payment_v1_payment_pb.Order | undefined;
|
||||
setOrder(value?: payment_v1_payment_pb.Order): PurchasePetRequest;
|
||||
hasOrder(): boolean;
|
||||
clearOrder(): PurchasePetRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PurchasePetRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PurchasePetRequest): PurchasePetRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: PurchasePetRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PurchasePetRequest;
|
||||
static deserializeBinaryFromReader(message: PurchasePetRequest, reader: jspb.BinaryReader): PurchasePetRequest;
|
||||
}
|
||||
|
||||
export namespace PurchasePetRequest {
|
||||
export type AsObject = {
|
||||
petId: string,
|
||||
order?: payment_v1_payment_pb.Order.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class PurchasePetResponse extends jspb.Message {
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): PurchasePetResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: PurchasePetResponse): PurchasePetResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: PurchasePetResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): PurchasePetResponse;
|
||||
static deserializeBinaryFromReader(message: PurchasePetResponse, reader: jspb.BinaryReader): PurchasePetResponse;
|
||||
}
|
||||
|
||||
export namespace PurchasePetResponse {
|
||||
export type AsObject = {
|
||||
}
|
||||
}
|
||||
|
||||
export enum PetType {
|
||||
PET_TYPE_UNSPECIFIED = 0,
|
||||
PET_TYPE_CAT = 1,
|
||||
PET_TYPE_DOG = 2,
|
||||
PET_TYPE_SNAKE = 3,
|
||||
PET_TYPE_HAMSTER = 4,
|
||||
}
|
||||
1584
gen/web/pet/v1/pet_pb.js
Normal file
1584
gen/web/pet/v1/pet_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
31
gen/web/printer/v1/pdf_invoice_grpc_web_pb.d.ts
vendored
Normal file
31
gen/web/printer/v1/pdf_invoice_grpc_web_pb.d.ts
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
import * as grpcWeb from 'grpc-web';
|
||||
|
||||
import * as printer_v1_pdf_invoice_pb from '../../printer/v1/pdf_invoice_pb';
|
||||
|
||||
|
||||
export class PrinterServiceClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
invoiceGen(
|
||||
request: printer_v1_pdf_invoice_pb.Invoice,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.RpcError,
|
||||
response: printer_v1_pdf_invoice_pb.DocumentResponse) => void
|
||||
): grpcWeb.ClientReadableStream<printer_v1_pdf_invoice_pb.DocumentResponse>;
|
||||
|
||||
}
|
||||
|
||||
export class PrinterServicePromiseClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
invoiceGen(
|
||||
request: printer_v1_pdf_invoice_pb.Invoice,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<printer_v1_pdf_invoice_pb.DocumentResponse>;
|
||||
|
||||
}
|
||||
|
||||
143
gen/web/printer/v1/pdf_invoice_grpc_web_pb.js
Normal file
143
gen/web/printer/v1/pdf_invoice_grpc_web_pb.js
Normal file
@@ -0,0 +1,143 @@
|
||||
/**
|
||||
* @fileoverview gRPC-Web generated client stub for printer.v1.invoice
|
||||
* @enhanceable
|
||||
* @public
|
||||
*/
|
||||
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
|
||||
|
||||
const grpc = {};
|
||||
grpc.web = require('grpc-web');
|
||||
|
||||
|
||||
var google_type_money_pb = require('../../google/type/money_pb.js')
|
||||
|
||||
var google_type_datetime_pb = require('../../google/type/datetime_pb.js')
|
||||
|
||||
var google_api_annotations_pb = require('../../google/api/annotations_pb.js')
|
||||
const proto = {};
|
||||
proto.printer = {};
|
||||
proto.printer.v1 = {};
|
||||
proto.printer.v1.invoice = require('./pdf_invoice_pb.js');
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?grpc.web.ClientOptions} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.printer.v1.invoice.PrinterServiceClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options.format = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?grpc.web.ClientOptions} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.printer.v1.invoice.PrinterServicePromiseClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options.format = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.printer.v1.invoice.Invoice,
|
||||
* !proto.printer.v1.invoice.DocumentResponse>}
|
||||
*/
|
||||
const methodDescriptor_PrinterService_InvoiceGen = new grpc.web.MethodDescriptor(
|
||||
'/printer.v1.invoice.PrinterService/InvoiceGen',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.printer.v1.invoice.Invoice,
|
||||
proto.printer.v1.invoice.DocumentResponse,
|
||||
/**
|
||||
* @param {!proto.printer.v1.invoice.Invoice} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.printer.v1.invoice.DocumentResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.printer.v1.invoice.Invoice} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.RpcError, ?proto.printer.v1.invoice.DocumentResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.printer.v1.invoice.DocumentResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.printer.v1.invoice.PrinterServiceClient.prototype.invoiceGen =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/printer.v1.invoice.PrinterService/InvoiceGen',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_PrinterService_InvoiceGen,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.printer.v1.invoice.Invoice} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>=} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.printer.v1.invoice.DocumentResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.printer.v1.invoice.PrinterServicePromiseClient.prototype.invoiceGen =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/printer.v1.invoice.PrinterService/InvoiceGen',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_PrinterService_InvoiceGen);
|
||||
};
|
||||
|
||||
|
||||
module.exports = proto.printer.v1.invoice;
|
||||
|
||||
267
gen/web/printer/v1/pdf_invoice_pb.d.ts
vendored
Normal file
267
gen/web/printer/v1/pdf_invoice_pb.d.ts
vendored
Normal file
@@ -0,0 +1,267 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
import * as google_type_money_pb from '../../google/type/money_pb';
|
||||
import * as google_type_datetime_pb from '../../google/type/datetime_pb';
|
||||
import * as google_api_annotations_pb from '../../google/api/annotations_pb';
|
||||
|
||||
|
||||
export class InvoiceInfo extends jspb.Message {
|
||||
getInvoiceId(): string;
|
||||
setInvoiceId(value: string): InvoiceInfo;
|
||||
|
||||
getInvoiceDate(): google_type_datetime_pb.DateTime | undefined;
|
||||
setInvoiceDate(value?: google_type_datetime_pb.DateTime): InvoiceInfo;
|
||||
hasInvoiceDate(): boolean;
|
||||
clearInvoiceDate(): InvoiceInfo;
|
||||
|
||||
getInvoiceDueDate(): google_type_datetime_pb.DateTime | undefined;
|
||||
setInvoiceDueDate(value?: google_type_datetime_pb.DateTime): InvoiceInfo;
|
||||
hasInvoiceDueDate(): boolean;
|
||||
clearInvoiceDueDate(): InvoiceInfo;
|
||||
|
||||
getInvoiceType(): InvoiceType;
|
||||
setInvoiceType(value: InvoiceType): InvoiceInfo;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): InvoiceInfo.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: InvoiceInfo): InvoiceInfo.AsObject;
|
||||
static serializeBinaryToWriter(message: InvoiceInfo, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): InvoiceInfo;
|
||||
static deserializeBinaryFromReader(message: InvoiceInfo, reader: jspb.BinaryReader): InvoiceInfo;
|
||||
}
|
||||
|
||||
export namespace InvoiceInfo {
|
||||
export type AsObject = {
|
||||
invoiceId: string,
|
||||
invoiceDate?: google_type_datetime_pb.DateTime.AsObject,
|
||||
invoiceDueDate?: google_type_datetime_pb.DateTime.AsObject,
|
||||
invoiceType: InvoiceType,
|
||||
}
|
||||
}
|
||||
|
||||
export class OrderInfo extends jspb.Message {
|
||||
getOrderId(): string;
|
||||
setOrderId(value: string): OrderInfo;
|
||||
|
||||
getOrderDate(): google_type_datetime_pb.DateTime | undefined;
|
||||
setOrderDate(value?: google_type_datetime_pb.DateTime): OrderInfo;
|
||||
hasOrderDate(): boolean;
|
||||
clearOrderDate(): OrderInfo;
|
||||
|
||||
getOrderDueDate(): google_type_datetime_pb.DateTime | undefined;
|
||||
setOrderDueDate(value?: google_type_datetime_pb.DateTime): OrderInfo;
|
||||
hasOrderDueDate(): boolean;
|
||||
clearOrderDueDate(): OrderInfo;
|
||||
|
||||
getOrderType(): OrderType;
|
||||
setOrderType(value: OrderType): OrderInfo;
|
||||
|
||||
getOrderItemsList(): Array<OrderItem>;
|
||||
setOrderItemsList(value: Array<OrderItem>): OrderInfo;
|
||||
clearOrderItemsList(): OrderInfo;
|
||||
addOrderItems(value?: OrderItem, index?: number): OrderItem;
|
||||
|
||||
getOrderVatItemsList(): Array<OrderVatItem>;
|
||||
setOrderVatItemsList(value: Array<OrderVatItem>): OrderInfo;
|
||||
clearOrderVatItemsList(): OrderInfo;
|
||||
addOrderVatItems(value?: OrderVatItem, index?: number): OrderVatItem;
|
||||
|
||||
getDeposit(): number;
|
||||
setDeposit(value: number): OrderInfo;
|
||||
hasDeposit(): boolean;
|
||||
clearDeposit(): OrderInfo;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): OrderInfo.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: OrderInfo): OrderInfo.AsObject;
|
||||
static serializeBinaryToWriter(message: OrderInfo, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): OrderInfo;
|
||||
static deserializeBinaryFromReader(message: OrderInfo, reader: jspb.BinaryReader): OrderInfo;
|
||||
}
|
||||
|
||||
export namespace OrderInfo {
|
||||
export type AsObject = {
|
||||
orderId: string,
|
||||
orderDate?: google_type_datetime_pb.DateTime.AsObject,
|
||||
orderDueDate?: google_type_datetime_pb.DateTime.AsObject,
|
||||
orderType: OrderType,
|
||||
orderItemsList: Array<OrderItem.AsObject>,
|
||||
orderVatItemsList: Array<OrderVatItem.AsObject>,
|
||||
deposit?: number,
|
||||
}
|
||||
|
||||
export enum DepositCase {
|
||||
_DEPOSIT_NOT_SET = 0,
|
||||
DEPOSIT = 7,
|
||||
}
|
||||
}
|
||||
|
||||
export class OfferInfo extends jspb.Message {
|
||||
getOfferId(): string;
|
||||
setOfferId(value: string): OfferInfo;
|
||||
|
||||
getOfferDate(): google_type_datetime_pb.DateTime | undefined;
|
||||
setOfferDate(value?: google_type_datetime_pb.DateTime): OfferInfo;
|
||||
hasOfferDate(): boolean;
|
||||
clearOfferDate(): OfferInfo;
|
||||
|
||||
getOfferDueDate(): google_type_datetime_pb.DateTime | undefined;
|
||||
setOfferDueDate(value?: google_type_datetime_pb.DateTime): OfferInfo;
|
||||
hasOfferDueDate(): boolean;
|
||||
clearOfferDueDate(): OfferInfo;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): OfferInfo.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: OfferInfo): OfferInfo.AsObject;
|
||||
static serializeBinaryToWriter(message: OfferInfo, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): OfferInfo;
|
||||
static deserializeBinaryFromReader(message: OfferInfo, reader: jspb.BinaryReader): OfferInfo;
|
||||
}
|
||||
|
||||
export namespace OfferInfo {
|
||||
export type AsObject = {
|
||||
offerId: string,
|
||||
offerDate?: google_type_datetime_pb.DateTime.AsObject,
|
||||
offerDueDate?: google_type_datetime_pb.DateTime.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class OrderItem extends jspb.Message {
|
||||
getDescription(): string;
|
||||
setDescription(value: string): OrderItem;
|
||||
|
||||
getVat(): number;
|
||||
setVat(value: number): OrderItem;
|
||||
|
||||
getCount(): number;
|
||||
setCount(value: number): OrderItem;
|
||||
|
||||
getPriceSingle(): number;
|
||||
setPriceSingle(value: number): OrderItem;
|
||||
|
||||
getPriceSum(): number;
|
||||
setPriceSum(value: number): OrderItem;
|
||||
|
||||
getPriceNet(): boolean;
|
||||
setPriceNet(value: boolean): OrderItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): OrderItem.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: OrderItem): OrderItem.AsObject;
|
||||
static serializeBinaryToWriter(message: OrderItem, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): OrderItem;
|
||||
static deserializeBinaryFromReader(message: OrderItem, reader: jspb.BinaryReader): OrderItem;
|
||||
}
|
||||
|
||||
export namespace OrderItem {
|
||||
export type AsObject = {
|
||||
description: string,
|
||||
vat: number,
|
||||
count: number,
|
||||
priceSingle: number,
|
||||
priceSum: number,
|
||||
priceNet: boolean,
|
||||
}
|
||||
}
|
||||
|
||||
export class OrderVatItem extends jspb.Message {
|
||||
getDescription(): string;
|
||||
setDescription(value: string): OrderVatItem;
|
||||
|
||||
getVat(): number;
|
||||
setVat(value: number): OrderVatItem;
|
||||
|
||||
getVatMoneySum(): number;
|
||||
setVatMoneySum(value: number): OrderVatItem;
|
||||
|
||||
getItemsCount(): number;
|
||||
setItemsCount(value: number): OrderVatItem;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): OrderVatItem.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: OrderVatItem): OrderVatItem.AsObject;
|
||||
static serializeBinaryToWriter(message: OrderVatItem, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): OrderVatItem;
|
||||
static deserializeBinaryFromReader(message: OrderVatItem, reader: jspb.BinaryReader): OrderVatItem;
|
||||
}
|
||||
|
||||
export namespace OrderVatItem {
|
||||
export type AsObject = {
|
||||
description: string,
|
||||
vat: number,
|
||||
vatMoneySum: number,
|
||||
itemsCount: number,
|
||||
}
|
||||
}
|
||||
|
||||
export class Invoice extends jspb.Message {
|
||||
getOrder(): OrderInfo | undefined;
|
||||
setOrder(value?: OrderInfo): Invoice;
|
||||
hasOrder(): boolean;
|
||||
clearOrder(): Invoice;
|
||||
|
||||
getOffer(): OfferInfo | undefined;
|
||||
setOffer(value?: OfferInfo): Invoice;
|
||||
hasOffer(): boolean;
|
||||
clearOffer(): Invoice;
|
||||
|
||||
getInfo(): InvoiceInfo | undefined;
|
||||
setInfo(value?: InvoiceInfo): Invoice;
|
||||
hasInfo(): boolean;
|
||||
clearInfo(): Invoice;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Invoice.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Invoice): Invoice.AsObject;
|
||||
static serializeBinaryToWriter(message: Invoice, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Invoice;
|
||||
static deserializeBinaryFromReader(message: Invoice, reader: jspb.BinaryReader): Invoice;
|
||||
}
|
||||
|
||||
export namespace Invoice {
|
||||
export type AsObject = {
|
||||
order?: OrderInfo.AsObject,
|
||||
offer?: OfferInfo.AsObject,
|
||||
info?: InvoiceInfo.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
export class DocumentResponse extends jspb.Message {
|
||||
getDocument(): Uint8Array | string;
|
||||
getDocument_asU8(): Uint8Array;
|
||||
getDocument_asB64(): string;
|
||||
setDocument(value: Uint8Array | string): DocumentResponse;
|
||||
|
||||
getSignature(): string;
|
||||
setSignature(value: string): DocumentResponse;
|
||||
|
||||
getSha512(): string;
|
||||
setSha512(value: string): DocumentResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DocumentResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DocumentResponse): DocumentResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: DocumentResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DocumentResponse;
|
||||
static deserializeBinaryFromReader(message: DocumentResponse, reader: jspb.BinaryReader): DocumentResponse;
|
||||
}
|
||||
|
||||
export namespace DocumentResponse {
|
||||
export type AsObject = {
|
||||
document: Uint8Array | string,
|
||||
signature: string,
|
||||
sha512: string,
|
||||
}
|
||||
}
|
||||
|
||||
export enum InvoiceType {
|
||||
INVOICE_TYPE_UNSPECIFIED = 0,
|
||||
INVOICE_TYPE_PAID = 1,
|
||||
INVOICE_TYPE_OPEN = 2,
|
||||
}
|
||||
export enum OrderType {
|
||||
ORDER_TYPE_UNSPECIFIED = 0,
|
||||
ORDER_TYPE_PHONE = 1,
|
||||
ORDER_TYPE_WWW = 2,
|
||||
ORDER_TYPE_EMAIL = 3,
|
||||
}
|
||||
2089
gen/web/printer/v1/pdf_invoice_pb.js
Normal file
2089
gen/web/printer/v1/pdf_invoice_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
67
gen/web/shop/v1/shop_grpc_web_pb.d.ts
vendored
Normal file
67
gen/web/shop/v1/shop_grpc_web_pb.d.ts
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
import * as grpcWeb from 'grpc-web';
|
||||
|
||||
import * as shop_v1_shop_pb from '../../shop/v1/shop_pb';
|
||||
|
||||
|
||||
export class ShopServiceClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
list(
|
||||
request: shop_v1_shop_pb.Shop,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.RpcError,
|
||||
response: shop_v1_shop_pb.Shop) => void
|
||||
): grpcWeb.ClientReadableStream<shop_v1_shop_pb.Shop>;
|
||||
|
||||
add(
|
||||
request: shop_v1_shop_pb.Shop,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.RpcError,
|
||||
response: shop_v1_shop_pb.Shop) => void
|
||||
): grpcWeb.ClientReadableStream<shop_v1_shop_pb.Shop>;
|
||||
|
||||
update(
|
||||
request: shop_v1_shop_pb.Shop,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.RpcError,
|
||||
response: shop_v1_shop_pb.Shop) => void
|
||||
): grpcWeb.ClientReadableStream<shop_v1_shop_pb.Shop>;
|
||||
|
||||
delete(
|
||||
request: shop_v1_shop_pb.Shop,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.RpcError,
|
||||
response: shop_v1_shop_pb.Shop) => void
|
||||
): grpcWeb.ClientReadableStream<shop_v1_shop_pb.Shop>;
|
||||
|
||||
}
|
||||
|
||||
export class ShopServicePromiseClient {
|
||||
constructor (hostname: string,
|
||||
credentials?: null | { [index: string]: string; },
|
||||
options?: null | { [index: string]: any; });
|
||||
|
||||
list(
|
||||
request: shop_v1_shop_pb.Shop,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<shop_v1_shop_pb.Shop>;
|
||||
|
||||
add(
|
||||
request: shop_v1_shop_pb.Shop,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<shop_v1_shop_pb.Shop>;
|
||||
|
||||
update(
|
||||
request: shop_v1_shop_pb.Shop,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<shop_v1_shop_pb.Shop>;
|
||||
|
||||
delete(
|
||||
request: shop_v1_shop_pb.Shop,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<shop_v1_shop_pb.Shop>;
|
||||
|
||||
}
|
||||
|
||||
323
gen/web/shop/v1/shop_grpc_web_pb.js
Normal file
323
gen/web/shop/v1/shop_grpc_web_pb.js
Normal file
@@ -0,0 +1,323 @@
|
||||
/**
|
||||
* @fileoverview gRPC-Web generated client stub for shop.v1
|
||||
* @enhanceable
|
||||
* @public
|
||||
*/
|
||||
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
|
||||
|
||||
const grpc = {};
|
||||
grpc.web = require('grpc-web');
|
||||
|
||||
|
||||
var google_type_money_pb = require('../../google/type/money_pb.js')
|
||||
|
||||
var google_type_datetime_pb = require('../../google/type/datetime_pb.js')
|
||||
const proto = {};
|
||||
proto.shop = {};
|
||||
proto.shop.v1 = require('./shop_pb.js');
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?grpc.web.ClientOptions} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.shop.v1.ShopServiceClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options.format = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?grpc.web.ClientOptions} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.shop.v1.ShopServicePromiseClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options.format = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.shop.v1.Shop,
|
||||
* !proto.shop.v1.Shop>}
|
||||
*/
|
||||
const methodDescriptor_ShopService_List = new grpc.web.MethodDescriptor(
|
||||
'/shop.v1.ShopService/List',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.shop.v1.Shop,
|
||||
proto.shop.v1.Shop,
|
||||
/**
|
||||
* @param {!proto.shop.v1.Shop} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.shop.v1.Shop.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.shop.v1.Shop} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.RpcError, ?proto.shop.v1.Shop)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.shop.v1.Shop>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.shop.v1.ShopServiceClient.prototype.list =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/shop.v1.ShopService/List',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_ShopService_List,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.shop.v1.Shop} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>=} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.shop.v1.Shop>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.shop.v1.ShopServicePromiseClient.prototype.list =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/shop.v1.ShopService/List',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_ShopService_List);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.shop.v1.Shop,
|
||||
* !proto.shop.v1.Shop>}
|
||||
*/
|
||||
const methodDescriptor_ShopService_Add = new grpc.web.MethodDescriptor(
|
||||
'/shop.v1.ShopService/Add',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.shop.v1.Shop,
|
||||
proto.shop.v1.Shop,
|
||||
/**
|
||||
* @param {!proto.shop.v1.Shop} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.shop.v1.Shop.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.shop.v1.Shop} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.RpcError, ?proto.shop.v1.Shop)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.shop.v1.Shop>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.shop.v1.ShopServiceClient.prototype.add =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/shop.v1.ShopService/Add',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_ShopService_Add,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.shop.v1.Shop} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>=} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.shop.v1.Shop>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.shop.v1.ShopServicePromiseClient.prototype.add =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/shop.v1.ShopService/Add',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_ShopService_Add);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.shop.v1.Shop,
|
||||
* !proto.shop.v1.Shop>}
|
||||
*/
|
||||
const methodDescriptor_ShopService_Update = new grpc.web.MethodDescriptor(
|
||||
'/shop.v1.ShopService/Update',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.shop.v1.Shop,
|
||||
proto.shop.v1.Shop,
|
||||
/**
|
||||
* @param {!proto.shop.v1.Shop} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.shop.v1.Shop.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.shop.v1.Shop} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.RpcError, ?proto.shop.v1.Shop)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.shop.v1.Shop>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.shop.v1.ShopServiceClient.prototype.update =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/shop.v1.ShopService/Update',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_ShopService_Update,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.shop.v1.Shop} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>=} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.shop.v1.Shop>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.shop.v1.ShopServicePromiseClient.prototype.update =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/shop.v1.ShopService/Update',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_ShopService_Update);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.shop.v1.Shop,
|
||||
* !proto.shop.v1.Shop>}
|
||||
*/
|
||||
const methodDescriptor_ShopService_Delete = new grpc.web.MethodDescriptor(
|
||||
'/shop.v1.ShopService/Delete',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.shop.v1.Shop,
|
||||
proto.shop.v1.Shop,
|
||||
/**
|
||||
* @param {!proto.shop.v1.Shop} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.shop.v1.Shop.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.shop.v1.Shop} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.RpcError, ?proto.shop.v1.Shop)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.shop.v1.Shop>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.shop.v1.ShopServiceClient.prototype.delete =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/shop.v1.ShopService/Delete',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_ShopService_Delete,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.shop.v1.Shop} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>=} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.shop.v1.Shop>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.shop.v1.ShopServicePromiseClient.prototype.delete =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/shop.v1.ShopService/Delete',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_ShopService_Delete);
|
||||
};
|
||||
|
||||
|
||||
module.exports = proto.shop.v1;
|
||||
|
||||
72
gen/web/shop/v1/shop_pb.d.ts
vendored
Normal file
72
gen/web/shop/v1/shop_pb.d.ts
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
import * as google_type_money_pb from '../../google/type/money_pb';
|
||||
import * as google_type_datetime_pb from '../../google/type/datetime_pb';
|
||||
|
||||
|
||||
export class Shop extends jspb.Message {
|
||||
getShopId(): string;
|
||||
setShopId(value: string): Shop;
|
||||
hasShopId(): boolean;
|
||||
clearShopId(): Shop;
|
||||
|
||||
getShopName(): string;
|
||||
setShopName(value: string): Shop;
|
||||
|
||||
getShopType(): ShopType;
|
||||
setShopType(value: ShopType): Shop;
|
||||
|
||||
getShopUrlWww(): string;
|
||||
setShopUrlWww(value: string): Shop;
|
||||
|
||||
getShopUrlLogo(): string;
|
||||
setShopUrlLogo(value: string): Shop;
|
||||
|
||||
getShopUrlApi(): string;
|
||||
setShopUrlApi(value: string): Shop;
|
||||
|
||||
getShopCurrency(): string;
|
||||
setShopCurrency(value: string): Shop;
|
||||
|
||||
getShopPrefixOrder(): string;
|
||||
setShopPrefixOrder(value: string): Shop;
|
||||
|
||||
getShopPrefixInvoice(): string;
|
||||
setShopPrefixInvoice(value: string): Shop;
|
||||
|
||||
getShopPrefixOffer(): string;
|
||||
setShopPrefixOffer(value: string): Shop;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Shop.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Shop): Shop.AsObject;
|
||||
static serializeBinaryToWriter(message: Shop, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Shop;
|
||||
static deserializeBinaryFromReader(message: Shop, reader: jspb.BinaryReader): Shop;
|
||||
}
|
||||
|
||||
export namespace Shop {
|
||||
export type AsObject = {
|
||||
shopId?: string,
|
||||
shopName: string,
|
||||
shopType: ShopType,
|
||||
shopUrlWww: string,
|
||||
shopUrlLogo: string,
|
||||
shopUrlApi: string,
|
||||
shopCurrency: string,
|
||||
shopPrefixOrder: string,
|
||||
shopPrefixInvoice: string,
|
||||
shopPrefixOffer: string,
|
||||
}
|
||||
|
||||
export enum ShopIdCase {
|
||||
_SHOP_ID_NOT_SET = 0,
|
||||
SHOP_ID = 1,
|
||||
}
|
||||
}
|
||||
|
||||
export enum ShopType {
|
||||
SHOP_TYPE_UNSPECIFIED = 0,
|
||||
SHOP_TYPE_DIGITAL = 1,
|
||||
SHOP_TYPE_RETAIL = 2,
|
||||
}
|
||||
478
gen/web/shop/v1/shop_pb.js
Normal file
478
gen/web/shop/v1/shop_pb.js
Normal file
@@ -0,0 +1,478 @@
|
||||
// source: shop/v1/shop.proto
|
||||
/**
|
||||
* @fileoverview
|
||||
* @enhanceable
|
||||
* @suppress {missingRequire} reports error on implicit type usages.
|
||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||
* field starts with 'MSG_' and isn't a translatable message.
|
||||
* @public
|
||||
*/
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
var jspb = require('google-protobuf');
|
||||
var goog = jspb;
|
||||
var global = (function() {
|
||||
if (this) { return this; }
|
||||
if (typeof window !== 'undefined') { return window; }
|
||||
if (typeof global !== 'undefined') { return global; }
|
||||
if (typeof self !== 'undefined') { return self; }
|
||||
return Function('return this')();
|
||||
}.call(null));
|
||||
|
||||
var google_type_money_pb = require('../../google/type/money_pb.js');
|
||||
goog.object.extend(proto, google_type_money_pb);
|
||||
var google_type_datetime_pb = require('../../google/type/datetime_pb.js');
|
||||
goog.object.extend(proto, google_type_datetime_pb);
|
||||
goog.exportSymbol('proto.shop.v1.Shop', null, global);
|
||||
goog.exportSymbol('proto.shop.v1.ShopType', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.shop.v1.Shop = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.shop.v1.Shop, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.shop.v1.Shop.displayName = 'proto.shop.v1.Shop';
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.shop.v1.Shop.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.shop.v1.Shop} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.shop.v1.Shop.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
shopId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
shopName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
shopType: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
||||
shopUrlWww: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||
shopUrlLogo: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
||||
shopUrlApi: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
||||
shopCurrency: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
||||
shopPrefixOrder: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
||||
shopPrefixInvoice: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
||||
shopPrefixOffer: jspb.Message.getFieldWithDefault(msg, 10, "")
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.shop.v1.Shop}
|
||||
*/
|
||||
proto.shop.v1.Shop.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.shop.v1.Shop;
|
||||
return proto.shop.v1.Shop.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.shop.v1.Shop} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.shop.v1.Shop}
|
||||
*/
|
||||
proto.shop.v1.Shop.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 1:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setShopId(value);
|
||||
break;
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setShopName(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {!proto.shop.v1.ShopType} */ (reader.readEnum());
|
||||
msg.setShopType(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setShopUrlWww(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setShopUrlLogo(value);
|
||||
break;
|
||||
case 6:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setShopUrlApi(value);
|
||||
break;
|
||||
case 7:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setShopCurrency(value);
|
||||
break;
|
||||
case 8:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setShopPrefixOrder(value);
|
||||
break;
|
||||
case 9:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setShopPrefixInvoice(value);
|
||||
break;
|
||||
case 10:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setShopPrefixOffer(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.shop.v1.Shop.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.shop.v1.Shop} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.shop.v1.Shop.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
||||
if (f != null) {
|
||||
writer.writeString(
|
||||
1,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getShopName();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getShopType();
|
||||
if (f !== 0.0) {
|
||||
writer.writeEnum(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getShopUrlWww();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getShopUrlLogo();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
5,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getShopUrlApi();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
6,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getShopCurrency();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
7,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getShopPrefixOrder();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
8,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getShopPrefixInvoice();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
9,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getShopPrefixOffer();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
10,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string shop_id = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.getShopId = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.shop.v1.Shop} returns this
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.setShopId = function(value) {
|
||||
return jspb.Message.setField(this, 1, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the field making it undefined.
|
||||
* @return {!proto.shop.v1.Shop} returns this
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.clearShopId = function() {
|
||||
return jspb.Message.setField(this, 1, undefined);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.hasShopId = function() {
|
||||
return jspb.Message.getField(this, 1) != null;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string shop_name = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.getShopName = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.shop.v1.Shop} returns this
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.setShopName = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional ShopType shop_type = 3;
|
||||
* @return {!proto.shop.v1.ShopType}
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.getShopType = function() {
|
||||
return /** @type {!proto.shop.v1.ShopType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.shop.v1.ShopType} value
|
||||
* @return {!proto.shop.v1.Shop} returns this
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.setShopType = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string shop_url_www = 4;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.getShopUrlWww = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.shop.v1.Shop} returns this
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.setShopUrlWww = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string shop_url_logo = 5;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.getShopUrlLogo = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.shop.v1.Shop} returns this
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.setShopUrlLogo = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string shop_url_api = 6;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.getShopUrlApi = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.shop.v1.Shop} returns this
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.setShopUrlApi = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 6, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string shop_currency = 7;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.getShopCurrency = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.shop.v1.Shop} returns this
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.setShopCurrency = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 7, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string shop_prefix_order = 8;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.getShopPrefixOrder = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.shop.v1.Shop} returns this
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.setShopPrefixOrder = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 8, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string shop_prefix_invoice = 9;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.getShopPrefixInvoice = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.shop.v1.Shop} returns this
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.setShopPrefixInvoice = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 9, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string shop_prefix_offer = 10;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.getShopPrefixOffer = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.shop.v1.Shop} returns this
|
||||
*/
|
||||
proto.shop.v1.Shop.prototype.setShopPrefixOffer = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 10, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.shop.v1.ShopType = {
|
||||
SHOP_TYPE_UNSPECIFIED: 0,
|
||||
SHOP_TYPE_DIGITAL: 1,
|
||||
SHOP_TYPE_RETAIL: 2
|
||||
};
|
||||
|
||||
goog.object.extend(exports, proto.shop.v1);
|
||||
Reference in New Issue
Block a user