@aldiokta/protocgen 1.1.50 → 1.1.52
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 +23 -0
- package/prisca/v1/bidding/bidding_pb.js +463 -2
- package/prisca/v1/business_fields/business_fields_grpc_pb.js +33 -0
- package/prisca/v1/business_fields/business_fields_pb.js +356 -0
- package/prisca/v1/core/access_api/access_api_grpc_pb.js +204 -0
- package/prisca/v1/core/access_api/access_api_pb.js +3024 -0
- package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +66 -0
- package/prisca/v1/core/access_manager/access_manager_pb.js +1346 -2
- package/prisca/v1/core/attribute/attribute_grpc_pb.js +474 -0
- package/prisca/v1/core/attribute/attribute_pb.js +6550 -0
- package/prisca/v1/core/auth/auth_grpc_pb.js +22 -0
- package/prisca/v1/core/auth/auth_pb.js +152 -0
- package/prisca/v1/core/commodity/commodity_grpc_pb.js +156 -0
- package/prisca/v1/core/commodity/commodity_pb.js +1988 -0
- package/prisca/v1/core/company/company_grpc_pb.js +11 -0
- package/prisca/v1/core/cron_monitor/cron_monitor_grpc_pb.js +221 -0
- package/prisca/v1/core/cron_monitor/cron_monitor_pb.js +2681 -0
- package/prisca/v1/core/employee/employee_grpc_pb.js +25 -3
- package/prisca/v1/core/employee/employee_pb.js +203 -0
- package/prisca/v1/core/identity_provider/identity_provider_grpc_pb.js +156 -0
- package/prisca/v1/core/identity_provider/identity_provider_pb.js +2018 -0
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +2362 -1022
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +11 -0
- package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_pb.js +65 -35
- package/prisca/v1/core/material/material_grpc_pb.js +2 -0
- package/prisca/v1/core/material/material_pb.js +420 -2
- package/prisca/v1/core/messaging/email_template_grpc_pb.js +33 -0
- package/prisca/v1/core/messaging/email_template_pb.js +385 -0
- package/prisca/v1/core/number_range/number_range_grpc_pb.js +33 -0
- package/prisca/v1/core/number_range/number_range_pb.js +385 -0
- package/prisca/v1/core/report/report_pb.js +31 -1
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +33 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +364 -0
- package/prisca/v1/core/users/users_grpc_pb.js +1 -0
- package/prisca/v1/core/users/users_pb.js +2 -0
- package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +33 -0
- package/prisca/v1/delivery_order/delivery_order_pb.js +31 -1
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +33 -0
- package/prisca/v1/good_receipt/good_receipt_pb.js +273 -8
- package/prisca/v1/invoice/invoice_grpc_pb.js +33 -0
- package/prisca/v1/invoice/invoice_pb.js +237 -2
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +33 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +935 -12
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +35 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +527 -66
- package/prisca/v1/quotation/quotation_pb.js +55 -2
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -123
- package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +34 -0
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +1365 -0
|
@@ -21,6 +21,9 @@ var prisca_v1_core_file_upload_file_upload_pb = require('../../../prisca/v1/core
|
|
|
21
21
|
goog.object.extend(proto, prisca_v1_core_file_upload_file_upload_pb);
|
|
22
22
|
var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
|
|
23
23
|
goog.object.extend(proto, prisca_v1_core_transaction_builder_transaction_builder_pb);
|
|
24
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
25
|
+
goog.object.extend(proto, google_protobuf_empty_pb);
|
|
26
|
+
goog.exportSymbol('proto.AmountSummary', null, global);
|
|
24
27
|
goog.exportSymbol('proto.ArticleOfAssociation', null, global);
|
|
25
28
|
goog.exportSymbol('proto.BalanceSheetDetail', null, global);
|
|
26
29
|
goog.exportSymbol('proto.BankAccount', null, global);
|
|
@@ -32,6 +35,7 @@ goog.exportSymbol('proto.Communications', null, global);
|
|
|
32
35
|
goog.exportSymbol('proto.CompanyManagement', null, global);
|
|
33
36
|
goog.exportSymbol('proto.Competency', null, global);
|
|
34
37
|
goog.exportSymbol('proto.Contact', null, global);
|
|
38
|
+
goog.exportSymbol('proto.CounterSummary', null, global);
|
|
35
39
|
goog.exportSymbol('proto.CreateVendorRequest', null, global);
|
|
36
40
|
goog.exportSymbol('proto.CreateVendorResponse', null, global);
|
|
37
41
|
goog.exportSymbol('proto.DeleteVendorRequest', null, global);
|
|
@@ -47,10 +51,13 @@ goog.exportSymbol('proto.GetVendorItemDetailPreload', null, global);
|
|
|
47
51
|
goog.exportSymbol('proto.GetVendorItemPreload', null, global);
|
|
48
52
|
goog.exportSymbol('proto.GetVendorProfileRequest', null, global);
|
|
49
53
|
goog.exportSymbol('proto.OtherDocument', null, global);
|
|
54
|
+
goog.exportSymbol('proto.RecentSalesActivity', null, global);
|
|
50
55
|
goog.exportSymbol('proto.RegisterVendorRequest', null, global);
|
|
51
56
|
goog.exportSymbol('proto.RegisterVendorResponse', null, global);
|
|
52
57
|
goog.exportSymbol('proto.Relationship', null, global);
|
|
58
|
+
goog.exportSymbol('proto.SalesDashboardResponse', null, global);
|
|
53
59
|
goog.exportSymbol('proto.Shareholder', null, global);
|
|
60
|
+
goog.exportSymbol('proto.StatsSummary', null, global);
|
|
54
61
|
goog.exportSymbol('proto.TaxDocument', null, global);
|
|
55
62
|
goog.exportSymbol('proto.TaxInformation', null, global);
|
|
56
63
|
goog.exportSymbol('proto.TermOfPayments', null, global);
|
|
@@ -60,6 +67,111 @@ goog.exportSymbol('proto.UpdateVendorResponse', null, global);
|
|
|
60
67
|
goog.exportSymbol('proto.UpdateVendorStatusRequest', null, global);
|
|
61
68
|
goog.exportSymbol('proto.Vendor', null, global);
|
|
62
69
|
goog.exportSymbol('proto.WorkExperiences', null, global);
|
|
70
|
+
/**
|
|
71
|
+
* Generated by JsPbCodeGenerator.
|
|
72
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
73
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
74
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
75
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
76
|
+
* valid.
|
|
77
|
+
* @extends {jspb.Message}
|
|
78
|
+
* @constructor
|
|
79
|
+
*/
|
|
80
|
+
proto.CounterSummary = function(opt_data) {
|
|
81
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
82
|
+
};
|
|
83
|
+
goog.inherits(proto.CounterSummary, jspb.Message);
|
|
84
|
+
if (goog.DEBUG && !COMPILED) {
|
|
85
|
+
/**
|
|
86
|
+
* @public
|
|
87
|
+
* @override
|
|
88
|
+
*/
|
|
89
|
+
proto.CounterSummary.displayName = 'proto.CounterSummary';
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Generated by JsPbCodeGenerator.
|
|
93
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
94
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
95
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
96
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
97
|
+
* valid.
|
|
98
|
+
* @extends {jspb.Message}
|
|
99
|
+
* @constructor
|
|
100
|
+
*/
|
|
101
|
+
proto.AmountSummary = function(opt_data) {
|
|
102
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
103
|
+
};
|
|
104
|
+
goog.inherits(proto.AmountSummary, jspb.Message);
|
|
105
|
+
if (goog.DEBUG && !COMPILED) {
|
|
106
|
+
/**
|
|
107
|
+
* @public
|
|
108
|
+
* @override
|
|
109
|
+
*/
|
|
110
|
+
proto.AmountSummary.displayName = 'proto.AmountSummary';
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Generated by JsPbCodeGenerator.
|
|
114
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
115
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
116
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
117
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
118
|
+
* valid.
|
|
119
|
+
* @extends {jspb.Message}
|
|
120
|
+
* @constructor
|
|
121
|
+
*/
|
|
122
|
+
proto.StatsSummary = function(opt_data) {
|
|
123
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
124
|
+
};
|
|
125
|
+
goog.inherits(proto.StatsSummary, jspb.Message);
|
|
126
|
+
if (goog.DEBUG && !COMPILED) {
|
|
127
|
+
/**
|
|
128
|
+
* @public
|
|
129
|
+
* @override
|
|
130
|
+
*/
|
|
131
|
+
proto.StatsSummary.displayName = 'proto.StatsSummary';
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Generated by JsPbCodeGenerator.
|
|
135
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
136
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
137
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
138
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
139
|
+
* valid.
|
|
140
|
+
* @extends {jspb.Message}
|
|
141
|
+
* @constructor
|
|
142
|
+
*/
|
|
143
|
+
proto.RecentSalesActivity = function(opt_data) {
|
|
144
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
145
|
+
};
|
|
146
|
+
goog.inherits(proto.RecentSalesActivity, jspb.Message);
|
|
147
|
+
if (goog.DEBUG && !COMPILED) {
|
|
148
|
+
/**
|
|
149
|
+
* @public
|
|
150
|
+
* @override
|
|
151
|
+
*/
|
|
152
|
+
proto.RecentSalesActivity.displayName = 'proto.RecentSalesActivity';
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Generated by JsPbCodeGenerator.
|
|
156
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
157
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
158
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
159
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
160
|
+
* valid.
|
|
161
|
+
* @extends {jspb.Message}
|
|
162
|
+
* @constructor
|
|
163
|
+
*/
|
|
164
|
+
proto.SalesDashboardResponse = function(opt_data) {
|
|
165
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.SalesDashboardResponse.repeatedFields_, null);
|
|
166
|
+
};
|
|
167
|
+
goog.inherits(proto.SalesDashboardResponse, jspb.Message);
|
|
168
|
+
if (goog.DEBUG && !COMPILED) {
|
|
169
|
+
/**
|
|
170
|
+
* @public
|
|
171
|
+
* @override
|
|
172
|
+
*/
|
|
173
|
+
proto.SalesDashboardResponse.displayName = 'proto.SalesDashboardResponse';
|
|
174
|
+
}
|
|
63
175
|
/**
|
|
64
176
|
* Generated by JsPbCodeGenerator.
|
|
65
177
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -880,6 +992,1259 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
880
992
|
proto.RegisterVendorResponse.displayName = 'proto.RegisterVendorResponse';
|
|
881
993
|
}
|
|
882
994
|
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
998
|
+
/**
|
|
999
|
+
* Creates an object representation of this proto.
|
|
1000
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1001
|
+
* Optional fields that are not set will be set to undefined.
|
|
1002
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1003
|
+
* For the list of reserved names please see:
|
|
1004
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1005
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1006
|
+
* JSPB instance for transitional soy proto support:
|
|
1007
|
+
* http://goto/soy-param-migration
|
|
1008
|
+
* @return {!Object}
|
|
1009
|
+
*/
|
|
1010
|
+
proto.CounterSummary.prototype.toObject = function(opt_includeInstance) {
|
|
1011
|
+
return proto.CounterSummary.toObject(opt_includeInstance, this);
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Static version of the {@see toObject} method.
|
|
1017
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1018
|
+
* the JSPB instance for transitional soy proto support:
|
|
1019
|
+
* http://goto/soy-param-migration
|
|
1020
|
+
* @param {!proto.CounterSummary} msg The msg instance to transform.
|
|
1021
|
+
* @return {!Object}
|
|
1022
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1023
|
+
*/
|
|
1024
|
+
proto.CounterSummary.toObject = function(includeInstance, msg) {
|
|
1025
|
+
var f, obj = {
|
|
1026
|
+
countSalesQuotation: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1027
|
+
countSalesOrder: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1028
|
+
countSalesDeliveries: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
1029
|
+
countSalesInvoices: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
1030
|
+
countSalesPayment: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
if (includeInstance) {
|
|
1034
|
+
obj.$jspbMessageInstance = msg;
|
|
1035
|
+
}
|
|
1036
|
+
return obj;
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1043
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1044
|
+
* @return {!proto.CounterSummary}
|
|
1045
|
+
*/
|
|
1046
|
+
proto.CounterSummary.deserializeBinary = function(bytes) {
|
|
1047
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1048
|
+
var msg = new proto.CounterSummary;
|
|
1049
|
+
return proto.CounterSummary.deserializeBinaryFromReader(msg, reader);
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1055
|
+
* given reader into the given message object.
|
|
1056
|
+
* @param {!proto.CounterSummary} msg The message object to deserialize into.
|
|
1057
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1058
|
+
* @return {!proto.CounterSummary}
|
|
1059
|
+
*/
|
|
1060
|
+
proto.CounterSummary.deserializeBinaryFromReader = function(msg, reader) {
|
|
1061
|
+
while (reader.nextField()) {
|
|
1062
|
+
if (reader.isEndGroup()) {
|
|
1063
|
+
break;
|
|
1064
|
+
}
|
|
1065
|
+
var field = reader.getFieldNumber();
|
|
1066
|
+
switch (field) {
|
|
1067
|
+
case 1:
|
|
1068
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1069
|
+
msg.setCountSalesQuotation(value);
|
|
1070
|
+
break;
|
|
1071
|
+
case 2:
|
|
1072
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1073
|
+
msg.setCountSalesOrder(value);
|
|
1074
|
+
break;
|
|
1075
|
+
case 3:
|
|
1076
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1077
|
+
msg.setCountSalesDeliveries(value);
|
|
1078
|
+
break;
|
|
1079
|
+
case 4:
|
|
1080
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1081
|
+
msg.setCountSalesInvoices(value);
|
|
1082
|
+
break;
|
|
1083
|
+
case 5:
|
|
1084
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1085
|
+
msg.setCountSalesPayment(value);
|
|
1086
|
+
break;
|
|
1087
|
+
default:
|
|
1088
|
+
reader.skipField();
|
|
1089
|
+
break;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
return msg;
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1098
|
+
* @return {!Uint8Array}
|
|
1099
|
+
*/
|
|
1100
|
+
proto.CounterSummary.prototype.serializeBinary = function() {
|
|
1101
|
+
var writer = new jspb.BinaryWriter();
|
|
1102
|
+
proto.CounterSummary.serializeBinaryToWriter(this, writer);
|
|
1103
|
+
return writer.getResultBuffer();
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1109
|
+
* format), writing to the given BinaryWriter.
|
|
1110
|
+
* @param {!proto.CounterSummary} message
|
|
1111
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1112
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1113
|
+
*/
|
|
1114
|
+
proto.CounterSummary.serializeBinaryToWriter = function(message, writer) {
|
|
1115
|
+
var f = undefined;
|
|
1116
|
+
f = message.getCountSalesQuotation();
|
|
1117
|
+
if (f !== 0) {
|
|
1118
|
+
writer.writeInt32(
|
|
1119
|
+
1,
|
|
1120
|
+
f
|
|
1121
|
+
);
|
|
1122
|
+
}
|
|
1123
|
+
f = message.getCountSalesOrder();
|
|
1124
|
+
if (f !== 0) {
|
|
1125
|
+
writer.writeInt32(
|
|
1126
|
+
2,
|
|
1127
|
+
f
|
|
1128
|
+
);
|
|
1129
|
+
}
|
|
1130
|
+
f = message.getCountSalesDeliveries();
|
|
1131
|
+
if (f !== 0) {
|
|
1132
|
+
writer.writeInt32(
|
|
1133
|
+
3,
|
|
1134
|
+
f
|
|
1135
|
+
);
|
|
1136
|
+
}
|
|
1137
|
+
f = message.getCountSalesInvoices();
|
|
1138
|
+
if (f !== 0) {
|
|
1139
|
+
writer.writeInt32(
|
|
1140
|
+
4,
|
|
1141
|
+
f
|
|
1142
|
+
);
|
|
1143
|
+
}
|
|
1144
|
+
f = message.getCountSalesPayment();
|
|
1145
|
+
if (f !== 0) {
|
|
1146
|
+
writer.writeInt32(
|
|
1147
|
+
5,
|
|
1148
|
+
f
|
|
1149
|
+
);
|
|
1150
|
+
}
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* optional int32 count_sales_quotation = 1;
|
|
1156
|
+
* @return {number}
|
|
1157
|
+
*/
|
|
1158
|
+
proto.CounterSummary.prototype.getCountSalesQuotation = function() {
|
|
1159
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* @param {number} value
|
|
1165
|
+
* @return {!proto.CounterSummary} returns this
|
|
1166
|
+
*/
|
|
1167
|
+
proto.CounterSummary.prototype.setCountSalesQuotation = function(value) {
|
|
1168
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1169
|
+
};
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* optional int32 count_sales_order = 2;
|
|
1174
|
+
* @return {number}
|
|
1175
|
+
*/
|
|
1176
|
+
proto.CounterSummary.prototype.getCountSalesOrder = function() {
|
|
1177
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* @param {number} value
|
|
1183
|
+
* @return {!proto.CounterSummary} returns this
|
|
1184
|
+
*/
|
|
1185
|
+
proto.CounterSummary.prototype.setCountSalesOrder = function(value) {
|
|
1186
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1187
|
+
};
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* optional int32 count_sales_deliveries = 3;
|
|
1192
|
+
* @return {number}
|
|
1193
|
+
*/
|
|
1194
|
+
proto.CounterSummary.prototype.getCountSalesDeliveries = function() {
|
|
1195
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1196
|
+
};
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* @param {number} value
|
|
1201
|
+
* @return {!proto.CounterSummary} returns this
|
|
1202
|
+
*/
|
|
1203
|
+
proto.CounterSummary.prototype.setCountSalesDeliveries = function(value) {
|
|
1204
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1205
|
+
};
|
|
1206
|
+
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* optional int32 count_sales_invoices = 4;
|
|
1210
|
+
* @return {number}
|
|
1211
|
+
*/
|
|
1212
|
+
proto.CounterSummary.prototype.getCountSalesInvoices = function() {
|
|
1213
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* @param {number} value
|
|
1219
|
+
* @return {!proto.CounterSummary} returns this
|
|
1220
|
+
*/
|
|
1221
|
+
proto.CounterSummary.prototype.setCountSalesInvoices = function(value) {
|
|
1222
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* optional int32 count_sales_payment = 5;
|
|
1228
|
+
* @return {number}
|
|
1229
|
+
*/
|
|
1230
|
+
proto.CounterSummary.prototype.getCountSalesPayment = function() {
|
|
1231
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
1232
|
+
};
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* @param {number} value
|
|
1237
|
+
* @return {!proto.CounterSummary} returns this
|
|
1238
|
+
*/
|
|
1239
|
+
proto.CounterSummary.prototype.setCountSalesPayment = function(value) {
|
|
1240
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1248
|
+
/**
|
|
1249
|
+
* Creates an object representation of this proto.
|
|
1250
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1251
|
+
* Optional fields that are not set will be set to undefined.
|
|
1252
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1253
|
+
* For the list of reserved names please see:
|
|
1254
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1255
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1256
|
+
* JSPB instance for transitional soy proto support:
|
|
1257
|
+
* http://goto/soy-param-migration
|
|
1258
|
+
* @return {!Object}
|
|
1259
|
+
*/
|
|
1260
|
+
proto.AmountSummary.prototype.toObject = function(opt_includeInstance) {
|
|
1261
|
+
return proto.AmountSummary.toObject(opt_includeInstance, this);
|
|
1262
|
+
};
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* Static version of the {@see toObject} method.
|
|
1267
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1268
|
+
* the JSPB instance for transitional soy proto support:
|
|
1269
|
+
* http://goto/soy-param-migration
|
|
1270
|
+
* @param {!proto.AmountSummary} msg The msg instance to transform.
|
|
1271
|
+
* @return {!Object}
|
|
1272
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1273
|
+
*/
|
|
1274
|
+
proto.AmountSummary.toObject = function(includeInstance, msg) {
|
|
1275
|
+
var f, obj = {
|
|
1276
|
+
totalAmountRevenue: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
1277
|
+
totalAmountRevenueWip: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
1278
|
+
totalAmountNetOrder: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
|
|
1279
|
+
};
|
|
1280
|
+
|
|
1281
|
+
if (includeInstance) {
|
|
1282
|
+
obj.$jspbMessageInstance = msg;
|
|
1283
|
+
}
|
|
1284
|
+
return obj;
|
|
1285
|
+
};
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1291
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1292
|
+
* @return {!proto.AmountSummary}
|
|
1293
|
+
*/
|
|
1294
|
+
proto.AmountSummary.deserializeBinary = function(bytes) {
|
|
1295
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1296
|
+
var msg = new proto.AmountSummary;
|
|
1297
|
+
return proto.AmountSummary.deserializeBinaryFromReader(msg, reader);
|
|
1298
|
+
};
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
/**
|
|
1302
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1303
|
+
* given reader into the given message object.
|
|
1304
|
+
* @param {!proto.AmountSummary} msg The message object to deserialize into.
|
|
1305
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1306
|
+
* @return {!proto.AmountSummary}
|
|
1307
|
+
*/
|
|
1308
|
+
proto.AmountSummary.deserializeBinaryFromReader = function(msg, reader) {
|
|
1309
|
+
while (reader.nextField()) {
|
|
1310
|
+
if (reader.isEndGroup()) {
|
|
1311
|
+
break;
|
|
1312
|
+
}
|
|
1313
|
+
var field = reader.getFieldNumber();
|
|
1314
|
+
switch (field) {
|
|
1315
|
+
case 1:
|
|
1316
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
1317
|
+
msg.setTotalAmountRevenue(value);
|
|
1318
|
+
break;
|
|
1319
|
+
case 2:
|
|
1320
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
1321
|
+
msg.setTotalAmountRevenueWip(value);
|
|
1322
|
+
break;
|
|
1323
|
+
case 3:
|
|
1324
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
1325
|
+
msg.setTotalAmountNetOrder(value);
|
|
1326
|
+
break;
|
|
1327
|
+
default:
|
|
1328
|
+
reader.skipField();
|
|
1329
|
+
break;
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
return msg;
|
|
1333
|
+
};
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1338
|
+
* @return {!Uint8Array}
|
|
1339
|
+
*/
|
|
1340
|
+
proto.AmountSummary.prototype.serializeBinary = function() {
|
|
1341
|
+
var writer = new jspb.BinaryWriter();
|
|
1342
|
+
proto.AmountSummary.serializeBinaryToWriter(this, writer);
|
|
1343
|
+
return writer.getResultBuffer();
|
|
1344
|
+
};
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1349
|
+
* format), writing to the given BinaryWriter.
|
|
1350
|
+
* @param {!proto.AmountSummary} message
|
|
1351
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1352
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1353
|
+
*/
|
|
1354
|
+
proto.AmountSummary.serializeBinaryToWriter = function(message, writer) {
|
|
1355
|
+
var f = undefined;
|
|
1356
|
+
f = message.getTotalAmountRevenue();
|
|
1357
|
+
if (f !== 0.0) {
|
|
1358
|
+
writer.writeDouble(
|
|
1359
|
+
1,
|
|
1360
|
+
f
|
|
1361
|
+
);
|
|
1362
|
+
}
|
|
1363
|
+
f = message.getTotalAmountRevenueWip();
|
|
1364
|
+
if (f !== 0.0) {
|
|
1365
|
+
writer.writeDouble(
|
|
1366
|
+
2,
|
|
1367
|
+
f
|
|
1368
|
+
);
|
|
1369
|
+
}
|
|
1370
|
+
f = message.getTotalAmountNetOrder();
|
|
1371
|
+
if (f !== 0.0) {
|
|
1372
|
+
writer.writeDouble(
|
|
1373
|
+
3,
|
|
1374
|
+
f
|
|
1375
|
+
);
|
|
1376
|
+
}
|
|
1377
|
+
};
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* optional double total_amount_revenue = 1;
|
|
1382
|
+
* @return {number}
|
|
1383
|
+
*/
|
|
1384
|
+
proto.AmountSummary.prototype.getTotalAmountRevenue = function() {
|
|
1385
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
1386
|
+
};
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* @param {number} value
|
|
1391
|
+
* @return {!proto.AmountSummary} returns this
|
|
1392
|
+
*/
|
|
1393
|
+
proto.AmountSummary.prototype.setTotalAmountRevenue = function(value) {
|
|
1394
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
1395
|
+
};
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* optional double total_amount_revenue_wip = 2;
|
|
1400
|
+
* @return {number}
|
|
1401
|
+
*/
|
|
1402
|
+
proto.AmountSummary.prototype.getTotalAmountRevenueWip = function() {
|
|
1403
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
1404
|
+
};
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* @param {number} value
|
|
1409
|
+
* @return {!proto.AmountSummary} returns this
|
|
1410
|
+
*/
|
|
1411
|
+
proto.AmountSummary.prototype.setTotalAmountRevenueWip = function(value) {
|
|
1412
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
1413
|
+
};
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* optional double total_amount_net_order = 3;
|
|
1418
|
+
* @return {number}
|
|
1419
|
+
*/
|
|
1420
|
+
proto.AmountSummary.prototype.getTotalAmountNetOrder = function() {
|
|
1421
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
1422
|
+
};
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* @param {number} value
|
|
1427
|
+
* @return {!proto.AmountSummary} returns this
|
|
1428
|
+
*/
|
|
1429
|
+
proto.AmountSummary.prototype.setTotalAmountNetOrder = function(value) {
|
|
1430
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
1431
|
+
};
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1438
|
+
/**
|
|
1439
|
+
* Creates an object representation of this proto.
|
|
1440
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1441
|
+
* Optional fields that are not set will be set to undefined.
|
|
1442
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1443
|
+
* For the list of reserved names please see:
|
|
1444
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1445
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1446
|
+
* JSPB instance for transitional soy proto support:
|
|
1447
|
+
* http://goto/soy-param-migration
|
|
1448
|
+
* @return {!Object}
|
|
1449
|
+
*/
|
|
1450
|
+
proto.StatsSummary.prototype.toObject = function(opt_includeInstance) {
|
|
1451
|
+
return proto.StatsSummary.toObject(opt_includeInstance, this);
|
|
1452
|
+
};
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
/**
|
|
1456
|
+
* Static version of the {@see toObject} method.
|
|
1457
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1458
|
+
* the JSPB instance for transitional soy proto support:
|
|
1459
|
+
* http://goto/soy-param-migration
|
|
1460
|
+
* @param {!proto.StatsSummary} msg The msg instance to transform.
|
|
1461
|
+
* @return {!Object}
|
|
1462
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1463
|
+
*/
|
|
1464
|
+
proto.StatsSummary.toObject = function(includeInstance, msg) {
|
|
1465
|
+
var f, obj = {
|
|
1466
|
+
conversion: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
1467
|
+
averageSales: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
1468
|
+
deliveryRate: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
1469
|
+
collectionRate: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
|
|
1470
|
+
};
|
|
1471
|
+
|
|
1472
|
+
if (includeInstance) {
|
|
1473
|
+
obj.$jspbMessageInstance = msg;
|
|
1474
|
+
}
|
|
1475
|
+
return obj;
|
|
1476
|
+
};
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1482
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1483
|
+
* @return {!proto.StatsSummary}
|
|
1484
|
+
*/
|
|
1485
|
+
proto.StatsSummary.deserializeBinary = function(bytes) {
|
|
1486
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1487
|
+
var msg = new proto.StatsSummary;
|
|
1488
|
+
return proto.StatsSummary.deserializeBinaryFromReader(msg, reader);
|
|
1489
|
+
};
|
|
1490
|
+
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1494
|
+
* given reader into the given message object.
|
|
1495
|
+
* @param {!proto.StatsSummary} msg The message object to deserialize into.
|
|
1496
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1497
|
+
* @return {!proto.StatsSummary}
|
|
1498
|
+
*/
|
|
1499
|
+
proto.StatsSummary.deserializeBinaryFromReader = function(msg, reader) {
|
|
1500
|
+
while (reader.nextField()) {
|
|
1501
|
+
if (reader.isEndGroup()) {
|
|
1502
|
+
break;
|
|
1503
|
+
}
|
|
1504
|
+
var field = reader.getFieldNumber();
|
|
1505
|
+
switch (field) {
|
|
1506
|
+
case 1:
|
|
1507
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
1508
|
+
msg.setConversion(value);
|
|
1509
|
+
break;
|
|
1510
|
+
case 2:
|
|
1511
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
1512
|
+
msg.setAverageSales(value);
|
|
1513
|
+
break;
|
|
1514
|
+
case 3:
|
|
1515
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
1516
|
+
msg.setDeliveryRate(value);
|
|
1517
|
+
break;
|
|
1518
|
+
case 4:
|
|
1519
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
1520
|
+
msg.setCollectionRate(value);
|
|
1521
|
+
break;
|
|
1522
|
+
default:
|
|
1523
|
+
reader.skipField();
|
|
1524
|
+
break;
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
return msg;
|
|
1528
|
+
};
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1533
|
+
* @return {!Uint8Array}
|
|
1534
|
+
*/
|
|
1535
|
+
proto.StatsSummary.prototype.serializeBinary = function() {
|
|
1536
|
+
var writer = new jspb.BinaryWriter();
|
|
1537
|
+
proto.StatsSummary.serializeBinaryToWriter(this, writer);
|
|
1538
|
+
return writer.getResultBuffer();
|
|
1539
|
+
};
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1544
|
+
* format), writing to the given BinaryWriter.
|
|
1545
|
+
* @param {!proto.StatsSummary} message
|
|
1546
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1547
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1548
|
+
*/
|
|
1549
|
+
proto.StatsSummary.serializeBinaryToWriter = function(message, writer) {
|
|
1550
|
+
var f = undefined;
|
|
1551
|
+
f = message.getConversion();
|
|
1552
|
+
if (f !== 0.0) {
|
|
1553
|
+
writer.writeDouble(
|
|
1554
|
+
1,
|
|
1555
|
+
f
|
|
1556
|
+
);
|
|
1557
|
+
}
|
|
1558
|
+
f = message.getAverageSales();
|
|
1559
|
+
if (f !== 0.0) {
|
|
1560
|
+
writer.writeDouble(
|
|
1561
|
+
2,
|
|
1562
|
+
f
|
|
1563
|
+
);
|
|
1564
|
+
}
|
|
1565
|
+
f = message.getDeliveryRate();
|
|
1566
|
+
if (f !== 0.0) {
|
|
1567
|
+
writer.writeDouble(
|
|
1568
|
+
3,
|
|
1569
|
+
f
|
|
1570
|
+
);
|
|
1571
|
+
}
|
|
1572
|
+
f = message.getCollectionRate();
|
|
1573
|
+
if (f !== 0.0) {
|
|
1574
|
+
writer.writeDouble(
|
|
1575
|
+
4,
|
|
1576
|
+
f
|
|
1577
|
+
);
|
|
1578
|
+
}
|
|
1579
|
+
};
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* optional double conversion = 1;
|
|
1584
|
+
* @return {number}
|
|
1585
|
+
*/
|
|
1586
|
+
proto.StatsSummary.prototype.getConversion = function() {
|
|
1587
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
1588
|
+
};
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
/**
|
|
1592
|
+
* @param {number} value
|
|
1593
|
+
* @return {!proto.StatsSummary} returns this
|
|
1594
|
+
*/
|
|
1595
|
+
proto.StatsSummary.prototype.setConversion = function(value) {
|
|
1596
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
1597
|
+
};
|
|
1598
|
+
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* optional double average_sales = 2;
|
|
1602
|
+
* @return {number}
|
|
1603
|
+
*/
|
|
1604
|
+
proto.StatsSummary.prototype.getAverageSales = function() {
|
|
1605
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
1606
|
+
};
|
|
1607
|
+
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* @param {number} value
|
|
1611
|
+
* @return {!proto.StatsSummary} returns this
|
|
1612
|
+
*/
|
|
1613
|
+
proto.StatsSummary.prototype.setAverageSales = function(value) {
|
|
1614
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
1615
|
+
};
|
|
1616
|
+
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* optional double delivery_rate = 3;
|
|
1620
|
+
* @return {number}
|
|
1621
|
+
*/
|
|
1622
|
+
proto.StatsSummary.prototype.getDeliveryRate = function() {
|
|
1623
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
1624
|
+
};
|
|
1625
|
+
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* @param {number} value
|
|
1629
|
+
* @return {!proto.StatsSummary} returns this
|
|
1630
|
+
*/
|
|
1631
|
+
proto.StatsSummary.prototype.setDeliveryRate = function(value) {
|
|
1632
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
1633
|
+
};
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* optional double collection_rate = 4;
|
|
1638
|
+
* @return {number}
|
|
1639
|
+
*/
|
|
1640
|
+
proto.StatsSummary.prototype.getCollectionRate = function() {
|
|
1641
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
1642
|
+
};
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
/**
|
|
1646
|
+
* @param {number} value
|
|
1647
|
+
* @return {!proto.StatsSummary} returns this
|
|
1648
|
+
*/
|
|
1649
|
+
proto.StatsSummary.prototype.setCollectionRate = function(value) {
|
|
1650
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
1651
|
+
};
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1658
|
+
/**
|
|
1659
|
+
* Creates an object representation of this proto.
|
|
1660
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1661
|
+
* Optional fields that are not set will be set to undefined.
|
|
1662
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1663
|
+
* For the list of reserved names please see:
|
|
1664
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1665
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1666
|
+
* JSPB instance for transitional soy proto support:
|
|
1667
|
+
* http://goto/soy-param-migration
|
|
1668
|
+
* @return {!Object}
|
|
1669
|
+
*/
|
|
1670
|
+
proto.RecentSalesActivity.prototype.toObject = function(opt_includeInstance) {
|
|
1671
|
+
return proto.RecentSalesActivity.toObject(opt_includeInstance, this);
|
|
1672
|
+
};
|
|
1673
|
+
|
|
1674
|
+
|
|
1675
|
+
/**
|
|
1676
|
+
* Static version of the {@see toObject} method.
|
|
1677
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1678
|
+
* the JSPB instance for transitional soy proto support:
|
|
1679
|
+
* http://goto/soy-param-migration
|
|
1680
|
+
* @param {!proto.RecentSalesActivity} msg The msg instance to transform.
|
|
1681
|
+
* @return {!Object}
|
|
1682
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1683
|
+
*/
|
|
1684
|
+
proto.RecentSalesActivity.toObject = function(includeInstance, msg) {
|
|
1685
|
+
var f, obj = {
|
|
1686
|
+
soNumber: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1687
|
+
soTitle: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1688
|
+
customerCompany: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1689
|
+
documentDate: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1690
|
+
activityType: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
1691
|
+
totalValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0)
|
|
1692
|
+
};
|
|
1693
|
+
|
|
1694
|
+
if (includeInstance) {
|
|
1695
|
+
obj.$jspbMessageInstance = msg;
|
|
1696
|
+
}
|
|
1697
|
+
return obj;
|
|
1698
|
+
};
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
|
|
1702
|
+
/**
|
|
1703
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1704
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1705
|
+
* @return {!proto.RecentSalesActivity}
|
|
1706
|
+
*/
|
|
1707
|
+
proto.RecentSalesActivity.deserializeBinary = function(bytes) {
|
|
1708
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1709
|
+
var msg = new proto.RecentSalesActivity;
|
|
1710
|
+
return proto.RecentSalesActivity.deserializeBinaryFromReader(msg, reader);
|
|
1711
|
+
};
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
/**
|
|
1715
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1716
|
+
* given reader into the given message object.
|
|
1717
|
+
* @param {!proto.RecentSalesActivity} msg The message object to deserialize into.
|
|
1718
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1719
|
+
* @return {!proto.RecentSalesActivity}
|
|
1720
|
+
*/
|
|
1721
|
+
proto.RecentSalesActivity.deserializeBinaryFromReader = function(msg, reader) {
|
|
1722
|
+
while (reader.nextField()) {
|
|
1723
|
+
if (reader.isEndGroup()) {
|
|
1724
|
+
break;
|
|
1725
|
+
}
|
|
1726
|
+
var field = reader.getFieldNumber();
|
|
1727
|
+
switch (field) {
|
|
1728
|
+
case 1:
|
|
1729
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1730
|
+
msg.setSoNumber(value);
|
|
1731
|
+
break;
|
|
1732
|
+
case 2:
|
|
1733
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1734
|
+
msg.setSoTitle(value);
|
|
1735
|
+
break;
|
|
1736
|
+
case 3:
|
|
1737
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1738
|
+
msg.setCustomerCompany(value);
|
|
1739
|
+
break;
|
|
1740
|
+
case 4:
|
|
1741
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1742
|
+
msg.setDocumentDate(value);
|
|
1743
|
+
break;
|
|
1744
|
+
case 5:
|
|
1745
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1746
|
+
msg.setActivityType(value);
|
|
1747
|
+
break;
|
|
1748
|
+
case 6:
|
|
1749
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
1750
|
+
msg.setTotalValue(value);
|
|
1751
|
+
break;
|
|
1752
|
+
default:
|
|
1753
|
+
reader.skipField();
|
|
1754
|
+
break;
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
return msg;
|
|
1758
|
+
};
|
|
1759
|
+
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1763
|
+
* @return {!Uint8Array}
|
|
1764
|
+
*/
|
|
1765
|
+
proto.RecentSalesActivity.prototype.serializeBinary = function() {
|
|
1766
|
+
var writer = new jspb.BinaryWriter();
|
|
1767
|
+
proto.RecentSalesActivity.serializeBinaryToWriter(this, writer);
|
|
1768
|
+
return writer.getResultBuffer();
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1774
|
+
* format), writing to the given BinaryWriter.
|
|
1775
|
+
* @param {!proto.RecentSalesActivity} message
|
|
1776
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1777
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1778
|
+
*/
|
|
1779
|
+
proto.RecentSalesActivity.serializeBinaryToWriter = function(message, writer) {
|
|
1780
|
+
var f = undefined;
|
|
1781
|
+
f = message.getSoNumber();
|
|
1782
|
+
if (f.length > 0) {
|
|
1783
|
+
writer.writeString(
|
|
1784
|
+
1,
|
|
1785
|
+
f
|
|
1786
|
+
);
|
|
1787
|
+
}
|
|
1788
|
+
f = message.getSoTitle();
|
|
1789
|
+
if (f.length > 0) {
|
|
1790
|
+
writer.writeString(
|
|
1791
|
+
2,
|
|
1792
|
+
f
|
|
1793
|
+
);
|
|
1794
|
+
}
|
|
1795
|
+
f = message.getCustomerCompany();
|
|
1796
|
+
if (f.length > 0) {
|
|
1797
|
+
writer.writeString(
|
|
1798
|
+
3,
|
|
1799
|
+
f
|
|
1800
|
+
);
|
|
1801
|
+
}
|
|
1802
|
+
f = message.getDocumentDate();
|
|
1803
|
+
if (f.length > 0) {
|
|
1804
|
+
writer.writeString(
|
|
1805
|
+
4,
|
|
1806
|
+
f
|
|
1807
|
+
);
|
|
1808
|
+
}
|
|
1809
|
+
f = message.getActivityType();
|
|
1810
|
+
if (f.length > 0) {
|
|
1811
|
+
writer.writeString(
|
|
1812
|
+
5,
|
|
1813
|
+
f
|
|
1814
|
+
);
|
|
1815
|
+
}
|
|
1816
|
+
f = message.getTotalValue();
|
|
1817
|
+
if (f !== 0.0) {
|
|
1818
|
+
writer.writeDouble(
|
|
1819
|
+
6,
|
|
1820
|
+
f
|
|
1821
|
+
);
|
|
1822
|
+
}
|
|
1823
|
+
};
|
|
1824
|
+
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* optional string so_number = 1;
|
|
1828
|
+
* @return {string}
|
|
1829
|
+
*/
|
|
1830
|
+
proto.RecentSalesActivity.prototype.getSoNumber = function() {
|
|
1831
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1832
|
+
};
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
* @param {string} value
|
|
1837
|
+
* @return {!proto.RecentSalesActivity} returns this
|
|
1838
|
+
*/
|
|
1839
|
+
proto.RecentSalesActivity.prototype.setSoNumber = function(value) {
|
|
1840
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1841
|
+
};
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* optional string so_title = 2;
|
|
1846
|
+
* @return {string}
|
|
1847
|
+
*/
|
|
1848
|
+
proto.RecentSalesActivity.prototype.getSoTitle = function() {
|
|
1849
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1850
|
+
};
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* @param {string} value
|
|
1855
|
+
* @return {!proto.RecentSalesActivity} returns this
|
|
1856
|
+
*/
|
|
1857
|
+
proto.RecentSalesActivity.prototype.setSoTitle = function(value) {
|
|
1858
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1859
|
+
};
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* optional string customer_company = 3;
|
|
1864
|
+
* @return {string}
|
|
1865
|
+
*/
|
|
1866
|
+
proto.RecentSalesActivity.prototype.getCustomerCompany = function() {
|
|
1867
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1868
|
+
};
|
|
1869
|
+
|
|
1870
|
+
|
|
1871
|
+
/**
|
|
1872
|
+
* @param {string} value
|
|
1873
|
+
* @return {!proto.RecentSalesActivity} returns this
|
|
1874
|
+
*/
|
|
1875
|
+
proto.RecentSalesActivity.prototype.setCustomerCompany = function(value) {
|
|
1876
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1877
|
+
};
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* optional string document_date = 4;
|
|
1882
|
+
* @return {string}
|
|
1883
|
+
*/
|
|
1884
|
+
proto.RecentSalesActivity.prototype.getDocumentDate = function() {
|
|
1885
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1886
|
+
};
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
/**
|
|
1890
|
+
* @param {string} value
|
|
1891
|
+
* @return {!proto.RecentSalesActivity} returns this
|
|
1892
|
+
*/
|
|
1893
|
+
proto.RecentSalesActivity.prototype.setDocumentDate = function(value) {
|
|
1894
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1895
|
+
};
|
|
1896
|
+
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* optional string activity_type = 5;
|
|
1900
|
+
* @return {string}
|
|
1901
|
+
*/
|
|
1902
|
+
proto.RecentSalesActivity.prototype.getActivityType = function() {
|
|
1903
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1904
|
+
};
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
/**
|
|
1908
|
+
* @param {string} value
|
|
1909
|
+
* @return {!proto.RecentSalesActivity} returns this
|
|
1910
|
+
*/
|
|
1911
|
+
proto.RecentSalesActivity.prototype.setActivityType = function(value) {
|
|
1912
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1913
|
+
};
|
|
1914
|
+
|
|
1915
|
+
|
|
1916
|
+
/**
|
|
1917
|
+
* optional double total_value = 6;
|
|
1918
|
+
* @return {number}
|
|
1919
|
+
*/
|
|
1920
|
+
proto.RecentSalesActivity.prototype.getTotalValue = function() {
|
|
1921
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
1922
|
+
};
|
|
1923
|
+
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* @param {number} value
|
|
1927
|
+
* @return {!proto.RecentSalesActivity} returns this
|
|
1928
|
+
*/
|
|
1929
|
+
proto.RecentSalesActivity.prototype.setTotalValue = function(value) {
|
|
1930
|
+
return jspb.Message.setProto3FloatField(this, 6, value);
|
|
1931
|
+
};
|
|
1932
|
+
|
|
1933
|
+
|
|
1934
|
+
|
|
1935
|
+
/**
|
|
1936
|
+
* List of repeated fields within this message type.
|
|
1937
|
+
* @private {!Array<number>}
|
|
1938
|
+
* @const
|
|
1939
|
+
*/
|
|
1940
|
+
proto.SalesDashboardResponse.repeatedFields_ = [4];
|
|
1941
|
+
|
|
1942
|
+
|
|
1943
|
+
|
|
1944
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1945
|
+
/**
|
|
1946
|
+
* Creates an object representation of this proto.
|
|
1947
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1948
|
+
* Optional fields that are not set will be set to undefined.
|
|
1949
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1950
|
+
* For the list of reserved names please see:
|
|
1951
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1952
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1953
|
+
* JSPB instance for transitional soy proto support:
|
|
1954
|
+
* http://goto/soy-param-migration
|
|
1955
|
+
* @return {!Object}
|
|
1956
|
+
*/
|
|
1957
|
+
proto.SalesDashboardResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1958
|
+
return proto.SalesDashboardResponse.toObject(opt_includeInstance, this);
|
|
1959
|
+
};
|
|
1960
|
+
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* Static version of the {@see toObject} method.
|
|
1964
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1965
|
+
* the JSPB instance for transitional soy proto support:
|
|
1966
|
+
* http://goto/soy-param-migration
|
|
1967
|
+
* @param {!proto.SalesDashboardResponse} msg The msg instance to transform.
|
|
1968
|
+
* @return {!Object}
|
|
1969
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1970
|
+
*/
|
|
1971
|
+
proto.SalesDashboardResponse.toObject = function(includeInstance, msg) {
|
|
1972
|
+
var f, obj = {
|
|
1973
|
+
counterSummary: (f = msg.getCounterSummary()) && proto.CounterSummary.toObject(includeInstance, f),
|
|
1974
|
+
amountSummary: (f = msg.getAmountSummary()) && proto.AmountSummary.toObject(includeInstance, f),
|
|
1975
|
+
statsSummary: (f = msg.getStatsSummary()) && proto.StatsSummary.toObject(includeInstance, f),
|
|
1976
|
+
recentSalesActivityList: jspb.Message.toObjectList(msg.getRecentSalesActivityList(),
|
|
1977
|
+
proto.RecentSalesActivity.toObject, includeInstance)
|
|
1978
|
+
};
|
|
1979
|
+
|
|
1980
|
+
if (includeInstance) {
|
|
1981
|
+
obj.$jspbMessageInstance = msg;
|
|
1982
|
+
}
|
|
1983
|
+
return obj;
|
|
1984
|
+
};
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
|
|
1988
|
+
/**
|
|
1989
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1990
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1991
|
+
* @return {!proto.SalesDashboardResponse}
|
|
1992
|
+
*/
|
|
1993
|
+
proto.SalesDashboardResponse.deserializeBinary = function(bytes) {
|
|
1994
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1995
|
+
var msg = new proto.SalesDashboardResponse;
|
|
1996
|
+
return proto.SalesDashboardResponse.deserializeBinaryFromReader(msg, reader);
|
|
1997
|
+
};
|
|
1998
|
+
|
|
1999
|
+
|
|
2000
|
+
/**
|
|
2001
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2002
|
+
* given reader into the given message object.
|
|
2003
|
+
* @param {!proto.SalesDashboardResponse} msg The message object to deserialize into.
|
|
2004
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2005
|
+
* @return {!proto.SalesDashboardResponse}
|
|
2006
|
+
*/
|
|
2007
|
+
proto.SalesDashboardResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2008
|
+
while (reader.nextField()) {
|
|
2009
|
+
if (reader.isEndGroup()) {
|
|
2010
|
+
break;
|
|
2011
|
+
}
|
|
2012
|
+
var field = reader.getFieldNumber();
|
|
2013
|
+
switch (field) {
|
|
2014
|
+
case 1:
|
|
2015
|
+
var value = new proto.CounterSummary;
|
|
2016
|
+
reader.readMessage(value,proto.CounterSummary.deserializeBinaryFromReader);
|
|
2017
|
+
msg.setCounterSummary(value);
|
|
2018
|
+
break;
|
|
2019
|
+
case 2:
|
|
2020
|
+
var value = new proto.AmountSummary;
|
|
2021
|
+
reader.readMessage(value,proto.AmountSummary.deserializeBinaryFromReader);
|
|
2022
|
+
msg.setAmountSummary(value);
|
|
2023
|
+
break;
|
|
2024
|
+
case 3:
|
|
2025
|
+
var value = new proto.StatsSummary;
|
|
2026
|
+
reader.readMessage(value,proto.StatsSummary.deserializeBinaryFromReader);
|
|
2027
|
+
msg.setStatsSummary(value);
|
|
2028
|
+
break;
|
|
2029
|
+
case 4:
|
|
2030
|
+
var value = new proto.RecentSalesActivity;
|
|
2031
|
+
reader.readMessage(value,proto.RecentSalesActivity.deserializeBinaryFromReader);
|
|
2032
|
+
msg.addRecentSalesActivity(value);
|
|
2033
|
+
break;
|
|
2034
|
+
default:
|
|
2035
|
+
reader.skipField();
|
|
2036
|
+
break;
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
return msg;
|
|
2040
|
+
};
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2045
|
+
* @return {!Uint8Array}
|
|
2046
|
+
*/
|
|
2047
|
+
proto.SalesDashboardResponse.prototype.serializeBinary = function() {
|
|
2048
|
+
var writer = new jspb.BinaryWriter();
|
|
2049
|
+
proto.SalesDashboardResponse.serializeBinaryToWriter(this, writer);
|
|
2050
|
+
return writer.getResultBuffer();
|
|
2051
|
+
};
|
|
2052
|
+
|
|
2053
|
+
|
|
2054
|
+
/**
|
|
2055
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2056
|
+
* format), writing to the given BinaryWriter.
|
|
2057
|
+
* @param {!proto.SalesDashboardResponse} message
|
|
2058
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2059
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2060
|
+
*/
|
|
2061
|
+
proto.SalesDashboardResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2062
|
+
var f = undefined;
|
|
2063
|
+
f = message.getCounterSummary();
|
|
2064
|
+
if (f != null) {
|
|
2065
|
+
writer.writeMessage(
|
|
2066
|
+
1,
|
|
2067
|
+
f,
|
|
2068
|
+
proto.CounterSummary.serializeBinaryToWriter
|
|
2069
|
+
);
|
|
2070
|
+
}
|
|
2071
|
+
f = message.getAmountSummary();
|
|
2072
|
+
if (f != null) {
|
|
2073
|
+
writer.writeMessage(
|
|
2074
|
+
2,
|
|
2075
|
+
f,
|
|
2076
|
+
proto.AmountSummary.serializeBinaryToWriter
|
|
2077
|
+
);
|
|
2078
|
+
}
|
|
2079
|
+
f = message.getStatsSummary();
|
|
2080
|
+
if (f != null) {
|
|
2081
|
+
writer.writeMessage(
|
|
2082
|
+
3,
|
|
2083
|
+
f,
|
|
2084
|
+
proto.StatsSummary.serializeBinaryToWriter
|
|
2085
|
+
);
|
|
2086
|
+
}
|
|
2087
|
+
f = message.getRecentSalesActivityList();
|
|
2088
|
+
if (f.length > 0) {
|
|
2089
|
+
writer.writeRepeatedMessage(
|
|
2090
|
+
4,
|
|
2091
|
+
f,
|
|
2092
|
+
proto.RecentSalesActivity.serializeBinaryToWriter
|
|
2093
|
+
);
|
|
2094
|
+
}
|
|
2095
|
+
};
|
|
2096
|
+
|
|
2097
|
+
|
|
2098
|
+
/**
|
|
2099
|
+
* optional CounterSummary counter_summary = 1;
|
|
2100
|
+
* @return {?proto.CounterSummary}
|
|
2101
|
+
*/
|
|
2102
|
+
proto.SalesDashboardResponse.prototype.getCounterSummary = function() {
|
|
2103
|
+
return /** @type{?proto.CounterSummary} */ (
|
|
2104
|
+
jspb.Message.getWrapperField(this, proto.CounterSummary, 1));
|
|
2105
|
+
};
|
|
2106
|
+
|
|
2107
|
+
|
|
2108
|
+
/**
|
|
2109
|
+
* @param {?proto.CounterSummary|undefined} value
|
|
2110
|
+
* @return {!proto.SalesDashboardResponse} returns this
|
|
2111
|
+
*/
|
|
2112
|
+
proto.SalesDashboardResponse.prototype.setCounterSummary = function(value) {
|
|
2113
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2114
|
+
};
|
|
2115
|
+
|
|
2116
|
+
|
|
2117
|
+
/**
|
|
2118
|
+
* Clears the message field making it undefined.
|
|
2119
|
+
* @return {!proto.SalesDashboardResponse} returns this
|
|
2120
|
+
*/
|
|
2121
|
+
proto.SalesDashboardResponse.prototype.clearCounterSummary = function() {
|
|
2122
|
+
return this.setCounterSummary(undefined);
|
|
2123
|
+
};
|
|
2124
|
+
|
|
2125
|
+
|
|
2126
|
+
/**
|
|
2127
|
+
* Returns whether this field is set.
|
|
2128
|
+
* @return {boolean}
|
|
2129
|
+
*/
|
|
2130
|
+
proto.SalesDashboardResponse.prototype.hasCounterSummary = function() {
|
|
2131
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2132
|
+
};
|
|
2133
|
+
|
|
2134
|
+
|
|
2135
|
+
/**
|
|
2136
|
+
* optional AmountSummary amount_summary = 2;
|
|
2137
|
+
* @return {?proto.AmountSummary}
|
|
2138
|
+
*/
|
|
2139
|
+
proto.SalesDashboardResponse.prototype.getAmountSummary = function() {
|
|
2140
|
+
return /** @type{?proto.AmountSummary} */ (
|
|
2141
|
+
jspb.Message.getWrapperField(this, proto.AmountSummary, 2));
|
|
2142
|
+
};
|
|
2143
|
+
|
|
2144
|
+
|
|
2145
|
+
/**
|
|
2146
|
+
* @param {?proto.AmountSummary|undefined} value
|
|
2147
|
+
* @return {!proto.SalesDashboardResponse} returns this
|
|
2148
|
+
*/
|
|
2149
|
+
proto.SalesDashboardResponse.prototype.setAmountSummary = function(value) {
|
|
2150
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2151
|
+
};
|
|
2152
|
+
|
|
2153
|
+
|
|
2154
|
+
/**
|
|
2155
|
+
* Clears the message field making it undefined.
|
|
2156
|
+
* @return {!proto.SalesDashboardResponse} returns this
|
|
2157
|
+
*/
|
|
2158
|
+
proto.SalesDashboardResponse.prototype.clearAmountSummary = function() {
|
|
2159
|
+
return this.setAmountSummary(undefined);
|
|
2160
|
+
};
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* Returns whether this field is set.
|
|
2165
|
+
* @return {boolean}
|
|
2166
|
+
*/
|
|
2167
|
+
proto.SalesDashboardResponse.prototype.hasAmountSummary = function() {
|
|
2168
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2169
|
+
};
|
|
2170
|
+
|
|
2171
|
+
|
|
2172
|
+
/**
|
|
2173
|
+
* optional StatsSummary stats_summary = 3;
|
|
2174
|
+
* @return {?proto.StatsSummary}
|
|
2175
|
+
*/
|
|
2176
|
+
proto.SalesDashboardResponse.prototype.getStatsSummary = function() {
|
|
2177
|
+
return /** @type{?proto.StatsSummary} */ (
|
|
2178
|
+
jspb.Message.getWrapperField(this, proto.StatsSummary, 3));
|
|
2179
|
+
};
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
/**
|
|
2183
|
+
* @param {?proto.StatsSummary|undefined} value
|
|
2184
|
+
* @return {!proto.SalesDashboardResponse} returns this
|
|
2185
|
+
*/
|
|
2186
|
+
proto.SalesDashboardResponse.prototype.setStatsSummary = function(value) {
|
|
2187
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
2188
|
+
};
|
|
2189
|
+
|
|
2190
|
+
|
|
2191
|
+
/**
|
|
2192
|
+
* Clears the message field making it undefined.
|
|
2193
|
+
* @return {!proto.SalesDashboardResponse} returns this
|
|
2194
|
+
*/
|
|
2195
|
+
proto.SalesDashboardResponse.prototype.clearStatsSummary = function() {
|
|
2196
|
+
return this.setStatsSummary(undefined);
|
|
2197
|
+
};
|
|
2198
|
+
|
|
2199
|
+
|
|
2200
|
+
/**
|
|
2201
|
+
* Returns whether this field is set.
|
|
2202
|
+
* @return {boolean}
|
|
2203
|
+
*/
|
|
2204
|
+
proto.SalesDashboardResponse.prototype.hasStatsSummary = function() {
|
|
2205
|
+
return jspb.Message.getField(this, 3) != null;
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
|
|
2209
|
+
/**
|
|
2210
|
+
* repeated RecentSalesActivity recent_sales_activity = 4;
|
|
2211
|
+
* @return {!Array<!proto.RecentSalesActivity>}
|
|
2212
|
+
*/
|
|
2213
|
+
proto.SalesDashboardResponse.prototype.getRecentSalesActivityList = function() {
|
|
2214
|
+
return /** @type{!Array<!proto.RecentSalesActivity>} */ (
|
|
2215
|
+
jspb.Message.getRepeatedWrapperField(this, proto.RecentSalesActivity, 4));
|
|
2216
|
+
};
|
|
2217
|
+
|
|
2218
|
+
|
|
2219
|
+
/**
|
|
2220
|
+
* @param {!Array<!proto.RecentSalesActivity>} value
|
|
2221
|
+
* @return {!proto.SalesDashboardResponse} returns this
|
|
2222
|
+
*/
|
|
2223
|
+
proto.SalesDashboardResponse.prototype.setRecentSalesActivityList = function(value) {
|
|
2224
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
2225
|
+
};
|
|
2226
|
+
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
* @param {!proto.RecentSalesActivity=} opt_value
|
|
2230
|
+
* @param {number=} opt_index
|
|
2231
|
+
* @return {!proto.RecentSalesActivity}
|
|
2232
|
+
*/
|
|
2233
|
+
proto.SalesDashboardResponse.prototype.addRecentSalesActivity = function(opt_value, opt_index) {
|
|
2234
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.RecentSalesActivity, opt_index);
|
|
2235
|
+
};
|
|
2236
|
+
|
|
2237
|
+
|
|
2238
|
+
/**
|
|
2239
|
+
* Clears the list making it empty but non-null.
|
|
2240
|
+
* @return {!proto.SalesDashboardResponse} returns this
|
|
2241
|
+
*/
|
|
2242
|
+
proto.SalesDashboardResponse.prototype.clearRecentSalesActivityList = function() {
|
|
2243
|
+
return this.setRecentSalesActivityList([]);
|
|
2244
|
+
};
|
|
2245
|
+
|
|
2246
|
+
|
|
2247
|
+
|
|
883
2248
|
/**
|
|
884
2249
|
* List of repeated fields within this message type.
|
|
885
2250
|
* @private {!Array<number>}
|