@aldiokta/protocgen 1.1.28 → 1.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisca/v1/bidding/bidding_grpc_pb.js +1 -0
- package/prisca/v1/bidding/bidding_pb.js +206 -3
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +256 -16
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +61 -1
- package/prisca/v1/core/messaging/notification_grpc_pb.js +22 -0
- package/prisca/v1/core/messaging/notification_pb.js +425 -42
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +31 -1
- package/prisca/v1/delivery_order/delivery_order_pb.js +20 -1140
- package/prisca/v1/good_receipt/good_receipt_pb.js +25 -1235
- package/prisca/v1/invoice/invoice_pb.js +1588 -1562
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +1 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +4156 -21
- package/prisca/v1/quotation/quotation_grpc_pb.js +33 -0
- package/prisca/v1/quotation/quotation_pb.js +381 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +31 -1
|
@@ -79,6 +79,28 @@ function deserialize_SetQuotationRequest(buffer_arg) {
|
|
|
79
79
|
return prisca_v1_quotation_quotation_pb.SetQuotationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
function serialize_SetVisibleRequest(arg) {
|
|
83
|
+
if (!(arg instanceof prisca_v1_quotation_quotation_pb.SetVisibleRequest)) {
|
|
84
|
+
throw new Error('Expected argument of type SetVisibleRequest');
|
|
85
|
+
}
|
|
86
|
+
return Buffer.from(arg.serializeBinary());
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function deserialize_SetVisibleRequest(buffer_arg) {
|
|
90
|
+
return prisca_v1_quotation_quotation_pb.SetVisibleRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function serialize_SetVisibleResponse(arg) {
|
|
94
|
+
if (!(arg instanceof prisca_v1_quotation_quotation_pb.SetVisibleResponse)) {
|
|
95
|
+
throw new Error('Expected argument of type SetVisibleResponse');
|
|
96
|
+
}
|
|
97
|
+
return Buffer.from(arg.serializeBinary());
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function deserialize_SetVisibleResponse(buffer_arg) {
|
|
101
|
+
return prisca_v1_quotation_quotation_pb.SetVisibleResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
102
|
+
}
|
|
103
|
+
|
|
82
104
|
function serialize_UnSetWinnerRequest(arg) {
|
|
83
105
|
if (!(arg instanceof prisca_v1_quotation_quotation_pb.UnSetWinnerRequest)) {
|
|
84
106
|
throw new Error('Expected argument of type UnSetWinnerRequest');
|
|
@@ -202,6 +224,17 @@ var QuotationServiceService = exports.QuotationServiceService = {
|
|
|
202
224
|
responseSerialize: serialize_UpdateQuotationResponse,
|
|
203
225
|
responseDeserialize: deserialize_UpdateQuotationResponse,
|
|
204
226
|
},
|
|
227
|
+
setVisible: {
|
|
228
|
+
path: '/QuotationService/SetVisible',
|
|
229
|
+
requestStream: false,
|
|
230
|
+
responseStream: false,
|
|
231
|
+
requestType: prisca_v1_quotation_quotation_pb.SetVisibleRequest,
|
|
232
|
+
responseType: prisca_v1_quotation_quotation_pb.SetVisibleResponse,
|
|
233
|
+
requestSerialize: serialize_SetVisibleRequest,
|
|
234
|
+
requestDeserialize: deserialize_SetVisibleRequest,
|
|
235
|
+
responseSerialize: serialize_SetVisibleResponse,
|
|
236
|
+
responseDeserialize: deserialize_SetVisibleResponse,
|
|
237
|
+
},
|
|
205
238
|
};
|
|
206
239
|
|
|
207
240
|
exports.QuotationServiceClient = grpc.makeGenericClientConstructor(QuotationServiceService, 'QuotationService');
|
|
@@ -48,6 +48,8 @@ goog.exportSymbol('proto.GetQuotationByIdResponse', null, global);
|
|
|
48
48
|
goog.exportSymbol('proto.GetQuotationDetailResponse', null, global);
|
|
49
49
|
goog.exportSymbol('proto.SetItemQuotation', null, global);
|
|
50
50
|
goog.exportSymbol('proto.SetQuotationRequest', null, global);
|
|
51
|
+
goog.exportSymbol('proto.SetVisibleRequest', null, global);
|
|
52
|
+
goog.exportSymbol('proto.SetVisibleResponse', null, global);
|
|
51
53
|
goog.exportSymbol('proto.UnSetWinnerRequest', null, global);
|
|
52
54
|
goog.exportSymbol('proto.UpdateQuotationRequest', null, global);
|
|
53
55
|
goog.exportSymbol('proto.UpdateQuotationResponse', null, global);
|
|
@@ -241,6 +243,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
241
243
|
*/
|
|
242
244
|
proto.SetQuotationRequest.displayName = 'proto.SetQuotationRequest';
|
|
243
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* Generated by JsPbCodeGenerator.
|
|
248
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
249
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
250
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
251
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
252
|
+
* valid.
|
|
253
|
+
* @extends {jspb.Message}
|
|
254
|
+
* @constructor
|
|
255
|
+
*/
|
|
256
|
+
proto.SetVisibleRequest = function(opt_data) {
|
|
257
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.SetVisibleRequest.repeatedFields_, null);
|
|
258
|
+
};
|
|
259
|
+
goog.inherits(proto.SetVisibleRequest, jspb.Message);
|
|
260
|
+
if (goog.DEBUG && !COMPILED) {
|
|
261
|
+
/**
|
|
262
|
+
* @public
|
|
263
|
+
* @override
|
|
264
|
+
*/
|
|
265
|
+
proto.SetVisibleRequest.displayName = 'proto.SetVisibleRequest';
|
|
266
|
+
}
|
|
244
267
|
/**
|
|
245
268
|
* Generated by JsPbCodeGenerator.
|
|
246
269
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -325,6 +348,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
325
348
|
*/
|
|
326
349
|
proto.UpdateQuotationResponse.displayName = 'proto.UpdateQuotationResponse';
|
|
327
350
|
}
|
|
351
|
+
/**
|
|
352
|
+
* Generated by JsPbCodeGenerator.
|
|
353
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
354
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
355
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
356
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
357
|
+
* valid.
|
|
358
|
+
* @extends {jspb.Message}
|
|
359
|
+
* @constructor
|
|
360
|
+
*/
|
|
361
|
+
proto.SetVisibleResponse = function(opt_data) {
|
|
362
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
363
|
+
};
|
|
364
|
+
goog.inherits(proto.SetVisibleResponse, jspb.Message);
|
|
365
|
+
if (goog.DEBUG && !COMPILED) {
|
|
366
|
+
/**
|
|
367
|
+
* @public
|
|
368
|
+
* @override
|
|
369
|
+
*/
|
|
370
|
+
proto.SetVisibleResponse.displayName = 'proto.SetVisibleResponse';
|
|
371
|
+
}
|
|
328
372
|
|
|
329
373
|
|
|
330
374
|
|
|
@@ -2962,6 +3006,192 @@ proto.SetQuotationRequest.prototype.clearSetItemQuotationsList = function() {
|
|
|
2962
3006
|
|
|
2963
3007
|
|
|
2964
3008
|
|
|
3009
|
+
/**
|
|
3010
|
+
* List of repeated fields within this message type.
|
|
3011
|
+
* @private {!Array<number>}
|
|
3012
|
+
* @const
|
|
3013
|
+
*/
|
|
3014
|
+
proto.SetVisibleRequest.repeatedFields_ = [2];
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
|
|
3018
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3019
|
+
/**
|
|
3020
|
+
* Creates an object representation of this proto.
|
|
3021
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3022
|
+
* Optional fields that are not set will be set to undefined.
|
|
3023
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3024
|
+
* For the list of reserved names please see:
|
|
3025
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3026
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3027
|
+
* JSPB instance for transitional soy proto support:
|
|
3028
|
+
* http://goto/soy-param-migration
|
|
3029
|
+
* @return {!Object}
|
|
3030
|
+
*/
|
|
3031
|
+
proto.SetVisibleRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3032
|
+
return proto.SetVisibleRequest.toObject(opt_includeInstance, this);
|
|
3033
|
+
};
|
|
3034
|
+
|
|
3035
|
+
|
|
3036
|
+
/**
|
|
3037
|
+
* Static version of the {@see toObject} method.
|
|
3038
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3039
|
+
* the JSPB instance for transitional soy proto support:
|
|
3040
|
+
* http://goto/soy-param-migration
|
|
3041
|
+
* @param {!proto.SetVisibleRequest} msg The msg instance to transform.
|
|
3042
|
+
* @return {!Object}
|
|
3043
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3044
|
+
*/
|
|
3045
|
+
proto.SetVisibleRequest.toObject = function(includeInstance, msg) {
|
|
3046
|
+
var f, obj = {
|
|
3047
|
+
biddingReferenceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3048
|
+
vendorReferenceIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
3049
|
+
};
|
|
3050
|
+
|
|
3051
|
+
if (includeInstance) {
|
|
3052
|
+
obj.$jspbMessageInstance = msg;
|
|
3053
|
+
}
|
|
3054
|
+
return obj;
|
|
3055
|
+
};
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
|
|
3059
|
+
/**
|
|
3060
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3061
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3062
|
+
* @return {!proto.SetVisibleRequest}
|
|
3063
|
+
*/
|
|
3064
|
+
proto.SetVisibleRequest.deserializeBinary = function(bytes) {
|
|
3065
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3066
|
+
var msg = new proto.SetVisibleRequest;
|
|
3067
|
+
return proto.SetVisibleRequest.deserializeBinaryFromReader(msg, reader);
|
|
3068
|
+
};
|
|
3069
|
+
|
|
3070
|
+
|
|
3071
|
+
/**
|
|
3072
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3073
|
+
* given reader into the given message object.
|
|
3074
|
+
* @param {!proto.SetVisibleRequest} msg The message object to deserialize into.
|
|
3075
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3076
|
+
* @return {!proto.SetVisibleRequest}
|
|
3077
|
+
*/
|
|
3078
|
+
proto.SetVisibleRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3079
|
+
while (reader.nextField()) {
|
|
3080
|
+
if (reader.isEndGroup()) {
|
|
3081
|
+
break;
|
|
3082
|
+
}
|
|
3083
|
+
var field = reader.getFieldNumber();
|
|
3084
|
+
switch (field) {
|
|
3085
|
+
case 1:
|
|
3086
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3087
|
+
msg.setBiddingReferenceId(value);
|
|
3088
|
+
break;
|
|
3089
|
+
case 2:
|
|
3090
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3091
|
+
msg.addVendorReferenceIds(value);
|
|
3092
|
+
break;
|
|
3093
|
+
default:
|
|
3094
|
+
reader.skipField();
|
|
3095
|
+
break;
|
|
3096
|
+
}
|
|
3097
|
+
}
|
|
3098
|
+
return msg;
|
|
3099
|
+
};
|
|
3100
|
+
|
|
3101
|
+
|
|
3102
|
+
/**
|
|
3103
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3104
|
+
* @return {!Uint8Array}
|
|
3105
|
+
*/
|
|
3106
|
+
proto.SetVisibleRequest.prototype.serializeBinary = function() {
|
|
3107
|
+
var writer = new jspb.BinaryWriter();
|
|
3108
|
+
proto.SetVisibleRequest.serializeBinaryToWriter(this, writer);
|
|
3109
|
+
return writer.getResultBuffer();
|
|
3110
|
+
};
|
|
3111
|
+
|
|
3112
|
+
|
|
3113
|
+
/**
|
|
3114
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3115
|
+
* format), writing to the given BinaryWriter.
|
|
3116
|
+
* @param {!proto.SetVisibleRequest} message
|
|
3117
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3118
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3119
|
+
*/
|
|
3120
|
+
proto.SetVisibleRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3121
|
+
var f = undefined;
|
|
3122
|
+
f = message.getBiddingReferenceId();
|
|
3123
|
+
if (f.length > 0) {
|
|
3124
|
+
writer.writeString(
|
|
3125
|
+
1,
|
|
3126
|
+
f
|
|
3127
|
+
);
|
|
3128
|
+
}
|
|
3129
|
+
f = message.getVendorReferenceIdsList();
|
|
3130
|
+
if (f.length > 0) {
|
|
3131
|
+
writer.writeRepeatedString(
|
|
3132
|
+
2,
|
|
3133
|
+
f
|
|
3134
|
+
);
|
|
3135
|
+
}
|
|
3136
|
+
};
|
|
3137
|
+
|
|
3138
|
+
|
|
3139
|
+
/**
|
|
3140
|
+
* optional string bidding_reference_id = 1;
|
|
3141
|
+
* @return {string}
|
|
3142
|
+
*/
|
|
3143
|
+
proto.SetVisibleRequest.prototype.getBiddingReferenceId = function() {
|
|
3144
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3145
|
+
};
|
|
3146
|
+
|
|
3147
|
+
|
|
3148
|
+
/**
|
|
3149
|
+
* @param {string} value
|
|
3150
|
+
* @return {!proto.SetVisibleRequest} returns this
|
|
3151
|
+
*/
|
|
3152
|
+
proto.SetVisibleRequest.prototype.setBiddingReferenceId = function(value) {
|
|
3153
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3154
|
+
};
|
|
3155
|
+
|
|
3156
|
+
|
|
3157
|
+
/**
|
|
3158
|
+
* repeated string vendor_reference_ids = 2;
|
|
3159
|
+
* @return {!Array<string>}
|
|
3160
|
+
*/
|
|
3161
|
+
proto.SetVisibleRequest.prototype.getVendorReferenceIdsList = function() {
|
|
3162
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
3163
|
+
};
|
|
3164
|
+
|
|
3165
|
+
|
|
3166
|
+
/**
|
|
3167
|
+
* @param {!Array<string>} value
|
|
3168
|
+
* @return {!proto.SetVisibleRequest} returns this
|
|
3169
|
+
*/
|
|
3170
|
+
proto.SetVisibleRequest.prototype.setVendorReferenceIdsList = function(value) {
|
|
3171
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
3172
|
+
};
|
|
3173
|
+
|
|
3174
|
+
|
|
3175
|
+
/**
|
|
3176
|
+
* @param {string} value
|
|
3177
|
+
* @param {number=} opt_index
|
|
3178
|
+
* @return {!proto.SetVisibleRequest} returns this
|
|
3179
|
+
*/
|
|
3180
|
+
proto.SetVisibleRequest.prototype.addVendorReferenceIds = function(value, opt_index) {
|
|
3181
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
3182
|
+
};
|
|
3183
|
+
|
|
3184
|
+
|
|
3185
|
+
/**
|
|
3186
|
+
* Clears the list making it empty but non-null.
|
|
3187
|
+
* @return {!proto.SetVisibleRequest} returns this
|
|
3188
|
+
*/
|
|
3189
|
+
proto.SetVisibleRequest.prototype.clearVendorReferenceIdsList = function() {
|
|
3190
|
+
return this.setVendorReferenceIdsList([]);
|
|
3191
|
+
};
|
|
3192
|
+
|
|
3193
|
+
|
|
3194
|
+
|
|
2965
3195
|
|
|
2966
3196
|
|
|
2967
3197
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -3789,4 +4019,155 @@ proto.UpdateQuotationResponse.prototype.hasMeta = function() {
|
|
|
3789
4019
|
};
|
|
3790
4020
|
|
|
3791
4021
|
|
|
4022
|
+
|
|
4023
|
+
|
|
4024
|
+
|
|
4025
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4026
|
+
/**
|
|
4027
|
+
* Creates an object representation of this proto.
|
|
4028
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4029
|
+
* Optional fields that are not set will be set to undefined.
|
|
4030
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4031
|
+
* For the list of reserved names please see:
|
|
4032
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4033
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4034
|
+
* JSPB instance for transitional soy proto support:
|
|
4035
|
+
* http://goto/soy-param-migration
|
|
4036
|
+
* @return {!Object}
|
|
4037
|
+
*/
|
|
4038
|
+
proto.SetVisibleResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4039
|
+
return proto.SetVisibleResponse.toObject(opt_includeInstance, this);
|
|
4040
|
+
};
|
|
4041
|
+
|
|
4042
|
+
|
|
4043
|
+
/**
|
|
4044
|
+
* Static version of the {@see toObject} method.
|
|
4045
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4046
|
+
* the JSPB instance for transitional soy proto support:
|
|
4047
|
+
* http://goto/soy-param-migration
|
|
4048
|
+
* @param {!proto.SetVisibleResponse} msg The msg instance to transform.
|
|
4049
|
+
* @return {!Object}
|
|
4050
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4051
|
+
*/
|
|
4052
|
+
proto.SetVisibleResponse.toObject = function(includeInstance, msg) {
|
|
4053
|
+
var f, obj = {
|
|
4054
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
4055
|
+
};
|
|
4056
|
+
|
|
4057
|
+
if (includeInstance) {
|
|
4058
|
+
obj.$jspbMessageInstance = msg;
|
|
4059
|
+
}
|
|
4060
|
+
return obj;
|
|
4061
|
+
};
|
|
4062
|
+
}
|
|
4063
|
+
|
|
4064
|
+
|
|
4065
|
+
/**
|
|
4066
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4067
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4068
|
+
* @return {!proto.SetVisibleResponse}
|
|
4069
|
+
*/
|
|
4070
|
+
proto.SetVisibleResponse.deserializeBinary = function(bytes) {
|
|
4071
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4072
|
+
var msg = new proto.SetVisibleResponse;
|
|
4073
|
+
return proto.SetVisibleResponse.deserializeBinaryFromReader(msg, reader);
|
|
4074
|
+
};
|
|
4075
|
+
|
|
4076
|
+
|
|
4077
|
+
/**
|
|
4078
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4079
|
+
* given reader into the given message object.
|
|
4080
|
+
* @param {!proto.SetVisibleResponse} msg The message object to deserialize into.
|
|
4081
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4082
|
+
* @return {!proto.SetVisibleResponse}
|
|
4083
|
+
*/
|
|
4084
|
+
proto.SetVisibleResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4085
|
+
while (reader.nextField()) {
|
|
4086
|
+
if (reader.isEndGroup()) {
|
|
4087
|
+
break;
|
|
4088
|
+
}
|
|
4089
|
+
var field = reader.getFieldNumber();
|
|
4090
|
+
switch (field) {
|
|
4091
|
+
case 1:
|
|
4092
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
4093
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
4094
|
+
msg.setMeta(value);
|
|
4095
|
+
break;
|
|
4096
|
+
default:
|
|
4097
|
+
reader.skipField();
|
|
4098
|
+
break;
|
|
4099
|
+
}
|
|
4100
|
+
}
|
|
4101
|
+
return msg;
|
|
4102
|
+
};
|
|
4103
|
+
|
|
4104
|
+
|
|
4105
|
+
/**
|
|
4106
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4107
|
+
* @return {!Uint8Array}
|
|
4108
|
+
*/
|
|
4109
|
+
proto.SetVisibleResponse.prototype.serializeBinary = function() {
|
|
4110
|
+
var writer = new jspb.BinaryWriter();
|
|
4111
|
+
proto.SetVisibleResponse.serializeBinaryToWriter(this, writer);
|
|
4112
|
+
return writer.getResultBuffer();
|
|
4113
|
+
};
|
|
4114
|
+
|
|
4115
|
+
|
|
4116
|
+
/**
|
|
4117
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4118
|
+
* format), writing to the given BinaryWriter.
|
|
4119
|
+
* @param {!proto.SetVisibleResponse} message
|
|
4120
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4121
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4122
|
+
*/
|
|
4123
|
+
proto.SetVisibleResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4124
|
+
var f = undefined;
|
|
4125
|
+
f = message.getMeta();
|
|
4126
|
+
if (f != null) {
|
|
4127
|
+
writer.writeMessage(
|
|
4128
|
+
1,
|
|
4129
|
+
f,
|
|
4130
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
4131
|
+
);
|
|
4132
|
+
}
|
|
4133
|
+
};
|
|
4134
|
+
|
|
4135
|
+
|
|
4136
|
+
/**
|
|
4137
|
+
* optional prisca.v1.global.meta.Meta meta = 1;
|
|
4138
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
4139
|
+
*/
|
|
4140
|
+
proto.SetVisibleResponse.prototype.getMeta = function() {
|
|
4141
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
4142
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 1));
|
|
4143
|
+
};
|
|
4144
|
+
|
|
4145
|
+
|
|
4146
|
+
/**
|
|
4147
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
4148
|
+
* @return {!proto.SetVisibleResponse} returns this
|
|
4149
|
+
*/
|
|
4150
|
+
proto.SetVisibleResponse.prototype.setMeta = function(value) {
|
|
4151
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
4152
|
+
};
|
|
4153
|
+
|
|
4154
|
+
|
|
4155
|
+
/**
|
|
4156
|
+
* Clears the message field making it undefined.
|
|
4157
|
+
* @return {!proto.SetVisibleResponse} returns this
|
|
4158
|
+
*/
|
|
4159
|
+
proto.SetVisibleResponse.prototype.clearMeta = function() {
|
|
4160
|
+
return this.setMeta(undefined);
|
|
4161
|
+
};
|
|
4162
|
+
|
|
4163
|
+
|
|
4164
|
+
/**
|
|
4165
|
+
* Returns whether this field is set.
|
|
4166
|
+
* @return {boolean}
|
|
4167
|
+
*/
|
|
4168
|
+
proto.SetVisibleResponse.prototype.hasMeta = function() {
|
|
4169
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4170
|
+
};
|
|
4171
|
+
|
|
4172
|
+
|
|
3792
4173
|
goog.object.extend(exports, proto);
|
|
@@ -2486,7 +2486,8 @@ createdAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
|
2486
2486
|
updatedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
2487
2487
|
createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
|
|
2488
2488
|
updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
|
|
2489
|
-
vendor: (f = msg.getVendor()) && prisca_v1_vendor_domain_vendor_domain_pb.Vendor.toObject(includeInstance, f)
|
|
2489
|
+
vendor: (f = msg.getVendor()) && prisca_v1_vendor_domain_vendor_domain_pb.Vendor.toObject(includeInstance, f),
|
|
2490
|
+
isSendToVendor: jspb.Message.getBooleanFieldWithDefault(msg, 12, false)
|
|
2490
2491
|
};
|
|
2491
2492
|
|
|
2492
2493
|
if (includeInstance) {
|
|
@@ -2570,6 +2571,10 @@ proto.RequestForQuotationVendor.deserializeBinaryFromReader = function(msg, read
|
|
|
2570
2571
|
reader.readMessage(value,prisca_v1_vendor_domain_vendor_domain_pb.Vendor.deserializeBinaryFromReader);
|
|
2571
2572
|
msg.setVendor(value);
|
|
2572
2573
|
break;
|
|
2574
|
+
case 12:
|
|
2575
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
2576
|
+
msg.setIsSendToVendor(value);
|
|
2577
|
+
break;
|
|
2573
2578
|
default:
|
|
2574
2579
|
reader.skipField();
|
|
2575
2580
|
break;
|
|
@@ -2679,6 +2684,13 @@ proto.RequestForQuotationVendor.serializeBinaryToWriter = function(message, writ
|
|
|
2679
2684
|
prisca_v1_vendor_domain_vendor_domain_pb.Vendor.serializeBinaryToWriter
|
|
2680
2685
|
);
|
|
2681
2686
|
}
|
|
2687
|
+
f = message.getIsSendToVendor();
|
|
2688
|
+
if (f) {
|
|
2689
|
+
writer.writeBool(
|
|
2690
|
+
12,
|
|
2691
|
+
f
|
|
2692
|
+
);
|
|
2693
|
+
}
|
|
2682
2694
|
};
|
|
2683
2695
|
|
|
2684
2696
|
|
|
@@ -2937,6 +2949,24 @@ proto.RequestForQuotationVendor.prototype.hasVendor = function() {
|
|
|
2937
2949
|
};
|
|
2938
2950
|
|
|
2939
2951
|
|
|
2952
|
+
/**
|
|
2953
|
+
* optional bool is_send_to_vendor = 12;
|
|
2954
|
+
* @return {boolean}
|
|
2955
|
+
*/
|
|
2956
|
+
proto.RequestForQuotationVendor.prototype.getIsSendToVendor = function() {
|
|
2957
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
|
|
2958
|
+
};
|
|
2959
|
+
|
|
2960
|
+
|
|
2961
|
+
/**
|
|
2962
|
+
* @param {boolean} value
|
|
2963
|
+
* @return {!proto.RequestForQuotationVendor} returns this
|
|
2964
|
+
*/
|
|
2965
|
+
proto.RequestForQuotationVendor.prototype.setIsSendToVendor = function(value) {
|
|
2966
|
+
return jspb.Message.setProto3BooleanField(this, 12, value);
|
|
2967
|
+
};
|
|
2968
|
+
|
|
2969
|
+
|
|
2940
2970
|
|
|
2941
2971
|
/**
|
|
2942
2972
|
* List of repeated fields within this message type.
|