@google-shopping/lfp 0.4.1 → 0.6.0
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/README.md +3 -2
- package/build/protos/google/shopping/merchant/lfp/v1beta/lfpmerchantstate.proto +201 -0
- package/build/protos/protos.d.ts +663 -53
- package/build/protos/protos.js +2126 -275
- package/build/protos/protos.json +258 -16
- package/build/src/index.d.ts +4 -1
- package/build/src/index.js +4 -7
- package/build/src/index.js.map +1 -1
- package/build/src/v1beta/gapic_metadata.json +24 -0
- package/build/src/v1beta/index.d.ts +1 -0
- package/build/src/v1beta/index.js +3 -1
- package/build/src/v1beta/index.js.map +1 -1
- package/build/src/v1beta/lfp_inventory_service_client.d.ts +25 -1
- package/build/src/v1beta/lfp_inventory_service_client.js +67 -44
- package/build/src/v1beta/lfp_inventory_service_client.js.map +1 -1
- package/build/src/v1beta/lfp_inventory_service_proto_list.json +1 -0
- package/build/src/v1beta/lfp_merchant_state_service_client.d.ts +273 -0
- package/build/src/v1beta/lfp_merchant_state_service_client.js +505 -0
- package/build/src/v1beta/lfp_merchant_state_service_client.js.map +1 -0
- package/build/src/v1beta/lfp_merchant_state_service_client_config.json +43 -0
- package/build/src/v1beta/lfp_merchant_state_service_proto_list.json +7 -0
- package/build/src/v1beta/lfp_sale_service_client.d.ts +25 -1
- package/build/src/v1beta/lfp_sale_service_client.js +67 -44
- package/build/src/v1beta/lfp_sale_service_client.js.map +1 -1
- package/build/src/v1beta/lfp_sale_service_proto_list.json +1 -0
- package/build/src/v1beta/lfp_store_service_client.d.ts +62 -38
- package/build/src/v1beta/lfp_store_service_client.js +102 -88
- package/build/src/v1beta/lfp_store_service_client.js.map +1 -1
- package/build/src/v1beta/lfp_store_service_proto_list.json +1 -0
- package/package.json +4 -4
- package/CHANGELOG.md +0 -47
package/build/protos/protos.js
CHANGED
@@ -295,56 +295,31 @@
|
|
295
295
|
// OneOf field names bound to virtual getters and setters
|
296
296
|
var $oneOfFields;
|
297
297
|
|
298
|
-
|
299
|
-
* LfpInventory _gtin.
|
300
|
-
* @member {"gtin"|undefined} _gtin
|
301
|
-
* @memberof google.shopping.merchant.lfp.v1beta.LfpInventory
|
302
|
-
* @instance
|
303
|
-
*/
|
298
|
+
// Virtual OneOf for proto3 optional field
|
304
299
|
Object.defineProperty(LfpInventory.prototype, "_gtin", {
|
305
300
|
get: $util.oneOfGetter($oneOfFields = ["gtin"]),
|
306
301
|
set: $util.oneOfSetter($oneOfFields)
|
307
302
|
});
|
308
303
|
|
309
|
-
|
310
|
-
* LfpInventory _quantity.
|
311
|
-
* @member {"quantity"|undefined} _quantity
|
312
|
-
* @memberof google.shopping.merchant.lfp.v1beta.LfpInventory
|
313
|
-
* @instance
|
314
|
-
*/
|
304
|
+
// Virtual OneOf for proto3 optional field
|
315
305
|
Object.defineProperty(LfpInventory.prototype, "_quantity", {
|
316
306
|
get: $util.oneOfGetter($oneOfFields = ["quantity"]),
|
317
307
|
set: $util.oneOfSetter($oneOfFields)
|
318
308
|
});
|
319
309
|
|
320
|
-
|
321
|
-
* LfpInventory _pickupMethod.
|
322
|
-
* @member {"pickupMethod"|undefined} _pickupMethod
|
323
|
-
* @memberof google.shopping.merchant.lfp.v1beta.LfpInventory
|
324
|
-
* @instance
|
325
|
-
*/
|
310
|
+
// Virtual OneOf for proto3 optional field
|
326
311
|
Object.defineProperty(LfpInventory.prototype, "_pickupMethod", {
|
327
312
|
get: $util.oneOfGetter($oneOfFields = ["pickupMethod"]),
|
328
313
|
set: $util.oneOfSetter($oneOfFields)
|
329
314
|
});
|
330
315
|
|
331
|
-
|
332
|
-
* LfpInventory _pickupSla.
|
333
|
-
* @member {"pickupSla"|undefined} _pickupSla
|
334
|
-
* @memberof google.shopping.merchant.lfp.v1beta.LfpInventory
|
335
|
-
* @instance
|
336
|
-
*/
|
316
|
+
// Virtual OneOf for proto3 optional field
|
337
317
|
Object.defineProperty(LfpInventory.prototype, "_pickupSla", {
|
338
318
|
get: $util.oneOfGetter($oneOfFields = ["pickupSla"]),
|
339
319
|
set: $util.oneOfSetter($oneOfFields)
|
340
320
|
});
|
341
321
|
|
342
|
-
|
343
|
-
* LfpInventory _feedLabel.
|
344
|
-
* @member {"feedLabel"|undefined} _feedLabel
|
345
|
-
* @memberof google.shopping.merchant.lfp.v1beta.LfpInventory
|
346
|
-
* @instance
|
347
|
-
*/
|
322
|
+
// Virtual OneOf for proto3 optional field
|
348
323
|
Object.defineProperty(LfpInventory.prototype, "_feedLabel", {
|
349
324
|
get: $util.oneOfGetter($oneOfFields = ["feedLabel"]),
|
350
325
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -429,12 +404,14 @@
|
|
429
404
|
* @throws {Error} If the payload is not a reader or valid buffer
|
430
405
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
431
406
|
*/
|
432
|
-
LfpInventory.decode = function decode(reader, length) {
|
407
|
+
LfpInventory.decode = function decode(reader, length, error) {
|
433
408
|
if (!(reader instanceof $Reader))
|
434
409
|
reader = $Reader.create(reader);
|
435
410
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.LfpInventory();
|
436
411
|
while (reader.pos < end) {
|
437
412
|
var tag = reader.uint32();
|
413
|
+
if (tag === error)
|
414
|
+
break;
|
438
415
|
switch (tag >>> 3) {
|
439
416
|
case 1: {
|
440
417
|
message.name = reader.string();
|
@@ -756,28 +733,1809 @@
|
|
756
733
|
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.LfpInventory";
|
757
734
|
};
|
758
735
|
|
759
|
-
return LfpInventory;
|
736
|
+
return LfpInventory;
|
737
|
+
})();
|
738
|
+
|
739
|
+
v1beta.InsertLfpInventoryRequest = (function() {
|
740
|
+
|
741
|
+
/**
|
742
|
+
* Properties of an InsertLfpInventoryRequest.
|
743
|
+
* @memberof google.shopping.merchant.lfp.v1beta
|
744
|
+
* @interface IInsertLfpInventoryRequest
|
745
|
+
* @property {string|null} [parent] InsertLfpInventoryRequest parent
|
746
|
+
* @property {google.shopping.merchant.lfp.v1beta.ILfpInventory|null} [lfpInventory] InsertLfpInventoryRequest lfpInventory
|
747
|
+
*/
|
748
|
+
|
749
|
+
/**
|
750
|
+
* Constructs a new InsertLfpInventoryRequest.
|
751
|
+
* @memberof google.shopping.merchant.lfp.v1beta
|
752
|
+
* @classdesc Represents an InsertLfpInventoryRequest.
|
753
|
+
* @implements IInsertLfpInventoryRequest
|
754
|
+
* @constructor
|
755
|
+
* @param {google.shopping.merchant.lfp.v1beta.IInsertLfpInventoryRequest=} [properties] Properties to set
|
756
|
+
*/
|
757
|
+
function InsertLfpInventoryRequest(properties) {
|
758
|
+
if (properties)
|
759
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
760
|
+
if (properties[keys[i]] != null)
|
761
|
+
this[keys[i]] = properties[keys[i]];
|
762
|
+
}
|
763
|
+
|
764
|
+
/**
|
765
|
+
* InsertLfpInventoryRequest parent.
|
766
|
+
* @member {string} parent
|
767
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
768
|
+
* @instance
|
769
|
+
*/
|
770
|
+
InsertLfpInventoryRequest.prototype.parent = "";
|
771
|
+
|
772
|
+
/**
|
773
|
+
* InsertLfpInventoryRequest lfpInventory.
|
774
|
+
* @member {google.shopping.merchant.lfp.v1beta.ILfpInventory|null|undefined} lfpInventory
|
775
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
776
|
+
* @instance
|
777
|
+
*/
|
778
|
+
InsertLfpInventoryRequest.prototype.lfpInventory = null;
|
779
|
+
|
780
|
+
/**
|
781
|
+
* Creates a new InsertLfpInventoryRequest instance using the specified properties.
|
782
|
+
* @function create
|
783
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
784
|
+
* @static
|
785
|
+
* @param {google.shopping.merchant.lfp.v1beta.IInsertLfpInventoryRequest=} [properties] Properties to set
|
786
|
+
* @returns {google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest} InsertLfpInventoryRequest instance
|
787
|
+
*/
|
788
|
+
InsertLfpInventoryRequest.create = function create(properties) {
|
789
|
+
return new InsertLfpInventoryRequest(properties);
|
790
|
+
};
|
791
|
+
|
792
|
+
/**
|
793
|
+
* Encodes the specified InsertLfpInventoryRequest message. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest.verify|verify} messages.
|
794
|
+
* @function encode
|
795
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
796
|
+
* @static
|
797
|
+
* @param {google.shopping.merchant.lfp.v1beta.IInsertLfpInventoryRequest} message InsertLfpInventoryRequest message or plain object to encode
|
798
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
799
|
+
* @returns {$protobuf.Writer} Writer
|
800
|
+
*/
|
801
|
+
InsertLfpInventoryRequest.encode = function encode(message, writer) {
|
802
|
+
if (!writer)
|
803
|
+
writer = $Writer.create();
|
804
|
+
if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
|
805
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
|
806
|
+
if (message.lfpInventory != null && Object.hasOwnProperty.call(message, "lfpInventory"))
|
807
|
+
$root.google.shopping.merchant.lfp.v1beta.LfpInventory.encode(message.lfpInventory, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
808
|
+
return writer;
|
809
|
+
};
|
810
|
+
|
811
|
+
/**
|
812
|
+
* Encodes the specified InsertLfpInventoryRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest.verify|verify} messages.
|
813
|
+
* @function encodeDelimited
|
814
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
815
|
+
* @static
|
816
|
+
* @param {google.shopping.merchant.lfp.v1beta.IInsertLfpInventoryRequest} message InsertLfpInventoryRequest message or plain object to encode
|
817
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
818
|
+
* @returns {$protobuf.Writer} Writer
|
819
|
+
*/
|
820
|
+
InsertLfpInventoryRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
821
|
+
return this.encode(message, writer).ldelim();
|
822
|
+
};
|
823
|
+
|
824
|
+
/**
|
825
|
+
* Decodes an InsertLfpInventoryRequest message from the specified reader or buffer.
|
826
|
+
* @function decode
|
827
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
828
|
+
* @static
|
829
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
830
|
+
* @param {number} [length] Message length if known beforehand
|
831
|
+
* @returns {google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest} InsertLfpInventoryRequest
|
832
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
833
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
834
|
+
*/
|
835
|
+
InsertLfpInventoryRequest.decode = function decode(reader, length, error) {
|
836
|
+
if (!(reader instanceof $Reader))
|
837
|
+
reader = $Reader.create(reader);
|
838
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest();
|
839
|
+
while (reader.pos < end) {
|
840
|
+
var tag = reader.uint32();
|
841
|
+
if (tag === error)
|
842
|
+
break;
|
843
|
+
switch (tag >>> 3) {
|
844
|
+
case 1: {
|
845
|
+
message.parent = reader.string();
|
846
|
+
break;
|
847
|
+
}
|
848
|
+
case 2: {
|
849
|
+
message.lfpInventory = $root.google.shopping.merchant.lfp.v1beta.LfpInventory.decode(reader, reader.uint32());
|
850
|
+
break;
|
851
|
+
}
|
852
|
+
default:
|
853
|
+
reader.skipType(tag & 7);
|
854
|
+
break;
|
855
|
+
}
|
856
|
+
}
|
857
|
+
return message;
|
858
|
+
};
|
859
|
+
|
860
|
+
/**
|
861
|
+
* Decodes an InsertLfpInventoryRequest message from the specified reader or buffer, length delimited.
|
862
|
+
* @function decodeDelimited
|
863
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
864
|
+
* @static
|
865
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
866
|
+
* @returns {google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest} InsertLfpInventoryRequest
|
867
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
868
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
869
|
+
*/
|
870
|
+
InsertLfpInventoryRequest.decodeDelimited = function decodeDelimited(reader) {
|
871
|
+
if (!(reader instanceof $Reader))
|
872
|
+
reader = new $Reader(reader);
|
873
|
+
return this.decode(reader, reader.uint32());
|
874
|
+
};
|
875
|
+
|
876
|
+
/**
|
877
|
+
* Verifies an InsertLfpInventoryRequest message.
|
878
|
+
* @function verify
|
879
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
880
|
+
* @static
|
881
|
+
* @param {Object.<string,*>} message Plain object to verify
|
882
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
883
|
+
*/
|
884
|
+
InsertLfpInventoryRequest.verify = function verify(message) {
|
885
|
+
if (typeof message !== "object" || message === null)
|
886
|
+
return "object expected";
|
887
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
888
|
+
if (!$util.isString(message.parent))
|
889
|
+
return "parent: string expected";
|
890
|
+
if (message.lfpInventory != null && message.hasOwnProperty("lfpInventory")) {
|
891
|
+
var error = $root.google.shopping.merchant.lfp.v1beta.LfpInventory.verify(message.lfpInventory);
|
892
|
+
if (error)
|
893
|
+
return "lfpInventory." + error;
|
894
|
+
}
|
895
|
+
return null;
|
896
|
+
};
|
897
|
+
|
898
|
+
/**
|
899
|
+
* Creates an InsertLfpInventoryRequest message from a plain object. Also converts values to their respective internal types.
|
900
|
+
* @function fromObject
|
901
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
902
|
+
* @static
|
903
|
+
* @param {Object.<string,*>} object Plain object
|
904
|
+
* @returns {google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest} InsertLfpInventoryRequest
|
905
|
+
*/
|
906
|
+
InsertLfpInventoryRequest.fromObject = function fromObject(object) {
|
907
|
+
if (object instanceof $root.google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest)
|
908
|
+
return object;
|
909
|
+
var message = new $root.google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest();
|
910
|
+
if (object.parent != null)
|
911
|
+
message.parent = String(object.parent);
|
912
|
+
if (object.lfpInventory != null) {
|
913
|
+
if (typeof object.lfpInventory !== "object")
|
914
|
+
throw TypeError(".google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest.lfpInventory: object expected");
|
915
|
+
message.lfpInventory = $root.google.shopping.merchant.lfp.v1beta.LfpInventory.fromObject(object.lfpInventory);
|
916
|
+
}
|
917
|
+
return message;
|
918
|
+
};
|
919
|
+
|
920
|
+
/**
|
921
|
+
* Creates a plain object from an InsertLfpInventoryRequest message. Also converts values to other types if specified.
|
922
|
+
* @function toObject
|
923
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
924
|
+
* @static
|
925
|
+
* @param {google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest} message InsertLfpInventoryRequest
|
926
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
927
|
+
* @returns {Object.<string,*>} Plain object
|
928
|
+
*/
|
929
|
+
InsertLfpInventoryRequest.toObject = function toObject(message, options) {
|
930
|
+
if (!options)
|
931
|
+
options = {};
|
932
|
+
var object = {};
|
933
|
+
if (options.defaults) {
|
934
|
+
object.parent = "";
|
935
|
+
object.lfpInventory = null;
|
936
|
+
}
|
937
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
938
|
+
object.parent = message.parent;
|
939
|
+
if (message.lfpInventory != null && message.hasOwnProperty("lfpInventory"))
|
940
|
+
object.lfpInventory = $root.google.shopping.merchant.lfp.v1beta.LfpInventory.toObject(message.lfpInventory, options);
|
941
|
+
return object;
|
942
|
+
};
|
943
|
+
|
944
|
+
/**
|
945
|
+
* Converts this InsertLfpInventoryRequest to JSON.
|
946
|
+
* @function toJSON
|
947
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
948
|
+
* @instance
|
949
|
+
* @returns {Object.<string,*>} JSON object
|
950
|
+
*/
|
951
|
+
InsertLfpInventoryRequest.prototype.toJSON = function toJSON() {
|
952
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
953
|
+
};
|
954
|
+
|
955
|
+
/**
|
956
|
+
* Gets the default type url for InsertLfpInventoryRequest
|
957
|
+
* @function getTypeUrl
|
958
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
959
|
+
* @static
|
960
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
961
|
+
* @returns {string} The default type url
|
962
|
+
*/
|
963
|
+
InsertLfpInventoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
964
|
+
if (typeUrlPrefix === undefined) {
|
965
|
+
typeUrlPrefix = "type.googleapis.com";
|
966
|
+
}
|
967
|
+
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest";
|
968
|
+
};
|
969
|
+
|
970
|
+
return InsertLfpInventoryRequest;
|
971
|
+
})();
|
972
|
+
|
973
|
+
v1beta.LfpMerchantStateService = (function() {
|
974
|
+
|
975
|
+
/**
|
976
|
+
* Constructs a new LfpMerchantStateService service.
|
977
|
+
* @memberof google.shopping.merchant.lfp.v1beta
|
978
|
+
* @classdesc Represents a LfpMerchantStateService
|
979
|
+
* @extends $protobuf.rpc.Service
|
980
|
+
* @constructor
|
981
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
982
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
983
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
984
|
+
*/
|
985
|
+
function LfpMerchantStateService(rpcImpl, requestDelimited, responseDelimited) {
|
986
|
+
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
987
|
+
}
|
988
|
+
|
989
|
+
(LfpMerchantStateService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = LfpMerchantStateService;
|
990
|
+
|
991
|
+
/**
|
992
|
+
* Creates new LfpMerchantStateService service using the specified rpc implementation.
|
993
|
+
* @function create
|
994
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantStateService
|
995
|
+
* @static
|
996
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
997
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
998
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
999
|
+
* @returns {LfpMerchantStateService} RPC service. Useful where requests and/or responses are streamed.
|
1000
|
+
*/
|
1001
|
+
LfpMerchantStateService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
|
1002
|
+
return new this(rpcImpl, requestDelimited, responseDelimited);
|
1003
|
+
};
|
1004
|
+
|
1005
|
+
/**
|
1006
|
+
* Callback as used by {@link google.shopping.merchant.lfp.v1beta.LfpMerchantStateService|getLfpMerchantState}.
|
1007
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantStateService
|
1008
|
+
* @typedef GetLfpMerchantStateCallback
|
1009
|
+
* @type {function}
|
1010
|
+
* @param {Error|null} error Error, if any
|
1011
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState} [response] LfpMerchantState
|
1012
|
+
*/
|
1013
|
+
|
1014
|
+
/**
|
1015
|
+
* Calls GetLfpMerchantState.
|
1016
|
+
* @function getLfpMerchantState
|
1017
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantStateService
|
1018
|
+
* @instance
|
1019
|
+
* @param {google.shopping.merchant.lfp.v1beta.IGetLfpMerchantStateRequest} request GetLfpMerchantStateRequest message or plain object
|
1020
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantStateService.GetLfpMerchantStateCallback} callback Node-style callback called with the error, if any, and LfpMerchantState
|
1021
|
+
* @returns {undefined}
|
1022
|
+
* @variation 1
|
1023
|
+
*/
|
1024
|
+
Object.defineProperty(LfpMerchantStateService.prototype.getLfpMerchantState = function getLfpMerchantState(request, callback) {
|
1025
|
+
return this.rpcCall(getLfpMerchantState, $root.google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest, $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState, request, callback);
|
1026
|
+
}, "name", { value: "GetLfpMerchantState" });
|
1027
|
+
|
1028
|
+
/**
|
1029
|
+
* Calls GetLfpMerchantState.
|
1030
|
+
* @function getLfpMerchantState
|
1031
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantStateService
|
1032
|
+
* @instance
|
1033
|
+
* @param {google.shopping.merchant.lfp.v1beta.IGetLfpMerchantStateRequest} request GetLfpMerchantStateRequest message or plain object
|
1034
|
+
* @returns {Promise<google.shopping.merchant.lfp.v1beta.LfpMerchantState>} Promise
|
1035
|
+
* @variation 2
|
1036
|
+
*/
|
1037
|
+
|
1038
|
+
return LfpMerchantStateService;
|
1039
|
+
})();
|
1040
|
+
|
1041
|
+
v1beta.LfpMerchantState = (function() {
|
1042
|
+
|
1043
|
+
/**
|
1044
|
+
* Properties of a LfpMerchantState.
|
1045
|
+
* @memberof google.shopping.merchant.lfp.v1beta
|
1046
|
+
* @interface ILfpMerchantState
|
1047
|
+
* @property {string|null} [name] LfpMerchantState name
|
1048
|
+
* @property {number|Long|null} [linkedGbps] LfpMerchantState linkedGbps
|
1049
|
+
* @property {Array.<google.shopping.merchant.lfp.v1beta.LfpMerchantState.ILfpStoreState>|null} [storeStates] LfpMerchantState storeStates
|
1050
|
+
* @property {google.shopping.merchant.lfp.v1beta.LfpMerchantState.IInventoryStats|null} [inventoryStats] LfpMerchantState inventoryStats
|
1051
|
+
* @property {Array.<google.shopping.merchant.lfp.v1beta.LfpMerchantState.ICountrySettings>|null} [countrySettings] LfpMerchantState countrySettings
|
1052
|
+
*/
|
1053
|
+
|
1054
|
+
/**
|
1055
|
+
* Constructs a new LfpMerchantState.
|
1056
|
+
* @memberof google.shopping.merchant.lfp.v1beta
|
1057
|
+
* @classdesc Represents a LfpMerchantState.
|
1058
|
+
* @implements ILfpMerchantState
|
1059
|
+
* @constructor
|
1060
|
+
* @param {google.shopping.merchant.lfp.v1beta.ILfpMerchantState=} [properties] Properties to set
|
1061
|
+
*/
|
1062
|
+
function LfpMerchantState(properties) {
|
1063
|
+
this.storeStates = [];
|
1064
|
+
this.countrySettings = [];
|
1065
|
+
if (properties)
|
1066
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
1067
|
+
if (properties[keys[i]] != null)
|
1068
|
+
this[keys[i]] = properties[keys[i]];
|
1069
|
+
}
|
1070
|
+
|
1071
|
+
/**
|
1072
|
+
* LfpMerchantState name.
|
1073
|
+
* @member {string} name
|
1074
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1075
|
+
* @instance
|
1076
|
+
*/
|
1077
|
+
LfpMerchantState.prototype.name = "";
|
1078
|
+
|
1079
|
+
/**
|
1080
|
+
* LfpMerchantState linkedGbps.
|
1081
|
+
* @member {number|Long} linkedGbps
|
1082
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1083
|
+
* @instance
|
1084
|
+
*/
|
1085
|
+
LfpMerchantState.prototype.linkedGbps = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
1086
|
+
|
1087
|
+
/**
|
1088
|
+
* LfpMerchantState storeStates.
|
1089
|
+
* @member {Array.<google.shopping.merchant.lfp.v1beta.LfpMerchantState.ILfpStoreState>} storeStates
|
1090
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1091
|
+
* @instance
|
1092
|
+
*/
|
1093
|
+
LfpMerchantState.prototype.storeStates = $util.emptyArray;
|
1094
|
+
|
1095
|
+
/**
|
1096
|
+
* LfpMerchantState inventoryStats.
|
1097
|
+
* @member {google.shopping.merchant.lfp.v1beta.LfpMerchantState.IInventoryStats|null|undefined} inventoryStats
|
1098
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1099
|
+
* @instance
|
1100
|
+
*/
|
1101
|
+
LfpMerchantState.prototype.inventoryStats = null;
|
1102
|
+
|
1103
|
+
/**
|
1104
|
+
* LfpMerchantState countrySettings.
|
1105
|
+
* @member {Array.<google.shopping.merchant.lfp.v1beta.LfpMerchantState.ICountrySettings>} countrySettings
|
1106
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1107
|
+
* @instance
|
1108
|
+
*/
|
1109
|
+
LfpMerchantState.prototype.countrySettings = $util.emptyArray;
|
1110
|
+
|
1111
|
+
/**
|
1112
|
+
* Creates a new LfpMerchantState instance using the specified properties.
|
1113
|
+
* @function create
|
1114
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1115
|
+
* @static
|
1116
|
+
* @param {google.shopping.merchant.lfp.v1beta.ILfpMerchantState=} [properties] Properties to set
|
1117
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState} LfpMerchantState instance
|
1118
|
+
*/
|
1119
|
+
LfpMerchantState.create = function create(properties) {
|
1120
|
+
return new LfpMerchantState(properties);
|
1121
|
+
};
|
1122
|
+
|
1123
|
+
/**
|
1124
|
+
* Encodes the specified LfpMerchantState message. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.verify|verify} messages.
|
1125
|
+
* @function encode
|
1126
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1127
|
+
* @static
|
1128
|
+
* @param {google.shopping.merchant.lfp.v1beta.ILfpMerchantState} message LfpMerchantState message or plain object to encode
|
1129
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
1130
|
+
* @returns {$protobuf.Writer} Writer
|
1131
|
+
*/
|
1132
|
+
LfpMerchantState.encode = function encode(message, writer) {
|
1133
|
+
if (!writer)
|
1134
|
+
writer = $Writer.create();
|
1135
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
1136
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
1137
|
+
if (message.linkedGbps != null && Object.hasOwnProperty.call(message, "linkedGbps"))
|
1138
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.linkedGbps);
|
1139
|
+
if (message.storeStates != null && message.storeStates.length)
|
1140
|
+
for (var i = 0; i < message.storeStates.length; ++i)
|
1141
|
+
$root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.encode(message.storeStates[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
1142
|
+
if (message.inventoryStats != null && Object.hasOwnProperty.call(message, "inventoryStats"))
|
1143
|
+
$root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats.encode(message.inventoryStats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
1144
|
+
if (message.countrySettings != null && message.countrySettings.length)
|
1145
|
+
for (var i = 0; i < message.countrySettings.length; ++i)
|
1146
|
+
$root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.encode(message.countrySettings[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
1147
|
+
return writer;
|
1148
|
+
};
|
1149
|
+
|
1150
|
+
/**
|
1151
|
+
* Encodes the specified LfpMerchantState message, length delimited. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.verify|verify} messages.
|
1152
|
+
* @function encodeDelimited
|
1153
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1154
|
+
* @static
|
1155
|
+
* @param {google.shopping.merchant.lfp.v1beta.ILfpMerchantState} message LfpMerchantState message or plain object to encode
|
1156
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
1157
|
+
* @returns {$protobuf.Writer} Writer
|
1158
|
+
*/
|
1159
|
+
LfpMerchantState.encodeDelimited = function encodeDelimited(message, writer) {
|
1160
|
+
return this.encode(message, writer).ldelim();
|
1161
|
+
};
|
1162
|
+
|
1163
|
+
/**
|
1164
|
+
* Decodes a LfpMerchantState message from the specified reader or buffer.
|
1165
|
+
* @function decode
|
1166
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1167
|
+
* @static
|
1168
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
1169
|
+
* @param {number} [length] Message length if known beforehand
|
1170
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState} LfpMerchantState
|
1171
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1172
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1173
|
+
*/
|
1174
|
+
LfpMerchantState.decode = function decode(reader, length, error) {
|
1175
|
+
if (!(reader instanceof $Reader))
|
1176
|
+
reader = $Reader.create(reader);
|
1177
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState();
|
1178
|
+
while (reader.pos < end) {
|
1179
|
+
var tag = reader.uint32();
|
1180
|
+
if (tag === error)
|
1181
|
+
break;
|
1182
|
+
switch (tag >>> 3) {
|
1183
|
+
case 1: {
|
1184
|
+
message.name = reader.string();
|
1185
|
+
break;
|
1186
|
+
}
|
1187
|
+
case 2: {
|
1188
|
+
message.linkedGbps = reader.int64();
|
1189
|
+
break;
|
1190
|
+
}
|
1191
|
+
case 3: {
|
1192
|
+
if (!(message.storeStates && message.storeStates.length))
|
1193
|
+
message.storeStates = [];
|
1194
|
+
message.storeStates.push($root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.decode(reader, reader.uint32()));
|
1195
|
+
break;
|
1196
|
+
}
|
1197
|
+
case 4: {
|
1198
|
+
message.inventoryStats = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats.decode(reader, reader.uint32());
|
1199
|
+
break;
|
1200
|
+
}
|
1201
|
+
case 5: {
|
1202
|
+
if (!(message.countrySettings && message.countrySettings.length))
|
1203
|
+
message.countrySettings = [];
|
1204
|
+
message.countrySettings.push($root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.decode(reader, reader.uint32()));
|
1205
|
+
break;
|
1206
|
+
}
|
1207
|
+
default:
|
1208
|
+
reader.skipType(tag & 7);
|
1209
|
+
break;
|
1210
|
+
}
|
1211
|
+
}
|
1212
|
+
return message;
|
1213
|
+
};
|
1214
|
+
|
1215
|
+
/**
|
1216
|
+
* Decodes a LfpMerchantState message from the specified reader or buffer, length delimited.
|
1217
|
+
* @function decodeDelimited
|
1218
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1219
|
+
* @static
|
1220
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
1221
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState} LfpMerchantState
|
1222
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1223
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1224
|
+
*/
|
1225
|
+
LfpMerchantState.decodeDelimited = function decodeDelimited(reader) {
|
1226
|
+
if (!(reader instanceof $Reader))
|
1227
|
+
reader = new $Reader(reader);
|
1228
|
+
return this.decode(reader, reader.uint32());
|
1229
|
+
};
|
1230
|
+
|
1231
|
+
/**
|
1232
|
+
* Verifies a LfpMerchantState message.
|
1233
|
+
* @function verify
|
1234
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1235
|
+
* @static
|
1236
|
+
* @param {Object.<string,*>} message Plain object to verify
|
1237
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
1238
|
+
*/
|
1239
|
+
LfpMerchantState.verify = function verify(message) {
|
1240
|
+
if (typeof message !== "object" || message === null)
|
1241
|
+
return "object expected";
|
1242
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
1243
|
+
if (!$util.isString(message.name))
|
1244
|
+
return "name: string expected";
|
1245
|
+
if (message.linkedGbps != null && message.hasOwnProperty("linkedGbps"))
|
1246
|
+
if (!$util.isInteger(message.linkedGbps) && !(message.linkedGbps && $util.isInteger(message.linkedGbps.low) && $util.isInteger(message.linkedGbps.high)))
|
1247
|
+
return "linkedGbps: integer|Long expected";
|
1248
|
+
if (message.storeStates != null && message.hasOwnProperty("storeStates")) {
|
1249
|
+
if (!Array.isArray(message.storeStates))
|
1250
|
+
return "storeStates: array expected";
|
1251
|
+
for (var i = 0; i < message.storeStates.length; ++i) {
|
1252
|
+
var error = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.verify(message.storeStates[i]);
|
1253
|
+
if (error)
|
1254
|
+
return "storeStates." + error;
|
1255
|
+
}
|
1256
|
+
}
|
1257
|
+
if (message.inventoryStats != null && message.hasOwnProperty("inventoryStats")) {
|
1258
|
+
var error = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats.verify(message.inventoryStats);
|
1259
|
+
if (error)
|
1260
|
+
return "inventoryStats." + error;
|
1261
|
+
}
|
1262
|
+
if (message.countrySettings != null && message.hasOwnProperty("countrySettings")) {
|
1263
|
+
if (!Array.isArray(message.countrySettings))
|
1264
|
+
return "countrySettings: array expected";
|
1265
|
+
for (var i = 0; i < message.countrySettings.length; ++i) {
|
1266
|
+
var error = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.verify(message.countrySettings[i]);
|
1267
|
+
if (error)
|
1268
|
+
return "countrySettings." + error;
|
1269
|
+
}
|
1270
|
+
}
|
1271
|
+
return null;
|
1272
|
+
};
|
1273
|
+
|
1274
|
+
/**
|
1275
|
+
* Creates a LfpMerchantState message from a plain object. Also converts values to their respective internal types.
|
1276
|
+
* @function fromObject
|
1277
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1278
|
+
* @static
|
1279
|
+
* @param {Object.<string,*>} object Plain object
|
1280
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState} LfpMerchantState
|
1281
|
+
*/
|
1282
|
+
LfpMerchantState.fromObject = function fromObject(object) {
|
1283
|
+
if (object instanceof $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState)
|
1284
|
+
return object;
|
1285
|
+
var message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState();
|
1286
|
+
if (object.name != null)
|
1287
|
+
message.name = String(object.name);
|
1288
|
+
if (object.linkedGbps != null)
|
1289
|
+
if ($util.Long)
|
1290
|
+
(message.linkedGbps = $util.Long.fromValue(object.linkedGbps)).unsigned = false;
|
1291
|
+
else if (typeof object.linkedGbps === "string")
|
1292
|
+
message.linkedGbps = parseInt(object.linkedGbps, 10);
|
1293
|
+
else if (typeof object.linkedGbps === "number")
|
1294
|
+
message.linkedGbps = object.linkedGbps;
|
1295
|
+
else if (typeof object.linkedGbps === "object")
|
1296
|
+
message.linkedGbps = new $util.LongBits(object.linkedGbps.low >>> 0, object.linkedGbps.high >>> 0).toNumber();
|
1297
|
+
if (object.storeStates) {
|
1298
|
+
if (!Array.isArray(object.storeStates))
|
1299
|
+
throw TypeError(".google.shopping.merchant.lfp.v1beta.LfpMerchantState.storeStates: array expected");
|
1300
|
+
message.storeStates = [];
|
1301
|
+
for (var i = 0; i < object.storeStates.length; ++i) {
|
1302
|
+
if (typeof object.storeStates[i] !== "object")
|
1303
|
+
throw TypeError(".google.shopping.merchant.lfp.v1beta.LfpMerchantState.storeStates: object expected");
|
1304
|
+
message.storeStates[i] = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.fromObject(object.storeStates[i]);
|
1305
|
+
}
|
1306
|
+
}
|
1307
|
+
if (object.inventoryStats != null) {
|
1308
|
+
if (typeof object.inventoryStats !== "object")
|
1309
|
+
throw TypeError(".google.shopping.merchant.lfp.v1beta.LfpMerchantState.inventoryStats: object expected");
|
1310
|
+
message.inventoryStats = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats.fromObject(object.inventoryStats);
|
1311
|
+
}
|
1312
|
+
if (object.countrySettings) {
|
1313
|
+
if (!Array.isArray(object.countrySettings))
|
1314
|
+
throw TypeError(".google.shopping.merchant.lfp.v1beta.LfpMerchantState.countrySettings: array expected");
|
1315
|
+
message.countrySettings = [];
|
1316
|
+
for (var i = 0; i < object.countrySettings.length; ++i) {
|
1317
|
+
if (typeof object.countrySettings[i] !== "object")
|
1318
|
+
throw TypeError(".google.shopping.merchant.lfp.v1beta.LfpMerchantState.countrySettings: object expected");
|
1319
|
+
message.countrySettings[i] = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.fromObject(object.countrySettings[i]);
|
1320
|
+
}
|
1321
|
+
}
|
1322
|
+
return message;
|
1323
|
+
};
|
1324
|
+
|
1325
|
+
/**
|
1326
|
+
* Creates a plain object from a LfpMerchantState message. Also converts values to other types if specified.
|
1327
|
+
* @function toObject
|
1328
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1329
|
+
* @static
|
1330
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState} message LfpMerchantState
|
1331
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
1332
|
+
* @returns {Object.<string,*>} Plain object
|
1333
|
+
*/
|
1334
|
+
LfpMerchantState.toObject = function toObject(message, options) {
|
1335
|
+
if (!options)
|
1336
|
+
options = {};
|
1337
|
+
var object = {};
|
1338
|
+
if (options.arrays || options.defaults) {
|
1339
|
+
object.storeStates = [];
|
1340
|
+
object.countrySettings = [];
|
1341
|
+
}
|
1342
|
+
if (options.defaults) {
|
1343
|
+
object.name = "";
|
1344
|
+
if ($util.Long) {
|
1345
|
+
var long = new $util.Long(0, 0, false);
|
1346
|
+
object.linkedGbps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
1347
|
+
} else
|
1348
|
+
object.linkedGbps = options.longs === String ? "0" : 0;
|
1349
|
+
object.inventoryStats = null;
|
1350
|
+
}
|
1351
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
1352
|
+
object.name = message.name;
|
1353
|
+
if (message.linkedGbps != null && message.hasOwnProperty("linkedGbps"))
|
1354
|
+
if (typeof message.linkedGbps === "number")
|
1355
|
+
object.linkedGbps = options.longs === String ? String(message.linkedGbps) : message.linkedGbps;
|
1356
|
+
else
|
1357
|
+
object.linkedGbps = options.longs === String ? $util.Long.prototype.toString.call(message.linkedGbps) : options.longs === Number ? new $util.LongBits(message.linkedGbps.low >>> 0, message.linkedGbps.high >>> 0).toNumber() : message.linkedGbps;
|
1358
|
+
if (message.storeStates && message.storeStates.length) {
|
1359
|
+
object.storeStates = [];
|
1360
|
+
for (var j = 0; j < message.storeStates.length; ++j)
|
1361
|
+
object.storeStates[j] = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.toObject(message.storeStates[j], options);
|
1362
|
+
}
|
1363
|
+
if (message.inventoryStats != null && message.hasOwnProperty("inventoryStats"))
|
1364
|
+
object.inventoryStats = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats.toObject(message.inventoryStats, options);
|
1365
|
+
if (message.countrySettings && message.countrySettings.length) {
|
1366
|
+
object.countrySettings = [];
|
1367
|
+
for (var j = 0; j < message.countrySettings.length; ++j)
|
1368
|
+
object.countrySettings[j] = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.toObject(message.countrySettings[j], options);
|
1369
|
+
}
|
1370
|
+
return object;
|
1371
|
+
};
|
1372
|
+
|
1373
|
+
/**
|
1374
|
+
* Converts this LfpMerchantState to JSON.
|
1375
|
+
* @function toJSON
|
1376
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1377
|
+
* @instance
|
1378
|
+
* @returns {Object.<string,*>} JSON object
|
1379
|
+
*/
|
1380
|
+
LfpMerchantState.prototype.toJSON = function toJSON() {
|
1381
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
1382
|
+
};
|
1383
|
+
|
1384
|
+
/**
|
1385
|
+
* Gets the default type url for LfpMerchantState
|
1386
|
+
* @function getTypeUrl
|
1387
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1388
|
+
* @static
|
1389
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
1390
|
+
* @returns {string} The default type url
|
1391
|
+
*/
|
1392
|
+
LfpMerchantState.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
1393
|
+
if (typeUrlPrefix === undefined) {
|
1394
|
+
typeUrlPrefix = "type.googleapis.com";
|
1395
|
+
}
|
1396
|
+
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.LfpMerchantState";
|
1397
|
+
};
|
1398
|
+
|
1399
|
+
LfpMerchantState.LfpStoreState = (function() {
|
1400
|
+
|
1401
|
+
/**
|
1402
|
+
* Properties of a LfpStoreState.
|
1403
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1404
|
+
* @interface ILfpStoreState
|
1405
|
+
* @property {string|null} [storeCode] LfpStoreState storeCode
|
1406
|
+
* @property {google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.StoreMatchingState|null} [matchingState] LfpStoreState matchingState
|
1407
|
+
* @property {string|null} [matchingStateHint] LfpStoreState matchingStateHint
|
1408
|
+
*/
|
1409
|
+
|
1410
|
+
/**
|
1411
|
+
* Constructs a new LfpStoreState.
|
1412
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1413
|
+
* @classdesc Represents a LfpStoreState.
|
1414
|
+
* @implements ILfpStoreState
|
1415
|
+
* @constructor
|
1416
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ILfpStoreState=} [properties] Properties to set
|
1417
|
+
*/
|
1418
|
+
function LfpStoreState(properties) {
|
1419
|
+
if (properties)
|
1420
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
1421
|
+
if (properties[keys[i]] != null)
|
1422
|
+
this[keys[i]] = properties[keys[i]];
|
1423
|
+
}
|
1424
|
+
|
1425
|
+
/**
|
1426
|
+
* LfpStoreState storeCode.
|
1427
|
+
* @member {string} storeCode
|
1428
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1429
|
+
* @instance
|
1430
|
+
*/
|
1431
|
+
LfpStoreState.prototype.storeCode = "";
|
1432
|
+
|
1433
|
+
/**
|
1434
|
+
* LfpStoreState matchingState.
|
1435
|
+
* @member {google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.StoreMatchingState} matchingState
|
1436
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1437
|
+
* @instance
|
1438
|
+
*/
|
1439
|
+
LfpStoreState.prototype.matchingState = 0;
|
1440
|
+
|
1441
|
+
/**
|
1442
|
+
* LfpStoreState matchingStateHint.
|
1443
|
+
* @member {string} matchingStateHint
|
1444
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1445
|
+
* @instance
|
1446
|
+
*/
|
1447
|
+
LfpStoreState.prototype.matchingStateHint = "";
|
1448
|
+
|
1449
|
+
/**
|
1450
|
+
* Creates a new LfpStoreState instance using the specified properties.
|
1451
|
+
* @function create
|
1452
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1453
|
+
* @static
|
1454
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ILfpStoreState=} [properties] Properties to set
|
1455
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState} LfpStoreState instance
|
1456
|
+
*/
|
1457
|
+
LfpStoreState.create = function create(properties) {
|
1458
|
+
return new LfpStoreState(properties);
|
1459
|
+
};
|
1460
|
+
|
1461
|
+
/**
|
1462
|
+
* Encodes the specified LfpStoreState message. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.verify|verify} messages.
|
1463
|
+
* @function encode
|
1464
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1465
|
+
* @static
|
1466
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ILfpStoreState} message LfpStoreState message or plain object to encode
|
1467
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
1468
|
+
* @returns {$protobuf.Writer} Writer
|
1469
|
+
*/
|
1470
|
+
LfpStoreState.encode = function encode(message, writer) {
|
1471
|
+
if (!writer)
|
1472
|
+
writer = $Writer.create();
|
1473
|
+
if (message.storeCode != null && Object.hasOwnProperty.call(message, "storeCode"))
|
1474
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.storeCode);
|
1475
|
+
if (message.matchingState != null && Object.hasOwnProperty.call(message, "matchingState"))
|
1476
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.matchingState);
|
1477
|
+
if (message.matchingStateHint != null && Object.hasOwnProperty.call(message, "matchingStateHint"))
|
1478
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.matchingStateHint);
|
1479
|
+
return writer;
|
1480
|
+
};
|
1481
|
+
|
1482
|
+
/**
|
1483
|
+
* Encodes the specified LfpStoreState message, length delimited. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.verify|verify} messages.
|
1484
|
+
* @function encodeDelimited
|
1485
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1486
|
+
* @static
|
1487
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ILfpStoreState} message LfpStoreState message or plain object to encode
|
1488
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
1489
|
+
* @returns {$protobuf.Writer} Writer
|
1490
|
+
*/
|
1491
|
+
LfpStoreState.encodeDelimited = function encodeDelimited(message, writer) {
|
1492
|
+
return this.encode(message, writer).ldelim();
|
1493
|
+
};
|
1494
|
+
|
1495
|
+
/**
|
1496
|
+
* Decodes a LfpStoreState message from the specified reader or buffer.
|
1497
|
+
* @function decode
|
1498
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1499
|
+
* @static
|
1500
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
1501
|
+
* @param {number} [length] Message length if known beforehand
|
1502
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState} LfpStoreState
|
1503
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1504
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1505
|
+
*/
|
1506
|
+
LfpStoreState.decode = function decode(reader, length, error) {
|
1507
|
+
if (!(reader instanceof $Reader))
|
1508
|
+
reader = $Reader.create(reader);
|
1509
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState();
|
1510
|
+
while (reader.pos < end) {
|
1511
|
+
var tag = reader.uint32();
|
1512
|
+
if (tag === error)
|
1513
|
+
break;
|
1514
|
+
switch (tag >>> 3) {
|
1515
|
+
case 1: {
|
1516
|
+
message.storeCode = reader.string();
|
1517
|
+
break;
|
1518
|
+
}
|
1519
|
+
case 2: {
|
1520
|
+
message.matchingState = reader.int32();
|
1521
|
+
break;
|
1522
|
+
}
|
1523
|
+
case 3: {
|
1524
|
+
message.matchingStateHint = reader.string();
|
1525
|
+
break;
|
1526
|
+
}
|
1527
|
+
default:
|
1528
|
+
reader.skipType(tag & 7);
|
1529
|
+
break;
|
1530
|
+
}
|
1531
|
+
}
|
1532
|
+
return message;
|
1533
|
+
};
|
1534
|
+
|
1535
|
+
/**
|
1536
|
+
* Decodes a LfpStoreState message from the specified reader or buffer, length delimited.
|
1537
|
+
* @function decodeDelimited
|
1538
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1539
|
+
* @static
|
1540
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
1541
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState} LfpStoreState
|
1542
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1543
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1544
|
+
*/
|
1545
|
+
LfpStoreState.decodeDelimited = function decodeDelimited(reader) {
|
1546
|
+
if (!(reader instanceof $Reader))
|
1547
|
+
reader = new $Reader(reader);
|
1548
|
+
return this.decode(reader, reader.uint32());
|
1549
|
+
};
|
1550
|
+
|
1551
|
+
/**
|
1552
|
+
* Verifies a LfpStoreState message.
|
1553
|
+
* @function verify
|
1554
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1555
|
+
* @static
|
1556
|
+
* @param {Object.<string,*>} message Plain object to verify
|
1557
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
1558
|
+
*/
|
1559
|
+
LfpStoreState.verify = function verify(message) {
|
1560
|
+
if (typeof message !== "object" || message === null)
|
1561
|
+
return "object expected";
|
1562
|
+
if (message.storeCode != null && message.hasOwnProperty("storeCode"))
|
1563
|
+
if (!$util.isString(message.storeCode))
|
1564
|
+
return "storeCode: string expected";
|
1565
|
+
if (message.matchingState != null && message.hasOwnProperty("matchingState"))
|
1566
|
+
switch (message.matchingState) {
|
1567
|
+
default:
|
1568
|
+
return "matchingState: enum value expected";
|
1569
|
+
case 0:
|
1570
|
+
case 1:
|
1571
|
+
case 2:
|
1572
|
+
break;
|
1573
|
+
}
|
1574
|
+
if (message.matchingStateHint != null && message.hasOwnProperty("matchingStateHint"))
|
1575
|
+
if (!$util.isString(message.matchingStateHint))
|
1576
|
+
return "matchingStateHint: string expected";
|
1577
|
+
return null;
|
1578
|
+
};
|
1579
|
+
|
1580
|
+
/**
|
1581
|
+
* Creates a LfpStoreState message from a plain object. Also converts values to their respective internal types.
|
1582
|
+
* @function fromObject
|
1583
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1584
|
+
* @static
|
1585
|
+
* @param {Object.<string,*>} object Plain object
|
1586
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState} LfpStoreState
|
1587
|
+
*/
|
1588
|
+
LfpStoreState.fromObject = function fromObject(object) {
|
1589
|
+
if (object instanceof $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState)
|
1590
|
+
return object;
|
1591
|
+
var message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState();
|
1592
|
+
if (object.storeCode != null)
|
1593
|
+
message.storeCode = String(object.storeCode);
|
1594
|
+
switch (object.matchingState) {
|
1595
|
+
default:
|
1596
|
+
if (typeof object.matchingState === "number") {
|
1597
|
+
message.matchingState = object.matchingState;
|
1598
|
+
break;
|
1599
|
+
}
|
1600
|
+
break;
|
1601
|
+
case "STORE_MATCHING_STATE_UNSPECIFIED":
|
1602
|
+
case 0:
|
1603
|
+
message.matchingState = 0;
|
1604
|
+
break;
|
1605
|
+
case "STORE_MATCHING_STATE_MATCHED":
|
1606
|
+
case 1:
|
1607
|
+
message.matchingState = 1;
|
1608
|
+
break;
|
1609
|
+
case "STORE_MATCHING_STATE_FAILED":
|
1610
|
+
case 2:
|
1611
|
+
message.matchingState = 2;
|
1612
|
+
break;
|
1613
|
+
}
|
1614
|
+
if (object.matchingStateHint != null)
|
1615
|
+
message.matchingStateHint = String(object.matchingStateHint);
|
1616
|
+
return message;
|
1617
|
+
};
|
1618
|
+
|
1619
|
+
/**
|
1620
|
+
* Creates a plain object from a LfpStoreState message. Also converts values to other types if specified.
|
1621
|
+
* @function toObject
|
1622
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1623
|
+
* @static
|
1624
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState} message LfpStoreState
|
1625
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
1626
|
+
* @returns {Object.<string,*>} Plain object
|
1627
|
+
*/
|
1628
|
+
LfpStoreState.toObject = function toObject(message, options) {
|
1629
|
+
if (!options)
|
1630
|
+
options = {};
|
1631
|
+
var object = {};
|
1632
|
+
if (options.defaults) {
|
1633
|
+
object.storeCode = "";
|
1634
|
+
object.matchingState = options.enums === String ? "STORE_MATCHING_STATE_UNSPECIFIED" : 0;
|
1635
|
+
object.matchingStateHint = "";
|
1636
|
+
}
|
1637
|
+
if (message.storeCode != null && message.hasOwnProperty("storeCode"))
|
1638
|
+
object.storeCode = message.storeCode;
|
1639
|
+
if (message.matchingState != null && message.hasOwnProperty("matchingState"))
|
1640
|
+
object.matchingState = options.enums === String ? $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.StoreMatchingState[message.matchingState] === undefined ? message.matchingState : $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.StoreMatchingState[message.matchingState] : message.matchingState;
|
1641
|
+
if (message.matchingStateHint != null && message.hasOwnProperty("matchingStateHint"))
|
1642
|
+
object.matchingStateHint = message.matchingStateHint;
|
1643
|
+
return object;
|
1644
|
+
};
|
1645
|
+
|
1646
|
+
/**
|
1647
|
+
* Converts this LfpStoreState to JSON.
|
1648
|
+
* @function toJSON
|
1649
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1650
|
+
* @instance
|
1651
|
+
* @returns {Object.<string,*>} JSON object
|
1652
|
+
*/
|
1653
|
+
LfpStoreState.prototype.toJSON = function toJSON() {
|
1654
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
1655
|
+
};
|
1656
|
+
|
1657
|
+
/**
|
1658
|
+
* Gets the default type url for LfpStoreState
|
1659
|
+
* @function getTypeUrl
|
1660
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1661
|
+
* @static
|
1662
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
1663
|
+
* @returns {string} The default type url
|
1664
|
+
*/
|
1665
|
+
LfpStoreState.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
1666
|
+
if (typeUrlPrefix === undefined) {
|
1667
|
+
typeUrlPrefix = "type.googleapis.com";
|
1668
|
+
}
|
1669
|
+
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState";
|
1670
|
+
};
|
1671
|
+
|
1672
|
+
/**
|
1673
|
+
* StoreMatchingState enum.
|
1674
|
+
* @name google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.StoreMatchingState
|
1675
|
+
* @enum {number}
|
1676
|
+
* @property {number} STORE_MATCHING_STATE_UNSPECIFIED=0 STORE_MATCHING_STATE_UNSPECIFIED value
|
1677
|
+
* @property {number} STORE_MATCHING_STATE_MATCHED=1 STORE_MATCHING_STATE_MATCHED value
|
1678
|
+
* @property {number} STORE_MATCHING_STATE_FAILED=2 STORE_MATCHING_STATE_FAILED value
|
1679
|
+
*/
|
1680
|
+
LfpStoreState.StoreMatchingState = (function() {
|
1681
|
+
var valuesById = {}, values = Object.create(valuesById);
|
1682
|
+
values[valuesById[0] = "STORE_MATCHING_STATE_UNSPECIFIED"] = 0;
|
1683
|
+
values[valuesById[1] = "STORE_MATCHING_STATE_MATCHED"] = 1;
|
1684
|
+
values[valuesById[2] = "STORE_MATCHING_STATE_FAILED"] = 2;
|
1685
|
+
return values;
|
1686
|
+
})();
|
1687
|
+
|
1688
|
+
return LfpStoreState;
|
1689
|
+
})();
|
1690
|
+
|
1691
|
+
LfpMerchantState.InventoryStats = (function() {
|
1692
|
+
|
1693
|
+
/**
|
1694
|
+
* Properties of an InventoryStats.
|
1695
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1696
|
+
* @interface IInventoryStats
|
1697
|
+
* @property {number|Long|null} [submittedEntries] InventoryStats submittedEntries
|
1698
|
+
* @property {number|Long|null} [submittedInStockEntries] InventoryStats submittedInStockEntries
|
1699
|
+
* @property {number|Long|null} [unsubmittedEntries] InventoryStats unsubmittedEntries
|
1700
|
+
* @property {number|Long|null} [submittedProducts] InventoryStats submittedProducts
|
1701
|
+
*/
|
1702
|
+
|
1703
|
+
/**
|
1704
|
+
* Constructs a new InventoryStats.
|
1705
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1706
|
+
* @classdesc Represents an InventoryStats.
|
1707
|
+
* @implements IInventoryStats
|
1708
|
+
* @constructor
|
1709
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.IInventoryStats=} [properties] Properties to set
|
1710
|
+
*/
|
1711
|
+
function InventoryStats(properties) {
|
1712
|
+
if (properties)
|
1713
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
1714
|
+
if (properties[keys[i]] != null)
|
1715
|
+
this[keys[i]] = properties[keys[i]];
|
1716
|
+
}
|
1717
|
+
|
1718
|
+
/**
|
1719
|
+
* InventoryStats submittedEntries.
|
1720
|
+
* @member {number|Long} submittedEntries
|
1721
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1722
|
+
* @instance
|
1723
|
+
*/
|
1724
|
+
InventoryStats.prototype.submittedEntries = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
1725
|
+
|
1726
|
+
/**
|
1727
|
+
* InventoryStats submittedInStockEntries.
|
1728
|
+
* @member {number|Long} submittedInStockEntries
|
1729
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1730
|
+
* @instance
|
1731
|
+
*/
|
1732
|
+
InventoryStats.prototype.submittedInStockEntries = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
1733
|
+
|
1734
|
+
/**
|
1735
|
+
* InventoryStats unsubmittedEntries.
|
1736
|
+
* @member {number|Long} unsubmittedEntries
|
1737
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1738
|
+
* @instance
|
1739
|
+
*/
|
1740
|
+
InventoryStats.prototype.unsubmittedEntries = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
1741
|
+
|
1742
|
+
/**
|
1743
|
+
* InventoryStats submittedProducts.
|
1744
|
+
* @member {number|Long} submittedProducts
|
1745
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1746
|
+
* @instance
|
1747
|
+
*/
|
1748
|
+
InventoryStats.prototype.submittedProducts = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
1749
|
+
|
1750
|
+
/**
|
1751
|
+
* Creates a new InventoryStats instance using the specified properties.
|
1752
|
+
* @function create
|
1753
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1754
|
+
* @static
|
1755
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.IInventoryStats=} [properties] Properties to set
|
1756
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats} InventoryStats instance
|
1757
|
+
*/
|
1758
|
+
InventoryStats.create = function create(properties) {
|
1759
|
+
return new InventoryStats(properties);
|
1760
|
+
};
|
1761
|
+
|
1762
|
+
/**
|
1763
|
+
* Encodes the specified InventoryStats message. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats.verify|verify} messages.
|
1764
|
+
* @function encode
|
1765
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1766
|
+
* @static
|
1767
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.IInventoryStats} message InventoryStats message or plain object to encode
|
1768
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
1769
|
+
* @returns {$protobuf.Writer} Writer
|
1770
|
+
*/
|
1771
|
+
InventoryStats.encode = function encode(message, writer) {
|
1772
|
+
if (!writer)
|
1773
|
+
writer = $Writer.create();
|
1774
|
+
if (message.submittedEntries != null && Object.hasOwnProperty.call(message, "submittedEntries"))
|
1775
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.submittedEntries);
|
1776
|
+
if (message.submittedInStockEntries != null && Object.hasOwnProperty.call(message, "submittedInStockEntries"))
|
1777
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.submittedInStockEntries);
|
1778
|
+
if (message.unsubmittedEntries != null && Object.hasOwnProperty.call(message, "unsubmittedEntries"))
|
1779
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.unsubmittedEntries);
|
1780
|
+
if (message.submittedProducts != null && Object.hasOwnProperty.call(message, "submittedProducts"))
|
1781
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.submittedProducts);
|
1782
|
+
return writer;
|
1783
|
+
};
|
1784
|
+
|
1785
|
+
/**
|
1786
|
+
* Encodes the specified InventoryStats message, length delimited. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats.verify|verify} messages.
|
1787
|
+
* @function encodeDelimited
|
1788
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1789
|
+
* @static
|
1790
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.IInventoryStats} message InventoryStats message or plain object to encode
|
1791
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
1792
|
+
* @returns {$protobuf.Writer} Writer
|
1793
|
+
*/
|
1794
|
+
InventoryStats.encodeDelimited = function encodeDelimited(message, writer) {
|
1795
|
+
return this.encode(message, writer).ldelim();
|
1796
|
+
};
|
1797
|
+
|
1798
|
+
/**
|
1799
|
+
* Decodes an InventoryStats message from the specified reader or buffer.
|
1800
|
+
* @function decode
|
1801
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1802
|
+
* @static
|
1803
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
1804
|
+
* @param {number} [length] Message length if known beforehand
|
1805
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats} InventoryStats
|
1806
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1807
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1808
|
+
*/
|
1809
|
+
InventoryStats.decode = function decode(reader, length, error) {
|
1810
|
+
if (!(reader instanceof $Reader))
|
1811
|
+
reader = $Reader.create(reader);
|
1812
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats();
|
1813
|
+
while (reader.pos < end) {
|
1814
|
+
var tag = reader.uint32();
|
1815
|
+
if (tag === error)
|
1816
|
+
break;
|
1817
|
+
switch (tag >>> 3) {
|
1818
|
+
case 1: {
|
1819
|
+
message.submittedEntries = reader.int64();
|
1820
|
+
break;
|
1821
|
+
}
|
1822
|
+
case 2: {
|
1823
|
+
message.submittedInStockEntries = reader.int64();
|
1824
|
+
break;
|
1825
|
+
}
|
1826
|
+
case 3: {
|
1827
|
+
message.unsubmittedEntries = reader.int64();
|
1828
|
+
break;
|
1829
|
+
}
|
1830
|
+
case 4: {
|
1831
|
+
message.submittedProducts = reader.int64();
|
1832
|
+
break;
|
1833
|
+
}
|
1834
|
+
default:
|
1835
|
+
reader.skipType(tag & 7);
|
1836
|
+
break;
|
1837
|
+
}
|
1838
|
+
}
|
1839
|
+
return message;
|
1840
|
+
};
|
1841
|
+
|
1842
|
+
/**
|
1843
|
+
* Decodes an InventoryStats message from the specified reader or buffer, length delimited.
|
1844
|
+
* @function decodeDelimited
|
1845
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1846
|
+
* @static
|
1847
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
1848
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats} InventoryStats
|
1849
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1850
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1851
|
+
*/
|
1852
|
+
InventoryStats.decodeDelimited = function decodeDelimited(reader) {
|
1853
|
+
if (!(reader instanceof $Reader))
|
1854
|
+
reader = new $Reader(reader);
|
1855
|
+
return this.decode(reader, reader.uint32());
|
1856
|
+
};
|
1857
|
+
|
1858
|
+
/**
|
1859
|
+
* Verifies an InventoryStats message.
|
1860
|
+
* @function verify
|
1861
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1862
|
+
* @static
|
1863
|
+
* @param {Object.<string,*>} message Plain object to verify
|
1864
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
1865
|
+
*/
|
1866
|
+
InventoryStats.verify = function verify(message) {
|
1867
|
+
if (typeof message !== "object" || message === null)
|
1868
|
+
return "object expected";
|
1869
|
+
if (message.submittedEntries != null && message.hasOwnProperty("submittedEntries"))
|
1870
|
+
if (!$util.isInteger(message.submittedEntries) && !(message.submittedEntries && $util.isInteger(message.submittedEntries.low) && $util.isInteger(message.submittedEntries.high)))
|
1871
|
+
return "submittedEntries: integer|Long expected";
|
1872
|
+
if (message.submittedInStockEntries != null && message.hasOwnProperty("submittedInStockEntries"))
|
1873
|
+
if (!$util.isInteger(message.submittedInStockEntries) && !(message.submittedInStockEntries && $util.isInteger(message.submittedInStockEntries.low) && $util.isInteger(message.submittedInStockEntries.high)))
|
1874
|
+
return "submittedInStockEntries: integer|Long expected";
|
1875
|
+
if (message.unsubmittedEntries != null && message.hasOwnProperty("unsubmittedEntries"))
|
1876
|
+
if (!$util.isInteger(message.unsubmittedEntries) && !(message.unsubmittedEntries && $util.isInteger(message.unsubmittedEntries.low) && $util.isInteger(message.unsubmittedEntries.high)))
|
1877
|
+
return "unsubmittedEntries: integer|Long expected";
|
1878
|
+
if (message.submittedProducts != null && message.hasOwnProperty("submittedProducts"))
|
1879
|
+
if (!$util.isInteger(message.submittedProducts) && !(message.submittedProducts && $util.isInteger(message.submittedProducts.low) && $util.isInteger(message.submittedProducts.high)))
|
1880
|
+
return "submittedProducts: integer|Long expected";
|
1881
|
+
return null;
|
1882
|
+
};
|
1883
|
+
|
1884
|
+
/**
|
1885
|
+
* Creates an InventoryStats message from a plain object. Also converts values to their respective internal types.
|
1886
|
+
* @function fromObject
|
1887
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1888
|
+
* @static
|
1889
|
+
* @param {Object.<string,*>} object Plain object
|
1890
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats} InventoryStats
|
1891
|
+
*/
|
1892
|
+
InventoryStats.fromObject = function fromObject(object) {
|
1893
|
+
if (object instanceof $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats)
|
1894
|
+
return object;
|
1895
|
+
var message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats();
|
1896
|
+
if (object.submittedEntries != null)
|
1897
|
+
if ($util.Long)
|
1898
|
+
(message.submittedEntries = $util.Long.fromValue(object.submittedEntries)).unsigned = false;
|
1899
|
+
else if (typeof object.submittedEntries === "string")
|
1900
|
+
message.submittedEntries = parseInt(object.submittedEntries, 10);
|
1901
|
+
else if (typeof object.submittedEntries === "number")
|
1902
|
+
message.submittedEntries = object.submittedEntries;
|
1903
|
+
else if (typeof object.submittedEntries === "object")
|
1904
|
+
message.submittedEntries = new $util.LongBits(object.submittedEntries.low >>> 0, object.submittedEntries.high >>> 0).toNumber();
|
1905
|
+
if (object.submittedInStockEntries != null)
|
1906
|
+
if ($util.Long)
|
1907
|
+
(message.submittedInStockEntries = $util.Long.fromValue(object.submittedInStockEntries)).unsigned = false;
|
1908
|
+
else if (typeof object.submittedInStockEntries === "string")
|
1909
|
+
message.submittedInStockEntries = parseInt(object.submittedInStockEntries, 10);
|
1910
|
+
else if (typeof object.submittedInStockEntries === "number")
|
1911
|
+
message.submittedInStockEntries = object.submittedInStockEntries;
|
1912
|
+
else if (typeof object.submittedInStockEntries === "object")
|
1913
|
+
message.submittedInStockEntries = new $util.LongBits(object.submittedInStockEntries.low >>> 0, object.submittedInStockEntries.high >>> 0).toNumber();
|
1914
|
+
if (object.unsubmittedEntries != null)
|
1915
|
+
if ($util.Long)
|
1916
|
+
(message.unsubmittedEntries = $util.Long.fromValue(object.unsubmittedEntries)).unsigned = false;
|
1917
|
+
else if (typeof object.unsubmittedEntries === "string")
|
1918
|
+
message.unsubmittedEntries = parseInt(object.unsubmittedEntries, 10);
|
1919
|
+
else if (typeof object.unsubmittedEntries === "number")
|
1920
|
+
message.unsubmittedEntries = object.unsubmittedEntries;
|
1921
|
+
else if (typeof object.unsubmittedEntries === "object")
|
1922
|
+
message.unsubmittedEntries = new $util.LongBits(object.unsubmittedEntries.low >>> 0, object.unsubmittedEntries.high >>> 0).toNumber();
|
1923
|
+
if (object.submittedProducts != null)
|
1924
|
+
if ($util.Long)
|
1925
|
+
(message.submittedProducts = $util.Long.fromValue(object.submittedProducts)).unsigned = false;
|
1926
|
+
else if (typeof object.submittedProducts === "string")
|
1927
|
+
message.submittedProducts = parseInt(object.submittedProducts, 10);
|
1928
|
+
else if (typeof object.submittedProducts === "number")
|
1929
|
+
message.submittedProducts = object.submittedProducts;
|
1930
|
+
else if (typeof object.submittedProducts === "object")
|
1931
|
+
message.submittedProducts = new $util.LongBits(object.submittedProducts.low >>> 0, object.submittedProducts.high >>> 0).toNumber();
|
1932
|
+
return message;
|
1933
|
+
};
|
1934
|
+
|
1935
|
+
/**
|
1936
|
+
* Creates a plain object from an InventoryStats message. Also converts values to other types if specified.
|
1937
|
+
* @function toObject
|
1938
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1939
|
+
* @static
|
1940
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats} message InventoryStats
|
1941
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
1942
|
+
* @returns {Object.<string,*>} Plain object
|
1943
|
+
*/
|
1944
|
+
InventoryStats.toObject = function toObject(message, options) {
|
1945
|
+
if (!options)
|
1946
|
+
options = {};
|
1947
|
+
var object = {};
|
1948
|
+
if (options.defaults) {
|
1949
|
+
if ($util.Long) {
|
1950
|
+
var long = new $util.Long(0, 0, false);
|
1951
|
+
object.submittedEntries = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
1952
|
+
} else
|
1953
|
+
object.submittedEntries = options.longs === String ? "0" : 0;
|
1954
|
+
if ($util.Long) {
|
1955
|
+
var long = new $util.Long(0, 0, false);
|
1956
|
+
object.submittedInStockEntries = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
1957
|
+
} else
|
1958
|
+
object.submittedInStockEntries = options.longs === String ? "0" : 0;
|
1959
|
+
if ($util.Long) {
|
1960
|
+
var long = new $util.Long(0, 0, false);
|
1961
|
+
object.unsubmittedEntries = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
1962
|
+
} else
|
1963
|
+
object.unsubmittedEntries = options.longs === String ? "0" : 0;
|
1964
|
+
if ($util.Long) {
|
1965
|
+
var long = new $util.Long(0, 0, false);
|
1966
|
+
object.submittedProducts = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
1967
|
+
} else
|
1968
|
+
object.submittedProducts = options.longs === String ? "0" : 0;
|
1969
|
+
}
|
1970
|
+
if (message.submittedEntries != null && message.hasOwnProperty("submittedEntries"))
|
1971
|
+
if (typeof message.submittedEntries === "number")
|
1972
|
+
object.submittedEntries = options.longs === String ? String(message.submittedEntries) : message.submittedEntries;
|
1973
|
+
else
|
1974
|
+
object.submittedEntries = options.longs === String ? $util.Long.prototype.toString.call(message.submittedEntries) : options.longs === Number ? new $util.LongBits(message.submittedEntries.low >>> 0, message.submittedEntries.high >>> 0).toNumber() : message.submittedEntries;
|
1975
|
+
if (message.submittedInStockEntries != null && message.hasOwnProperty("submittedInStockEntries"))
|
1976
|
+
if (typeof message.submittedInStockEntries === "number")
|
1977
|
+
object.submittedInStockEntries = options.longs === String ? String(message.submittedInStockEntries) : message.submittedInStockEntries;
|
1978
|
+
else
|
1979
|
+
object.submittedInStockEntries = options.longs === String ? $util.Long.prototype.toString.call(message.submittedInStockEntries) : options.longs === Number ? new $util.LongBits(message.submittedInStockEntries.low >>> 0, message.submittedInStockEntries.high >>> 0).toNumber() : message.submittedInStockEntries;
|
1980
|
+
if (message.unsubmittedEntries != null && message.hasOwnProperty("unsubmittedEntries"))
|
1981
|
+
if (typeof message.unsubmittedEntries === "number")
|
1982
|
+
object.unsubmittedEntries = options.longs === String ? String(message.unsubmittedEntries) : message.unsubmittedEntries;
|
1983
|
+
else
|
1984
|
+
object.unsubmittedEntries = options.longs === String ? $util.Long.prototype.toString.call(message.unsubmittedEntries) : options.longs === Number ? new $util.LongBits(message.unsubmittedEntries.low >>> 0, message.unsubmittedEntries.high >>> 0).toNumber() : message.unsubmittedEntries;
|
1985
|
+
if (message.submittedProducts != null && message.hasOwnProperty("submittedProducts"))
|
1986
|
+
if (typeof message.submittedProducts === "number")
|
1987
|
+
object.submittedProducts = options.longs === String ? String(message.submittedProducts) : message.submittedProducts;
|
1988
|
+
else
|
1989
|
+
object.submittedProducts = options.longs === String ? $util.Long.prototype.toString.call(message.submittedProducts) : options.longs === Number ? new $util.LongBits(message.submittedProducts.low >>> 0, message.submittedProducts.high >>> 0).toNumber() : message.submittedProducts;
|
1990
|
+
return object;
|
1991
|
+
};
|
1992
|
+
|
1993
|
+
/**
|
1994
|
+
* Converts this InventoryStats to JSON.
|
1995
|
+
* @function toJSON
|
1996
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1997
|
+
* @instance
|
1998
|
+
* @returns {Object.<string,*>} JSON object
|
1999
|
+
*/
|
2000
|
+
InventoryStats.prototype.toJSON = function toJSON() {
|
2001
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
2002
|
+
};
|
2003
|
+
|
2004
|
+
/**
|
2005
|
+
* Gets the default type url for InventoryStats
|
2006
|
+
* @function getTypeUrl
|
2007
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
2008
|
+
* @static
|
2009
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
2010
|
+
* @returns {string} The default type url
|
2011
|
+
*/
|
2012
|
+
InventoryStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
2013
|
+
if (typeUrlPrefix === undefined) {
|
2014
|
+
typeUrlPrefix = "type.googleapis.com";
|
2015
|
+
}
|
2016
|
+
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats";
|
2017
|
+
};
|
2018
|
+
|
2019
|
+
return InventoryStats;
|
2020
|
+
})();
|
2021
|
+
|
2022
|
+
LfpMerchantState.CountrySettings = (function() {
|
2023
|
+
|
2024
|
+
/**
|
2025
|
+
* Properties of a CountrySettings.
|
2026
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
2027
|
+
* @interface ICountrySettings
|
2028
|
+
* @property {string|null} [regionCode] CountrySettings regionCode
|
2029
|
+
* @property {boolean|null} [freeLocalListingsEnabled] CountrySettings freeLocalListingsEnabled
|
2030
|
+
* @property {boolean|null} [localInventoryAdsEnabled] CountrySettings localInventoryAdsEnabled
|
2031
|
+
* @property {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState|null} [inventoryVerificationState] CountrySettings inventoryVerificationState
|
2032
|
+
* @property {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.ProductPageType|null} [productPageType] CountrySettings productPageType
|
2033
|
+
* @property {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState|null} [instockServingVerificationState] CountrySettings instockServingVerificationState
|
2034
|
+
* @property {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState|null} [pickupServingVerificationState] CountrySettings pickupServingVerificationState
|
2035
|
+
*/
|
2036
|
+
|
2037
|
+
/**
|
2038
|
+
* Constructs a new CountrySettings.
|
2039
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
2040
|
+
* @classdesc Represents a CountrySettings.
|
2041
|
+
* @implements ICountrySettings
|
2042
|
+
* @constructor
|
2043
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ICountrySettings=} [properties] Properties to set
|
2044
|
+
*/
|
2045
|
+
function CountrySettings(properties) {
|
2046
|
+
if (properties)
|
2047
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
2048
|
+
if (properties[keys[i]] != null)
|
2049
|
+
this[keys[i]] = properties[keys[i]];
|
2050
|
+
}
|
2051
|
+
|
2052
|
+
/**
|
2053
|
+
* CountrySettings regionCode.
|
2054
|
+
* @member {string} regionCode
|
2055
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2056
|
+
* @instance
|
2057
|
+
*/
|
2058
|
+
CountrySettings.prototype.regionCode = "";
|
2059
|
+
|
2060
|
+
/**
|
2061
|
+
* CountrySettings freeLocalListingsEnabled.
|
2062
|
+
* @member {boolean} freeLocalListingsEnabled
|
2063
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2064
|
+
* @instance
|
2065
|
+
*/
|
2066
|
+
CountrySettings.prototype.freeLocalListingsEnabled = false;
|
2067
|
+
|
2068
|
+
/**
|
2069
|
+
* CountrySettings localInventoryAdsEnabled.
|
2070
|
+
* @member {boolean} localInventoryAdsEnabled
|
2071
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2072
|
+
* @instance
|
2073
|
+
*/
|
2074
|
+
CountrySettings.prototype.localInventoryAdsEnabled = false;
|
2075
|
+
|
2076
|
+
/**
|
2077
|
+
* CountrySettings inventoryVerificationState.
|
2078
|
+
* @member {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState} inventoryVerificationState
|
2079
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2080
|
+
* @instance
|
2081
|
+
*/
|
2082
|
+
CountrySettings.prototype.inventoryVerificationState = 0;
|
2083
|
+
|
2084
|
+
/**
|
2085
|
+
* CountrySettings productPageType.
|
2086
|
+
* @member {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.ProductPageType} productPageType
|
2087
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2088
|
+
* @instance
|
2089
|
+
*/
|
2090
|
+
CountrySettings.prototype.productPageType = 0;
|
2091
|
+
|
2092
|
+
/**
|
2093
|
+
* CountrySettings instockServingVerificationState.
|
2094
|
+
* @member {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState} instockServingVerificationState
|
2095
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2096
|
+
* @instance
|
2097
|
+
*/
|
2098
|
+
CountrySettings.prototype.instockServingVerificationState = 0;
|
2099
|
+
|
2100
|
+
/**
|
2101
|
+
* CountrySettings pickupServingVerificationState.
|
2102
|
+
* @member {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState} pickupServingVerificationState
|
2103
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2104
|
+
* @instance
|
2105
|
+
*/
|
2106
|
+
CountrySettings.prototype.pickupServingVerificationState = 0;
|
2107
|
+
|
2108
|
+
/**
|
2109
|
+
* Creates a new CountrySettings instance using the specified properties.
|
2110
|
+
* @function create
|
2111
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2112
|
+
* @static
|
2113
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ICountrySettings=} [properties] Properties to set
|
2114
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings} CountrySettings instance
|
2115
|
+
*/
|
2116
|
+
CountrySettings.create = function create(properties) {
|
2117
|
+
return new CountrySettings(properties);
|
2118
|
+
};
|
2119
|
+
|
2120
|
+
/**
|
2121
|
+
* Encodes the specified CountrySettings message. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.verify|verify} messages.
|
2122
|
+
* @function encode
|
2123
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2124
|
+
* @static
|
2125
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ICountrySettings} message CountrySettings message or plain object to encode
|
2126
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
2127
|
+
* @returns {$protobuf.Writer} Writer
|
2128
|
+
*/
|
2129
|
+
CountrySettings.encode = function encode(message, writer) {
|
2130
|
+
if (!writer)
|
2131
|
+
writer = $Writer.create();
|
2132
|
+
if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode"))
|
2133
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.regionCode);
|
2134
|
+
if (message.freeLocalListingsEnabled != null && Object.hasOwnProperty.call(message, "freeLocalListingsEnabled"))
|
2135
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.freeLocalListingsEnabled);
|
2136
|
+
if (message.localInventoryAdsEnabled != null && Object.hasOwnProperty.call(message, "localInventoryAdsEnabled"))
|
2137
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.localInventoryAdsEnabled);
|
2138
|
+
if (message.inventoryVerificationState != null && Object.hasOwnProperty.call(message, "inventoryVerificationState"))
|
2139
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.inventoryVerificationState);
|
2140
|
+
if (message.productPageType != null && Object.hasOwnProperty.call(message, "productPageType"))
|
2141
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.productPageType);
|
2142
|
+
if (message.instockServingVerificationState != null && Object.hasOwnProperty.call(message, "instockServingVerificationState"))
|
2143
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.instockServingVerificationState);
|
2144
|
+
if (message.pickupServingVerificationState != null && Object.hasOwnProperty.call(message, "pickupServingVerificationState"))
|
2145
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.pickupServingVerificationState);
|
2146
|
+
return writer;
|
2147
|
+
};
|
2148
|
+
|
2149
|
+
/**
|
2150
|
+
* Encodes the specified CountrySettings message, length delimited. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.verify|verify} messages.
|
2151
|
+
* @function encodeDelimited
|
2152
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2153
|
+
* @static
|
2154
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ICountrySettings} message CountrySettings message or plain object to encode
|
2155
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
2156
|
+
* @returns {$protobuf.Writer} Writer
|
2157
|
+
*/
|
2158
|
+
CountrySettings.encodeDelimited = function encodeDelimited(message, writer) {
|
2159
|
+
return this.encode(message, writer).ldelim();
|
2160
|
+
};
|
2161
|
+
|
2162
|
+
/**
|
2163
|
+
* Decodes a CountrySettings message from the specified reader or buffer.
|
2164
|
+
* @function decode
|
2165
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2166
|
+
* @static
|
2167
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
2168
|
+
* @param {number} [length] Message length if known beforehand
|
2169
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings} CountrySettings
|
2170
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2171
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2172
|
+
*/
|
2173
|
+
CountrySettings.decode = function decode(reader, length, error) {
|
2174
|
+
if (!(reader instanceof $Reader))
|
2175
|
+
reader = $Reader.create(reader);
|
2176
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings();
|
2177
|
+
while (reader.pos < end) {
|
2178
|
+
var tag = reader.uint32();
|
2179
|
+
if (tag === error)
|
2180
|
+
break;
|
2181
|
+
switch (tag >>> 3) {
|
2182
|
+
case 1: {
|
2183
|
+
message.regionCode = reader.string();
|
2184
|
+
break;
|
2185
|
+
}
|
2186
|
+
case 2: {
|
2187
|
+
message.freeLocalListingsEnabled = reader.bool();
|
2188
|
+
break;
|
2189
|
+
}
|
2190
|
+
case 3: {
|
2191
|
+
message.localInventoryAdsEnabled = reader.bool();
|
2192
|
+
break;
|
2193
|
+
}
|
2194
|
+
case 4: {
|
2195
|
+
message.inventoryVerificationState = reader.int32();
|
2196
|
+
break;
|
2197
|
+
}
|
2198
|
+
case 5: {
|
2199
|
+
message.productPageType = reader.int32();
|
2200
|
+
break;
|
2201
|
+
}
|
2202
|
+
case 6: {
|
2203
|
+
message.instockServingVerificationState = reader.int32();
|
2204
|
+
break;
|
2205
|
+
}
|
2206
|
+
case 7: {
|
2207
|
+
message.pickupServingVerificationState = reader.int32();
|
2208
|
+
break;
|
2209
|
+
}
|
2210
|
+
default:
|
2211
|
+
reader.skipType(tag & 7);
|
2212
|
+
break;
|
2213
|
+
}
|
2214
|
+
}
|
2215
|
+
return message;
|
2216
|
+
};
|
2217
|
+
|
2218
|
+
/**
|
2219
|
+
* Decodes a CountrySettings message from the specified reader or buffer, length delimited.
|
2220
|
+
* @function decodeDelimited
|
2221
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2222
|
+
* @static
|
2223
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
2224
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings} CountrySettings
|
2225
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2226
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2227
|
+
*/
|
2228
|
+
CountrySettings.decodeDelimited = function decodeDelimited(reader) {
|
2229
|
+
if (!(reader instanceof $Reader))
|
2230
|
+
reader = new $Reader(reader);
|
2231
|
+
return this.decode(reader, reader.uint32());
|
2232
|
+
};
|
2233
|
+
|
2234
|
+
/**
|
2235
|
+
* Verifies a CountrySettings message.
|
2236
|
+
* @function verify
|
2237
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2238
|
+
* @static
|
2239
|
+
* @param {Object.<string,*>} message Plain object to verify
|
2240
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
2241
|
+
*/
|
2242
|
+
CountrySettings.verify = function verify(message) {
|
2243
|
+
if (typeof message !== "object" || message === null)
|
2244
|
+
return "object expected";
|
2245
|
+
if (message.regionCode != null && message.hasOwnProperty("regionCode"))
|
2246
|
+
if (!$util.isString(message.regionCode))
|
2247
|
+
return "regionCode: string expected";
|
2248
|
+
if (message.freeLocalListingsEnabled != null && message.hasOwnProperty("freeLocalListingsEnabled"))
|
2249
|
+
if (typeof message.freeLocalListingsEnabled !== "boolean")
|
2250
|
+
return "freeLocalListingsEnabled: boolean expected";
|
2251
|
+
if (message.localInventoryAdsEnabled != null && message.hasOwnProperty("localInventoryAdsEnabled"))
|
2252
|
+
if (typeof message.localInventoryAdsEnabled !== "boolean")
|
2253
|
+
return "localInventoryAdsEnabled: boolean expected";
|
2254
|
+
if (message.inventoryVerificationState != null && message.hasOwnProperty("inventoryVerificationState"))
|
2255
|
+
switch (message.inventoryVerificationState) {
|
2256
|
+
default:
|
2257
|
+
return "inventoryVerificationState: enum value expected";
|
2258
|
+
case 0:
|
2259
|
+
case 1:
|
2260
|
+
case 2:
|
2261
|
+
case 3:
|
2262
|
+
break;
|
2263
|
+
}
|
2264
|
+
if (message.productPageType != null && message.hasOwnProperty("productPageType"))
|
2265
|
+
switch (message.productPageType) {
|
2266
|
+
default:
|
2267
|
+
return "productPageType: enum value expected";
|
2268
|
+
case 0:
|
2269
|
+
case 1:
|
2270
|
+
case 2:
|
2271
|
+
case 3:
|
2272
|
+
break;
|
2273
|
+
}
|
2274
|
+
if (message.instockServingVerificationState != null && message.hasOwnProperty("instockServingVerificationState"))
|
2275
|
+
switch (message.instockServingVerificationState) {
|
2276
|
+
default:
|
2277
|
+
return "instockServingVerificationState: enum value expected";
|
2278
|
+
case 0:
|
2279
|
+
case 1:
|
2280
|
+
case 2:
|
2281
|
+
case 3:
|
2282
|
+
break;
|
2283
|
+
}
|
2284
|
+
if (message.pickupServingVerificationState != null && message.hasOwnProperty("pickupServingVerificationState"))
|
2285
|
+
switch (message.pickupServingVerificationState) {
|
2286
|
+
default:
|
2287
|
+
return "pickupServingVerificationState: enum value expected";
|
2288
|
+
case 0:
|
2289
|
+
case 1:
|
2290
|
+
case 2:
|
2291
|
+
case 3:
|
2292
|
+
break;
|
2293
|
+
}
|
2294
|
+
return null;
|
2295
|
+
};
|
2296
|
+
|
2297
|
+
/**
|
2298
|
+
* Creates a CountrySettings message from a plain object. Also converts values to their respective internal types.
|
2299
|
+
* @function fromObject
|
2300
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2301
|
+
* @static
|
2302
|
+
* @param {Object.<string,*>} object Plain object
|
2303
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings} CountrySettings
|
2304
|
+
*/
|
2305
|
+
CountrySettings.fromObject = function fromObject(object) {
|
2306
|
+
if (object instanceof $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings)
|
2307
|
+
return object;
|
2308
|
+
var message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings();
|
2309
|
+
if (object.regionCode != null)
|
2310
|
+
message.regionCode = String(object.regionCode);
|
2311
|
+
if (object.freeLocalListingsEnabled != null)
|
2312
|
+
message.freeLocalListingsEnabled = Boolean(object.freeLocalListingsEnabled);
|
2313
|
+
if (object.localInventoryAdsEnabled != null)
|
2314
|
+
message.localInventoryAdsEnabled = Boolean(object.localInventoryAdsEnabled);
|
2315
|
+
switch (object.inventoryVerificationState) {
|
2316
|
+
default:
|
2317
|
+
if (typeof object.inventoryVerificationState === "number") {
|
2318
|
+
message.inventoryVerificationState = object.inventoryVerificationState;
|
2319
|
+
break;
|
2320
|
+
}
|
2321
|
+
break;
|
2322
|
+
case "VERIFICATION_STATE_UNSPECIFIED":
|
2323
|
+
case 0:
|
2324
|
+
message.inventoryVerificationState = 0;
|
2325
|
+
break;
|
2326
|
+
case "VERIFICATION_STATE_NOT_APPROVED":
|
2327
|
+
case 1:
|
2328
|
+
message.inventoryVerificationState = 1;
|
2329
|
+
break;
|
2330
|
+
case "VERIFICATION_STATE_IN_PROGRESS":
|
2331
|
+
case 2:
|
2332
|
+
message.inventoryVerificationState = 2;
|
2333
|
+
break;
|
2334
|
+
case "VERIFICATION_STATE_APPROVED":
|
2335
|
+
case 3:
|
2336
|
+
message.inventoryVerificationState = 3;
|
2337
|
+
break;
|
2338
|
+
}
|
2339
|
+
switch (object.productPageType) {
|
2340
|
+
default:
|
2341
|
+
if (typeof object.productPageType === "number") {
|
2342
|
+
message.productPageType = object.productPageType;
|
2343
|
+
break;
|
2344
|
+
}
|
2345
|
+
break;
|
2346
|
+
case "PRODUCT_PAGE_TYPE_UNSPECIFIED":
|
2347
|
+
case 0:
|
2348
|
+
message.productPageType = 0;
|
2349
|
+
break;
|
2350
|
+
case "GOOGLE_HOSTED":
|
2351
|
+
case 1:
|
2352
|
+
message.productPageType = 1;
|
2353
|
+
break;
|
2354
|
+
case "MERCHANT_HOSTED":
|
2355
|
+
case 2:
|
2356
|
+
message.productPageType = 2;
|
2357
|
+
break;
|
2358
|
+
case "MERCHANT_HOSTED_STORE_SPECIFIC":
|
2359
|
+
case 3:
|
2360
|
+
message.productPageType = 3;
|
2361
|
+
break;
|
2362
|
+
}
|
2363
|
+
switch (object.instockServingVerificationState) {
|
2364
|
+
default:
|
2365
|
+
if (typeof object.instockServingVerificationState === "number") {
|
2366
|
+
message.instockServingVerificationState = object.instockServingVerificationState;
|
2367
|
+
break;
|
2368
|
+
}
|
2369
|
+
break;
|
2370
|
+
case "VERIFICATION_STATE_UNSPECIFIED":
|
2371
|
+
case 0:
|
2372
|
+
message.instockServingVerificationState = 0;
|
2373
|
+
break;
|
2374
|
+
case "VERIFICATION_STATE_NOT_APPROVED":
|
2375
|
+
case 1:
|
2376
|
+
message.instockServingVerificationState = 1;
|
2377
|
+
break;
|
2378
|
+
case "VERIFICATION_STATE_IN_PROGRESS":
|
2379
|
+
case 2:
|
2380
|
+
message.instockServingVerificationState = 2;
|
2381
|
+
break;
|
2382
|
+
case "VERIFICATION_STATE_APPROVED":
|
2383
|
+
case 3:
|
2384
|
+
message.instockServingVerificationState = 3;
|
2385
|
+
break;
|
2386
|
+
}
|
2387
|
+
switch (object.pickupServingVerificationState) {
|
2388
|
+
default:
|
2389
|
+
if (typeof object.pickupServingVerificationState === "number") {
|
2390
|
+
message.pickupServingVerificationState = object.pickupServingVerificationState;
|
2391
|
+
break;
|
2392
|
+
}
|
2393
|
+
break;
|
2394
|
+
case "VERIFICATION_STATE_UNSPECIFIED":
|
2395
|
+
case 0:
|
2396
|
+
message.pickupServingVerificationState = 0;
|
2397
|
+
break;
|
2398
|
+
case "VERIFICATION_STATE_NOT_APPROVED":
|
2399
|
+
case 1:
|
2400
|
+
message.pickupServingVerificationState = 1;
|
2401
|
+
break;
|
2402
|
+
case "VERIFICATION_STATE_IN_PROGRESS":
|
2403
|
+
case 2:
|
2404
|
+
message.pickupServingVerificationState = 2;
|
2405
|
+
break;
|
2406
|
+
case "VERIFICATION_STATE_APPROVED":
|
2407
|
+
case 3:
|
2408
|
+
message.pickupServingVerificationState = 3;
|
2409
|
+
break;
|
2410
|
+
}
|
2411
|
+
return message;
|
2412
|
+
};
|
2413
|
+
|
2414
|
+
/**
|
2415
|
+
* Creates a plain object from a CountrySettings message. Also converts values to other types if specified.
|
2416
|
+
* @function toObject
|
2417
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2418
|
+
* @static
|
2419
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings} message CountrySettings
|
2420
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
2421
|
+
* @returns {Object.<string,*>} Plain object
|
2422
|
+
*/
|
2423
|
+
CountrySettings.toObject = function toObject(message, options) {
|
2424
|
+
if (!options)
|
2425
|
+
options = {};
|
2426
|
+
var object = {};
|
2427
|
+
if (options.defaults) {
|
2428
|
+
object.regionCode = "";
|
2429
|
+
object.freeLocalListingsEnabled = false;
|
2430
|
+
object.localInventoryAdsEnabled = false;
|
2431
|
+
object.inventoryVerificationState = options.enums === String ? "VERIFICATION_STATE_UNSPECIFIED" : 0;
|
2432
|
+
object.productPageType = options.enums === String ? "PRODUCT_PAGE_TYPE_UNSPECIFIED" : 0;
|
2433
|
+
object.instockServingVerificationState = options.enums === String ? "VERIFICATION_STATE_UNSPECIFIED" : 0;
|
2434
|
+
object.pickupServingVerificationState = options.enums === String ? "VERIFICATION_STATE_UNSPECIFIED" : 0;
|
2435
|
+
}
|
2436
|
+
if (message.regionCode != null && message.hasOwnProperty("regionCode"))
|
2437
|
+
object.regionCode = message.regionCode;
|
2438
|
+
if (message.freeLocalListingsEnabled != null && message.hasOwnProperty("freeLocalListingsEnabled"))
|
2439
|
+
object.freeLocalListingsEnabled = message.freeLocalListingsEnabled;
|
2440
|
+
if (message.localInventoryAdsEnabled != null && message.hasOwnProperty("localInventoryAdsEnabled"))
|
2441
|
+
object.localInventoryAdsEnabled = message.localInventoryAdsEnabled;
|
2442
|
+
if (message.inventoryVerificationState != null && message.hasOwnProperty("inventoryVerificationState"))
|
2443
|
+
object.inventoryVerificationState = options.enums === String ? $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState[message.inventoryVerificationState] === undefined ? message.inventoryVerificationState : $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState[message.inventoryVerificationState] : message.inventoryVerificationState;
|
2444
|
+
if (message.productPageType != null && message.hasOwnProperty("productPageType"))
|
2445
|
+
object.productPageType = options.enums === String ? $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.ProductPageType[message.productPageType] === undefined ? message.productPageType : $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.ProductPageType[message.productPageType] : message.productPageType;
|
2446
|
+
if (message.instockServingVerificationState != null && message.hasOwnProperty("instockServingVerificationState"))
|
2447
|
+
object.instockServingVerificationState = options.enums === String ? $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState[message.instockServingVerificationState] === undefined ? message.instockServingVerificationState : $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState[message.instockServingVerificationState] : message.instockServingVerificationState;
|
2448
|
+
if (message.pickupServingVerificationState != null && message.hasOwnProperty("pickupServingVerificationState"))
|
2449
|
+
object.pickupServingVerificationState = options.enums === String ? $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState[message.pickupServingVerificationState] === undefined ? message.pickupServingVerificationState : $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState[message.pickupServingVerificationState] : message.pickupServingVerificationState;
|
2450
|
+
return object;
|
2451
|
+
};
|
2452
|
+
|
2453
|
+
/**
|
2454
|
+
* Converts this CountrySettings to JSON.
|
2455
|
+
* @function toJSON
|
2456
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2457
|
+
* @instance
|
2458
|
+
* @returns {Object.<string,*>} JSON object
|
2459
|
+
*/
|
2460
|
+
CountrySettings.prototype.toJSON = function toJSON() {
|
2461
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
2462
|
+
};
|
2463
|
+
|
2464
|
+
/**
|
2465
|
+
* Gets the default type url for CountrySettings
|
2466
|
+
* @function getTypeUrl
|
2467
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2468
|
+
* @static
|
2469
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
2470
|
+
* @returns {string} The default type url
|
2471
|
+
*/
|
2472
|
+
CountrySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
2473
|
+
if (typeUrlPrefix === undefined) {
|
2474
|
+
typeUrlPrefix = "type.googleapis.com";
|
2475
|
+
}
|
2476
|
+
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings";
|
2477
|
+
};
|
2478
|
+
|
2479
|
+
/**
|
2480
|
+
* VerificationState enum.
|
2481
|
+
* @name google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState
|
2482
|
+
* @enum {number}
|
2483
|
+
* @property {number} VERIFICATION_STATE_UNSPECIFIED=0 VERIFICATION_STATE_UNSPECIFIED value
|
2484
|
+
* @property {number} VERIFICATION_STATE_NOT_APPROVED=1 VERIFICATION_STATE_NOT_APPROVED value
|
2485
|
+
* @property {number} VERIFICATION_STATE_IN_PROGRESS=2 VERIFICATION_STATE_IN_PROGRESS value
|
2486
|
+
* @property {number} VERIFICATION_STATE_APPROVED=3 VERIFICATION_STATE_APPROVED value
|
2487
|
+
*/
|
2488
|
+
CountrySettings.VerificationState = (function() {
|
2489
|
+
var valuesById = {}, values = Object.create(valuesById);
|
2490
|
+
values[valuesById[0] = "VERIFICATION_STATE_UNSPECIFIED"] = 0;
|
2491
|
+
values[valuesById[1] = "VERIFICATION_STATE_NOT_APPROVED"] = 1;
|
2492
|
+
values[valuesById[2] = "VERIFICATION_STATE_IN_PROGRESS"] = 2;
|
2493
|
+
values[valuesById[3] = "VERIFICATION_STATE_APPROVED"] = 3;
|
2494
|
+
return values;
|
2495
|
+
})();
|
2496
|
+
|
2497
|
+
/**
|
2498
|
+
* ProductPageType enum.
|
2499
|
+
* @name google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.ProductPageType
|
2500
|
+
* @enum {number}
|
2501
|
+
* @property {number} PRODUCT_PAGE_TYPE_UNSPECIFIED=0 PRODUCT_PAGE_TYPE_UNSPECIFIED value
|
2502
|
+
* @property {number} GOOGLE_HOSTED=1 GOOGLE_HOSTED value
|
2503
|
+
* @property {number} MERCHANT_HOSTED=2 MERCHANT_HOSTED value
|
2504
|
+
* @property {number} MERCHANT_HOSTED_STORE_SPECIFIC=3 MERCHANT_HOSTED_STORE_SPECIFIC value
|
2505
|
+
*/
|
2506
|
+
CountrySettings.ProductPageType = (function() {
|
2507
|
+
var valuesById = {}, values = Object.create(valuesById);
|
2508
|
+
values[valuesById[0] = "PRODUCT_PAGE_TYPE_UNSPECIFIED"] = 0;
|
2509
|
+
values[valuesById[1] = "GOOGLE_HOSTED"] = 1;
|
2510
|
+
values[valuesById[2] = "MERCHANT_HOSTED"] = 2;
|
2511
|
+
values[valuesById[3] = "MERCHANT_HOSTED_STORE_SPECIFIC"] = 3;
|
2512
|
+
return values;
|
2513
|
+
})();
|
2514
|
+
|
2515
|
+
return CountrySettings;
|
2516
|
+
})();
|
2517
|
+
|
2518
|
+
return LfpMerchantState;
|
760
2519
|
})();
|
761
2520
|
|
762
|
-
v1beta.
|
2521
|
+
v1beta.GetLfpMerchantStateRequest = (function() {
|
763
2522
|
|
764
2523
|
/**
|
765
|
-
* Properties of
|
2524
|
+
* Properties of a GetLfpMerchantStateRequest.
|
766
2525
|
* @memberof google.shopping.merchant.lfp.v1beta
|
767
|
-
* @interface
|
768
|
-
* @property {string|null} [
|
769
|
-
* @property {google.shopping.merchant.lfp.v1beta.ILfpInventory|null} [lfpInventory] InsertLfpInventoryRequest lfpInventory
|
2526
|
+
* @interface IGetLfpMerchantStateRequest
|
2527
|
+
* @property {string|null} [name] GetLfpMerchantStateRequest name
|
770
2528
|
*/
|
771
2529
|
|
772
2530
|
/**
|
773
|
-
* Constructs a new
|
2531
|
+
* Constructs a new GetLfpMerchantStateRequest.
|
774
2532
|
* @memberof google.shopping.merchant.lfp.v1beta
|
775
|
-
* @classdesc Represents
|
776
|
-
* @implements
|
2533
|
+
* @classdesc Represents a GetLfpMerchantStateRequest.
|
2534
|
+
* @implements IGetLfpMerchantStateRequest
|
777
2535
|
* @constructor
|
778
|
-
* @param {google.shopping.merchant.lfp.v1beta.
|
2536
|
+
* @param {google.shopping.merchant.lfp.v1beta.IGetLfpMerchantStateRequest=} [properties] Properties to set
|
779
2537
|
*/
|
780
|
-
function
|
2538
|
+
function GetLfpMerchantStateRequest(properties) {
|
781
2539
|
if (properties)
|
782
2540
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
783
2541
|
if (properties[keys[i]] != null)
|
@@ -785,89 +2543,77 @@
|
|
785
2543
|
}
|
786
2544
|
|
787
2545
|
/**
|
788
|
-
*
|
789
|
-
* @member {string}
|
790
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
791
|
-
* @instance
|
792
|
-
*/
|
793
|
-
InsertLfpInventoryRequest.prototype.parent = "";
|
794
|
-
|
795
|
-
/**
|
796
|
-
* InsertLfpInventoryRequest lfpInventory.
|
797
|
-
* @member {google.shopping.merchant.lfp.v1beta.ILfpInventory|null|undefined} lfpInventory
|
798
|
-
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
2546
|
+
* GetLfpMerchantStateRequest name.
|
2547
|
+
* @member {string} name
|
2548
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
799
2549
|
* @instance
|
800
2550
|
*/
|
801
|
-
|
2551
|
+
GetLfpMerchantStateRequest.prototype.name = "";
|
802
2552
|
|
803
2553
|
/**
|
804
|
-
* Creates a new
|
2554
|
+
* Creates a new GetLfpMerchantStateRequest instance using the specified properties.
|
805
2555
|
* @function create
|
806
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2556
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
807
2557
|
* @static
|
808
|
-
* @param {google.shopping.merchant.lfp.v1beta.
|
809
|
-
* @returns {google.shopping.merchant.lfp.v1beta.
|
2558
|
+
* @param {google.shopping.merchant.lfp.v1beta.IGetLfpMerchantStateRequest=} [properties] Properties to set
|
2559
|
+
* @returns {google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest} GetLfpMerchantStateRequest instance
|
810
2560
|
*/
|
811
|
-
|
812
|
-
return new
|
2561
|
+
GetLfpMerchantStateRequest.create = function create(properties) {
|
2562
|
+
return new GetLfpMerchantStateRequest(properties);
|
813
2563
|
};
|
814
2564
|
|
815
2565
|
/**
|
816
|
-
* Encodes the specified
|
2566
|
+
* Encodes the specified GetLfpMerchantStateRequest message. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest.verify|verify} messages.
|
817
2567
|
* @function encode
|
818
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2568
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
819
2569
|
* @static
|
820
|
-
* @param {google.shopping.merchant.lfp.v1beta.
|
2570
|
+
* @param {google.shopping.merchant.lfp.v1beta.IGetLfpMerchantStateRequest} message GetLfpMerchantStateRequest message or plain object to encode
|
821
2571
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
822
2572
|
* @returns {$protobuf.Writer} Writer
|
823
2573
|
*/
|
824
|
-
|
2574
|
+
GetLfpMerchantStateRequest.encode = function encode(message, writer) {
|
825
2575
|
if (!writer)
|
826
2576
|
writer = $Writer.create();
|
827
|
-
if (message.
|
828
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
829
|
-
if (message.lfpInventory != null && Object.hasOwnProperty.call(message, "lfpInventory"))
|
830
|
-
$root.google.shopping.merchant.lfp.v1beta.LfpInventory.encode(message.lfpInventory, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
2577
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
2578
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
831
2579
|
return writer;
|
832
2580
|
};
|
833
2581
|
|
834
2582
|
/**
|
835
|
-
* Encodes the specified
|
2583
|
+
* Encodes the specified GetLfpMerchantStateRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest.verify|verify} messages.
|
836
2584
|
* @function encodeDelimited
|
837
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2585
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
838
2586
|
* @static
|
839
|
-
* @param {google.shopping.merchant.lfp.v1beta.
|
2587
|
+
* @param {google.shopping.merchant.lfp.v1beta.IGetLfpMerchantStateRequest} message GetLfpMerchantStateRequest message or plain object to encode
|
840
2588
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
841
2589
|
* @returns {$protobuf.Writer} Writer
|
842
2590
|
*/
|
843
|
-
|
2591
|
+
GetLfpMerchantStateRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
844
2592
|
return this.encode(message, writer).ldelim();
|
845
2593
|
};
|
846
2594
|
|
847
2595
|
/**
|
848
|
-
* Decodes
|
2596
|
+
* Decodes a GetLfpMerchantStateRequest message from the specified reader or buffer.
|
849
2597
|
* @function decode
|
850
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2598
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
851
2599
|
* @static
|
852
2600
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
853
2601
|
* @param {number} [length] Message length if known beforehand
|
854
|
-
* @returns {google.shopping.merchant.lfp.v1beta.
|
2602
|
+
* @returns {google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest} GetLfpMerchantStateRequest
|
855
2603
|
* @throws {Error} If the payload is not a reader or valid buffer
|
856
2604
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
857
2605
|
*/
|
858
|
-
|
2606
|
+
GetLfpMerchantStateRequest.decode = function decode(reader, length, error) {
|
859
2607
|
if (!(reader instanceof $Reader))
|
860
2608
|
reader = $Reader.create(reader);
|
861
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.
|
2609
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest();
|
862
2610
|
while (reader.pos < end) {
|
863
2611
|
var tag = reader.uint32();
|
2612
|
+
if (tag === error)
|
2613
|
+
break;
|
864
2614
|
switch (tag >>> 3) {
|
865
2615
|
case 1: {
|
866
|
-
message.
|
867
|
-
break;
|
868
|
-
}
|
869
|
-
case 2: {
|
870
|
-
message.lfpInventory = $root.google.shopping.merchant.lfp.v1beta.LfpInventory.decode(reader, reader.uint32());
|
2616
|
+
message.name = reader.string();
|
871
2617
|
break;
|
872
2618
|
}
|
873
2619
|
default:
|
@@ -879,116 +2625,102 @@
|
|
879
2625
|
};
|
880
2626
|
|
881
2627
|
/**
|
882
|
-
* Decodes
|
2628
|
+
* Decodes a GetLfpMerchantStateRequest message from the specified reader or buffer, length delimited.
|
883
2629
|
* @function decodeDelimited
|
884
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2630
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
885
2631
|
* @static
|
886
2632
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
887
|
-
* @returns {google.shopping.merchant.lfp.v1beta.
|
2633
|
+
* @returns {google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest} GetLfpMerchantStateRequest
|
888
2634
|
* @throws {Error} If the payload is not a reader or valid buffer
|
889
2635
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
890
2636
|
*/
|
891
|
-
|
2637
|
+
GetLfpMerchantStateRequest.decodeDelimited = function decodeDelimited(reader) {
|
892
2638
|
if (!(reader instanceof $Reader))
|
893
2639
|
reader = new $Reader(reader);
|
894
2640
|
return this.decode(reader, reader.uint32());
|
895
2641
|
};
|
896
2642
|
|
897
2643
|
/**
|
898
|
-
* Verifies
|
2644
|
+
* Verifies a GetLfpMerchantStateRequest message.
|
899
2645
|
* @function verify
|
900
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2646
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
901
2647
|
* @static
|
902
2648
|
* @param {Object.<string,*>} message Plain object to verify
|
903
2649
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
904
2650
|
*/
|
905
|
-
|
2651
|
+
GetLfpMerchantStateRequest.verify = function verify(message) {
|
906
2652
|
if (typeof message !== "object" || message === null)
|
907
2653
|
return "object expected";
|
908
|
-
if (message.
|
909
|
-
if (!$util.isString(message.
|
910
|
-
return "
|
911
|
-
if (message.lfpInventory != null && message.hasOwnProperty("lfpInventory")) {
|
912
|
-
var error = $root.google.shopping.merchant.lfp.v1beta.LfpInventory.verify(message.lfpInventory);
|
913
|
-
if (error)
|
914
|
-
return "lfpInventory." + error;
|
915
|
-
}
|
2654
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
2655
|
+
if (!$util.isString(message.name))
|
2656
|
+
return "name: string expected";
|
916
2657
|
return null;
|
917
2658
|
};
|
918
2659
|
|
919
2660
|
/**
|
920
|
-
* Creates
|
2661
|
+
* Creates a GetLfpMerchantStateRequest message from a plain object. Also converts values to their respective internal types.
|
921
2662
|
* @function fromObject
|
922
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2663
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
923
2664
|
* @static
|
924
2665
|
* @param {Object.<string,*>} object Plain object
|
925
|
-
* @returns {google.shopping.merchant.lfp.v1beta.
|
2666
|
+
* @returns {google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest} GetLfpMerchantStateRequest
|
926
2667
|
*/
|
927
|
-
|
928
|
-
if (object instanceof $root.google.shopping.merchant.lfp.v1beta.
|
2668
|
+
GetLfpMerchantStateRequest.fromObject = function fromObject(object) {
|
2669
|
+
if (object instanceof $root.google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest)
|
929
2670
|
return object;
|
930
|
-
var message = new $root.google.shopping.merchant.lfp.v1beta.
|
931
|
-
if (object.
|
932
|
-
message.
|
933
|
-
if (object.lfpInventory != null) {
|
934
|
-
if (typeof object.lfpInventory !== "object")
|
935
|
-
throw TypeError(".google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest.lfpInventory: object expected");
|
936
|
-
message.lfpInventory = $root.google.shopping.merchant.lfp.v1beta.LfpInventory.fromObject(object.lfpInventory);
|
937
|
-
}
|
2671
|
+
var message = new $root.google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest();
|
2672
|
+
if (object.name != null)
|
2673
|
+
message.name = String(object.name);
|
938
2674
|
return message;
|
939
2675
|
};
|
940
2676
|
|
941
2677
|
/**
|
942
|
-
* Creates a plain object from
|
2678
|
+
* Creates a plain object from a GetLfpMerchantStateRequest message. Also converts values to other types if specified.
|
943
2679
|
* @function toObject
|
944
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2680
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
945
2681
|
* @static
|
946
|
-
* @param {google.shopping.merchant.lfp.v1beta.
|
2682
|
+
* @param {google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest} message GetLfpMerchantStateRequest
|
947
2683
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
948
2684
|
* @returns {Object.<string,*>} Plain object
|
949
2685
|
*/
|
950
|
-
|
2686
|
+
GetLfpMerchantStateRequest.toObject = function toObject(message, options) {
|
951
2687
|
if (!options)
|
952
2688
|
options = {};
|
953
2689
|
var object = {};
|
954
|
-
if (options.defaults)
|
955
|
-
object.
|
956
|
-
|
957
|
-
|
958
|
-
if (message.parent != null && message.hasOwnProperty("parent"))
|
959
|
-
object.parent = message.parent;
|
960
|
-
if (message.lfpInventory != null && message.hasOwnProperty("lfpInventory"))
|
961
|
-
object.lfpInventory = $root.google.shopping.merchant.lfp.v1beta.LfpInventory.toObject(message.lfpInventory, options);
|
2690
|
+
if (options.defaults)
|
2691
|
+
object.name = "";
|
2692
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
2693
|
+
object.name = message.name;
|
962
2694
|
return object;
|
963
2695
|
};
|
964
2696
|
|
965
2697
|
/**
|
966
|
-
* Converts this
|
2698
|
+
* Converts this GetLfpMerchantStateRequest to JSON.
|
967
2699
|
* @function toJSON
|
968
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2700
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
969
2701
|
* @instance
|
970
2702
|
* @returns {Object.<string,*>} JSON object
|
971
2703
|
*/
|
972
|
-
|
2704
|
+
GetLfpMerchantStateRequest.prototype.toJSON = function toJSON() {
|
973
2705
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
974
2706
|
};
|
975
2707
|
|
976
2708
|
/**
|
977
|
-
* Gets the default type url for
|
2709
|
+
* Gets the default type url for GetLfpMerchantStateRequest
|
978
2710
|
* @function getTypeUrl
|
979
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2711
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
980
2712
|
* @static
|
981
2713
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
982
2714
|
* @returns {string} The default type url
|
983
2715
|
*/
|
984
|
-
|
2716
|
+
GetLfpMerchantStateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
985
2717
|
if (typeUrlPrefix === undefined) {
|
986
2718
|
typeUrlPrefix = "type.googleapis.com";
|
987
2719
|
}
|
988
|
-
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.
|
2720
|
+
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest";
|
989
2721
|
};
|
990
2722
|
|
991
|
-
return
|
2723
|
+
return GetLfpMerchantStateRequest;
|
992
2724
|
})();
|
993
2725
|
|
994
2726
|
v1beta.LfpSaleService = (function() {
|
@@ -1193,23 +2925,13 @@
|
|
1193
2925
|
// OneOf field names bound to virtual getters and setters
|
1194
2926
|
var $oneOfFields;
|
1195
2927
|
|
1196
|
-
|
1197
|
-
* LfpSale _uid.
|
1198
|
-
* @member {"uid"|undefined} _uid
|
1199
|
-
* @memberof google.shopping.merchant.lfp.v1beta.LfpSale
|
1200
|
-
* @instance
|
1201
|
-
*/
|
2928
|
+
// Virtual OneOf for proto3 optional field
|
1202
2929
|
Object.defineProperty(LfpSale.prototype, "_uid", {
|
1203
2930
|
get: $util.oneOfGetter($oneOfFields = ["uid"]),
|
1204
2931
|
set: $util.oneOfSetter($oneOfFields)
|
1205
2932
|
});
|
1206
2933
|
|
1207
|
-
|
1208
|
-
* LfpSale _feedLabel.
|
1209
|
-
* @member {"feedLabel"|undefined} _feedLabel
|
1210
|
-
* @memberof google.shopping.merchant.lfp.v1beta.LfpSale
|
1211
|
-
* @instance
|
1212
|
-
*/
|
2934
|
+
// Virtual OneOf for proto3 optional field
|
1213
2935
|
Object.defineProperty(LfpSale.prototype, "_feedLabel", {
|
1214
2936
|
get: $util.oneOfGetter($oneOfFields = ["feedLabel"]),
|
1215
2937
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -1290,12 +3012,14 @@
|
|
1290
3012
|
* @throws {Error} If the payload is not a reader or valid buffer
|
1291
3013
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1292
3014
|
*/
|
1293
|
-
LfpSale.decode = function decode(reader, length) {
|
3015
|
+
LfpSale.decode = function decode(reader, length, error) {
|
1294
3016
|
if (!(reader instanceof $Reader))
|
1295
3017
|
reader = $Reader.create(reader);
|
1296
3018
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.LfpSale();
|
1297
3019
|
while (reader.pos < end) {
|
1298
3020
|
var tag = reader.uint32();
|
3021
|
+
if (tag === error)
|
3022
|
+
break;
|
1299
3023
|
switch (tag >>> 3) {
|
1300
3024
|
case 1: {
|
1301
3025
|
message.name = reader.string();
|
@@ -1684,12 +3408,14 @@
|
|
1684
3408
|
* @throws {Error} If the payload is not a reader or valid buffer
|
1685
3409
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1686
3410
|
*/
|
1687
|
-
InsertLfpSaleRequest.decode = function decode(reader, length) {
|
3411
|
+
InsertLfpSaleRequest.decode = function decode(reader, length, error) {
|
1688
3412
|
if (!(reader instanceof $Reader))
|
1689
3413
|
reader = $Reader.create(reader);
|
1690
3414
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.InsertLfpSaleRequest();
|
1691
3415
|
while (reader.pos < end) {
|
1692
3416
|
var tag = reader.uint32();
|
3417
|
+
if (tag === error)
|
3418
|
+
break;
|
1693
3419
|
switch (tag >>> 3) {
|
1694
3420
|
case 1: {
|
1695
3421
|
message.parent = reader.string();
|
@@ -2113,56 +3839,31 @@
|
|
2113
3839
|
// OneOf field names bound to virtual getters and setters
|
2114
3840
|
var $oneOfFields;
|
2115
3841
|
|
2116
|
-
|
2117
|
-
* LfpStore _storeName.
|
2118
|
-
* @member {"storeName"|undefined} _storeName
|
2119
|
-
* @memberof google.shopping.merchant.lfp.v1beta.LfpStore
|
2120
|
-
* @instance
|
2121
|
-
*/
|
3842
|
+
// Virtual OneOf for proto3 optional field
|
2122
3843
|
Object.defineProperty(LfpStore.prototype, "_storeName", {
|
2123
3844
|
get: $util.oneOfGetter($oneOfFields = ["storeName"]),
|
2124
3845
|
set: $util.oneOfSetter($oneOfFields)
|
2125
3846
|
});
|
2126
3847
|
|
2127
|
-
|
2128
|
-
* LfpStore _phoneNumber.
|
2129
|
-
* @member {"phoneNumber"|undefined} _phoneNumber
|
2130
|
-
* @memberof google.shopping.merchant.lfp.v1beta.LfpStore
|
2131
|
-
* @instance
|
2132
|
-
*/
|
3848
|
+
// Virtual OneOf for proto3 optional field
|
2133
3849
|
Object.defineProperty(LfpStore.prototype, "_phoneNumber", {
|
2134
3850
|
get: $util.oneOfGetter($oneOfFields = ["phoneNumber"]),
|
2135
3851
|
set: $util.oneOfSetter($oneOfFields)
|
2136
3852
|
});
|
2137
3853
|
|
2138
|
-
|
2139
|
-
* LfpStore _websiteUri.
|
2140
|
-
* @member {"websiteUri"|undefined} _websiteUri
|
2141
|
-
* @memberof google.shopping.merchant.lfp.v1beta.LfpStore
|
2142
|
-
* @instance
|
2143
|
-
*/
|
3854
|
+
// Virtual OneOf for proto3 optional field
|
2144
3855
|
Object.defineProperty(LfpStore.prototype, "_websiteUri", {
|
2145
3856
|
get: $util.oneOfGetter($oneOfFields = ["websiteUri"]),
|
2146
3857
|
set: $util.oneOfSetter($oneOfFields)
|
2147
3858
|
});
|
2148
3859
|
|
2149
|
-
|
2150
|
-
* LfpStore _placeId.
|
2151
|
-
* @member {"placeId"|undefined} _placeId
|
2152
|
-
* @memberof google.shopping.merchant.lfp.v1beta.LfpStore
|
2153
|
-
* @instance
|
2154
|
-
*/
|
3860
|
+
// Virtual OneOf for proto3 optional field
|
2155
3861
|
Object.defineProperty(LfpStore.prototype, "_placeId", {
|
2156
3862
|
get: $util.oneOfGetter($oneOfFields = ["placeId"]),
|
2157
3863
|
set: $util.oneOfSetter($oneOfFields)
|
2158
3864
|
});
|
2159
3865
|
|
2160
|
-
|
2161
|
-
* LfpStore _matchingStateHint.
|
2162
|
-
* @member {"matchingStateHint"|undefined} _matchingStateHint
|
2163
|
-
* @memberof google.shopping.merchant.lfp.v1beta.LfpStore
|
2164
|
-
* @instance
|
2165
|
-
*/
|
3866
|
+
// Virtual OneOf for proto3 optional field
|
2166
3867
|
Object.defineProperty(LfpStore.prototype, "_matchingStateHint", {
|
2167
3868
|
get: $util.oneOfGetter($oneOfFields = ["matchingStateHint"]),
|
2168
3869
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -2242,12 +3943,14 @@
|
|
2242
3943
|
* @throws {Error} If the payload is not a reader or valid buffer
|
2243
3944
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2244
3945
|
*/
|
2245
|
-
LfpStore.decode = function decode(reader, length) {
|
3946
|
+
LfpStore.decode = function decode(reader, length, error) {
|
2246
3947
|
if (!(reader instanceof $Reader))
|
2247
3948
|
reader = $Reader.create(reader);
|
2248
3949
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.LfpStore();
|
2249
3950
|
while (reader.pos < end) {
|
2250
3951
|
var tag = reader.uint32();
|
3952
|
+
if (tag === error)
|
3953
|
+
break;
|
2251
3954
|
switch (tag >>> 3) {
|
2252
3955
|
case 1: {
|
2253
3956
|
message.name = reader.string();
|
@@ -2656,12 +4359,14 @@
|
|
2656
4359
|
* @throws {Error} If the payload is not a reader or valid buffer
|
2657
4360
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2658
4361
|
*/
|
2659
|
-
GetLfpStoreRequest.decode = function decode(reader, length) {
|
4362
|
+
GetLfpStoreRequest.decode = function decode(reader, length, error) {
|
2660
4363
|
if (!(reader instanceof $Reader))
|
2661
4364
|
reader = $Reader.create(reader);
|
2662
4365
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.GetLfpStoreRequest();
|
2663
4366
|
while (reader.pos < end) {
|
2664
4367
|
var tag = reader.uint32();
|
4368
|
+
if (tag === error)
|
4369
|
+
break;
|
2665
4370
|
switch (tag >>> 3) {
|
2666
4371
|
case 1: {
|
2667
4372
|
message.name = reader.string();
|
@@ -2870,12 +4575,14 @@
|
|
2870
4575
|
* @throws {Error} If the payload is not a reader or valid buffer
|
2871
4576
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2872
4577
|
*/
|
2873
|
-
InsertLfpStoreRequest.decode = function decode(reader, length) {
|
4578
|
+
InsertLfpStoreRequest.decode = function decode(reader, length, error) {
|
2874
4579
|
if (!(reader instanceof $Reader))
|
2875
4580
|
reader = $Reader.create(reader);
|
2876
4581
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.InsertLfpStoreRequest();
|
2877
4582
|
while (reader.pos < end) {
|
2878
4583
|
var tag = reader.uint32();
|
4584
|
+
if (tag === error)
|
4585
|
+
break;
|
2879
4586
|
switch (tag >>> 3) {
|
2880
4587
|
case 1: {
|
2881
4588
|
message.parent = reader.string();
|
@@ -3091,12 +4798,14 @@
|
|
3091
4798
|
* @throws {Error} If the payload is not a reader or valid buffer
|
3092
4799
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3093
4800
|
*/
|
3094
|
-
DeleteLfpStoreRequest.decode = function decode(reader, length) {
|
4801
|
+
DeleteLfpStoreRequest.decode = function decode(reader, length, error) {
|
3095
4802
|
if (!(reader instanceof $Reader))
|
3096
4803
|
reader = $Reader.create(reader);
|
3097
4804
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.DeleteLfpStoreRequest();
|
3098
4805
|
while (reader.pos < end) {
|
3099
4806
|
var tag = reader.uint32();
|
4807
|
+
if (tag === error)
|
4808
|
+
break;
|
3100
4809
|
switch (tag >>> 3) {
|
3101
4810
|
case 1: {
|
3102
4811
|
message.name = reader.string();
|
@@ -3327,12 +5036,14 @@
|
|
3327
5036
|
* @throws {Error} If the payload is not a reader or valid buffer
|
3328
5037
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3329
5038
|
*/
|
3330
|
-
ListLfpStoresRequest.decode = function decode(reader, length) {
|
5039
|
+
ListLfpStoresRequest.decode = function decode(reader, length, error) {
|
3331
5040
|
if (!(reader instanceof $Reader))
|
3332
5041
|
reader = $Reader.create(reader);
|
3333
5042
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.ListLfpStoresRequest();
|
3334
5043
|
while (reader.pos < end) {
|
3335
5044
|
var tag = reader.uint32();
|
5045
|
+
if (tag === error)
|
5046
|
+
break;
|
3336
5047
|
switch (tag >>> 3) {
|
3337
5048
|
case 1: {
|
3338
5049
|
message.parent = reader.string();
|
@@ -3594,12 +5305,14 @@
|
|
3594
5305
|
* @throws {Error} If the payload is not a reader or valid buffer
|
3595
5306
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3596
5307
|
*/
|
3597
|
-
ListLfpStoresResponse.decode = function decode(reader, length) {
|
5308
|
+
ListLfpStoresResponse.decode = function decode(reader, length, error) {
|
3598
5309
|
if (!(reader instanceof $Reader))
|
3599
5310
|
reader = $Reader.create(reader);
|
3600
5311
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.ListLfpStoresResponse();
|
3601
5312
|
while (reader.pos < end) {
|
3602
5313
|
var tag = reader.uint32();
|
5314
|
+
if (tag === error)
|
5315
|
+
break;
|
3603
5316
|
switch (tag >>> 3) {
|
3604
5317
|
case 1: {
|
3605
5318
|
if (!(message.lfpStores && message.lfpStores.length))
|
@@ -3806,12 +5519,7 @@
|
|
3806
5519
|
// OneOf field names bound to virtual getters and setters
|
3807
5520
|
var $oneOfFields;
|
3808
5521
|
|
3809
|
-
|
3810
|
-
* Weight _amountMicros.
|
3811
|
-
* @member {"amountMicros"|undefined} _amountMicros
|
3812
|
-
* @memberof google.shopping.type.Weight
|
3813
|
-
* @instance
|
3814
|
-
*/
|
5522
|
+
// Virtual OneOf for proto3 optional field
|
3815
5523
|
Object.defineProperty(Weight.prototype, "_amountMicros", {
|
3816
5524
|
get: $util.oneOfGetter($oneOfFields = ["amountMicros"]),
|
3817
5525
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -3872,12 +5580,14 @@
|
|
3872
5580
|
* @throws {Error} If the payload is not a reader or valid buffer
|
3873
5581
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3874
5582
|
*/
|
3875
|
-
Weight.decode = function decode(reader, length) {
|
5583
|
+
Weight.decode = function decode(reader, length, error) {
|
3876
5584
|
if (!(reader instanceof $Reader))
|
3877
5585
|
reader = $Reader.create(reader);
|
3878
5586
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.type.Weight();
|
3879
5587
|
while (reader.pos < end) {
|
3880
5588
|
var tag = reader.uint32();
|
5589
|
+
if (tag === error)
|
5590
|
+
break;
|
3881
5591
|
switch (tag >>> 3) {
|
3882
5592
|
case 1: {
|
3883
5593
|
message.amountMicros = reader.int64();
|
@@ -4101,23 +5811,13 @@
|
|
4101
5811
|
// OneOf field names bound to virtual getters and setters
|
4102
5812
|
var $oneOfFields;
|
4103
5813
|
|
4104
|
-
|
4105
|
-
* Price _amountMicros.
|
4106
|
-
* @member {"amountMicros"|undefined} _amountMicros
|
4107
|
-
* @memberof google.shopping.type.Price
|
4108
|
-
* @instance
|
4109
|
-
*/
|
5814
|
+
// Virtual OneOf for proto3 optional field
|
4110
5815
|
Object.defineProperty(Price.prototype, "_amountMicros", {
|
4111
5816
|
get: $util.oneOfGetter($oneOfFields = ["amountMicros"]),
|
4112
5817
|
set: $util.oneOfSetter($oneOfFields)
|
4113
5818
|
});
|
4114
5819
|
|
4115
|
-
|
4116
|
-
* Price _currencyCode.
|
4117
|
-
* @member {"currencyCode"|undefined} _currencyCode
|
4118
|
-
* @memberof google.shopping.type.Price
|
4119
|
-
* @instance
|
4120
|
-
*/
|
5820
|
+
// Virtual OneOf for proto3 optional field
|
4121
5821
|
Object.defineProperty(Price.prototype, "_currencyCode", {
|
4122
5822
|
get: $util.oneOfGetter($oneOfFields = ["currencyCode"]),
|
4123
5823
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -4178,12 +5878,14 @@
|
|
4178
5878
|
* @throws {Error} If the payload is not a reader or valid buffer
|
4179
5879
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4180
5880
|
*/
|
4181
|
-
Price.decode = function decode(reader, length) {
|
5881
|
+
Price.decode = function decode(reader, length, error) {
|
4182
5882
|
if (!(reader instanceof $Reader))
|
4183
5883
|
reader = $Reader.create(reader);
|
4184
5884
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.type.Price();
|
4185
5885
|
while (reader.pos < end) {
|
4186
5886
|
var tag = reader.uint32();
|
5887
|
+
if (tag === error)
|
5888
|
+
break;
|
4187
5889
|
switch (tag >>> 3) {
|
4188
5890
|
case 1: {
|
4189
5891
|
message.amountMicros = reader.int64();
|
@@ -4380,23 +6082,13 @@
|
|
4380
6082
|
// OneOf field names bound to virtual getters and setters
|
4381
6083
|
var $oneOfFields;
|
4382
6084
|
|
4383
|
-
|
4384
|
-
* CustomAttribute _name.
|
4385
|
-
* @member {"name"|undefined} _name
|
4386
|
-
* @memberof google.shopping.type.CustomAttribute
|
4387
|
-
* @instance
|
4388
|
-
*/
|
6085
|
+
// Virtual OneOf for proto3 optional field
|
4389
6086
|
Object.defineProperty(CustomAttribute.prototype, "_name", {
|
4390
6087
|
get: $util.oneOfGetter($oneOfFields = ["name"]),
|
4391
6088
|
set: $util.oneOfSetter($oneOfFields)
|
4392
6089
|
});
|
4393
6090
|
|
4394
|
-
|
4395
|
-
* CustomAttribute _value.
|
4396
|
-
* @member {"value"|undefined} _value
|
4397
|
-
* @memberof google.shopping.type.CustomAttribute
|
4398
|
-
* @instance
|
4399
|
-
*/
|
6091
|
+
// Virtual OneOf for proto3 optional field
|
4400
6092
|
Object.defineProperty(CustomAttribute.prototype, "_value", {
|
4401
6093
|
get: $util.oneOfGetter($oneOfFields = ["value"]),
|
4402
6094
|
set: $util.oneOfSetter($oneOfFields)
|
@@ -4460,12 +6152,14 @@
|
|
4460
6152
|
* @throws {Error} If the payload is not a reader or valid buffer
|
4461
6153
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4462
6154
|
*/
|
4463
|
-
CustomAttribute.decode = function decode(reader, length) {
|
6155
|
+
CustomAttribute.decode = function decode(reader, length, error) {
|
4464
6156
|
if (!(reader instanceof $Reader))
|
4465
6157
|
reader = $Reader.create(reader);
|
4466
6158
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.type.CustomAttribute();
|
4467
6159
|
while (reader.pos < end) {
|
4468
6160
|
var tag = reader.uint32();
|
6161
|
+
if (tag === error)
|
6162
|
+
break;
|
4469
6163
|
switch (tag >>> 3) {
|
4470
6164
|
case 1: {
|
4471
6165
|
message.name = reader.string();
|
@@ -4704,12 +6398,14 @@
|
|
4704
6398
|
* @throws {Error} If the payload is not a reader or valid buffer
|
4705
6399
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4706
6400
|
*/
|
4707
|
-
Destination.decode = function decode(reader, length) {
|
6401
|
+
Destination.decode = function decode(reader, length, error) {
|
4708
6402
|
if (!(reader instanceof $Reader))
|
4709
6403
|
reader = $Reader.create(reader);
|
4710
6404
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.type.Destination();
|
4711
6405
|
while (reader.pos < end) {
|
4712
6406
|
var tag = reader.uint32();
|
6407
|
+
if (tag === error)
|
6408
|
+
break;
|
4713
6409
|
switch (tag >>> 3) {
|
4714
6410
|
default:
|
4715
6411
|
reader.skipType(tag & 7);
|
@@ -4903,12 +6599,14 @@
|
|
4903
6599
|
* @throws {Error} If the payload is not a reader or valid buffer
|
4904
6600
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4905
6601
|
*/
|
4906
|
-
ReportingContext.decode = function decode(reader, length) {
|
6602
|
+
ReportingContext.decode = function decode(reader, length, error) {
|
4907
6603
|
if (!(reader instanceof $Reader))
|
4908
6604
|
reader = $Reader.create(reader);
|
4909
6605
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.type.ReportingContext();
|
4910
6606
|
while (reader.pos < end) {
|
4911
6607
|
var tag = reader.uint32();
|
6608
|
+
if (tag === error)
|
6609
|
+
break;
|
4912
6610
|
switch (tag >>> 3) {
|
4913
6611
|
default:
|
4914
6612
|
reader.skipType(tag & 7);
|
@@ -5118,12 +6816,14 @@
|
|
5118
6816
|
* @throws {Error} If the payload is not a reader or valid buffer
|
5119
6817
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5120
6818
|
*/
|
5121
|
-
Channel.decode = function decode(reader, length) {
|
6819
|
+
Channel.decode = function decode(reader, length, error) {
|
5122
6820
|
if (!(reader instanceof $Reader))
|
5123
6821
|
reader = $Reader.create(reader);
|
5124
6822
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.type.Channel();
|
5125
6823
|
while (reader.pos < end) {
|
5126
6824
|
var tag = reader.uint32();
|
6825
|
+
if (tag === error)
|
6826
|
+
break;
|
5127
6827
|
switch (tag >>> 3) {
|
5128
6828
|
default:
|
5129
6829
|
reader.skipType(tag & 7);
|
@@ -5348,12 +7048,14 @@
|
|
5348
7048
|
* @throws {Error} If the payload is not a reader or valid buffer
|
5349
7049
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5350
7050
|
*/
|
5351
|
-
Http.decode = function decode(reader, length) {
|
7051
|
+
Http.decode = function decode(reader, length, error) {
|
5352
7052
|
if (!(reader instanceof $Reader))
|
5353
7053
|
reader = $Reader.create(reader);
|
5354
7054
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http();
|
5355
7055
|
while (reader.pos < end) {
|
5356
7056
|
var tag = reader.uint32();
|
7057
|
+
if (tag === error)
|
7058
|
+
break;
|
5357
7059
|
switch (tag >>> 3) {
|
5358
7060
|
case 1: {
|
5359
7061
|
if (!(message.rules && message.rules.length))
|
@@ -5698,12 +7400,14 @@
|
|
5698
7400
|
* @throws {Error} If the payload is not a reader or valid buffer
|
5699
7401
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5700
7402
|
*/
|
5701
|
-
HttpRule.decode = function decode(reader, length) {
|
7403
|
+
HttpRule.decode = function decode(reader, length, error) {
|
5702
7404
|
if (!(reader instanceof $Reader))
|
5703
7405
|
reader = $Reader.create(reader);
|
5704
7406
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule();
|
5705
7407
|
while (reader.pos < end) {
|
5706
7408
|
var tag = reader.uint32();
|
7409
|
+
if (tag === error)
|
7410
|
+
break;
|
5707
7411
|
switch (tag >>> 3) {
|
5708
7412
|
case 1: {
|
5709
7413
|
message.selector = reader.string();
|
@@ -6082,12 +7786,14 @@
|
|
6082
7786
|
* @throws {Error} If the payload is not a reader or valid buffer
|
6083
7787
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6084
7788
|
*/
|
6085
|
-
CustomHttpPattern.decode = function decode(reader, length) {
|
7789
|
+
CustomHttpPattern.decode = function decode(reader, length, error) {
|
6086
7790
|
if (!(reader instanceof $Reader))
|
6087
7791
|
reader = $Reader.create(reader);
|
6088
7792
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern();
|
6089
7793
|
while (reader.pos < end) {
|
6090
7794
|
var tag = reader.uint32();
|
7795
|
+
if (tag === error)
|
7796
|
+
break;
|
6091
7797
|
switch (tag >>> 3) {
|
6092
7798
|
case 1: {
|
6093
7799
|
message.kind = reader.string();
|
@@ -6314,12 +8020,14 @@
|
|
6314
8020
|
* @throws {Error} If the payload is not a reader or valid buffer
|
6315
8021
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6316
8022
|
*/
|
6317
|
-
CommonLanguageSettings.decode = function decode(reader, length) {
|
8023
|
+
CommonLanguageSettings.decode = function decode(reader, length, error) {
|
6318
8024
|
if (!(reader instanceof $Reader))
|
6319
8025
|
reader = $Reader.create(reader);
|
6320
8026
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings();
|
6321
8027
|
while (reader.pos < end) {
|
6322
8028
|
var tag = reader.uint32();
|
8029
|
+
if (tag === error)
|
8030
|
+
break;
|
6323
8031
|
switch (tag >>> 3) {
|
6324
8032
|
case 1: {
|
6325
8033
|
message.referenceDocsUri = reader.string();
|
@@ -6683,12 +8391,14 @@
|
|
6683
8391
|
* @throws {Error} If the payload is not a reader or valid buffer
|
6684
8392
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6685
8393
|
*/
|
6686
|
-
ClientLibrarySettings.decode = function decode(reader, length) {
|
8394
|
+
ClientLibrarySettings.decode = function decode(reader, length, error) {
|
6687
8395
|
if (!(reader instanceof $Reader))
|
6688
8396
|
reader = $Reader.create(reader);
|
6689
8397
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings();
|
6690
8398
|
while (reader.pos < end) {
|
6691
8399
|
var tag = reader.uint32();
|
8400
|
+
if (tag === error)
|
8401
|
+
break;
|
6692
8402
|
switch (tag >>> 3) {
|
6693
8403
|
case 1: {
|
6694
8404
|
message.version = reader.string();
|
@@ -7027,6 +8737,7 @@
|
|
7027
8737
|
* @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
|
7028
8738
|
* @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
|
7029
8739
|
* @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri
|
8740
|
+
* @property {string|null} [restReferenceDocumentationUri] Publishing restReferenceDocumentationUri
|
7030
8741
|
*/
|
7031
8742
|
|
7032
8743
|
/**
|
@@ -7127,6 +8838,14 @@
|
|
7127
8838
|
*/
|
7128
8839
|
Publishing.prototype.protoReferenceDocumentationUri = "";
|
7129
8840
|
|
8841
|
+
/**
|
8842
|
+
* Publishing restReferenceDocumentationUri.
|
8843
|
+
* @member {string} restReferenceDocumentationUri
|
8844
|
+
* @memberof google.api.Publishing
|
8845
|
+
* @instance
|
8846
|
+
*/
|
8847
|
+
Publishing.prototype.restReferenceDocumentationUri = "";
|
8848
|
+
|
7130
8849
|
/**
|
7131
8850
|
* Creates a new Publishing instance using the specified properties.
|
7132
8851
|
* @function create
|
@@ -7174,6 +8893,8 @@
|
|
7174
8893
|
$root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
|
7175
8894
|
if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri"))
|
7176
8895
|
writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri);
|
8896
|
+
if (message.restReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "restReferenceDocumentationUri"))
|
8897
|
+
writer.uint32(/* id 111, wireType 2 =*/890).string(message.restReferenceDocumentationUri);
|
7177
8898
|
return writer;
|
7178
8899
|
};
|
7179
8900
|
|
@@ -7201,12 +8922,14 @@
|
|
7201
8922
|
* @throws {Error} If the payload is not a reader or valid buffer
|
7202
8923
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7203
8924
|
*/
|
7204
|
-
Publishing.decode = function decode(reader, length) {
|
8925
|
+
Publishing.decode = function decode(reader, length, error) {
|
7205
8926
|
if (!(reader instanceof $Reader))
|
7206
8927
|
reader = $Reader.create(reader);
|
7207
8928
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing();
|
7208
8929
|
while (reader.pos < end) {
|
7209
8930
|
var tag = reader.uint32();
|
8931
|
+
if (tag === error)
|
8932
|
+
break;
|
7210
8933
|
switch (tag >>> 3) {
|
7211
8934
|
case 2: {
|
7212
8935
|
if (!(message.methodSettings && message.methodSettings.length))
|
@@ -7254,6 +8977,10 @@
|
|
7254
8977
|
message.protoReferenceDocumentationUri = reader.string();
|
7255
8978
|
break;
|
7256
8979
|
}
|
8980
|
+
case 111: {
|
8981
|
+
message.restReferenceDocumentationUri = reader.string();
|
8982
|
+
break;
|
8983
|
+
}
|
7257
8984
|
default:
|
7258
8985
|
reader.skipType(tag & 7);
|
7259
8986
|
break;
|
@@ -7346,6 +9073,9 @@
|
|
7346
9073
|
if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
|
7347
9074
|
if (!$util.isString(message.protoReferenceDocumentationUri))
|
7348
9075
|
return "protoReferenceDocumentationUri: string expected";
|
9076
|
+
if (message.restReferenceDocumentationUri != null && message.hasOwnProperty("restReferenceDocumentationUri"))
|
9077
|
+
if (!$util.isString(message.restReferenceDocumentationUri))
|
9078
|
+
return "restReferenceDocumentationUri: string expected";
|
7349
9079
|
return null;
|
7350
9080
|
};
|
7351
9081
|
|
@@ -7440,6 +9170,8 @@
|
|
7440
9170
|
}
|
7441
9171
|
if (object.protoReferenceDocumentationUri != null)
|
7442
9172
|
message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri);
|
9173
|
+
if (object.restReferenceDocumentationUri != null)
|
9174
|
+
message.restReferenceDocumentationUri = String(object.restReferenceDocumentationUri);
|
7443
9175
|
return message;
|
7444
9176
|
};
|
7445
9177
|
|
@@ -7469,6 +9201,7 @@
|
|
7469
9201
|
object.docTagPrefix = "";
|
7470
9202
|
object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
|
7471
9203
|
object.protoReferenceDocumentationUri = "";
|
9204
|
+
object.restReferenceDocumentationUri = "";
|
7472
9205
|
}
|
7473
9206
|
if (message.methodSettings && message.methodSettings.length) {
|
7474
9207
|
object.methodSettings = [];
|
@@ -7499,6 +9232,8 @@
|
|
7499
9232
|
}
|
7500
9233
|
if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
|
7501
9234
|
object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri;
|
9235
|
+
if (message.restReferenceDocumentationUri != null && message.hasOwnProperty("restReferenceDocumentationUri"))
|
9236
|
+
object.restReferenceDocumentationUri = message.restReferenceDocumentationUri;
|
7502
9237
|
return object;
|
7503
9238
|
};
|
7504
9239
|
|
@@ -7640,12 +9375,14 @@
|
|
7640
9375
|
* @throws {Error} If the payload is not a reader or valid buffer
|
7641
9376
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7642
9377
|
*/
|
7643
|
-
JavaSettings.decode = function decode(reader, length) {
|
9378
|
+
JavaSettings.decode = function decode(reader, length, error) {
|
7644
9379
|
if (!(reader instanceof $Reader))
|
7645
9380
|
reader = $Reader.create(reader);
|
7646
9381
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value;
|
7647
9382
|
while (reader.pos < end) {
|
7648
9383
|
var tag = reader.uint32();
|
9384
|
+
if (tag === error)
|
9385
|
+
break;
|
7649
9386
|
switch (tag >>> 3) {
|
7650
9387
|
case 1: {
|
7651
9388
|
message.libraryPackage = reader.string();
|
@@ -7907,12 +9644,14 @@
|
|
7907
9644
|
* @throws {Error} If the payload is not a reader or valid buffer
|
7908
9645
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7909
9646
|
*/
|
7910
|
-
CppSettings.decode = function decode(reader, length) {
|
9647
|
+
CppSettings.decode = function decode(reader, length, error) {
|
7911
9648
|
if (!(reader instanceof $Reader))
|
7912
9649
|
reader = $Reader.create(reader);
|
7913
9650
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings();
|
7914
9651
|
while (reader.pos < end) {
|
7915
9652
|
var tag = reader.uint32();
|
9653
|
+
if (tag === error)
|
9654
|
+
break;
|
7916
9655
|
switch (tag >>> 3) {
|
7917
9656
|
case 1: {
|
7918
9657
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
@@ -8115,12 +9854,14 @@
|
|
8115
9854
|
* @throws {Error} If the payload is not a reader or valid buffer
|
8116
9855
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8117
9856
|
*/
|
8118
|
-
PhpSettings.decode = function decode(reader, length) {
|
9857
|
+
PhpSettings.decode = function decode(reader, length, error) {
|
8119
9858
|
if (!(reader instanceof $Reader))
|
8120
9859
|
reader = $Reader.create(reader);
|
8121
9860
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings();
|
8122
9861
|
while (reader.pos < end) {
|
8123
9862
|
var tag = reader.uint32();
|
9863
|
+
if (tag === error)
|
9864
|
+
break;
|
8124
9865
|
switch (tag >>> 3) {
|
8125
9866
|
case 1: {
|
8126
9867
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
@@ -8323,12 +10064,14 @@
|
|
8323
10064
|
* @throws {Error} If the payload is not a reader or valid buffer
|
8324
10065
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8325
10066
|
*/
|
8326
|
-
PythonSettings.decode = function decode(reader, length) {
|
10067
|
+
PythonSettings.decode = function decode(reader, length, error) {
|
8327
10068
|
if (!(reader instanceof $Reader))
|
8328
10069
|
reader = $Reader.create(reader);
|
8329
10070
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings();
|
8330
10071
|
while (reader.pos < end) {
|
8331
10072
|
var tag = reader.uint32();
|
10073
|
+
if (tag === error)
|
10074
|
+
break;
|
8332
10075
|
switch (tag >>> 3) {
|
8333
10076
|
case 1: {
|
8334
10077
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
@@ -8531,12 +10274,14 @@
|
|
8531
10274
|
* @throws {Error} If the payload is not a reader or valid buffer
|
8532
10275
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8533
10276
|
*/
|
8534
|
-
NodeSettings.decode = function decode(reader, length) {
|
10277
|
+
NodeSettings.decode = function decode(reader, length, error) {
|
8535
10278
|
if (!(reader instanceof $Reader))
|
8536
10279
|
reader = $Reader.create(reader);
|
8537
10280
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings();
|
8538
10281
|
while (reader.pos < end) {
|
8539
10282
|
var tag = reader.uint32();
|
10283
|
+
if (tag === error)
|
10284
|
+
break;
|
8540
10285
|
switch (tag >>> 3) {
|
8541
10286
|
case 1: {
|
8542
10287
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
@@ -8804,12 +10549,14 @@
|
|
8804
10549
|
* @throws {Error} If the payload is not a reader or valid buffer
|
8805
10550
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8806
10551
|
*/
|
8807
|
-
DotnetSettings.decode = function decode(reader, length) {
|
10552
|
+
DotnetSettings.decode = function decode(reader, length, error) {
|
8808
10553
|
if (!(reader instanceof $Reader))
|
8809
10554
|
reader = $Reader.create(reader);
|
8810
10555
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings(), key, value;
|
8811
10556
|
while (reader.pos < end) {
|
8812
10557
|
var tag = reader.uint32();
|
10558
|
+
if (tag === error)
|
10559
|
+
break;
|
8813
10560
|
switch (tag >>> 3) {
|
8814
10561
|
case 1: {
|
8815
10562
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
@@ -9183,12 +10930,14 @@
|
|
9183
10930
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9184
10931
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9185
10932
|
*/
|
9186
|
-
RubySettings.decode = function decode(reader, length) {
|
10933
|
+
RubySettings.decode = function decode(reader, length, error) {
|
9187
10934
|
if (!(reader instanceof $Reader))
|
9188
10935
|
reader = $Reader.create(reader);
|
9189
10936
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings();
|
9190
10937
|
while (reader.pos < end) {
|
9191
10938
|
var tag = reader.uint32();
|
10939
|
+
if (tag === error)
|
10940
|
+
break;
|
9192
10941
|
switch (tag >>> 3) {
|
9193
10942
|
case 1: {
|
9194
10943
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
@@ -9391,12 +11140,14 @@
|
|
9391
11140
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9392
11141
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9393
11142
|
*/
|
9394
|
-
GoSettings.decode = function decode(reader, length) {
|
11143
|
+
GoSettings.decode = function decode(reader, length, error) {
|
9395
11144
|
if (!(reader instanceof $Reader))
|
9396
11145
|
reader = $Reader.create(reader);
|
9397
11146
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
|
9398
11147
|
while (reader.pos < end) {
|
9399
11148
|
var tag = reader.uint32();
|
11149
|
+
if (tag === error)
|
11150
|
+
break;
|
9400
11151
|
switch (tag >>> 3) {
|
9401
11152
|
case 1: {
|
9402
11153
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
@@ -9623,12 +11374,14 @@
|
|
9623
11374
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9624
11375
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9625
11376
|
*/
|
9626
|
-
MethodSettings.decode = function decode(reader, length) {
|
11377
|
+
MethodSettings.decode = function decode(reader, length, error) {
|
9627
11378
|
if (!(reader instanceof $Reader))
|
9628
11379
|
reader = $Reader.create(reader);
|
9629
11380
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings();
|
9630
11381
|
while (reader.pos < end) {
|
9631
11382
|
var tag = reader.uint32();
|
11383
|
+
if (tag === error)
|
11384
|
+
break;
|
9632
11385
|
switch (tag >>> 3) {
|
9633
11386
|
case 1: {
|
9634
11387
|
message.selector = reader.string();
|
@@ -9901,12 +11654,14 @@
|
|
9901
11654
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9902
11655
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9903
11656
|
*/
|
9904
|
-
LongRunning.decode = function decode(reader, length) {
|
11657
|
+
LongRunning.decode = function decode(reader, length, error) {
|
9905
11658
|
if (!(reader instanceof $Reader))
|
9906
11659
|
reader = $Reader.create(reader);
|
9907
11660
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning();
|
9908
11661
|
while (reader.pos < end) {
|
9909
11662
|
var tag = reader.uint32();
|
11663
|
+
if (tag === error)
|
11664
|
+
break;
|
9910
11665
|
switch (tag >>> 3) {
|
9911
11666
|
case 1: {
|
9912
11667
|
message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
@@ -10328,12 +12083,14 @@
|
|
10328
12083
|
* @throws {Error} If the payload is not a reader or valid buffer
|
10329
12084
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10330
12085
|
*/
|
10331
|
-
ResourceDescriptor.decode = function decode(reader, length) {
|
12086
|
+
ResourceDescriptor.decode = function decode(reader, length, error) {
|
10332
12087
|
if (!(reader instanceof $Reader))
|
10333
12088
|
reader = $Reader.create(reader);
|
10334
12089
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor();
|
10335
12090
|
while (reader.pos < end) {
|
10336
12091
|
var tag = reader.uint32();
|
12092
|
+
if (tag === error)
|
12093
|
+
break;
|
10337
12094
|
switch (tag >>> 3) {
|
10338
12095
|
case 1: {
|
10339
12096
|
message.type = reader.string();
|
@@ -10723,12 +12480,14 @@
|
|
10723
12480
|
* @throws {Error} If the payload is not a reader or valid buffer
|
10724
12481
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10725
12482
|
*/
|
10726
|
-
ResourceReference.decode = function decode(reader, length) {
|
12483
|
+
ResourceReference.decode = function decode(reader, length, error) {
|
10727
12484
|
if (!(reader instanceof $Reader))
|
10728
12485
|
reader = $Reader.create(reader);
|
10729
12486
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference();
|
10730
12487
|
while (reader.pos < end) {
|
10731
12488
|
var tag = reader.uint32();
|
12489
|
+
if (tag === error)
|
12490
|
+
break;
|
10732
12491
|
switch (tag >>> 3) {
|
10733
12492
|
case 1: {
|
10734
12493
|
message.type = reader.string();
|
@@ -10939,12 +12698,14 @@
|
|
10939
12698
|
* @throws {Error} If the payload is not a reader or valid buffer
|
10940
12699
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10941
12700
|
*/
|
10942
|
-
FieldInfo.decode = function decode(reader, length) {
|
12701
|
+
FieldInfo.decode = function decode(reader, length, error) {
|
10943
12702
|
if (!(reader instanceof $Reader))
|
10944
12703
|
reader = $Reader.create(reader);
|
10945
12704
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.FieldInfo();
|
10946
12705
|
while (reader.pos < end) {
|
10947
12706
|
var tag = reader.uint32();
|
12707
|
+
if (tag === error)
|
12708
|
+
break;
|
10948
12709
|
switch (tag >>> 3) {
|
10949
12710
|
case 1: {
|
10950
12711
|
message.format = reader.int32();
|
@@ -11210,12 +12971,14 @@
|
|
11210
12971
|
* @throws {Error} If the payload is not a reader or valid buffer
|
11211
12972
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11212
12973
|
*/
|
11213
|
-
FileDescriptorSet.decode = function decode(reader, length) {
|
12974
|
+
FileDescriptorSet.decode = function decode(reader, length, error) {
|
11214
12975
|
if (!(reader instanceof $Reader))
|
11215
12976
|
reader = $Reader.create(reader);
|
11216
12977
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet();
|
11217
12978
|
while (reader.pos < end) {
|
11218
12979
|
var tag = reader.uint32();
|
12980
|
+
if (tag === error)
|
12981
|
+
break;
|
11219
12982
|
switch (tag >>> 3) {
|
11220
12983
|
case 1: {
|
11221
12984
|
if (!(message.file && message.file.length))
|
@@ -11610,12 +13373,14 @@
|
|
11610
13373
|
* @throws {Error} If the payload is not a reader or valid buffer
|
11611
13374
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11612
13375
|
*/
|
11613
|
-
FileDescriptorProto.decode = function decode(reader, length) {
|
13376
|
+
FileDescriptorProto.decode = function decode(reader, length, error) {
|
11614
13377
|
if (!(reader instanceof $Reader))
|
11615
13378
|
reader = $Reader.create(reader);
|
11616
13379
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto();
|
11617
13380
|
while (reader.pos < end) {
|
11618
13381
|
var tag = reader.uint32();
|
13382
|
+
if (tag === error)
|
13383
|
+
break;
|
11619
13384
|
switch (tag >>> 3) {
|
11620
13385
|
case 1: {
|
11621
13386
|
message.name = reader.string();
|
@@ -12277,12 +14042,14 @@
|
|
12277
14042
|
* @throws {Error} If the payload is not a reader or valid buffer
|
12278
14043
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12279
14044
|
*/
|
12280
|
-
DescriptorProto.decode = function decode(reader, length) {
|
14045
|
+
DescriptorProto.decode = function decode(reader, length, error) {
|
12281
14046
|
if (!(reader instanceof $Reader))
|
12282
14047
|
reader = $Reader.create(reader);
|
12283
14048
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto();
|
12284
14049
|
while (reader.pos < end) {
|
12285
14050
|
var tag = reader.uint32();
|
14051
|
+
if (tag === error)
|
14052
|
+
break;
|
12286
14053
|
switch (tag >>> 3) {
|
12287
14054
|
case 1: {
|
12288
14055
|
message.name = reader.string();
|
@@ -12762,12 +14529,14 @@
|
|
12762
14529
|
* @throws {Error} If the payload is not a reader or valid buffer
|
12763
14530
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12764
14531
|
*/
|
12765
|
-
ExtensionRange.decode = function decode(reader, length) {
|
14532
|
+
ExtensionRange.decode = function decode(reader, length, error) {
|
12766
14533
|
if (!(reader instanceof $Reader))
|
12767
14534
|
reader = $Reader.create(reader);
|
12768
14535
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange();
|
12769
14536
|
while (reader.pos < end) {
|
12770
14537
|
var tag = reader.uint32();
|
14538
|
+
if (tag === error)
|
14539
|
+
break;
|
12771
14540
|
switch (tag >>> 3) {
|
12772
14541
|
case 1: {
|
12773
14542
|
message.start = reader.int32();
|
@@ -13006,12 +14775,14 @@
|
|
13006
14775
|
* @throws {Error} If the payload is not a reader or valid buffer
|
13007
14776
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13008
14777
|
*/
|
13009
|
-
ReservedRange.decode = function decode(reader, length) {
|
14778
|
+
ReservedRange.decode = function decode(reader, length, error) {
|
13010
14779
|
if (!(reader instanceof $Reader))
|
13011
14780
|
reader = $Reader.create(reader);
|
13012
14781
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange();
|
13013
14782
|
while (reader.pos < end) {
|
13014
14783
|
var tag = reader.uint32();
|
14784
|
+
if (tag === error)
|
14785
|
+
break;
|
13015
14786
|
switch (tag >>> 3) {
|
13016
14787
|
case 1: {
|
13017
14788
|
message.start = reader.int32();
|
@@ -13262,12 +15033,14 @@
|
|
13262
15033
|
* @throws {Error} If the payload is not a reader or valid buffer
|
13263
15034
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13264
15035
|
*/
|
13265
|
-
ExtensionRangeOptions.decode = function decode(reader, length) {
|
15036
|
+
ExtensionRangeOptions.decode = function decode(reader, length, error) {
|
13266
15037
|
if (!(reader instanceof $Reader))
|
13267
15038
|
reader = $Reader.create(reader);
|
13268
15039
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions();
|
13269
15040
|
while (reader.pos < end) {
|
13270
15041
|
var tag = reader.uint32();
|
15042
|
+
if (tag === error)
|
15043
|
+
break;
|
13271
15044
|
switch (tag >>> 3) {
|
13272
15045
|
case 999: {
|
13273
15046
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
@@ -13607,12 +15380,14 @@
|
|
13607
15380
|
* @throws {Error} If the payload is not a reader or valid buffer
|
13608
15381
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13609
15382
|
*/
|
13610
|
-
Declaration.decode = function decode(reader, length) {
|
15383
|
+
Declaration.decode = function decode(reader, length, error) {
|
13611
15384
|
if (!(reader instanceof $Reader))
|
13612
15385
|
reader = $Reader.create(reader);
|
13613
15386
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions.Declaration();
|
13614
15387
|
while (reader.pos < end) {
|
13615
15388
|
var tag = reader.uint32();
|
15389
|
+
if (tag === error)
|
15390
|
+
break;
|
13616
15391
|
switch (tag >>> 3) {
|
13617
15392
|
case 1: {
|
13618
15393
|
message.number = reader.int32();
|
@@ -13986,12 +15761,14 @@
|
|
13986
15761
|
* @throws {Error} If the payload is not a reader or valid buffer
|
13987
15762
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13988
15763
|
*/
|
13989
|
-
FieldDescriptorProto.decode = function decode(reader, length) {
|
15764
|
+
FieldDescriptorProto.decode = function decode(reader, length, error) {
|
13990
15765
|
if (!(reader instanceof $Reader))
|
13991
15766
|
reader = $Reader.create(reader);
|
13992
15767
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto();
|
13993
15768
|
while (reader.pos < end) {
|
13994
15769
|
var tag = reader.uint32();
|
15770
|
+
if (tag === error)
|
15771
|
+
break;
|
13995
15772
|
switch (tag >>> 3) {
|
13996
15773
|
case 1: {
|
13997
15774
|
message.name = reader.string();
|
@@ -14511,12 +16288,14 @@
|
|
14511
16288
|
* @throws {Error} If the payload is not a reader or valid buffer
|
14512
16289
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
14513
16290
|
*/
|
14514
|
-
OneofDescriptorProto.decode = function decode(reader, length) {
|
16291
|
+
OneofDescriptorProto.decode = function decode(reader, length, error) {
|
14515
16292
|
if (!(reader instanceof $Reader))
|
14516
16293
|
reader = $Reader.create(reader);
|
14517
16294
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto();
|
14518
16295
|
while (reader.pos < end) {
|
14519
16296
|
var tag = reader.uint32();
|
16297
|
+
if (tag === error)
|
16298
|
+
break;
|
14520
16299
|
switch (tag >>> 3) {
|
14521
16300
|
case 1: {
|
14522
16301
|
message.name = reader.string();
|
@@ -14782,12 +16561,14 @@
|
|
14782
16561
|
* @throws {Error} If the payload is not a reader or valid buffer
|
14783
16562
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
14784
16563
|
*/
|
14785
|
-
EnumDescriptorProto.decode = function decode(reader, length) {
|
16564
|
+
EnumDescriptorProto.decode = function decode(reader, length, error) {
|
14786
16565
|
if (!(reader instanceof $Reader))
|
14787
16566
|
reader = $Reader.create(reader);
|
14788
16567
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto();
|
14789
16568
|
while (reader.pos < end) {
|
14790
16569
|
var tag = reader.uint32();
|
16570
|
+
if (tag === error)
|
16571
|
+
break;
|
14791
16572
|
switch (tag >>> 3) {
|
14792
16573
|
case 1: {
|
14793
16574
|
message.name = reader.string();
|
@@ -15101,12 +16882,14 @@
|
|
15101
16882
|
* @throws {Error} If the payload is not a reader or valid buffer
|
15102
16883
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
15103
16884
|
*/
|
15104
|
-
EnumReservedRange.decode = function decode(reader, length) {
|
16885
|
+
EnumReservedRange.decode = function decode(reader, length, error) {
|
15105
16886
|
if (!(reader instanceof $Reader))
|
15106
16887
|
reader = $Reader.create(reader);
|
15107
16888
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange();
|
15108
16889
|
while (reader.pos < end) {
|
15109
16890
|
var tag = reader.uint32();
|
16891
|
+
if (tag === error)
|
16892
|
+
break;
|
15110
16893
|
switch (tag >>> 3) {
|
15111
16894
|
case 1: {
|
15112
16895
|
message.start = reader.int32();
|
@@ -15342,12 +17125,14 @@
|
|
15342
17125
|
* @throws {Error} If the payload is not a reader or valid buffer
|
15343
17126
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
15344
17127
|
*/
|
15345
|
-
EnumValueDescriptorProto.decode = function decode(reader, length) {
|
17128
|
+
EnumValueDescriptorProto.decode = function decode(reader, length, error) {
|
15346
17129
|
if (!(reader instanceof $Reader))
|
15347
17130
|
reader = $Reader.create(reader);
|
15348
17131
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto();
|
15349
17132
|
while (reader.pos < end) {
|
15350
17133
|
var tag = reader.uint32();
|
17134
|
+
if (tag === error)
|
17135
|
+
break;
|
15351
17136
|
switch (tag >>> 3) {
|
15352
17137
|
case 1: {
|
15353
17138
|
message.name = reader.string();
|
@@ -15599,12 +17384,14 @@
|
|
15599
17384
|
* @throws {Error} If the payload is not a reader or valid buffer
|
15600
17385
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
15601
17386
|
*/
|
15602
|
-
ServiceDescriptorProto.decode = function decode(reader, length) {
|
17387
|
+
ServiceDescriptorProto.decode = function decode(reader, length, error) {
|
15603
17388
|
if (!(reader instanceof $Reader))
|
15604
17389
|
reader = $Reader.create(reader);
|
15605
17390
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto();
|
15606
17391
|
while (reader.pos < end) {
|
15607
17392
|
var tag = reader.uint32();
|
17393
|
+
if (tag === error)
|
17394
|
+
break;
|
15608
17395
|
switch (tag >>> 3) {
|
15609
17396
|
case 1: {
|
15610
17397
|
message.name = reader.string();
|
@@ -15907,12 +17694,14 @@
|
|
15907
17694
|
* @throws {Error} If the payload is not a reader or valid buffer
|
15908
17695
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
15909
17696
|
*/
|
15910
|
-
MethodDescriptorProto.decode = function decode(reader, length) {
|
17697
|
+
MethodDescriptorProto.decode = function decode(reader, length, error) {
|
15911
17698
|
if (!(reader instanceof $Reader))
|
15912
17699
|
reader = $Reader.create(reader);
|
15913
17700
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto();
|
15914
17701
|
while (reader.pos < end) {
|
15915
17702
|
var tag = reader.uint32();
|
17703
|
+
if (tag === error)
|
17704
|
+
break;
|
15916
17705
|
switch (tag >>> 3) {
|
15917
17706
|
case 1: {
|
15918
17707
|
message.name = reader.string();
|
@@ -16411,12 +18200,14 @@
|
|
16411
18200
|
* @throws {Error} If the payload is not a reader or valid buffer
|
16412
18201
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
16413
18202
|
*/
|
16414
|
-
FileOptions.decode = function decode(reader, length) {
|
18203
|
+
FileOptions.decode = function decode(reader, length, error) {
|
16415
18204
|
if (!(reader instanceof $Reader))
|
16416
18205
|
reader = $Reader.create(reader);
|
16417
18206
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions();
|
16418
18207
|
while (reader.pos < end) {
|
16419
18208
|
var tag = reader.uint32();
|
18209
|
+
if (tag === error)
|
18210
|
+
break;
|
16420
18211
|
switch (tag >>> 3) {
|
16421
18212
|
case 1: {
|
16422
18213
|
message.javaPackage = reader.string();
|
@@ -17031,12 +18822,14 @@
|
|
17031
18822
|
* @throws {Error} If the payload is not a reader or valid buffer
|
17032
18823
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
17033
18824
|
*/
|
17034
|
-
MessageOptions.decode = function decode(reader, length) {
|
18825
|
+
MessageOptions.decode = function decode(reader, length, error) {
|
17035
18826
|
if (!(reader instanceof $Reader))
|
17036
18827
|
reader = $Reader.create(reader);
|
17037
18828
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions();
|
17038
18829
|
while (reader.pos < end) {
|
17039
18830
|
var tag = reader.uint32();
|
18831
|
+
if (tag === error)
|
18832
|
+
break;
|
17040
18833
|
switch (tag >>> 3) {
|
17041
18834
|
case 1: {
|
17042
18835
|
message.messageSetWireFormat = reader.bool();
|
@@ -17488,12 +19281,9 @@
|
|
17488
19281
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
17489
19282
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
17490
19283
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
17491
|
-
if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length)
|
17492
|
-
writer.uint32(/* id 1052, wireType 2 =*/8418).fork();
|
19284
|
+
if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length)
|
17493
19285
|
for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i)
|
17494
|
-
writer.int32(message[".google.api.fieldBehavior"][i]);
|
17495
|
-
writer.ldelim();
|
17496
|
-
}
|
19286
|
+
writer.uint32(/* id 1052, wireType 0 =*/8416).int32(message[".google.api.fieldBehavior"][i]);
|
17497
19287
|
if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference"))
|
17498
19288
|
$root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim();
|
17499
19289
|
if (message[".google.api.fieldInfo"] != null && Object.hasOwnProperty.call(message, ".google.api.fieldInfo"))
|
@@ -17525,12 +19315,14 @@
|
|
17525
19315
|
* @throws {Error} If the payload is not a reader or valid buffer
|
17526
19316
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
17527
19317
|
*/
|
17528
|
-
FieldOptions.decode = function decode(reader, length) {
|
19318
|
+
FieldOptions.decode = function decode(reader, length, error) {
|
17529
19319
|
if (!(reader instanceof $Reader))
|
17530
19320
|
reader = $Reader.create(reader);
|
17531
19321
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions();
|
17532
19322
|
while (reader.pos < end) {
|
17533
19323
|
var tag = reader.uint32();
|
19324
|
+
if (tag === error)
|
19325
|
+
break;
|
17534
19326
|
switch (tag >>> 3) {
|
17535
19327
|
case 1: {
|
17536
19328
|
message.ctype = reader.int32();
|
@@ -18273,12 +20065,14 @@
|
|
18273
20065
|
* @throws {Error} If the payload is not a reader or valid buffer
|
18274
20066
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
18275
20067
|
*/
|
18276
|
-
EditionDefault.decode = function decode(reader, length) {
|
20068
|
+
EditionDefault.decode = function decode(reader, length, error) {
|
18277
20069
|
if (!(reader instanceof $Reader))
|
18278
20070
|
reader = $Reader.create(reader);
|
18279
20071
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.EditionDefault();
|
18280
20072
|
while (reader.pos < end) {
|
18281
20073
|
var tag = reader.uint32();
|
20074
|
+
if (tag === error)
|
20075
|
+
break;
|
18282
20076
|
switch (tag >>> 3) {
|
18283
20077
|
case 3: {
|
18284
20078
|
message.edition = reader.int32();
|
@@ -18569,12 +20363,14 @@
|
|
18569
20363
|
* @throws {Error} If the payload is not a reader or valid buffer
|
18570
20364
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
18571
20365
|
*/
|
18572
|
-
OneofOptions.decode = function decode(reader, length) {
|
20366
|
+
OneofOptions.decode = function decode(reader, length, error) {
|
18573
20367
|
if (!(reader instanceof $Reader))
|
18574
20368
|
reader = $Reader.create(reader);
|
18575
20369
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions();
|
18576
20370
|
while (reader.pos < end) {
|
18577
20371
|
var tag = reader.uint32();
|
20372
|
+
if (tag === error)
|
20373
|
+
break;
|
18578
20374
|
switch (tag >>> 3) {
|
18579
20375
|
case 1: {
|
18580
20376
|
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
@@ -18855,12 +20651,14 @@
|
|
18855
20651
|
* @throws {Error} If the payload is not a reader or valid buffer
|
18856
20652
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
18857
20653
|
*/
|
18858
|
-
EnumOptions.decode = function decode(reader, length) {
|
20654
|
+
EnumOptions.decode = function decode(reader, length, error) {
|
18859
20655
|
if (!(reader instanceof $Reader))
|
18860
20656
|
reader = $Reader.create(reader);
|
18861
20657
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions();
|
18862
20658
|
while (reader.pos < end) {
|
18863
20659
|
var tag = reader.uint32();
|
20660
|
+
if (tag === error)
|
20661
|
+
break;
|
18864
20662
|
switch (tag >>> 3) {
|
18865
20663
|
case 2: {
|
18866
20664
|
message.allowAlias = reader.bool();
|
@@ -19167,12 +20965,14 @@
|
|
19167
20965
|
* @throws {Error} If the payload is not a reader or valid buffer
|
19168
20966
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
19169
20967
|
*/
|
19170
|
-
EnumValueOptions.decode = function decode(reader, length) {
|
20968
|
+
EnumValueOptions.decode = function decode(reader, length, error) {
|
19171
20969
|
if (!(reader instanceof $Reader))
|
19172
20970
|
reader = $Reader.create(reader);
|
19173
20971
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions();
|
19174
20972
|
while (reader.pos < end) {
|
19175
20973
|
var tag = reader.uint32();
|
20974
|
+
if (tag === error)
|
20975
|
+
break;
|
19176
20976
|
switch (tag >>> 3) {
|
19177
20977
|
case 1: {
|
19178
20978
|
message.deprecated = reader.bool();
|
@@ -19358,6 +21158,7 @@
|
|
19358
21158
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] ServiceOptions uninterpretedOption
|
19359
21159
|
* @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost
|
19360
21160
|
* @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes
|
21161
|
+
* @property {string|null} [".google.api.apiVersion"] ServiceOptions .google.api.apiVersion
|
19361
21162
|
*/
|
19362
21163
|
|
19363
21164
|
/**
|
@@ -19416,6 +21217,14 @@
|
|
19416
21217
|
*/
|
19417
21218
|
ServiceOptions.prototype[".google.api.oauthScopes"] = "";
|
19418
21219
|
|
21220
|
+
/**
|
21221
|
+
* ServiceOptions .google.api.apiVersion.
|
21222
|
+
* @member {string} .google.api.apiVersion
|
21223
|
+
* @memberof google.protobuf.ServiceOptions
|
21224
|
+
* @instance
|
21225
|
+
*/
|
21226
|
+
ServiceOptions.prototype[".google.api.apiVersion"] = "";
|
21227
|
+
|
19419
21228
|
/**
|
19420
21229
|
* Creates a new ServiceOptions instance using the specified properties.
|
19421
21230
|
* @function create
|
@@ -19451,6 +21260,8 @@
|
|
19451
21260
|
writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]);
|
19452
21261
|
if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes"))
|
19453
21262
|
writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]);
|
21263
|
+
if (message[".google.api.apiVersion"] != null && Object.hasOwnProperty.call(message, ".google.api.apiVersion"))
|
21264
|
+
writer.uint32(/* id 525000001, wireType 2 =*/4200000010).string(message[".google.api.apiVersion"]);
|
19454
21265
|
return writer;
|
19455
21266
|
};
|
19456
21267
|
|
@@ -19478,12 +21289,14 @@
|
|
19478
21289
|
* @throws {Error} If the payload is not a reader or valid buffer
|
19479
21290
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
19480
21291
|
*/
|
19481
|
-
ServiceOptions.decode = function decode(reader, length) {
|
21292
|
+
ServiceOptions.decode = function decode(reader, length, error) {
|
19482
21293
|
if (!(reader instanceof $Reader))
|
19483
21294
|
reader = $Reader.create(reader);
|
19484
21295
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions();
|
19485
21296
|
while (reader.pos < end) {
|
19486
21297
|
var tag = reader.uint32();
|
21298
|
+
if (tag === error)
|
21299
|
+
break;
|
19487
21300
|
switch (tag >>> 3) {
|
19488
21301
|
case 34: {
|
19489
21302
|
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
@@ -19507,6 +21320,10 @@
|
|
19507
21320
|
message[".google.api.oauthScopes"] = reader.string();
|
19508
21321
|
break;
|
19509
21322
|
}
|
21323
|
+
case 525000001: {
|
21324
|
+
message[".google.api.apiVersion"] = reader.string();
|
21325
|
+
break;
|
21326
|
+
}
|
19510
21327
|
default:
|
19511
21328
|
reader.skipType(tag & 7);
|
19512
21329
|
break;
|
@@ -19565,6 +21382,9 @@
|
|
19565
21382
|
if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes"))
|
19566
21383
|
if (!$util.isString(message[".google.api.oauthScopes"]))
|
19567
21384
|
return ".google.api.oauthScopes: string expected";
|
21385
|
+
if (message[".google.api.apiVersion"] != null && message.hasOwnProperty(".google.api.apiVersion"))
|
21386
|
+
if (!$util.isString(message[".google.api.apiVersion"]))
|
21387
|
+
return ".google.api.apiVersion: string expected";
|
19568
21388
|
return null;
|
19569
21389
|
};
|
19570
21390
|
|
@@ -19601,6 +21421,8 @@
|
|
19601
21421
|
message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]);
|
19602
21422
|
if (object[".google.api.oauthScopes"] != null)
|
19603
21423
|
message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]);
|
21424
|
+
if (object[".google.api.apiVersion"] != null)
|
21425
|
+
message[".google.api.apiVersion"] = String(object[".google.api.apiVersion"]);
|
19604
21426
|
return message;
|
19605
21427
|
};
|
19606
21428
|
|
@@ -19624,6 +21446,7 @@
|
|
19624
21446
|
object.features = null;
|
19625
21447
|
object[".google.api.defaultHost"] = "";
|
19626
21448
|
object[".google.api.oauthScopes"] = "";
|
21449
|
+
object[".google.api.apiVersion"] = "";
|
19627
21450
|
}
|
19628
21451
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
19629
21452
|
object.deprecated = message.deprecated;
|
@@ -19638,6 +21461,8 @@
|
|
19638
21461
|
object[".google.api.defaultHost"] = message[".google.api.defaultHost"];
|
19639
21462
|
if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes"))
|
19640
21463
|
object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"];
|
21464
|
+
if (message[".google.api.apiVersion"] != null && message.hasOwnProperty(".google.api.apiVersion"))
|
21465
|
+
object[".google.api.apiVersion"] = message[".google.api.apiVersion"];
|
19641
21466
|
return object;
|
19642
21467
|
};
|
19643
21468
|
|
@@ -19814,12 +21639,14 @@
|
|
19814
21639
|
* @throws {Error} If the payload is not a reader or valid buffer
|
19815
21640
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
19816
21641
|
*/
|
19817
|
-
MethodOptions.decode = function decode(reader, length) {
|
21642
|
+
MethodOptions.decode = function decode(reader, length, error) {
|
19818
21643
|
if (!(reader instanceof $Reader))
|
19819
21644
|
reader = $Reader.create(reader);
|
19820
21645
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions();
|
19821
21646
|
while (reader.pos < end) {
|
19822
21647
|
var tag = reader.uint32();
|
21648
|
+
if (tag === error)
|
21649
|
+
break;
|
19823
21650
|
switch (tag >>> 3) {
|
19824
21651
|
case 33: {
|
19825
21652
|
message.deprecated = reader.bool();
|
@@ -20231,12 +22058,14 @@
|
|
20231
22058
|
* @throws {Error} If the payload is not a reader or valid buffer
|
20232
22059
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
20233
22060
|
*/
|
20234
|
-
UninterpretedOption.decode = function decode(reader, length) {
|
22061
|
+
UninterpretedOption.decode = function decode(reader, length, error) {
|
20235
22062
|
if (!(reader instanceof $Reader))
|
20236
22063
|
reader = $Reader.create(reader);
|
20237
22064
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption();
|
20238
22065
|
while (reader.pos < end) {
|
20239
22066
|
var tag = reader.uint32();
|
22067
|
+
if (tag === error)
|
22068
|
+
break;
|
20240
22069
|
switch (tag >>> 3) {
|
20241
22070
|
case 2: {
|
20242
22071
|
if (!(message.name && message.name.length))
|
@@ -20570,12 +22399,14 @@
|
|
20570
22399
|
* @throws {Error} If the payload is not a reader or valid buffer
|
20571
22400
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
20572
22401
|
*/
|
20573
|
-
NamePart.decode = function decode(reader, length) {
|
22402
|
+
NamePart.decode = function decode(reader, length, error) {
|
20574
22403
|
if (!(reader instanceof $Reader))
|
20575
22404
|
reader = $Reader.create(reader);
|
20576
22405
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart();
|
20577
22406
|
while (reader.pos < end) {
|
20578
22407
|
var tag = reader.uint32();
|
22408
|
+
if (tag === error)
|
22409
|
+
break;
|
20579
22410
|
switch (tag >>> 3) {
|
20580
22411
|
case 1: {
|
20581
22412
|
message.namePart = reader.string();
|
@@ -20846,12 +22677,14 @@
|
|
20846
22677
|
* @throws {Error} If the payload is not a reader or valid buffer
|
20847
22678
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
20848
22679
|
*/
|
20849
|
-
FeatureSet.decode = function decode(reader, length) {
|
22680
|
+
FeatureSet.decode = function decode(reader, length, error) {
|
20850
22681
|
if (!(reader instanceof $Reader))
|
20851
22682
|
reader = $Reader.create(reader);
|
20852
22683
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet();
|
20853
22684
|
while (reader.pos < end) {
|
20854
22685
|
var tag = reader.uint32();
|
22686
|
+
if (tag === error)
|
22687
|
+
break;
|
20855
22688
|
switch (tag >>> 3) {
|
20856
22689
|
case 1: {
|
20857
22690
|
message.fieldPresence = reader.int32();
|
@@ -21381,12 +23214,14 @@
|
|
21381
23214
|
* @throws {Error} If the payload is not a reader or valid buffer
|
21382
23215
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
21383
23216
|
*/
|
21384
|
-
FeatureSetDefaults.decode = function decode(reader, length) {
|
23217
|
+
FeatureSetDefaults.decode = function decode(reader, length, error) {
|
21385
23218
|
if (!(reader instanceof $Reader))
|
21386
23219
|
reader = $Reader.create(reader);
|
21387
23220
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults();
|
21388
23221
|
while (reader.pos < end) {
|
21389
23222
|
var tag = reader.uint32();
|
23223
|
+
if (tag === error)
|
23224
|
+
break;
|
21390
23225
|
switch (tag >>> 3) {
|
21391
23226
|
case 1: {
|
21392
23227
|
if (!(message.defaults && message.defaults.length))
|
@@ -21765,12 +23600,14 @@
|
|
21765
23600
|
* @throws {Error} If the payload is not a reader or valid buffer
|
21766
23601
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
21767
23602
|
*/
|
21768
|
-
FeatureSetEditionDefault.decode = function decode(reader, length) {
|
23603
|
+
FeatureSetEditionDefault.decode = function decode(reader, length, error) {
|
21769
23604
|
if (!(reader instanceof $Reader))
|
21770
23605
|
reader = $Reader.create(reader);
|
21771
23606
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault();
|
21772
23607
|
while (reader.pos < end) {
|
21773
23608
|
var tag = reader.uint32();
|
23609
|
+
if (tag === error)
|
23610
|
+
break;
|
21774
23611
|
switch (tag >>> 3) {
|
21775
23612
|
case 3: {
|
21776
23613
|
message.edition = reader.int32();
|
@@ -22055,12 +23892,14 @@
|
|
22055
23892
|
* @throws {Error} If the payload is not a reader or valid buffer
|
22056
23893
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
22057
23894
|
*/
|
22058
|
-
SourceCodeInfo.decode = function decode(reader, length) {
|
23895
|
+
SourceCodeInfo.decode = function decode(reader, length, error) {
|
22059
23896
|
if (!(reader instanceof $Reader))
|
22060
23897
|
reader = $Reader.create(reader);
|
22061
23898
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo();
|
22062
23899
|
while (reader.pos < end) {
|
22063
23900
|
var tag = reader.uint32();
|
23901
|
+
if (tag === error)
|
23902
|
+
break;
|
22064
23903
|
switch (tag >>> 3) {
|
22065
23904
|
case 1: {
|
22066
23905
|
if (!(message.location && message.location.length))
|
@@ -22330,12 +24169,14 @@
|
|
22330
24169
|
* @throws {Error} If the payload is not a reader or valid buffer
|
22331
24170
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
22332
24171
|
*/
|
22333
|
-
Location.decode = function decode(reader, length) {
|
24172
|
+
Location.decode = function decode(reader, length, error) {
|
22334
24173
|
if (!(reader instanceof $Reader))
|
22335
24174
|
reader = $Reader.create(reader);
|
22336
24175
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location();
|
22337
24176
|
while (reader.pos < end) {
|
22338
24177
|
var tag = reader.uint32();
|
24178
|
+
if (tag === error)
|
24179
|
+
break;
|
22339
24180
|
switch (tag >>> 3) {
|
22340
24181
|
case 1: {
|
22341
24182
|
if (!(message.path && message.path.length))
|
@@ -22641,12 +24482,14 @@
|
|
22641
24482
|
* @throws {Error} If the payload is not a reader or valid buffer
|
22642
24483
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
22643
24484
|
*/
|
22644
|
-
GeneratedCodeInfo.decode = function decode(reader, length) {
|
24485
|
+
GeneratedCodeInfo.decode = function decode(reader, length, error) {
|
22645
24486
|
if (!(reader instanceof $Reader))
|
22646
24487
|
reader = $Reader.create(reader);
|
22647
24488
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo();
|
22648
24489
|
while (reader.pos < end) {
|
22649
24490
|
var tag = reader.uint32();
|
24491
|
+
if (tag === error)
|
24492
|
+
break;
|
22650
24493
|
switch (tag >>> 3) {
|
22651
24494
|
case 1: {
|
22652
24495
|
if (!(message.annotation && message.annotation.length))
|
@@ -22909,12 +24752,14 @@
|
|
22909
24752
|
* @throws {Error} If the payload is not a reader or valid buffer
|
22910
24753
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
22911
24754
|
*/
|
22912
|
-
Annotation.decode = function decode(reader, length) {
|
24755
|
+
Annotation.decode = function decode(reader, length, error) {
|
22913
24756
|
if (!(reader instanceof $Reader))
|
22914
24757
|
reader = $Reader.create(reader);
|
22915
24758
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation();
|
22916
24759
|
while (reader.pos < end) {
|
22917
24760
|
var tag = reader.uint32();
|
24761
|
+
if (tag === error)
|
24762
|
+
break;
|
22918
24763
|
switch (tag >>> 3) {
|
22919
24764
|
case 1: {
|
22920
24765
|
if (!(message.path && message.path.length))
|
@@ -23235,12 +25080,14 @@
|
|
23235
25080
|
* @throws {Error} If the payload is not a reader or valid buffer
|
23236
25081
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
23237
25082
|
*/
|
23238
|
-
Duration.decode = function decode(reader, length) {
|
25083
|
+
Duration.decode = function decode(reader, length, error) {
|
23239
25084
|
if (!(reader instanceof $Reader))
|
23240
25085
|
reader = $Reader.create(reader);
|
23241
25086
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration();
|
23242
25087
|
while (reader.pos < end) {
|
23243
25088
|
var tag = reader.uint32();
|
25089
|
+
if (tag === error)
|
25090
|
+
break;
|
23244
25091
|
switch (tag >>> 3) {
|
23245
25092
|
case 1: {
|
23246
25093
|
message.seconds = reader.int64();
|
@@ -23476,12 +25323,14 @@
|
|
23476
25323
|
* @throws {Error} If the payload is not a reader or valid buffer
|
23477
25324
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
23478
25325
|
*/
|
23479
|
-
Timestamp.decode = function decode(reader, length) {
|
25326
|
+
Timestamp.decode = function decode(reader, length, error) {
|
23480
25327
|
if (!(reader instanceof $Reader))
|
23481
25328
|
reader = $Reader.create(reader);
|
23482
25329
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp();
|
23483
25330
|
while (reader.pos < end) {
|
23484
25331
|
var tag = reader.uint32();
|
25332
|
+
if (tag === error)
|
25333
|
+
break;
|
23485
25334
|
switch (tag >>> 3) {
|
23486
25335
|
case 1: {
|
23487
25336
|
message.seconds = reader.int64();
|
@@ -23695,12 +25544,14 @@
|
|
23695
25544
|
* @throws {Error} If the payload is not a reader or valid buffer
|
23696
25545
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
23697
25546
|
*/
|
23698
|
-
Empty.decode = function decode(reader, length) {
|
25547
|
+
Empty.decode = function decode(reader, length, error) {
|
23699
25548
|
if (!(reader instanceof $Reader))
|
23700
25549
|
reader = $Reader.create(reader);
|
23701
25550
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Empty();
|
23702
25551
|
while (reader.pos < end) {
|
23703
25552
|
var tag = reader.uint32();
|
25553
|
+
if (tag === error)
|
25554
|
+
break;
|
23704
25555
|
switch (tag >>> 3) {
|
23705
25556
|
default:
|
23706
25557
|
reader.skipType(tag & 7);
|