@aldiokta/protocgen 1.1.38 → 1.1.40

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.
@@ -30,9 +30,11 @@ goog.exportSymbol('proto.GetLineOfApprovalByIdResponse', null, global);
30
30
  goog.exportSymbol('proto.GetListAllLineOfApprovalResponse', null, global);
31
31
  goog.exportSymbol('proto.GetListLineOfApprovalRequest', null, global);
32
32
  goog.exportSymbol('proto.GetListLineOfApprovalResponse', null, global);
33
+ goog.exportSymbol('proto.GetVendorLineOfApprovalResponse', null, global);
33
34
  goog.exportSymbol('proto.LineOfApproval', null, global);
34
35
  goog.exportSymbol('proto.UpdateLineOfApprovalRequest', null, global);
35
36
  goog.exportSymbol('proto.UpdateLineOfApprovalResponse', null, global);
37
+ goog.exportSymbol('proto.VendorLineOfApproval', null, global);
36
38
  /**
37
39
  * Generated by JsPbCodeGenerator.
38
40
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -54,6 +56,27 @@ if (goog.DEBUG && !COMPILED) {
54
56
  */
55
57
  proto.LineOfApproval.displayName = 'proto.LineOfApproval';
56
58
  }
59
+ /**
60
+ * Generated by JsPbCodeGenerator.
61
+ * @param {Array=} opt_data Optional initial data array, typically from a
62
+ * server response, or constructed directly in Javascript. The array is used
63
+ * in place and becomes part of the constructed object. It is not cloned.
64
+ * If no data is provided, the constructed object will be empty, but still
65
+ * valid.
66
+ * @extends {jspb.Message}
67
+ * @constructor
68
+ */
69
+ proto.VendorLineOfApproval = function(opt_data) {
70
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
71
+ };
72
+ goog.inherits(proto.VendorLineOfApproval, jspb.Message);
73
+ if (goog.DEBUG && !COMPILED) {
74
+ /**
75
+ * @public
76
+ * @override
77
+ */
78
+ proto.VendorLineOfApproval.displayName = 'proto.VendorLineOfApproval';
79
+ }
57
80
  /**
58
81
  * Generated by JsPbCodeGenerator.
59
82
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -285,6 +308,27 @@ if (goog.DEBUG && !COMPILED) {
285
308
  */
286
309
  proto.GetListLineOfApprovalResponse.displayName = 'proto.GetListLineOfApprovalResponse';
287
310
  }
311
+ /**
312
+ * Generated by JsPbCodeGenerator.
313
+ * @param {Array=} opt_data Optional initial data array, typically from a
314
+ * server response, or constructed directly in Javascript. The array is used
315
+ * in place and becomes part of the constructed object. It is not cloned.
316
+ * If no data is provided, the constructed object will be empty, but still
317
+ * valid.
318
+ * @extends {jspb.Message}
319
+ * @constructor
320
+ */
321
+ proto.GetVendorLineOfApprovalResponse = function(opt_data) {
322
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
323
+ };
324
+ goog.inherits(proto.GetVendorLineOfApprovalResponse, jspb.Message);
325
+ if (goog.DEBUG && !COMPILED) {
326
+ /**
327
+ * @public
328
+ * @override
329
+ */
330
+ proto.GetVendorLineOfApprovalResponse.displayName = 'proto.GetVendorLineOfApprovalResponse';
331
+ }
288
332
  /**
289
333
  * Generated by JsPbCodeGenerator.
290
334
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -901,6 +945,196 @@ proto.LineOfApproval.prototype.setEditAccess = function(value) {
901
945
 
902
946
 
903
947
 
948
+ if (jspb.Message.GENERATE_TO_OBJECT) {
949
+ /**
950
+ * Creates an object representation of this proto.
951
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
952
+ * Optional fields that are not set will be set to undefined.
953
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
954
+ * For the list of reserved names please see:
955
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
956
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
957
+ * JSPB instance for transitional soy proto support:
958
+ * http://goto/soy-param-migration
959
+ * @return {!Object}
960
+ */
961
+ proto.VendorLineOfApproval.prototype.toObject = function(opt_includeInstance) {
962
+ return proto.VendorLineOfApproval.toObject(opt_includeInstance, this);
963
+ };
964
+
965
+
966
+ /**
967
+ * Static version of the {@see toObject} method.
968
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
969
+ * the JSPB instance for transitional soy proto support:
970
+ * http://goto/soy-param-migration
971
+ * @param {!proto.VendorLineOfApproval} msg The msg instance to transform.
972
+ * @return {!Object}
973
+ * @suppress {unusedLocalVariables} f is only used for nested messages
974
+ */
975
+ proto.VendorLineOfApproval.toObject = function(includeInstance, msg) {
976
+ var f, obj = {
977
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
978
+ vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
979
+ isExpired: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
980
+ };
981
+
982
+ if (includeInstance) {
983
+ obj.$jspbMessageInstance = msg;
984
+ }
985
+ return obj;
986
+ };
987
+ }
988
+
989
+
990
+ /**
991
+ * Deserializes binary data (in protobuf wire format).
992
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
993
+ * @return {!proto.VendorLineOfApproval}
994
+ */
995
+ proto.VendorLineOfApproval.deserializeBinary = function(bytes) {
996
+ var reader = new jspb.BinaryReader(bytes);
997
+ var msg = new proto.VendorLineOfApproval;
998
+ return proto.VendorLineOfApproval.deserializeBinaryFromReader(msg, reader);
999
+ };
1000
+
1001
+
1002
+ /**
1003
+ * Deserializes binary data (in protobuf wire format) from the
1004
+ * given reader into the given message object.
1005
+ * @param {!proto.VendorLineOfApproval} msg The message object to deserialize into.
1006
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1007
+ * @return {!proto.VendorLineOfApproval}
1008
+ */
1009
+ proto.VendorLineOfApproval.deserializeBinaryFromReader = function(msg, reader) {
1010
+ while (reader.nextField()) {
1011
+ if (reader.isEndGroup()) {
1012
+ break;
1013
+ }
1014
+ var field = reader.getFieldNumber();
1015
+ switch (field) {
1016
+ case 1:
1017
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1018
+ msg.setReferencesId(value);
1019
+ break;
1020
+ case 2:
1021
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1022
+ msg.setVendorReferencesId(value);
1023
+ break;
1024
+ case 3:
1025
+ var value = /** @type {boolean} */ (reader.readBool());
1026
+ msg.setIsExpired(value);
1027
+ break;
1028
+ default:
1029
+ reader.skipField();
1030
+ break;
1031
+ }
1032
+ }
1033
+ return msg;
1034
+ };
1035
+
1036
+
1037
+ /**
1038
+ * Serializes the message to binary data (in protobuf wire format).
1039
+ * @return {!Uint8Array}
1040
+ */
1041
+ proto.VendorLineOfApproval.prototype.serializeBinary = function() {
1042
+ var writer = new jspb.BinaryWriter();
1043
+ proto.VendorLineOfApproval.serializeBinaryToWriter(this, writer);
1044
+ return writer.getResultBuffer();
1045
+ };
1046
+
1047
+
1048
+ /**
1049
+ * Serializes the given message to binary data (in protobuf wire
1050
+ * format), writing to the given BinaryWriter.
1051
+ * @param {!proto.VendorLineOfApproval} message
1052
+ * @param {!jspb.BinaryWriter} writer
1053
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1054
+ */
1055
+ proto.VendorLineOfApproval.serializeBinaryToWriter = function(message, writer) {
1056
+ var f = undefined;
1057
+ f = message.getReferencesId();
1058
+ if (f.length > 0) {
1059
+ writer.writeString(
1060
+ 1,
1061
+ f
1062
+ );
1063
+ }
1064
+ f = message.getVendorReferencesId();
1065
+ if (f.length > 0) {
1066
+ writer.writeString(
1067
+ 2,
1068
+ f
1069
+ );
1070
+ }
1071
+ f = message.getIsExpired();
1072
+ if (f) {
1073
+ writer.writeBool(
1074
+ 3,
1075
+ f
1076
+ );
1077
+ }
1078
+ };
1079
+
1080
+
1081
+ /**
1082
+ * optional string references_id = 1;
1083
+ * @return {string}
1084
+ */
1085
+ proto.VendorLineOfApproval.prototype.getReferencesId = function() {
1086
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1087
+ };
1088
+
1089
+
1090
+ /**
1091
+ * @param {string} value
1092
+ * @return {!proto.VendorLineOfApproval} returns this
1093
+ */
1094
+ proto.VendorLineOfApproval.prototype.setReferencesId = function(value) {
1095
+ return jspb.Message.setProto3StringField(this, 1, value);
1096
+ };
1097
+
1098
+
1099
+ /**
1100
+ * optional string vendor_references_id = 2;
1101
+ * @return {string}
1102
+ */
1103
+ proto.VendorLineOfApproval.prototype.getVendorReferencesId = function() {
1104
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1105
+ };
1106
+
1107
+
1108
+ /**
1109
+ * @param {string} value
1110
+ * @return {!proto.VendorLineOfApproval} returns this
1111
+ */
1112
+ proto.VendorLineOfApproval.prototype.setVendorReferencesId = function(value) {
1113
+ return jspb.Message.setProto3StringField(this, 2, value);
1114
+ };
1115
+
1116
+
1117
+ /**
1118
+ * optional bool is_expired = 3;
1119
+ * @return {boolean}
1120
+ */
1121
+ proto.VendorLineOfApproval.prototype.getIsExpired = function() {
1122
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1123
+ };
1124
+
1125
+
1126
+ /**
1127
+ * @param {boolean} value
1128
+ * @return {!proto.VendorLineOfApproval} returns this
1129
+ */
1130
+ proto.VendorLineOfApproval.prototype.setIsExpired = function(value) {
1131
+ return jspb.Message.setProto3BooleanField(this, 3, value);
1132
+ };
1133
+
1134
+
1135
+
1136
+
1137
+
904
1138
  if (jspb.Message.GENERATE_TO_OBJECT) {
905
1139
  /**
906
1140
  * Creates an object representation of this proto.
@@ -2853,6 +3087,208 @@ proto.GetListLineOfApprovalResponse.prototype.hasMeta = function() {
2853
3087
 
2854
3088
 
2855
3089
 
3090
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3091
+ /**
3092
+ * Creates an object representation of this proto.
3093
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3094
+ * Optional fields that are not set will be set to undefined.
3095
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3096
+ * For the list of reserved names please see:
3097
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3098
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3099
+ * JSPB instance for transitional soy proto support:
3100
+ * http://goto/soy-param-migration
3101
+ * @return {!Object}
3102
+ */
3103
+ proto.GetVendorLineOfApprovalResponse.prototype.toObject = function(opt_includeInstance) {
3104
+ return proto.GetVendorLineOfApprovalResponse.toObject(opt_includeInstance, this);
3105
+ };
3106
+
3107
+
3108
+ /**
3109
+ * Static version of the {@see toObject} method.
3110
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3111
+ * the JSPB instance for transitional soy proto support:
3112
+ * http://goto/soy-param-migration
3113
+ * @param {!proto.GetVendorLineOfApprovalResponse} msg The msg instance to transform.
3114
+ * @return {!Object}
3115
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3116
+ */
3117
+ proto.GetVendorLineOfApprovalResponse.toObject = function(includeInstance, msg) {
3118
+ var f, obj = {
3119
+ vendorLineOfApproval: (f = msg.getVendorLineOfApproval()) && proto.VendorLineOfApproval.toObject(includeInstance, f),
3120
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3121
+ };
3122
+
3123
+ if (includeInstance) {
3124
+ obj.$jspbMessageInstance = msg;
3125
+ }
3126
+ return obj;
3127
+ };
3128
+ }
3129
+
3130
+
3131
+ /**
3132
+ * Deserializes binary data (in protobuf wire format).
3133
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3134
+ * @return {!proto.GetVendorLineOfApprovalResponse}
3135
+ */
3136
+ proto.GetVendorLineOfApprovalResponse.deserializeBinary = function(bytes) {
3137
+ var reader = new jspb.BinaryReader(bytes);
3138
+ var msg = new proto.GetVendorLineOfApprovalResponse;
3139
+ return proto.GetVendorLineOfApprovalResponse.deserializeBinaryFromReader(msg, reader);
3140
+ };
3141
+
3142
+
3143
+ /**
3144
+ * Deserializes binary data (in protobuf wire format) from the
3145
+ * given reader into the given message object.
3146
+ * @param {!proto.GetVendorLineOfApprovalResponse} msg The message object to deserialize into.
3147
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3148
+ * @return {!proto.GetVendorLineOfApprovalResponse}
3149
+ */
3150
+ proto.GetVendorLineOfApprovalResponse.deserializeBinaryFromReader = function(msg, reader) {
3151
+ while (reader.nextField()) {
3152
+ if (reader.isEndGroup()) {
3153
+ break;
3154
+ }
3155
+ var field = reader.getFieldNumber();
3156
+ switch (field) {
3157
+ case 1:
3158
+ var value = new proto.VendorLineOfApproval;
3159
+ reader.readMessage(value,proto.VendorLineOfApproval.deserializeBinaryFromReader);
3160
+ msg.setVendorLineOfApproval(value);
3161
+ break;
3162
+ case 2:
3163
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3164
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3165
+ msg.setMeta(value);
3166
+ break;
3167
+ default:
3168
+ reader.skipField();
3169
+ break;
3170
+ }
3171
+ }
3172
+ return msg;
3173
+ };
3174
+
3175
+
3176
+ /**
3177
+ * Serializes the message to binary data (in protobuf wire format).
3178
+ * @return {!Uint8Array}
3179
+ */
3180
+ proto.GetVendorLineOfApprovalResponse.prototype.serializeBinary = function() {
3181
+ var writer = new jspb.BinaryWriter();
3182
+ proto.GetVendorLineOfApprovalResponse.serializeBinaryToWriter(this, writer);
3183
+ return writer.getResultBuffer();
3184
+ };
3185
+
3186
+
3187
+ /**
3188
+ * Serializes the given message to binary data (in protobuf wire
3189
+ * format), writing to the given BinaryWriter.
3190
+ * @param {!proto.GetVendorLineOfApprovalResponse} message
3191
+ * @param {!jspb.BinaryWriter} writer
3192
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3193
+ */
3194
+ proto.GetVendorLineOfApprovalResponse.serializeBinaryToWriter = function(message, writer) {
3195
+ var f = undefined;
3196
+ f = message.getVendorLineOfApproval();
3197
+ if (f != null) {
3198
+ writer.writeMessage(
3199
+ 1,
3200
+ f,
3201
+ proto.VendorLineOfApproval.serializeBinaryToWriter
3202
+ );
3203
+ }
3204
+ f = message.getMeta();
3205
+ if (f != null) {
3206
+ writer.writeMessage(
3207
+ 2,
3208
+ f,
3209
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3210
+ );
3211
+ }
3212
+ };
3213
+
3214
+
3215
+ /**
3216
+ * optional VendorLineOfApproval vendor_line_of_approval = 1;
3217
+ * @return {?proto.VendorLineOfApproval}
3218
+ */
3219
+ proto.GetVendorLineOfApprovalResponse.prototype.getVendorLineOfApproval = function() {
3220
+ return /** @type{?proto.VendorLineOfApproval} */ (
3221
+ jspb.Message.getWrapperField(this, proto.VendorLineOfApproval, 1));
3222
+ };
3223
+
3224
+
3225
+ /**
3226
+ * @param {?proto.VendorLineOfApproval|undefined} value
3227
+ * @return {!proto.GetVendorLineOfApprovalResponse} returns this
3228
+ */
3229
+ proto.GetVendorLineOfApprovalResponse.prototype.setVendorLineOfApproval = function(value) {
3230
+ return jspb.Message.setWrapperField(this, 1, value);
3231
+ };
3232
+
3233
+
3234
+ /**
3235
+ * Clears the message field making it undefined.
3236
+ * @return {!proto.GetVendorLineOfApprovalResponse} returns this
3237
+ */
3238
+ proto.GetVendorLineOfApprovalResponse.prototype.clearVendorLineOfApproval = function() {
3239
+ return this.setVendorLineOfApproval(undefined);
3240
+ };
3241
+
3242
+
3243
+ /**
3244
+ * Returns whether this field is set.
3245
+ * @return {boolean}
3246
+ */
3247
+ proto.GetVendorLineOfApprovalResponse.prototype.hasVendorLineOfApproval = function() {
3248
+ return jspb.Message.getField(this, 1) != null;
3249
+ };
3250
+
3251
+
3252
+ /**
3253
+ * optional prisca.v1.global.meta.Meta meta = 2;
3254
+ * @return {?proto.prisca.v1.global.meta.Meta}
3255
+ */
3256
+ proto.GetVendorLineOfApprovalResponse.prototype.getMeta = function() {
3257
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3258
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3259
+ };
3260
+
3261
+
3262
+ /**
3263
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3264
+ * @return {!proto.GetVendorLineOfApprovalResponse} returns this
3265
+ */
3266
+ proto.GetVendorLineOfApprovalResponse.prototype.setMeta = function(value) {
3267
+ return jspb.Message.setWrapperField(this, 2, value);
3268
+ };
3269
+
3270
+
3271
+ /**
3272
+ * Clears the message field making it undefined.
3273
+ * @return {!proto.GetVendorLineOfApprovalResponse} returns this
3274
+ */
3275
+ proto.GetVendorLineOfApprovalResponse.prototype.clearMeta = function() {
3276
+ return this.setMeta(undefined);
3277
+ };
3278
+
3279
+
3280
+ /**
3281
+ * Returns whether this field is set.
3282
+ * @return {boolean}
3283
+ */
3284
+ proto.GetVendorLineOfApprovalResponse.prototype.hasMeta = function() {
3285
+ return jspb.Message.getField(this, 2) != null;
3286
+ };
3287
+
3288
+
3289
+
3290
+
3291
+
2856
3292
  if (jspb.Message.GENERATE_TO_OBJECT) {
2857
3293
  /**
2858
3294
  * Creates an object representation of this proto.
@@ -28,6 +28,28 @@ function deserialize_CreateTransactionBuilderDefaultRes(buffer_arg) {
28
28
  return prisca_v1_core_transaction_builder_transaction_builder_pb.CreateTransactionBuilderDefaultRes.deserializeBinary(new Uint8Array(buffer_arg));
29
29
  }
30
30
 
31
+ function serialize_DeleteTransactionBuilderFieldsRequest(arg) {
32
+ if (!(arg instanceof prisca_v1_core_transaction_builder_transaction_builder_pb.DeleteTransactionBuilderFieldsRequest)) {
33
+ throw new Error('Expected argument of type DeleteTransactionBuilderFieldsRequest');
34
+ }
35
+ return Buffer.from(arg.serializeBinary());
36
+ }
37
+
38
+ function deserialize_DeleteTransactionBuilderFieldsRequest(buffer_arg) {
39
+ return prisca_v1_core_transaction_builder_transaction_builder_pb.DeleteTransactionBuilderFieldsRequest.deserializeBinary(new Uint8Array(buffer_arg));
40
+ }
41
+
42
+ function serialize_DeleteTransactionBuilderFieldsRes(arg) {
43
+ if (!(arg instanceof prisca_v1_core_transaction_builder_transaction_builder_pb.DeleteTransactionBuilderFieldsRes)) {
44
+ throw new Error('Expected argument of type DeleteTransactionBuilderFieldsRes');
45
+ }
46
+ return Buffer.from(arg.serializeBinary());
47
+ }
48
+
49
+ function deserialize_DeleteTransactionBuilderFieldsRes(buffer_arg) {
50
+ return prisca_v1_core_transaction_builder_transaction_builder_pb.DeleteTransactionBuilderFieldsRes.deserializeBinary(new Uint8Array(buffer_arg));
51
+ }
52
+
31
53
  function serialize_EditTransactionBuilderById(arg) {
32
54
  if (!(arg instanceof prisca_v1_core_transaction_builder_transaction_builder_pb.EditTransactionBuilderById)) {
33
55
  throw new Error('Expected argument of type EditTransactionBuilderById');
@@ -614,6 +636,17 @@ createTransactionBuilder: {
614
636
  responseSerialize: serialize_CreateTransactionBuilderDefaultRes,
615
637
  responseDeserialize: deserialize_CreateTransactionBuilderDefaultRes,
616
638
  },
639
+ deleteTransactionBuilderFields: {
640
+ path: '/TransactionBuilderService/DeleteTransactionBuilderFields',
641
+ requestStream: false,
642
+ responseStream: false,
643
+ requestType: prisca_v1_core_transaction_builder_transaction_builder_pb.DeleteTransactionBuilderFieldsRequest,
644
+ responseType: prisca_v1_core_transaction_builder_transaction_builder_pb.DeleteTransactionBuilderFieldsRes,
645
+ requestSerialize: serialize_DeleteTransactionBuilderFieldsRequest,
646
+ requestDeserialize: deserialize_DeleteTransactionBuilderFieldsRequest,
647
+ responseSerialize: serialize_DeleteTransactionBuilderFieldsRes,
648
+ responseDeserialize: deserialize_DeleteTransactionBuilderFieldsRes,
649
+ },
617
650
  };
618
651
 
619
652
  exports.TransactionBuilderServiceClient = grpc.makeGenericClientConstructor(TransactionBuilderServiceService, 'TransactionBuilderService');