@google-shopping/lfp 0.4.0 → 0.5.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/CHANGELOG.md +15 -0
- package/README.md +12 -11
- package/build/protos/google/shopping/merchant/lfp/v1beta/lfpmerchantstate.proto +201 -0
- package/build/protos/protos.d.ts +663 -2
- package/build/protos/protos.js +2109 -173
- package/build/protos/protos.json +261 -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 +24 -0
- package/build/src/v1beta/lfp_inventory_service_client.js +37 -1
- 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 +517 -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 +24 -0
- package/build/src/v1beta/lfp_sale_service_client.js +37 -1
- 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 +24 -0
- package/build/src/v1beta/lfp_store_service_client.js +52 -6
- 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 +2 -2
package/build/protos/protos.js
CHANGED
@@ -429,12 +429,14 @@
|
|
429
429
|
* @throws {Error} If the payload is not a reader or valid buffer
|
430
430
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
431
431
|
*/
|
432
|
-
LfpInventory.decode = function decode(reader, length) {
|
432
|
+
LfpInventory.decode = function decode(reader, length, error) {
|
433
433
|
if (!(reader instanceof $Reader))
|
434
434
|
reader = $Reader.create(reader);
|
435
435
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.LfpInventory();
|
436
436
|
while (reader.pos < end) {
|
437
437
|
var tag = reader.uint32();
|
438
|
+
if (tag === error)
|
439
|
+
break;
|
438
440
|
switch (tag >>> 3) {
|
439
441
|
case 1: {
|
440
442
|
message.name = reader.string();
|
@@ -756,28 +758,1809 @@
|
|
756
758
|
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.LfpInventory";
|
757
759
|
};
|
758
760
|
|
759
|
-
return LfpInventory;
|
761
|
+
return LfpInventory;
|
762
|
+
})();
|
763
|
+
|
764
|
+
v1beta.InsertLfpInventoryRequest = (function() {
|
765
|
+
|
766
|
+
/**
|
767
|
+
* Properties of an InsertLfpInventoryRequest.
|
768
|
+
* @memberof google.shopping.merchant.lfp.v1beta
|
769
|
+
* @interface IInsertLfpInventoryRequest
|
770
|
+
* @property {string|null} [parent] InsertLfpInventoryRequest parent
|
771
|
+
* @property {google.shopping.merchant.lfp.v1beta.ILfpInventory|null} [lfpInventory] InsertLfpInventoryRequest lfpInventory
|
772
|
+
*/
|
773
|
+
|
774
|
+
/**
|
775
|
+
* Constructs a new InsertLfpInventoryRequest.
|
776
|
+
* @memberof google.shopping.merchant.lfp.v1beta
|
777
|
+
* @classdesc Represents an InsertLfpInventoryRequest.
|
778
|
+
* @implements IInsertLfpInventoryRequest
|
779
|
+
* @constructor
|
780
|
+
* @param {google.shopping.merchant.lfp.v1beta.IInsertLfpInventoryRequest=} [properties] Properties to set
|
781
|
+
*/
|
782
|
+
function InsertLfpInventoryRequest(properties) {
|
783
|
+
if (properties)
|
784
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
785
|
+
if (properties[keys[i]] != null)
|
786
|
+
this[keys[i]] = properties[keys[i]];
|
787
|
+
}
|
788
|
+
|
789
|
+
/**
|
790
|
+
* InsertLfpInventoryRequest parent.
|
791
|
+
* @member {string} parent
|
792
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
793
|
+
* @instance
|
794
|
+
*/
|
795
|
+
InsertLfpInventoryRequest.prototype.parent = "";
|
796
|
+
|
797
|
+
/**
|
798
|
+
* InsertLfpInventoryRequest lfpInventory.
|
799
|
+
* @member {google.shopping.merchant.lfp.v1beta.ILfpInventory|null|undefined} lfpInventory
|
800
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
801
|
+
* @instance
|
802
|
+
*/
|
803
|
+
InsertLfpInventoryRequest.prototype.lfpInventory = null;
|
804
|
+
|
805
|
+
/**
|
806
|
+
* Creates a new InsertLfpInventoryRequest instance using the specified properties.
|
807
|
+
* @function create
|
808
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
809
|
+
* @static
|
810
|
+
* @param {google.shopping.merchant.lfp.v1beta.IInsertLfpInventoryRequest=} [properties] Properties to set
|
811
|
+
* @returns {google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest} InsertLfpInventoryRequest instance
|
812
|
+
*/
|
813
|
+
InsertLfpInventoryRequest.create = function create(properties) {
|
814
|
+
return new InsertLfpInventoryRequest(properties);
|
815
|
+
};
|
816
|
+
|
817
|
+
/**
|
818
|
+
* Encodes the specified InsertLfpInventoryRequest message. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest.verify|verify} messages.
|
819
|
+
* @function encode
|
820
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
821
|
+
* @static
|
822
|
+
* @param {google.shopping.merchant.lfp.v1beta.IInsertLfpInventoryRequest} message InsertLfpInventoryRequest message or plain object to encode
|
823
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
824
|
+
* @returns {$protobuf.Writer} Writer
|
825
|
+
*/
|
826
|
+
InsertLfpInventoryRequest.encode = function encode(message, writer) {
|
827
|
+
if (!writer)
|
828
|
+
writer = $Writer.create();
|
829
|
+
if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
|
830
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
|
831
|
+
if (message.lfpInventory != null && Object.hasOwnProperty.call(message, "lfpInventory"))
|
832
|
+
$root.google.shopping.merchant.lfp.v1beta.LfpInventory.encode(message.lfpInventory, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
833
|
+
return writer;
|
834
|
+
};
|
835
|
+
|
836
|
+
/**
|
837
|
+
* Encodes the specified InsertLfpInventoryRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest.verify|verify} messages.
|
838
|
+
* @function encodeDelimited
|
839
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
840
|
+
* @static
|
841
|
+
* @param {google.shopping.merchant.lfp.v1beta.IInsertLfpInventoryRequest} message InsertLfpInventoryRequest message or plain object to encode
|
842
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
843
|
+
* @returns {$protobuf.Writer} Writer
|
844
|
+
*/
|
845
|
+
InsertLfpInventoryRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
846
|
+
return this.encode(message, writer).ldelim();
|
847
|
+
};
|
848
|
+
|
849
|
+
/**
|
850
|
+
* Decodes an InsertLfpInventoryRequest message from the specified reader or buffer.
|
851
|
+
* @function decode
|
852
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
853
|
+
* @static
|
854
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
855
|
+
* @param {number} [length] Message length if known beforehand
|
856
|
+
* @returns {google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest} InsertLfpInventoryRequest
|
857
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
858
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
859
|
+
*/
|
860
|
+
InsertLfpInventoryRequest.decode = function decode(reader, length, error) {
|
861
|
+
if (!(reader instanceof $Reader))
|
862
|
+
reader = $Reader.create(reader);
|
863
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest();
|
864
|
+
while (reader.pos < end) {
|
865
|
+
var tag = reader.uint32();
|
866
|
+
if (tag === error)
|
867
|
+
break;
|
868
|
+
switch (tag >>> 3) {
|
869
|
+
case 1: {
|
870
|
+
message.parent = reader.string();
|
871
|
+
break;
|
872
|
+
}
|
873
|
+
case 2: {
|
874
|
+
message.lfpInventory = $root.google.shopping.merchant.lfp.v1beta.LfpInventory.decode(reader, reader.uint32());
|
875
|
+
break;
|
876
|
+
}
|
877
|
+
default:
|
878
|
+
reader.skipType(tag & 7);
|
879
|
+
break;
|
880
|
+
}
|
881
|
+
}
|
882
|
+
return message;
|
883
|
+
};
|
884
|
+
|
885
|
+
/**
|
886
|
+
* Decodes an InsertLfpInventoryRequest message from the specified reader or buffer, length delimited.
|
887
|
+
* @function decodeDelimited
|
888
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
889
|
+
* @static
|
890
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
891
|
+
* @returns {google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest} InsertLfpInventoryRequest
|
892
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
893
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
894
|
+
*/
|
895
|
+
InsertLfpInventoryRequest.decodeDelimited = function decodeDelimited(reader) {
|
896
|
+
if (!(reader instanceof $Reader))
|
897
|
+
reader = new $Reader(reader);
|
898
|
+
return this.decode(reader, reader.uint32());
|
899
|
+
};
|
900
|
+
|
901
|
+
/**
|
902
|
+
* Verifies an InsertLfpInventoryRequest message.
|
903
|
+
* @function verify
|
904
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
905
|
+
* @static
|
906
|
+
* @param {Object.<string,*>} message Plain object to verify
|
907
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
908
|
+
*/
|
909
|
+
InsertLfpInventoryRequest.verify = function verify(message) {
|
910
|
+
if (typeof message !== "object" || message === null)
|
911
|
+
return "object expected";
|
912
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
913
|
+
if (!$util.isString(message.parent))
|
914
|
+
return "parent: string expected";
|
915
|
+
if (message.lfpInventory != null && message.hasOwnProperty("lfpInventory")) {
|
916
|
+
var error = $root.google.shopping.merchant.lfp.v1beta.LfpInventory.verify(message.lfpInventory);
|
917
|
+
if (error)
|
918
|
+
return "lfpInventory." + error;
|
919
|
+
}
|
920
|
+
return null;
|
921
|
+
};
|
922
|
+
|
923
|
+
/**
|
924
|
+
* Creates an InsertLfpInventoryRequest message from a plain object. Also converts values to their respective internal types.
|
925
|
+
* @function fromObject
|
926
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
927
|
+
* @static
|
928
|
+
* @param {Object.<string,*>} object Plain object
|
929
|
+
* @returns {google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest} InsertLfpInventoryRequest
|
930
|
+
*/
|
931
|
+
InsertLfpInventoryRequest.fromObject = function fromObject(object) {
|
932
|
+
if (object instanceof $root.google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest)
|
933
|
+
return object;
|
934
|
+
var message = new $root.google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest();
|
935
|
+
if (object.parent != null)
|
936
|
+
message.parent = String(object.parent);
|
937
|
+
if (object.lfpInventory != null) {
|
938
|
+
if (typeof object.lfpInventory !== "object")
|
939
|
+
throw TypeError(".google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest.lfpInventory: object expected");
|
940
|
+
message.lfpInventory = $root.google.shopping.merchant.lfp.v1beta.LfpInventory.fromObject(object.lfpInventory);
|
941
|
+
}
|
942
|
+
return message;
|
943
|
+
};
|
944
|
+
|
945
|
+
/**
|
946
|
+
* Creates a plain object from an InsertLfpInventoryRequest message. Also converts values to other types if specified.
|
947
|
+
* @function toObject
|
948
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
949
|
+
* @static
|
950
|
+
* @param {google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest} message InsertLfpInventoryRequest
|
951
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
952
|
+
* @returns {Object.<string,*>} Plain object
|
953
|
+
*/
|
954
|
+
InsertLfpInventoryRequest.toObject = function toObject(message, options) {
|
955
|
+
if (!options)
|
956
|
+
options = {};
|
957
|
+
var object = {};
|
958
|
+
if (options.defaults) {
|
959
|
+
object.parent = "";
|
960
|
+
object.lfpInventory = null;
|
961
|
+
}
|
962
|
+
if (message.parent != null && message.hasOwnProperty("parent"))
|
963
|
+
object.parent = message.parent;
|
964
|
+
if (message.lfpInventory != null && message.hasOwnProperty("lfpInventory"))
|
965
|
+
object.lfpInventory = $root.google.shopping.merchant.lfp.v1beta.LfpInventory.toObject(message.lfpInventory, options);
|
966
|
+
return object;
|
967
|
+
};
|
968
|
+
|
969
|
+
/**
|
970
|
+
* Converts this InsertLfpInventoryRequest to JSON.
|
971
|
+
* @function toJSON
|
972
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
973
|
+
* @instance
|
974
|
+
* @returns {Object.<string,*>} JSON object
|
975
|
+
*/
|
976
|
+
InsertLfpInventoryRequest.prototype.toJSON = function toJSON() {
|
977
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
978
|
+
};
|
979
|
+
|
980
|
+
/**
|
981
|
+
* Gets the default type url for InsertLfpInventoryRequest
|
982
|
+
* @function getTypeUrl
|
983
|
+
* @memberof google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest
|
984
|
+
* @static
|
985
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
986
|
+
* @returns {string} The default type url
|
987
|
+
*/
|
988
|
+
InsertLfpInventoryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
989
|
+
if (typeUrlPrefix === undefined) {
|
990
|
+
typeUrlPrefix = "type.googleapis.com";
|
991
|
+
}
|
992
|
+
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.InsertLfpInventoryRequest";
|
993
|
+
};
|
994
|
+
|
995
|
+
return InsertLfpInventoryRequest;
|
996
|
+
})();
|
997
|
+
|
998
|
+
v1beta.LfpMerchantStateService = (function() {
|
999
|
+
|
1000
|
+
/**
|
1001
|
+
* Constructs a new LfpMerchantStateService service.
|
1002
|
+
* @memberof google.shopping.merchant.lfp.v1beta
|
1003
|
+
* @classdesc Represents a LfpMerchantStateService
|
1004
|
+
* @extends $protobuf.rpc.Service
|
1005
|
+
* @constructor
|
1006
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
1007
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
1008
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
1009
|
+
*/
|
1010
|
+
function LfpMerchantStateService(rpcImpl, requestDelimited, responseDelimited) {
|
1011
|
+
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
1012
|
+
}
|
1013
|
+
|
1014
|
+
(LfpMerchantStateService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = LfpMerchantStateService;
|
1015
|
+
|
1016
|
+
/**
|
1017
|
+
* Creates new LfpMerchantStateService service using the specified rpc implementation.
|
1018
|
+
* @function create
|
1019
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantStateService
|
1020
|
+
* @static
|
1021
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
1022
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
1023
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
1024
|
+
* @returns {LfpMerchantStateService} RPC service. Useful where requests and/or responses are streamed.
|
1025
|
+
*/
|
1026
|
+
LfpMerchantStateService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
|
1027
|
+
return new this(rpcImpl, requestDelimited, responseDelimited);
|
1028
|
+
};
|
1029
|
+
|
1030
|
+
/**
|
1031
|
+
* Callback as used by {@link google.shopping.merchant.lfp.v1beta.LfpMerchantStateService|getLfpMerchantState}.
|
1032
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantStateService
|
1033
|
+
* @typedef GetLfpMerchantStateCallback
|
1034
|
+
* @type {function}
|
1035
|
+
* @param {Error|null} error Error, if any
|
1036
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState} [response] LfpMerchantState
|
1037
|
+
*/
|
1038
|
+
|
1039
|
+
/**
|
1040
|
+
* Calls GetLfpMerchantState.
|
1041
|
+
* @function getLfpMerchantState
|
1042
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantStateService
|
1043
|
+
* @instance
|
1044
|
+
* @param {google.shopping.merchant.lfp.v1beta.IGetLfpMerchantStateRequest} request GetLfpMerchantStateRequest message or plain object
|
1045
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantStateService.GetLfpMerchantStateCallback} callback Node-style callback called with the error, if any, and LfpMerchantState
|
1046
|
+
* @returns {undefined}
|
1047
|
+
* @variation 1
|
1048
|
+
*/
|
1049
|
+
Object.defineProperty(LfpMerchantStateService.prototype.getLfpMerchantState = function getLfpMerchantState(request, callback) {
|
1050
|
+
return this.rpcCall(getLfpMerchantState, $root.google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest, $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState, request, callback);
|
1051
|
+
}, "name", { value: "GetLfpMerchantState" });
|
1052
|
+
|
1053
|
+
/**
|
1054
|
+
* Calls GetLfpMerchantState.
|
1055
|
+
* @function getLfpMerchantState
|
1056
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantStateService
|
1057
|
+
* @instance
|
1058
|
+
* @param {google.shopping.merchant.lfp.v1beta.IGetLfpMerchantStateRequest} request GetLfpMerchantStateRequest message or plain object
|
1059
|
+
* @returns {Promise<google.shopping.merchant.lfp.v1beta.LfpMerchantState>} Promise
|
1060
|
+
* @variation 2
|
1061
|
+
*/
|
1062
|
+
|
1063
|
+
return LfpMerchantStateService;
|
1064
|
+
})();
|
1065
|
+
|
1066
|
+
v1beta.LfpMerchantState = (function() {
|
1067
|
+
|
1068
|
+
/**
|
1069
|
+
* Properties of a LfpMerchantState.
|
1070
|
+
* @memberof google.shopping.merchant.lfp.v1beta
|
1071
|
+
* @interface ILfpMerchantState
|
1072
|
+
* @property {string|null} [name] LfpMerchantState name
|
1073
|
+
* @property {number|Long|null} [linkedGbps] LfpMerchantState linkedGbps
|
1074
|
+
* @property {Array.<google.shopping.merchant.lfp.v1beta.LfpMerchantState.ILfpStoreState>|null} [storeStates] LfpMerchantState storeStates
|
1075
|
+
* @property {google.shopping.merchant.lfp.v1beta.LfpMerchantState.IInventoryStats|null} [inventoryStats] LfpMerchantState inventoryStats
|
1076
|
+
* @property {Array.<google.shopping.merchant.lfp.v1beta.LfpMerchantState.ICountrySettings>|null} [countrySettings] LfpMerchantState countrySettings
|
1077
|
+
*/
|
1078
|
+
|
1079
|
+
/**
|
1080
|
+
* Constructs a new LfpMerchantState.
|
1081
|
+
* @memberof google.shopping.merchant.lfp.v1beta
|
1082
|
+
* @classdesc Represents a LfpMerchantState.
|
1083
|
+
* @implements ILfpMerchantState
|
1084
|
+
* @constructor
|
1085
|
+
* @param {google.shopping.merchant.lfp.v1beta.ILfpMerchantState=} [properties] Properties to set
|
1086
|
+
*/
|
1087
|
+
function LfpMerchantState(properties) {
|
1088
|
+
this.storeStates = [];
|
1089
|
+
this.countrySettings = [];
|
1090
|
+
if (properties)
|
1091
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
1092
|
+
if (properties[keys[i]] != null)
|
1093
|
+
this[keys[i]] = properties[keys[i]];
|
1094
|
+
}
|
1095
|
+
|
1096
|
+
/**
|
1097
|
+
* LfpMerchantState name.
|
1098
|
+
* @member {string} name
|
1099
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1100
|
+
* @instance
|
1101
|
+
*/
|
1102
|
+
LfpMerchantState.prototype.name = "";
|
1103
|
+
|
1104
|
+
/**
|
1105
|
+
* LfpMerchantState linkedGbps.
|
1106
|
+
* @member {number|Long} linkedGbps
|
1107
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1108
|
+
* @instance
|
1109
|
+
*/
|
1110
|
+
LfpMerchantState.prototype.linkedGbps = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
1111
|
+
|
1112
|
+
/**
|
1113
|
+
* LfpMerchantState storeStates.
|
1114
|
+
* @member {Array.<google.shopping.merchant.lfp.v1beta.LfpMerchantState.ILfpStoreState>} storeStates
|
1115
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1116
|
+
* @instance
|
1117
|
+
*/
|
1118
|
+
LfpMerchantState.prototype.storeStates = $util.emptyArray;
|
1119
|
+
|
1120
|
+
/**
|
1121
|
+
* LfpMerchantState inventoryStats.
|
1122
|
+
* @member {google.shopping.merchant.lfp.v1beta.LfpMerchantState.IInventoryStats|null|undefined} inventoryStats
|
1123
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1124
|
+
* @instance
|
1125
|
+
*/
|
1126
|
+
LfpMerchantState.prototype.inventoryStats = null;
|
1127
|
+
|
1128
|
+
/**
|
1129
|
+
* LfpMerchantState countrySettings.
|
1130
|
+
* @member {Array.<google.shopping.merchant.lfp.v1beta.LfpMerchantState.ICountrySettings>} countrySettings
|
1131
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1132
|
+
* @instance
|
1133
|
+
*/
|
1134
|
+
LfpMerchantState.prototype.countrySettings = $util.emptyArray;
|
1135
|
+
|
1136
|
+
/**
|
1137
|
+
* Creates a new LfpMerchantState instance using the specified properties.
|
1138
|
+
* @function create
|
1139
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1140
|
+
* @static
|
1141
|
+
* @param {google.shopping.merchant.lfp.v1beta.ILfpMerchantState=} [properties] Properties to set
|
1142
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState} LfpMerchantState instance
|
1143
|
+
*/
|
1144
|
+
LfpMerchantState.create = function create(properties) {
|
1145
|
+
return new LfpMerchantState(properties);
|
1146
|
+
};
|
1147
|
+
|
1148
|
+
/**
|
1149
|
+
* Encodes the specified LfpMerchantState message. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.verify|verify} messages.
|
1150
|
+
* @function encode
|
1151
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1152
|
+
* @static
|
1153
|
+
* @param {google.shopping.merchant.lfp.v1beta.ILfpMerchantState} message LfpMerchantState message or plain object to encode
|
1154
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
1155
|
+
* @returns {$protobuf.Writer} Writer
|
1156
|
+
*/
|
1157
|
+
LfpMerchantState.encode = function encode(message, writer) {
|
1158
|
+
if (!writer)
|
1159
|
+
writer = $Writer.create();
|
1160
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
1161
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
1162
|
+
if (message.linkedGbps != null && Object.hasOwnProperty.call(message, "linkedGbps"))
|
1163
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.linkedGbps);
|
1164
|
+
if (message.storeStates != null && message.storeStates.length)
|
1165
|
+
for (var i = 0; i < message.storeStates.length; ++i)
|
1166
|
+
$root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.encode(message.storeStates[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
1167
|
+
if (message.inventoryStats != null && Object.hasOwnProperty.call(message, "inventoryStats"))
|
1168
|
+
$root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats.encode(message.inventoryStats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
1169
|
+
if (message.countrySettings != null && message.countrySettings.length)
|
1170
|
+
for (var i = 0; i < message.countrySettings.length; ++i)
|
1171
|
+
$root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.encode(message.countrySettings[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
1172
|
+
return writer;
|
1173
|
+
};
|
1174
|
+
|
1175
|
+
/**
|
1176
|
+
* Encodes the specified LfpMerchantState message, length delimited. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.verify|verify} messages.
|
1177
|
+
* @function encodeDelimited
|
1178
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1179
|
+
* @static
|
1180
|
+
* @param {google.shopping.merchant.lfp.v1beta.ILfpMerchantState} message LfpMerchantState message or plain object to encode
|
1181
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
1182
|
+
* @returns {$protobuf.Writer} Writer
|
1183
|
+
*/
|
1184
|
+
LfpMerchantState.encodeDelimited = function encodeDelimited(message, writer) {
|
1185
|
+
return this.encode(message, writer).ldelim();
|
1186
|
+
};
|
1187
|
+
|
1188
|
+
/**
|
1189
|
+
* Decodes a LfpMerchantState message from the specified reader or buffer.
|
1190
|
+
* @function decode
|
1191
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1192
|
+
* @static
|
1193
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
1194
|
+
* @param {number} [length] Message length if known beforehand
|
1195
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState} LfpMerchantState
|
1196
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1197
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1198
|
+
*/
|
1199
|
+
LfpMerchantState.decode = function decode(reader, length, error) {
|
1200
|
+
if (!(reader instanceof $Reader))
|
1201
|
+
reader = $Reader.create(reader);
|
1202
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState();
|
1203
|
+
while (reader.pos < end) {
|
1204
|
+
var tag = reader.uint32();
|
1205
|
+
if (tag === error)
|
1206
|
+
break;
|
1207
|
+
switch (tag >>> 3) {
|
1208
|
+
case 1: {
|
1209
|
+
message.name = reader.string();
|
1210
|
+
break;
|
1211
|
+
}
|
1212
|
+
case 2: {
|
1213
|
+
message.linkedGbps = reader.int64();
|
1214
|
+
break;
|
1215
|
+
}
|
1216
|
+
case 3: {
|
1217
|
+
if (!(message.storeStates && message.storeStates.length))
|
1218
|
+
message.storeStates = [];
|
1219
|
+
message.storeStates.push($root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.decode(reader, reader.uint32()));
|
1220
|
+
break;
|
1221
|
+
}
|
1222
|
+
case 4: {
|
1223
|
+
message.inventoryStats = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats.decode(reader, reader.uint32());
|
1224
|
+
break;
|
1225
|
+
}
|
1226
|
+
case 5: {
|
1227
|
+
if (!(message.countrySettings && message.countrySettings.length))
|
1228
|
+
message.countrySettings = [];
|
1229
|
+
message.countrySettings.push($root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.decode(reader, reader.uint32()));
|
1230
|
+
break;
|
1231
|
+
}
|
1232
|
+
default:
|
1233
|
+
reader.skipType(tag & 7);
|
1234
|
+
break;
|
1235
|
+
}
|
1236
|
+
}
|
1237
|
+
return message;
|
1238
|
+
};
|
1239
|
+
|
1240
|
+
/**
|
1241
|
+
* Decodes a LfpMerchantState message from the specified reader or buffer, length delimited.
|
1242
|
+
* @function decodeDelimited
|
1243
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1244
|
+
* @static
|
1245
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
1246
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState} LfpMerchantState
|
1247
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1248
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1249
|
+
*/
|
1250
|
+
LfpMerchantState.decodeDelimited = function decodeDelimited(reader) {
|
1251
|
+
if (!(reader instanceof $Reader))
|
1252
|
+
reader = new $Reader(reader);
|
1253
|
+
return this.decode(reader, reader.uint32());
|
1254
|
+
};
|
1255
|
+
|
1256
|
+
/**
|
1257
|
+
* Verifies a LfpMerchantState message.
|
1258
|
+
* @function verify
|
1259
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1260
|
+
* @static
|
1261
|
+
* @param {Object.<string,*>} message Plain object to verify
|
1262
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
1263
|
+
*/
|
1264
|
+
LfpMerchantState.verify = function verify(message) {
|
1265
|
+
if (typeof message !== "object" || message === null)
|
1266
|
+
return "object expected";
|
1267
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
1268
|
+
if (!$util.isString(message.name))
|
1269
|
+
return "name: string expected";
|
1270
|
+
if (message.linkedGbps != null && message.hasOwnProperty("linkedGbps"))
|
1271
|
+
if (!$util.isInteger(message.linkedGbps) && !(message.linkedGbps && $util.isInteger(message.linkedGbps.low) && $util.isInteger(message.linkedGbps.high)))
|
1272
|
+
return "linkedGbps: integer|Long expected";
|
1273
|
+
if (message.storeStates != null && message.hasOwnProperty("storeStates")) {
|
1274
|
+
if (!Array.isArray(message.storeStates))
|
1275
|
+
return "storeStates: array expected";
|
1276
|
+
for (var i = 0; i < message.storeStates.length; ++i) {
|
1277
|
+
var error = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.verify(message.storeStates[i]);
|
1278
|
+
if (error)
|
1279
|
+
return "storeStates." + error;
|
1280
|
+
}
|
1281
|
+
}
|
1282
|
+
if (message.inventoryStats != null && message.hasOwnProperty("inventoryStats")) {
|
1283
|
+
var error = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats.verify(message.inventoryStats);
|
1284
|
+
if (error)
|
1285
|
+
return "inventoryStats." + error;
|
1286
|
+
}
|
1287
|
+
if (message.countrySettings != null && message.hasOwnProperty("countrySettings")) {
|
1288
|
+
if (!Array.isArray(message.countrySettings))
|
1289
|
+
return "countrySettings: array expected";
|
1290
|
+
for (var i = 0; i < message.countrySettings.length; ++i) {
|
1291
|
+
var error = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.verify(message.countrySettings[i]);
|
1292
|
+
if (error)
|
1293
|
+
return "countrySettings." + error;
|
1294
|
+
}
|
1295
|
+
}
|
1296
|
+
return null;
|
1297
|
+
};
|
1298
|
+
|
1299
|
+
/**
|
1300
|
+
* Creates a LfpMerchantState message from a plain object. Also converts values to their respective internal types.
|
1301
|
+
* @function fromObject
|
1302
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1303
|
+
* @static
|
1304
|
+
* @param {Object.<string,*>} object Plain object
|
1305
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState} LfpMerchantState
|
1306
|
+
*/
|
1307
|
+
LfpMerchantState.fromObject = function fromObject(object) {
|
1308
|
+
if (object instanceof $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState)
|
1309
|
+
return object;
|
1310
|
+
var message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState();
|
1311
|
+
if (object.name != null)
|
1312
|
+
message.name = String(object.name);
|
1313
|
+
if (object.linkedGbps != null)
|
1314
|
+
if ($util.Long)
|
1315
|
+
(message.linkedGbps = $util.Long.fromValue(object.linkedGbps)).unsigned = false;
|
1316
|
+
else if (typeof object.linkedGbps === "string")
|
1317
|
+
message.linkedGbps = parseInt(object.linkedGbps, 10);
|
1318
|
+
else if (typeof object.linkedGbps === "number")
|
1319
|
+
message.linkedGbps = object.linkedGbps;
|
1320
|
+
else if (typeof object.linkedGbps === "object")
|
1321
|
+
message.linkedGbps = new $util.LongBits(object.linkedGbps.low >>> 0, object.linkedGbps.high >>> 0).toNumber();
|
1322
|
+
if (object.storeStates) {
|
1323
|
+
if (!Array.isArray(object.storeStates))
|
1324
|
+
throw TypeError(".google.shopping.merchant.lfp.v1beta.LfpMerchantState.storeStates: array expected");
|
1325
|
+
message.storeStates = [];
|
1326
|
+
for (var i = 0; i < object.storeStates.length; ++i) {
|
1327
|
+
if (typeof object.storeStates[i] !== "object")
|
1328
|
+
throw TypeError(".google.shopping.merchant.lfp.v1beta.LfpMerchantState.storeStates: object expected");
|
1329
|
+
message.storeStates[i] = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.fromObject(object.storeStates[i]);
|
1330
|
+
}
|
1331
|
+
}
|
1332
|
+
if (object.inventoryStats != null) {
|
1333
|
+
if (typeof object.inventoryStats !== "object")
|
1334
|
+
throw TypeError(".google.shopping.merchant.lfp.v1beta.LfpMerchantState.inventoryStats: object expected");
|
1335
|
+
message.inventoryStats = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats.fromObject(object.inventoryStats);
|
1336
|
+
}
|
1337
|
+
if (object.countrySettings) {
|
1338
|
+
if (!Array.isArray(object.countrySettings))
|
1339
|
+
throw TypeError(".google.shopping.merchant.lfp.v1beta.LfpMerchantState.countrySettings: array expected");
|
1340
|
+
message.countrySettings = [];
|
1341
|
+
for (var i = 0; i < object.countrySettings.length; ++i) {
|
1342
|
+
if (typeof object.countrySettings[i] !== "object")
|
1343
|
+
throw TypeError(".google.shopping.merchant.lfp.v1beta.LfpMerchantState.countrySettings: object expected");
|
1344
|
+
message.countrySettings[i] = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.fromObject(object.countrySettings[i]);
|
1345
|
+
}
|
1346
|
+
}
|
1347
|
+
return message;
|
1348
|
+
};
|
1349
|
+
|
1350
|
+
/**
|
1351
|
+
* Creates a plain object from a LfpMerchantState message. Also converts values to other types if specified.
|
1352
|
+
* @function toObject
|
1353
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1354
|
+
* @static
|
1355
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState} message LfpMerchantState
|
1356
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
1357
|
+
* @returns {Object.<string,*>} Plain object
|
1358
|
+
*/
|
1359
|
+
LfpMerchantState.toObject = function toObject(message, options) {
|
1360
|
+
if (!options)
|
1361
|
+
options = {};
|
1362
|
+
var object = {};
|
1363
|
+
if (options.arrays || options.defaults) {
|
1364
|
+
object.storeStates = [];
|
1365
|
+
object.countrySettings = [];
|
1366
|
+
}
|
1367
|
+
if (options.defaults) {
|
1368
|
+
object.name = "";
|
1369
|
+
if ($util.Long) {
|
1370
|
+
var long = new $util.Long(0, 0, false);
|
1371
|
+
object.linkedGbps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
1372
|
+
} else
|
1373
|
+
object.linkedGbps = options.longs === String ? "0" : 0;
|
1374
|
+
object.inventoryStats = null;
|
1375
|
+
}
|
1376
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
1377
|
+
object.name = message.name;
|
1378
|
+
if (message.linkedGbps != null && message.hasOwnProperty("linkedGbps"))
|
1379
|
+
if (typeof message.linkedGbps === "number")
|
1380
|
+
object.linkedGbps = options.longs === String ? String(message.linkedGbps) : message.linkedGbps;
|
1381
|
+
else
|
1382
|
+
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;
|
1383
|
+
if (message.storeStates && message.storeStates.length) {
|
1384
|
+
object.storeStates = [];
|
1385
|
+
for (var j = 0; j < message.storeStates.length; ++j)
|
1386
|
+
object.storeStates[j] = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.toObject(message.storeStates[j], options);
|
1387
|
+
}
|
1388
|
+
if (message.inventoryStats != null && message.hasOwnProperty("inventoryStats"))
|
1389
|
+
object.inventoryStats = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats.toObject(message.inventoryStats, options);
|
1390
|
+
if (message.countrySettings && message.countrySettings.length) {
|
1391
|
+
object.countrySettings = [];
|
1392
|
+
for (var j = 0; j < message.countrySettings.length; ++j)
|
1393
|
+
object.countrySettings[j] = $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.toObject(message.countrySettings[j], options);
|
1394
|
+
}
|
1395
|
+
return object;
|
1396
|
+
};
|
1397
|
+
|
1398
|
+
/**
|
1399
|
+
* Converts this LfpMerchantState to JSON.
|
1400
|
+
* @function toJSON
|
1401
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1402
|
+
* @instance
|
1403
|
+
* @returns {Object.<string,*>} JSON object
|
1404
|
+
*/
|
1405
|
+
LfpMerchantState.prototype.toJSON = function toJSON() {
|
1406
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
1407
|
+
};
|
1408
|
+
|
1409
|
+
/**
|
1410
|
+
* Gets the default type url for LfpMerchantState
|
1411
|
+
* @function getTypeUrl
|
1412
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1413
|
+
* @static
|
1414
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
1415
|
+
* @returns {string} The default type url
|
1416
|
+
*/
|
1417
|
+
LfpMerchantState.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
1418
|
+
if (typeUrlPrefix === undefined) {
|
1419
|
+
typeUrlPrefix = "type.googleapis.com";
|
1420
|
+
}
|
1421
|
+
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.LfpMerchantState";
|
1422
|
+
};
|
1423
|
+
|
1424
|
+
LfpMerchantState.LfpStoreState = (function() {
|
1425
|
+
|
1426
|
+
/**
|
1427
|
+
* Properties of a LfpStoreState.
|
1428
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1429
|
+
* @interface ILfpStoreState
|
1430
|
+
* @property {string|null} [storeCode] LfpStoreState storeCode
|
1431
|
+
* @property {google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.StoreMatchingState|null} [matchingState] LfpStoreState matchingState
|
1432
|
+
* @property {string|null} [matchingStateHint] LfpStoreState matchingStateHint
|
1433
|
+
*/
|
1434
|
+
|
1435
|
+
/**
|
1436
|
+
* Constructs a new LfpStoreState.
|
1437
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1438
|
+
* @classdesc Represents a LfpStoreState.
|
1439
|
+
* @implements ILfpStoreState
|
1440
|
+
* @constructor
|
1441
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ILfpStoreState=} [properties] Properties to set
|
1442
|
+
*/
|
1443
|
+
function LfpStoreState(properties) {
|
1444
|
+
if (properties)
|
1445
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
1446
|
+
if (properties[keys[i]] != null)
|
1447
|
+
this[keys[i]] = properties[keys[i]];
|
1448
|
+
}
|
1449
|
+
|
1450
|
+
/**
|
1451
|
+
* LfpStoreState storeCode.
|
1452
|
+
* @member {string} storeCode
|
1453
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1454
|
+
* @instance
|
1455
|
+
*/
|
1456
|
+
LfpStoreState.prototype.storeCode = "";
|
1457
|
+
|
1458
|
+
/**
|
1459
|
+
* LfpStoreState matchingState.
|
1460
|
+
* @member {google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.StoreMatchingState} matchingState
|
1461
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1462
|
+
* @instance
|
1463
|
+
*/
|
1464
|
+
LfpStoreState.prototype.matchingState = 0;
|
1465
|
+
|
1466
|
+
/**
|
1467
|
+
* LfpStoreState matchingStateHint.
|
1468
|
+
* @member {string} matchingStateHint
|
1469
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1470
|
+
* @instance
|
1471
|
+
*/
|
1472
|
+
LfpStoreState.prototype.matchingStateHint = "";
|
1473
|
+
|
1474
|
+
/**
|
1475
|
+
* Creates a new LfpStoreState instance using the specified properties.
|
1476
|
+
* @function create
|
1477
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1478
|
+
* @static
|
1479
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ILfpStoreState=} [properties] Properties to set
|
1480
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState} LfpStoreState instance
|
1481
|
+
*/
|
1482
|
+
LfpStoreState.create = function create(properties) {
|
1483
|
+
return new LfpStoreState(properties);
|
1484
|
+
};
|
1485
|
+
|
1486
|
+
/**
|
1487
|
+
* Encodes the specified LfpStoreState message. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.verify|verify} messages.
|
1488
|
+
* @function encode
|
1489
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1490
|
+
* @static
|
1491
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ILfpStoreState} message LfpStoreState message or plain object to encode
|
1492
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
1493
|
+
* @returns {$protobuf.Writer} Writer
|
1494
|
+
*/
|
1495
|
+
LfpStoreState.encode = function encode(message, writer) {
|
1496
|
+
if (!writer)
|
1497
|
+
writer = $Writer.create();
|
1498
|
+
if (message.storeCode != null && Object.hasOwnProperty.call(message, "storeCode"))
|
1499
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.storeCode);
|
1500
|
+
if (message.matchingState != null && Object.hasOwnProperty.call(message, "matchingState"))
|
1501
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.matchingState);
|
1502
|
+
if (message.matchingStateHint != null && Object.hasOwnProperty.call(message, "matchingStateHint"))
|
1503
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.matchingStateHint);
|
1504
|
+
return writer;
|
1505
|
+
};
|
1506
|
+
|
1507
|
+
/**
|
1508
|
+
* Encodes the specified LfpStoreState message, length delimited. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.verify|verify} messages.
|
1509
|
+
* @function encodeDelimited
|
1510
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1511
|
+
* @static
|
1512
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ILfpStoreState} message LfpStoreState message or plain object to encode
|
1513
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
1514
|
+
* @returns {$protobuf.Writer} Writer
|
1515
|
+
*/
|
1516
|
+
LfpStoreState.encodeDelimited = function encodeDelimited(message, writer) {
|
1517
|
+
return this.encode(message, writer).ldelim();
|
1518
|
+
};
|
1519
|
+
|
1520
|
+
/**
|
1521
|
+
* Decodes a LfpStoreState message from the specified reader or buffer.
|
1522
|
+
* @function decode
|
1523
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1524
|
+
* @static
|
1525
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
1526
|
+
* @param {number} [length] Message length if known beforehand
|
1527
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState} LfpStoreState
|
1528
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1529
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1530
|
+
*/
|
1531
|
+
LfpStoreState.decode = function decode(reader, length, error) {
|
1532
|
+
if (!(reader instanceof $Reader))
|
1533
|
+
reader = $Reader.create(reader);
|
1534
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState();
|
1535
|
+
while (reader.pos < end) {
|
1536
|
+
var tag = reader.uint32();
|
1537
|
+
if (tag === error)
|
1538
|
+
break;
|
1539
|
+
switch (tag >>> 3) {
|
1540
|
+
case 1: {
|
1541
|
+
message.storeCode = reader.string();
|
1542
|
+
break;
|
1543
|
+
}
|
1544
|
+
case 2: {
|
1545
|
+
message.matchingState = reader.int32();
|
1546
|
+
break;
|
1547
|
+
}
|
1548
|
+
case 3: {
|
1549
|
+
message.matchingStateHint = reader.string();
|
1550
|
+
break;
|
1551
|
+
}
|
1552
|
+
default:
|
1553
|
+
reader.skipType(tag & 7);
|
1554
|
+
break;
|
1555
|
+
}
|
1556
|
+
}
|
1557
|
+
return message;
|
1558
|
+
};
|
1559
|
+
|
1560
|
+
/**
|
1561
|
+
* Decodes a LfpStoreState message from the specified reader or buffer, length delimited.
|
1562
|
+
* @function decodeDelimited
|
1563
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1564
|
+
* @static
|
1565
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
1566
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState} LfpStoreState
|
1567
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1568
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1569
|
+
*/
|
1570
|
+
LfpStoreState.decodeDelimited = function decodeDelimited(reader) {
|
1571
|
+
if (!(reader instanceof $Reader))
|
1572
|
+
reader = new $Reader(reader);
|
1573
|
+
return this.decode(reader, reader.uint32());
|
1574
|
+
};
|
1575
|
+
|
1576
|
+
/**
|
1577
|
+
* Verifies a LfpStoreState message.
|
1578
|
+
* @function verify
|
1579
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1580
|
+
* @static
|
1581
|
+
* @param {Object.<string,*>} message Plain object to verify
|
1582
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
1583
|
+
*/
|
1584
|
+
LfpStoreState.verify = function verify(message) {
|
1585
|
+
if (typeof message !== "object" || message === null)
|
1586
|
+
return "object expected";
|
1587
|
+
if (message.storeCode != null && message.hasOwnProperty("storeCode"))
|
1588
|
+
if (!$util.isString(message.storeCode))
|
1589
|
+
return "storeCode: string expected";
|
1590
|
+
if (message.matchingState != null && message.hasOwnProperty("matchingState"))
|
1591
|
+
switch (message.matchingState) {
|
1592
|
+
default:
|
1593
|
+
return "matchingState: enum value expected";
|
1594
|
+
case 0:
|
1595
|
+
case 1:
|
1596
|
+
case 2:
|
1597
|
+
break;
|
1598
|
+
}
|
1599
|
+
if (message.matchingStateHint != null && message.hasOwnProperty("matchingStateHint"))
|
1600
|
+
if (!$util.isString(message.matchingStateHint))
|
1601
|
+
return "matchingStateHint: string expected";
|
1602
|
+
return null;
|
1603
|
+
};
|
1604
|
+
|
1605
|
+
/**
|
1606
|
+
* Creates a LfpStoreState message from a plain object. Also converts values to their respective internal types.
|
1607
|
+
* @function fromObject
|
1608
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1609
|
+
* @static
|
1610
|
+
* @param {Object.<string,*>} object Plain object
|
1611
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState} LfpStoreState
|
1612
|
+
*/
|
1613
|
+
LfpStoreState.fromObject = function fromObject(object) {
|
1614
|
+
if (object instanceof $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState)
|
1615
|
+
return object;
|
1616
|
+
var message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState();
|
1617
|
+
if (object.storeCode != null)
|
1618
|
+
message.storeCode = String(object.storeCode);
|
1619
|
+
switch (object.matchingState) {
|
1620
|
+
default:
|
1621
|
+
if (typeof object.matchingState === "number") {
|
1622
|
+
message.matchingState = object.matchingState;
|
1623
|
+
break;
|
1624
|
+
}
|
1625
|
+
break;
|
1626
|
+
case "STORE_MATCHING_STATE_UNSPECIFIED":
|
1627
|
+
case 0:
|
1628
|
+
message.matchingState = 0;
|
1629
|
+
break;
|
1630
|
+
case "STORE_MATCHING_STATE_MATCHED":
|
1631
|
+
case 1:
|
1632
|
+
message.matchingState = 1;
|
1633
|
+
break;
|
1634
|
+
case "STORE_MATCHING_STATE_FAILED":
|
1635
|
+
case 2:
|
1636
|
+
message.matchingState = 2;
|
1637
|
+
break;
|
1638
|
+
}
|
1639
|
+
if (object.matchingStateHint != null)
|
1640
|
+
message.matchingStateHint = String(object.matchingStateHint);
|
1641
|
+
return message;
|
1642
|
+
};
|
1643
|
+
|
1644
|
+
/**
|
1645
|
+
* Creates a plain object from a LfpStoreState message. Also converts values to other types if specified.
|
1646
|
+
* @function toObject
|
1647
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1648
|
+
* @static
|
1649
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState} message LfpStoreState
|
1650
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
1651
|
+
* @returns {Object.<string,*>} Plain object
|
1652
|
+
*/
|
1653
|
+
LfpStoreState.toObject = function toObject(message, options) {
|
1654
|
+
if (!options)
|
1655
|
+
options = {};
|
1656
|
+
var object = {};
|
1657
|
+
if (options.defaults) {
|
1658
|
+
object.storeCode = "";
|
1659
|
+
object.matchingState = options.enums === String ? "STORE_MATCHING_STATE_UNSPECIFIED" : 0;
|
1660
|
+
object.matchingStateHint = "";
|
1661
|
+
}
|
1662
|
+
if (message.storeCode != null && message.hasOwnProperty("storeCode"))
|
1663
|
+
object.storeCode = message.storeCode;
|
1664
|
+
if (message.matchingState != null && message.hasOwnProperty("matchingState"))
|
1665
|
+
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;
|
1666
|
+
if (message.matchingStateHint != null && message.hasOwnProperty("matchingStateHint"))
|
1667
|
+
object.matchingStateHint = message.matchingStateHint;
|
1668
|
+
return object;
|
1669
|
+
};
|
1670
|
+
|
1671
|
+
/**
|
1672
|
+
* Converts this LfpStoreState to JSON.
|
1673
|
+
* @function toJSON
|
1674
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1675
|
+
* @instance
|
1676
|
+
* @returns {Object.<string,*>} JSON object
|
1677
|
+
*/
|
1678
|
+
LfpStoreState.prototype.toJSON = function toJSON() {
|
1679
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
1680
|
+
};
|
1681
|
+
|
1682
|
+
/**
|
1683
|
+
* Gets the default type url for LfpStoreState
|
1684
|
+
* @function getTypeUrl
|
1685
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState
|
1686
|
+
* @static
|
1687
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
1688
|
+
* @returns {string} The default type url
|
1689
|
+
*/
|
1690
|
+
LfpStoreState.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
1691
|
+
if (typeUrlPrefix === undefined) {
|
1692
|
+
typeUrlPrefix = "type.googleapis.com";
|
1693
|
+
}
|
1694
|
+
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState";
|
1695
|
+
};
|
1696
|
+
|
1697
|
+
/**
|
1698
|
+
* StoreMatchingState enum.
|
1699
|
+
* @name google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.StoreMatchingState
|
1700
|
+
* @enum {number}
|
1701
|
+
* @property {number} STORE_MATCHING_STATE_UNSPECIFIED=0 STORE_MATCHING_STATE_UNSPECIFIED value
|
1702
|
+
* @property {number} STORE_MATCHING_STATE_MATCHED=1 STORE_MATCHING_STATE_MATCHED value
|
1703
|
+
* @property {number} STORE_MATCHING_STATE_FAILED=2 STORE_MATCHING_STATE_FAILED value
|
1704
|
+
*/
|
1705
|
+
LfpStoreState.StoreMatchingState = (function() {
|
1706
|
+
var valuesById = {}, values = Object.create(valuesById);
|
1707
|
+
values[valuesById[0] = "STORE_MATCHING_STATE_UNSPECIFIED"] = 0;
|
1708
|
+
values[valuesById[1] = "STORE_MATCHING_STATE_MATCHED"] = 1;
|
1709
|
+
values[valuesById[2] = "STORE_MATCHING_STATE_FAILED"] = 2;
|
1710
|
+
return values;
|
1711
|
+
})();
|
1712
|
+
|
1713
|
+
return LfpStoreState;
|
1714
|
+
})();
|
1715
|
+
|
1716
|
+
LfpMerchantState.InventoryStats = (function() {
|
1717
|
+
|
1718
|
+
/**
|
1719
|
+
* Properties of an InventoryStats.
|
1720
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1721
|
+
* @interface IInventoryStats
|
1722
|
+
* @property {number|Long|null} [submittedEntries] InventoryStats submittedEntries
|
1723
|
+
* @property {number|Long|null} [submittedInStockEntries] InventoryStats submittedInStockEntries
|
1724
|
+
* @property {number|Long|null} [unsubmittedEntries] InventoryStats unsubmittedEntries
|
1725
|
+
* @property {number|Long|null} [submittedProducts] InventoryStats submittedProducts
|
1726
|
+
*/
|
1727
|
+
|
1728
|
+
/**
|
1729
|
+
* Constructs a new InventoryStats.
|
1730
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
1731
|
+
* @classdesc Represents an InventoryStats.
|
1732
|
+
* @implements IInventoryStats
|
1733
|
+
* @constructor
|
1734
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.IInventoryStats=} [properties] Properties to set
|
1735
|
+
*/
|
1736
|
+
function InventoryStats(properties) {
|
1737
|
+
if (properties)
|
1738
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
1739
|
+
if (properties[keys[i]] != null)
|
1740
|
+
this[keys[i]] = properties[keys[i]];
|
1741
|
+
}
|
1742
|
+
|
1743
|
+
/**
|
1744
|
+
* InventoryStats submittedEntries.
|
1745
|
+
* @member {number|Long} submittedEntries
|
1746
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1747
|
+
* @instance
|
1748
|
+
*/
|
1749
|
+
InventoryStats.prototype.submittedEntries = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
1750
|
+
|
1751
|
+
/**
|
1752
|
+
* InventoryStats submittedInStockEntries.
|
1753
|
+
* @member {number|Long} submittedInStockEntries
|
1754
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1755
|
+
* @instance
|
1756
|
+
*/
|
1757
|
+
InventoryStats.prototype.submittedInStockEntries = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
1758
|
+
|
1759
|
+
/**
|
1760
|
+
* InventoryStats unsubmittedEntries.
|
1761
|
+
* @member {number|Long} unsubmittedEntries
|
1762
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1763
|
+
* @instance
|
1764
|
+
*/
|
1765
|
+
InventoryStats.prototype.unsubmittedEntries = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
1766
|
+
|
1767
|
+
/**
|
1768
|
+
* InventoryStats submittedProducts.
|
1769
|
+
* @member {number|Long} submittedProducts
|
1770
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1771
|
+
* @instance
|
1772
|
+
*/
|
1773
|
+
InventoryStats.prototype.submittedProducts = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
1774
|
+
|
1775
|
+
/**
|
1776
|
+
* Creates a new InventoryStats instance using the specified properties.
|
1777
|
+
* @function create
|
1778
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1779
|
+
* @static
|
1780
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.IInventoryStats=} [properties] Properties to set
|
1781
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats} InventoryStats instance
|
1782
|
+
*/
|
1783
|
+
InventoryStats.create = function create(properties) {
|
1784
|
+
return new InventoryStats(properties);
|
1785
|
+
};
|
1786
|
+
|
1787
|
+
/**
|
1788
|
+
* Encodes the specified InventoryStats message. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats.verify|verify} messages.
|
1789
|
+
* @function encode
|
1790
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1791
|
+
* @static
|
1792
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.IInventoryStats} message InventoryStats message or plain object to encode
|
1793
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
1794
|
+
* @returns {$protobuf.Writer} Writer
|
1795
|
+
*/
|
1796
|
+
InventoryStats.encode = function encode(message, writer) {
|
1797
|
+
if (!writer)
|
1798
|
+
writer = $Writer.create();
|
1799
|
+
if (message.submittedEntries != null && Object.hasOwnProperty.call(message, "submittedEntries"))
|
1800
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.submittedEntries);
|
1801
|
+
if (message.submittedInStockEntries != null && Object.hasOwnProperty.call(message, "submittedInStockEntries"))
|
1802
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int64(message.submittedInStockEntries);
|
1803
|
+
if (message.unsubmittedEntries != null && Object.hasOwnProperty.call(message, "unsubmittedEntries"))
|
1804
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int64(message.unsubmittedEntries);
|
1805
|
+
if (message.submittedProducts != null && Object.hasOwnProperty.call(message, "submittedProducts"))
|
1806
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int64(message.submittedProducts);
|
1807
|
+
return writer;
|
1808
|
+
};
|
1809
|
+
|
1810
|
+
/**
|
1811
|
+
* Encodes the specified InventoryStats message, length delimited. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats.verify|verify} messages.
|
1812
|
+
* @function encodeDelimited
|
1813
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1814
|
+
* @static
|
1815
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.IInventoryStats} message InventoryStats message or plain object to encode
|
1816
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
1817
|
+
* @returns {$protobuf.Writer} Writer
|
1818
|
+
*/
|
1819
|
+
InventoryStats.encodeDelimited = function encodeDelimited(message, writer) {
|
1820
|
+
return this.encode(message, writer).ldelim();
|
1821
|
+
};
|
1822
|
+
|
1823
|
+
/**
|
1824
|
+
* Decodes an InventoryStats message from the specified reader or buffer.
|
1825
|
+
* @function decode
|
1826
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1827
|
+
* @static
|
1828
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
1829
|
+
* @param {number} [length] Message length if known beforehand
|
1830
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats} InventoryStats
|
1831
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1832
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1833
|
+
*/
|
1834
|
+
InventoryStats.decode = function decode(reader, length, error) {
|
1835
|
+
if (!(reader instanceof $Reader))
|
1836
|
+
reader = $Reader.create(reader);
|
1837
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats();
|
1838
|
+
while (reader.pos < end) {
|
1839
|
+
var tag = reader.uint32();
|
1840
|
+
if (tag === error)
|
1841
|
+
break;
|
1842
|
+
switch (tag >>> 3) {
|
1843
|
+
case 1: {
|
1844
|
+
message.submittedEntries = reader.int64();
|
1845
|
+
break;
|
1846
|
+
}
|
1847
|
+
case 2: {
|
1848
|
+
message.submittedInStockEntries = reader.int64();
|
1849
|
+
break;
|
1850
|
+
}
|
1851
|
+
case 3: {
|
1852
|
+
message.unsubmittedEntries = reader.int64();
|
1853
|
+
break;
|
1854
|
+
}
|
1855
|
+
case 4: {
|
1856
|
+
message.submittedProducts = reader.int64();
|
1857
|
+
break;
|
1858
|
+
}
|
1859
|
+
default:
|
1860
|
+
reader.skipType(tag & 7);
|
1861
|
+
break;
|
1862
|
+
}
|
1863
|
+
}
|
1864
|
+
return message;
|
1865
|
+
};
|
1866
|
+
|
1867
|
+
/**
|
1868
|
+
* Decodes an InventoryStats message from the specified reader or buffer, length delimited.
|
1869
|
+
* @function decodeDelimited
|
1870
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1871
|
+
* @static
|
1872
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
1873
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats} InventoryStats
|
1874
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
1875
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1876
|
+
*/
|
1877
|
+
InventoryStats.decodeDelimited = function decodeDelimited(reader) {
|
1878
|
+
if (!(reader instanceof $Reader))
|
1879
|
+
reader = new $Reader(reader);
|
1880
|
+
return this.decode(reader, reader.uint32());
|
1881
|
+
};
|
1882
|
+
|
1883
|
+
/**
|
1884
|
+
* Verifies an InventoryStats message.
|
1885
|
+
* @function verify
|
1886
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1887
|
+
* @static
|
1888
|
+
* @param {Object.<string,*>} message Plain object to verify
|
1889
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
1890
|
+
*/
|
1891
|
+
InventoryStats.verify = function verify(message) {
|
1892
|
+
if (typeof message !== "object" || message === null)
|
1893
|
+
return "object expected";
|
1894
|
+
if (message.submittedEntries != null && message.hasOwnProperty("submittedEntries"))
|
1895
|
+
if (!$util.isInteger(message.submittedEntries) && !(message.submittedEntries && $util.isInteger(message.submittedEntries.low) && $util.isInteger(message.submittedEntries.high)))
|
1896
|
+
return "submittedEntries: integer|Long expected";
|
1897
|
+
if (message.submittedInStockEntries != null && message.hasOwnProperty("submittedInStockEntries"))
|
1898
|
+
if (!$util.isInteger(message.submittedInStockEntries) && !(message.submittedInStockEntries && $util.isInteger(message.submittedInStockEntries.low) && $util.isInteger(message.submittedInStockEntries.high)))
|
1899
|
+
return "submittedInStockEntries: integer|Long expected";
|
1900
|
+
if (message.unsubmittedEntries != null && message.hasOwnProperty("unsubmittedEntries"))
|
1901
|
+
if (!$util.isInteger(message.unsubmittedEntries) && !(message.unsubmittedEntries && $util.isInteger(message.unsubmittedEntries.low) && $util.isInteger(message.unsubmittedEntries.high)))
|
1902
|
+
return "unsubmittedEntries: integer|Long expected";
|
1903
|
+
if (message.submittedProducts != null && message.hasOwnProperty("submittedProducts"))
|
1904
|
+
if (!$util.isInteger(message.submittedProducts) && !(message.submittedProducts && $util.isInteger(message.submittedProducts.low) && $util.isInteger(message.submittedProducts.high)))
|
1905
|
+
return "submittedProducts: integer|Long expected";
|
1906
|
+
return null;
|
1907
|
+
};
|
1908
|
+
|
1909
|
+
/**
|
1910
|
+
* Creates an InventoryStats message from a plain object. Also converts values to their respective internal types.
|
1911
|
+
* @function fromObject
|
1912
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1913
|
+
* @static
|
1914
|
+
* @param {Object.<string,*>} object Plain object
|
1915
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats} InventoryStats
|
1916
|
+
*/
|
1917
|
+
InventoryStats.fromObject = function fromObject(object) {
|
1918
|
+
if (object instanceof $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats)
|
1919
|
+
return object;
|
1920
|
+
var message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats();
|
1921
|
+
if (object.submittedEntries != null)
|
1922
|
+
if ($util.Long)
|
1923
|
+
(message.submittedEntries = $util.Long.fromValue(object.submittedEntries)).unsigned = false;
|
1924
|
+
else if (typeof object.submittedEntries === "string")
|
1925
|
+
message.submittedEntries = parseInt(object.submittedEntries, 10);
|
1926
|
+
else if (typeof object.submittedEntries === "number")
|
1927
|
+
message.submittedEntries = object.submittedEntries;
|
1928
|
+
else if (typeof object.submittedEntries === "object")
|
1929
|
+
message.submittedEntries = new $util.LongBits(object.submittedEntries.low >>> 0, object.submittedEntries.high >>> 0).toNumber();
|
1930
|
+
if (object.submittedInStockEntries != null)
|
1931
|
+
if ($util.Long)
|
1932
|
+
(message.submittedInStockEntries = $util.Long.fromValue(object.submittedInStockEntries)).unsigned = false;
|
1933
|
+
else if (typeof object.submittedInStockEntries === "string")
|
1934
|
+
message.submittedInStockEntries = parseInt(object.submittedInStockEntries, 10);
|
1935
|
+
else if (typeof object.submittedInStockEntries === "number")
|
1936
|
+
message.submittedInStockEntries = object.submittedInStockEntries;
|
1937
|
+
else if (typeof object.submittedInStockEntries === "object")
|
1938
|
+
message.submittedInStockEntries = new $util.LongBits(object.submittedInStockEntries.low >>> 0, object.submittedInStockEntries.high >>> 0).toNumber();
|
1939
|
+
if (object.unsubmittedEntries != null)
|
1940
|
+
if ($util.Long)
|
1941
|
+
(message.unsubmittedEntries = $util.Long.fromValue(object.unsubmittedEntries)).unsigned = false;
|
1942
|
+
else if (typeof object.unsubmittedEntries === "string")
|
1943
|
+
message.unsubmittedEntries = parseInt(object.unsubmittedEntries, 10);
|
1944
|
+
else if (typeof object.unsubmittedEntries === "number")
|
1945
|
+
message.unsubmittedEntries = object.unsubmittedEntries;
|
1946
|
+
else if (typeof object.unsubmittedEntries === "object")
|
1947
|
+
message.unsubmittedEntries = new $util.LongBits(object.unsubmittedEntries.low >>> 0, object.unsubmittedEntries.high >>> 0).toNumber();
|
1948
|
+
if (object.submittedProducts != null)
|
1949
|
+
if ($util.Long)
|
1950
|
+
(message.submittedProducts = $util.Long.fromValue(object.submittedProducts)).unsigned = false;
|
1951
|
+
else if (typeof object.submittedProducts === "string")
|
1952
|
+
message.submittedProducts = parseInt(object.submittedProducts, 10);
|
1953
|
+
else if (typeof object.submittedProducts === "number")
|
1954
|
+
message.submittedProducts = object.submittedProducts;
|
1955
|
+
else if (typeof object.submittedProducts === "object")
|
1956
|
+
message.submittedProducts = new $util.LongBits(object.submittedProducts.low >>> 0, object.submittedProducts.high >>> 0).toNumber();
|
1957
|
+
return message;
|
1958
|
+
};
|
1959
|
+
|
1960
|
+
/**
|
1961
|
+
* Creates a plain object from an InventoryStats message. Also converts values to other types if specified.
|
1962
|
+
* @function toObject
|
1963
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
1964
|
+
* @static
|
1965
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats} message InventoryStats
|
1966
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
1967
|
+
* @returns {Object.<string,*>} Plain object
|
1968
|
+
*/
|
1969
|
+
InventoryStats.toObject = function toObject(message, options) {
|
1970
|
+
if (!options)
|
1971
|
+
options = {};
|
1972
|
+
var object = {};
|
1973
|
+
if (options.defaults) {
|
1974
|
+
if ($util.Long) {
|
1975
|
+
var long = new $util.Long(0, 0, false);
|
1976
|
+
object.submittedEntries = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
1977
|
+
} else
|
1978
|
+
object.submittedEntries = options.longs === String ? "0" : 0;
|
1979
|
+
if ($util.Long) {
|
1980
|
+
var long = new $util.Long(0, 0, false);
|
1981
|
+
object.submittedInStockEntries = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
1982
|
+
} else
|
1983
|
+
object.submittedInStockEntries = options.longs === String ? "0" : 0;
|
1984
|
+
if ($util.Long) {
|
1985
|
+
var long = new $util.Long(0, 0, false);
|
1986
|
+
object.unsubmittedEntries = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
1987
|
+
} else
|
1988
|
+
object.unsubmittedEntries = options.longs === String ? "0" : 0;
|
1989
|
+
if ($util.Long) {
|
1990
|
+
var long = new $util.Long(0, 0, false);
|
1991
|
+
object.submittedProducts = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
1992
|
+
} else
|
1993
|
+
object.submittedProducts = options.longs === String ? "0" : 0;
|
1994
|
+
}
|
1995
|
+
if (message.submittedEntries != null && message.hasOwnProperty("submittedEntries"))
|
1996
|
+
if (typeof message.submittedEntries === "number")
|
1997
|
+
object.submittedEntries = options.longs === String ? String(message.submittedEntries) : message.submittedEntries;
|
1998
|
+
else
|
1999
|
+
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;
|
2000
|
+
if (message.submittedInStockEntries != null && message.hasOwnProperty("submittedInStockEntries"))
|
2001
|
+
if (typeof message.submittedInStockEntries === "number")
|
2002
|
+
object.submittedInStockEntries = options.longs === String ? String(message.submittedInStockEntries) : message.submittedInStockEntries;
|
2003
|
+
else
|
2004
|
+
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;
|
2005
|
+
if (message.unsubmittedEntries != null && message.hasOwnProperty("unsubmittedEntries"))
|
2006
|
+
if (typeof message.unsubmittedEntries === "number")
|
2007
|
+
object.unsubmittedEntries = options.longs === String ? String(message.unsubmittedEntries) : message.unsubmittedEntries;
|
2008
|
+
else
|
2009
|
+
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;
|
2010
|
+
if (message.submittedProducts != null && message.hasOwnProperty("submittedProducts"))
|
2011
|
+
if (typeof message.submittedProducts === "number")
|
2012
|
+
object.submittedProducts = options.longs === String ? String(message.submittedProducts) : message.submittedProducts;
|
2013
|
+
else
|
2014
|
+
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;
|
2015
|
+
return object;
|
2016
|
+
};
|
2017
|
+
|
2018
|
+
/**
|
2019
|
+
* Converts this InventoryStats to JSON.
|
2020
|
+
* @function toJSON
|
2021
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
2022
|
+
* @instance
|
2023
|
+
* @returns {Object.<string,*>} JSON object
|
2024
|
+
*/
|
2025
|
+
InventoryStats.prototype.toJSON = function toJSON() {
|
2026
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
2027
|
+
};
|
2028
|
+
|
2029
|
+
/**
|
2030
|
+
* Gets the default type url for InventoryStats
|
2031
|
+
* @function getTypeUrl
|
2032
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats
|
2033
|
+
* @static
|
2034
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
2035
|
+
* @returns {string} The default type url
|
2036
|
+
*/
|
2037
|
+
InventoryStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
2038
|
+
if (typeUrlPrefix === undefined) {
|
2039
|
+
typeUrlPrefix = "type.googleapis.com";
|
2040
|
+
}
|
2041
|
+
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats";
|
2042
|
+
};
|
2043
|
+
|
2044
|
+
return InventoryStats;
|
2045
|
+
})();
|
2046
|
+
|
2047
|
+
LfpMerchantState.CountrySettings = (function() {
|
2048
|
+
|
2049
|
+
/**
|
2050
|
+
* Properties of a CountrySettings.
|
2051
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
2052
|
+
* @interface ICountrySettings
|
2053
|
+
* @property {string|null} [regionCode] CountrySettings regionCode
|
2054
|
+
* @property {boolean|null} [freeLocalListingsEnabled] CountrySettings freeLocalListingsEnabled
|
2055
|
+
* @property {boolean|null} [localInventoryAdsEnabled] CountrySettings localInventoryAdsEnabled
|
2056
|
+
* @property {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState|null} [inventoryVerificationState] CountrySettings inventoryVerificationState
|
2057
|
+
* @property {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.ProductPageType|null} [productPageType] CountrySettings productPageType
|
2058
|
+
* @property {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState|null} [instockServingVerificationState] CountrySettings instockServingVerificationState
|
2059
|
+
* @property {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState|null} [pickupServingVerificationState] CountrySettings pickupServingVerificationState
|
2060
|
+
*/
|
2061
|
+
|
2062
|
+
/**
|
2063
|
+
* Constructs a new CountrySettings.
|
2064
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState
|
2065
|
+
* @classdesc Represents a CountrySettings.
|
2066
|
+
* @implements ICountrySettings
|
2067
|
+
* @constructor
|
2068
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ICountrySettings=} [properties] Properties to set
|
2069
|
+
*/
|
2070
|
+
function CountrySettings(properties) {
|
2071
|
+
if (properties)
|
2072
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
2073
|
+
if (properties[keys[i]] != null)
|
2074
|
+
this[keys[i]] = properties[keys[i]];
|
2075
|
+
}
|
2076
|
+
|
2077
|
+
/**
|
2078
|
+
* CountrySettings regionCode.
|
2079
|
+
* @member {string} regionCode
|
2080
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2081
|
+
* @instance
|
2082
|
+
*/
|
2083
|
+
CountrySettings.prototype.regionCode = "";
|
2084
|
+
|
2085
|
+
/**
|
2086
|
+
* CountrySettings freeLocalListingsEnabled.
|
2087
|
+
* @member {boolean} freeLocalListingsEnabled
|
2088
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2089
|
+
* @instance
|
2090
|
+
*/
|
2091
|
+
CountrySettings.prototype.freeLocalListingsEnabled = false;
|
2092
|
+
|
2093
|
+
/**
|
2094
|
+
* CountrySettings localInventoryAdsEnabled.
|
2095
|
+
* @member {boolean} localInventoryAdsEnabled
|
2096
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2097
|
+
* @instance
|
2098
|
+
*/
|
2099
|
+
CountrySettings.prototype.localInventoryAdsEnabled = false;
|
2100
|
+
|
2101
|
+
/**
|
2102
|
+
* CountrySettings inventoryVerificationState.
|
2103
|
+
* @member {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState} inventoryVerificationState
|
2104
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2105
|
+
* @instance
|
2106
|
+
*/
|
2107
|
+
CountrySettings.prototype.inventoryVerificationState = 0;
|
2108
|
+
|
2109
|
+
/**
|
2110
|
+
* CountrySettings productPageType.
|
2111
|
+
* @member {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.ProductPageType} productPageType
|
2112
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2113
|
+
* @instance
|
2114
|
+
*/
|
2115
|
+
CountrySettings.prototype.productPageType = 0;
|
2116
|
+
|
2117
|
+
/**
|
2118
|
+
* CountrySettings instockServingVerificationState.
|
2119
|
+
* @member {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState} instockServingVerificationState
|
2120
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2121
|
+
* @instance
|
2122
|
+
*/
|
2123
|
+
CountrySettings.prototype.instockServingVerificationState = 0;
|
2124
|
+
|
2125
|
+
/**
|
2126
|
+
* CountrySettings pickupServingVerificationState.
|
2127
|
+
* @member {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState} pickupServingVerificationState
|
2128
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2129
|
+
* @instance
|
2130
|
+
*/
|
2131
|
+
CountrySettings.prototype.pickupServingVerificationState = 0;
|
2132
|
+
|
2133
|
+
/**
|
2134
|
+
* Creates a new CountrySettings instance using the specified properties.
|
2135
|
+
* @function create
|
2136
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2137
|
+
* @static
|
2138
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ICountrySettings=} [properties] Properties to set
|
2139
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings} CountrySettings instance
|
2140
|
+
*/
|
2141
|
+
CountrySettings.create = function create(properties) {
|
2142
|
+
return new CountrySettings(properties);
|
2143
|
+
};
|
2144
|
+
|
2145
|
+
/**
|
2146
|
+
* Encodes the specified CountrySettings message. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.verify|verify} messages.
|
2147
|
+
* @function encode
|
2148
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2149
|
+
* @static
|
2150
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ICountrySettings} message CountrySettings message or plain object to encode
|
2151
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
2152
|
+
* @returns {$protobuf.Writer} Writer
|
2153
|
+
*/
|
2154
|
+
CountrySettings.encode = function encode(message, writer) {
|
2155
|
+
if (!writer)
|
2156
|
+
writer = $Writer.create();
|
2157
|
+
if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode"))
|
2158
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.regionCode);
|
2159
|
+
if (message.freeLocalListingsEnabled != null && Object.hasOwnProperty.call(message, "freeLocalListingsEnabled"))
|
2160
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.freeLocalListingsEnabled);
|
2161
|
+
if (message.localInventoryAdsEnabled != null && Object.hasOwnProperty.call(message, "localInventoryAdsEnabled"))
|
2162
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.localInventoryAdsEnabled);
|
2163
|
+
if (message.inventoryVerificationState != null && Object.hasOwnProperty.call(message, "inventoryVerificationState"))
|
2164
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.inventoryVerificationState);
|
2165
|
+
if (message.productPageType != null && Object.hasOwnProperty.call(message, "productPageType"))
|
2166
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.productPageType);
|
2167
|
+
if (message.instockServingVerificationState != null && Object.hasOwnProperty.call(message, "instockServingVerificationState"))
|
2168
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.instockServingVerificationState);
|
2169
|
+
if (message.pickupServingVerificationState != null && Object.hasOwnProperty.call(message, "pickupServingVerificationState"))
|
2170
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.pickupServingVerificationState);
|
2171
|
+
return writer;
|
2172
|
+
};
|
2173
|
+
|
2174
|
+
/**
|
2175
|
+
* Encodes the specified CountrySettings message, length delimited. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.verify|verify} messages.
|
2176
|
+
* @function encodeDelimited
|
2177
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2178
|
+
* @static
|
2179
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.ICountrySettings} message CountrySettings message or plain object to encode
|
2180
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
2181
|
+
* @returns {$protobuf.Writer} Writer
|
2182
|
+
*/
|
2183
|
+
CountrySettings.encodeDelimited = function encodeDelimited(message, writer) {
|
2184
|
+
return this.encode(message, writer).ldelim();
|
2185
|
+
};
|
2186
|
+
|
2187
|
+
/**
|
2188
|
+
* Decodes a CountrySettings message from the specified reader or buffer.
|
2189
|
+
* @function decode
|
2190
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2191
|
+
* @static
|
2192
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
2193
|
+
* @param {number} [length] Message length if known beforehand
|
2194
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings} CountrySettings
|
2195
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2196
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2197
|
+
*/
|
2198
|
+
CountrySettings.decode = function decode(reader, length, error) {
|
2199
|
+
if (!(reader instanceof $Reader))
|
2200
|
+
reader = $Reader.create(reader);
|
2201
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings();
|
2202
|
+
while (reader.pos < end) {
|
2203
|
+
var tag = reader.uint32();
|
2204
|
+
if (tag === error)
|
2205
|
+
break;
|
2206
|
+
switch (tag >>> 3) {
|
2207
|
+
case 1: {
|
2208
|
+
message.regionCode = reader.string();
|
2209
|
+
break;
|
2210
|
+
}
|
2211
|
+
case 2: {
|
2212
|
+
message.freeLocalListingsEnabled = reader.bool();
|
2213
|
+
break;
|
2214
|
+
}
|
2215
|
+
case 3: {
|
2216
|
+
message.localInventoryAdsEnabled = reader.bool();
|
2217
|
+
break;
|
2218
|
+
}
|
2219
|
+
case 4: {
|
2220
|
+
message.inventoryVerificationState = reader.int32();
|
2221
|
+
break;
|
2222
|
+
}
|
2223
|
+
case 5: {
|
2224
|
+
message.productPageType = reader.int32();
|
2225
|
+
break;
|
2226
|
+
}
|
2227
|
+
case 6: {
|
2228
|
+
message.instockServingVerificationState = reader.int32();
|
2229
|
+
break;
|
2230
|
+
}
|
2231
|
+
case 7: {
|
2232
|
+
message.pickupServingVerificationState = reader.int32();
|
2233
|
+
break;
|
2234
|
+
}
|
2235
|
+
default:
|
2236
|
+
reader.skipType(tag & 7);
|
2237
|
+
break;
|
2238
|
+
}
|
2239
|
+
}
|
2240
|
+
return message;
|
2241
|
+
};
|
2242
|
+
|
2243
|
+
/**
|
2244
|
+
* Decodes a CountrySettings message from the specified reader or buffer, length delimited.
|
2245
|
+
* @function decodeDelimited
|
2246
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2247
|
+
* @static
|
2248
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
2249
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings} CountrySettings
|
2250
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
2251
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2252
|
+
*/
|
2253
|
+
CountrySettings.decodeDelimited = function decodeDelimited(reader) {
|
2254
|
+
if (!(reader instanceof $Reader))
|
2255
|
+
reader = new $Reader(reader);
|
2256
|
+
return this.decode(reader, reader.uint32());
|
2257
|
+
};
|
2258
|
+
|
2259
|
+
/**
|
2260
|
+
* Verifies a CountrySettings message.
|
2261
|
+
* @function verify
|
2262
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2263
|
+
* @static
|
2264
|
+
* @param {Object.<string,*>} message Plain object to verify
|
2265
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
2266
|
+
*/
|
2267
|
+
CountrySettings.verify = function verify(message) {
|
2268
|
+
if (typeof message !== "object" || message === null)
|
2269
|
+
return "object expected";
|
2270
|
+
if (message.regionCode != null && message.hasOwnProperty("regionCode"))
|
2271
|
+
if (!$util.isString(message.regionCode))
|
2272
|
+
return "regionCode: string expected";
|
2273
|
+
if (message.freeLocalListingsEnabled != null && message.hasOwnProperty("freeLocalListingsEnabled"))
|
2274
|
+
if (typeof message.freeLocalListingsEnabled !== "boolean")
|
2275
|
+
return "freeLocalListingsEnabled: boolean expected";
|
2276
|
+
if (message.localInventoryAdsEnabled != null && message.hasOwnProperty("localInventoryAdsEnabled"))
|
2277
|
+
if (typeof message.localInventoryAdsEnabled !== "boolean")
|
2278
|
+
return "localInventoryAdsEnabled: boolean expected";
|
2279
|
+
if (message.inventoryVerificationState != null && message.hasOwnProperty("inventoryVerificationState"))
|
2280
|
+
switch (message.inventoryVerificationState) {
|
2281
|
+
default:
|
2282
|
+
return "inventoryVerificationState: enum value expected";
|
2283
|
+
case 0:
|
2284
|
+
case 1:
|
2285
|
+
case 2:
|
2286
|
+
case 3:
|
2287
|
+
break;
|
2288
|
+
}
|
2289
|
+
if (message.productPageType != null && message.hasOwnProperty("productPageType"))
|
2290
|
+
switch (message.productPageType) {
|
2291
|
+
default:
|
2292
|
+
return "productPageType: enum value expected";
|
2293
|
+
case 0:
|
2294
|
+
case 1:
|
2295
|
+
case 2:
|
2296
|
+
case 3:
|
2297
|
+
break;
|
2298
|
+
}
|
2299
|
+
if (message.instockServingVerificationState != null && message.hasOwnProperty("instockServingVerificationState"))
|
2300
|
+
switch (message.instockServingVerificationState) {
|
2301
|
+
default:
|
2302
|
+
return "instockServingVerificationState: enum value expected";
|
2303
|
+
case 0:
|
2304
|
+
case 1:
|
2305
|
+
case 2:
|
2306
|
+
case 3:
|
2307
|
+
break;
|
2308
|
+
}
|
2309
|
+
if (message.pickupServingVerificationState != null && message.hasOwnProperty("pickupServingVerificationState"))
|
2310
|
+
switch (message.pickupServingVerificationState) {
|
2311
|
+
default:
|
2312
|
+
return "pickupServingVerificationState: enum value expected";
|
2313
|
+
case 0:
|
2314
|
+
case 1:
|
2315
|
+
case 2:
|
2316
|
+
case 3:
|
2317
|
+
break;
|
2318
|
+
}
|
2319
|
+
return null;
|
2320
|
+
};
|
2321
|
+
|
2322
|
+
/**
|
2323
|
+
* Creates a CountrySettings message from a plain object. Also converts values to their respective internal types.
|
2324
|
+
* @function fromObject
|
2325
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2326
|
+
* @static
|
2327
|
+
* @param {Object.<string,*>} object Plain object
|
2328
|
+
* @returns {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings} CountrySettings
|
2329
|
+
*/
|
2330
|
+
CountrySettings.fromObject = function fromObject(object) {
|
2331
|
+
if (object instanceof $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings)
|
2332
|
+
return object;
|
2333
|
+
var message = new $root.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings();
|
2334
|
+
if (object.regionCode != null)
|
2335
|
+
message.regionCode = String(object.regionCode);
|
2336
|
+
if (object.freeLocalListingsEnabled != null)
|
2337
|
+
message.freeLocalListingsEnabled = Boolean(object.freeLocalListingsEnabled);
|
2338
|
+
if (object.localInventoryAdsEnabled != null)
|
2339
|
+
message.localInventoryAdsEnabled = Boolean(object.localInventoryAdsEnabled);
|
2340
|
+
switch (object.inventoryVerificationState) {
|
2341
|
+
default:
|
2342
|
+
if (typeof object.inventoryVerificationState === "number") {
|
2343
|
+
message.inventoryVerificationState = object.inventoryVerificationState;
|
2344
|
+
break;
|
2345
|
+
}
|
2346
|
+
break;
|
2347
|
+
case "VERIFICATION_STATE_UNSPECIFIED":
|
2348
|
+
case 0:
|
2349
|
+
message.inventoryVerificationState = 0;
|
2350
|
+
break;
|
2351
|
+
case "VERIFICATION_STATE_NOT_APPROVED":
|
2352
|
+
case 1:
|
2353
|
+
message.inventoryVerificationState = 1;
|
2354
|
+
break;
|
2355
|
+
case "VERIFICATION_STATE_IN_PROGRESS":
|
2356
|
+
case 2:
|
2357
|
+
message.inventoryVerificationState = 2;
|
2358
|
+
break;
|
2359
|
+
case "VERIFICATION_STATE_APPROVED":
|
2360
|
+
case 3:
|
2361
|
+
message.inventoryVerificationState = 3;
|
2362
|
+
break;
|
2363
|
+
}
|
2364
|
+
switch (object.productPageType) {
|
2365
|
+
default:
|
2366
|
+
if (typeof object.productPageType === "number") {
|
2367
|
+
message.productPageType = object.productPageType;
|
2368
|
+
break;
|
2369
|
+
}
|
2370
|
+
break;
|
2371
|
+
case "PRODUCT_PAGE_TYPE_UNSPECIFIED":
|
2372
|
+
case 0:
|
2373
|
+
message.productPageType = 0;
|
2374
|
+
break;
|
2375
|
+
case "GOOGLE_HOSTED":
|
2376
|
+
case 1:
|
2377
|
+
message.productPageType = 1;
|
2378
|
+
break;
|
2379
|
+
case "MERCHANT_HOSTED":
|
2380
|
+
case 2:
|
2381
|
+
message.productPageType = 2;
|
2382
|
+
break;
|
2383
|
+
case "MERCHANT_HOSTED_STORE_SPECIFIC":
|
2384
|
+
case 3:
|
2385
|
+
message.productPageType = 3;
|
2386
|
+
break;
|
2387
|
+
}
|
2388
|
+
switch (object.instockServingVerificationState) {
|
2389
|
+
default:
|
2390
|
+
if (typeof object.instockServingVerificationState === "number") {
|
2391
|
+
message.instockServingVerificationState = object.instockServingVerificationState;
|
2392
|
+
break;
|
2393
|
+
}
|
2394
|
+
break;
|
2395
|
+
case "VERIFICATION_STATE_UNSPECIFIED":
|
2396
|
+
case 0:
|
2397
|
+
message.instockServingVerificationState = 0;
|
2398
|
+
break;
|
2399
|
+
case "VERIFICATION_STATE_NOT_APPROVED":
|
2400
|
+
case 1:
|
2401
|
+
message.instockServingVerificationState = 1;
|
2402
|
+
break;
|
2403
|
+
case "VERIFICATION_STATE_IN_PROGRESS":
|
2404
|
+
case 2:
|
2405
|
+
message.instockServingVerificationState = 2;
|
2406
|
+
break;
|
2407
|
+
case "VERIFICATION_STATE_APPROVED":
|
2408
|
+
case 3:
|
2409
|
+
message.instockServingVerificationState = 3;
|
2410
|
+
break;
|
2411
|
+
}
|
2412
|
+
switch (object.pickupServingVerificationState) {
|
2413
|
+
default:
|
2414
|
+
if (typeof object.pickupServingVerificationState === "number") {
|
2415
|
+
message.pickupServingVerificationState = object.pickupServingVerificationState;
|
2416
|
+
break;
|
2417
|
+
}
|
2418
|
+
break;
|
2419
|
+
case "VERIFICATION_STATE_UNSPECIFIED":
|
2420
|
+
case 0:
|
2421
|
+
message.pickupServingVerificationState = 0;
|
2422
|
+
break;
|
2423
|
+
case "VERIFICATION_STATE_NOT_APPROVED":
|
2424
|
+
case 1:
|
2425
|
+
message.pickupServingVerificationState = 1;
|
2426
|
+
break;
|
2427
|
+
case "VERIFICATION_STATE_IN_PROGRESS":
|
2428
|
+
case 2:
|
2429
|
+
message.pickupServingVerificationState = 2;
|
2430
|
+
break;
|
2431
|
+
case "VERIFICATION_STATE_APPROVED":
|
2432
|
+
case 3:
|
2433
|
+
message.pickupServingVerificationState = 3;
|
2434
|
+
break;
|
2435
|
+
}
|
2436
|
+
return message;
|
2437
|
+
};
|
2438
|
+
|
2439
|
+
/**
|
2440
|
+
* Creates a plain object from a CountrySettings message. Also converts values to other types if specified.
|
2441
|
+
* @function toObject
|
2442
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2443
|
+
* @static
|
2444
|
+
* @param {google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings} message CountrySettings
|
2445
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
2446
|
+
* @returns {Object.<string,*>} Plain object
|
2447
|
+
*/
|
2448
|
+
CountrySettings.toObject = function toObject(message, options) {
|
2449
|
+
if (!options)
|
2450
|
+
options = {};
|
2451
|
+
var object = {};
|
2452
|
+
if (options.defaults) {
|
2453
|
+
object.regionCode = "";
|
2454
|
+
object.freeLocalListingsEnabled = false;
|
2455
|
+
object.localInventoryAdsEnabled = false;
|
2456
|
+
object.inventoryVerificationState = options.enums === String ? "VERIFICATION_STATE_UNSPECIFIED" : 0;
|
2457
|
+
object.productPageType = options.enums === String ? "PRODUCT_PAGE_TYPE_UNSPECIFIED" : 0;
|
2458
|
+
object.instockServingVerificationState = options.enums === String ? "VERIFICATION_STATE_UNSPECIFIED" : 0;
|
2459
|
+
object.pickupServingVerificationState = options.enums === String ? "VERIFICATION_STATE_UNSPECIFIED" : 0;
|
2460
|
+
}
|
2461
|
+
if (message.regionCode != null && message.hasOwnProperty("regionCode"))
|
2462
|
+
object.regionCode = message.regionCode;
|
2463
|
+
if (message.freeLocalListingsEnabled != null && message.hasOwnProperty("freeLocalListingsEnabled"))
|
2464
|
+
object.freeLocalListingsEnabled = message.freeLocalListingsEnabled;
|
2465
|
+
if (message.localInventoryAdsEnabled != null && message.hasOwnProperty("localInventoryAdsEnabled"))
|
2466
|
+
object.localInventoryAdsEnabled = message.localInventoryAdsEnabled;
|
2467
|
+
if (message.inventoryVerificationState != null && message.hasOwnProperty("inventoryVerificationState"))
|
2468
|
+
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;
|
2469
|
+
if (message.productPageType != null && message.hasOwnProperty("productPageType"))
|
2470
|
+
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;
|
2471
|
+
if (message.instockServingVerificationState != null && message.hasOwnProperty("instockServingVerificationState"))
|
2472
|
+
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;
|
2473
|
+
if (message.pickupServingVerificationState != null && message.hasOwnProperty("pickupServingVerificationState"))
|
2474
|
+
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;
|
2475
|
+
return object;
|
2476
|
+
};
|
2477
|
+
|
2478
|
+
/**
|
2479
|
+
* Converts this CountrySettings to JSON.
|
2480
|
+
* @function toJSON
|
2481
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2482
|
+
* @instance
|
2483
|
+
* @returns {Object.<string,*>} JSON object
|
2484
|
+
*/
|
2485
|
+
CountrySettings.prototype.toJSON = function toJSON() {
|
2486
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
2487
|
+
};
|
2488
|
+
|
2489
|
+
/**
|
2490
|
+
* Gets the default type url for CountrySettings
|
2491
|
+
* @function getTypeUrl
|
2492
|
+
* @memberof google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings
|
2493
|
+
* @static
|
2494
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
2495
|
+
* @returns {string} The default type url
|
2496
|
+
*/
|
2497
|
+
CountrySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
2498
|
+
if (typeUrlPrefix === undefined) {
|
2499
|
+
typeUrlPrefix = "type.googleapis.com";
|
2500
|
+
}
|
2501
|
+
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings";
|
2502
|
+
};
|
2503
|
+
|
2504
|
+
/**
|
2505
|
+
* VerificationState enum.
|
2506
|
+
* @name google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState
|
2507
|
+
* @enum {number}
|
2508
|
+
* @property {number} VERIFICATION_STATE_UNSPECIFIED=0 VERIFICATION_STATE_UNSPECIFIED value
|
2509
|
+
* @property {number} VERIFICATION_STATE_NOT_APPROVED=1 VERIFICATION_STATE_NOT_APPROVED value
|
2510
|
+
* @property {number} VERIFICATION_STATE_IN_PROGRESS=2 VERIFICATION_STATE_IN_PROGRESS value
|
2511
|
+
* @property {number} VERIFICATION_STATE_APPROVED=3 VERIFICATION_STATE_APPROVED value
|
2512
|
+
*/
|
2513
|
+
CountrySettings.VerificationState = (function() {
|
2514
|
+
var valuesById = {}, values = Object.create(valuesById);
|
2515
|
+
values[valuesById[0] = "VERIFICATION_STATE_UNSPECIFIED"] = 0;
|
2516
|
+
values[valuesById[1] = "VERIFICATION_STATE_NOT_APPROVED"] = 1;
|
2517
|
+
values[valuesById[2] = "VERIFICATION_STATE_IN_PROGRESS"] = 2;
|
2518
|
+
values[valuesById[3] = "VERIFICATION_STATE_APPROVED"] = 3;
|
2519
|
+
return values;
|
2520
|
+
})();
|
2521
|
+
|
2522
|
+
/**
|
2523
|
+
* ProductPageType enum.
|
2524
|
+
* @name google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.ProductPageType
|
2525
|
+
* @enum {number}
|
2526
|
+
* @property {number} PRODUCT_PAGE_TYPE_UNSPECIFIED=0 PRODUCT_PAGE_TYPE_UNSPECIFIED value
|
2527
|
+
* @property {number} GOOGLE_HOSTED=1 GOOGLE_HOSTED value
|
2528
|
+
* @property {number} MERCHANT_HOSTED=2 MERCHANT_HOSTED value
|
2529
|
+
* @property {number} MERCHANT_HOSTED_STORE_SPECIFIC=3 MERCHANT_HOSTED_STORE_SPECIFIC value
|
2530
|
+
*/
|
2531
|
+
CountrySettings.ProductPageType = (function() {
|
2532
|
+
var valuesById = {}, values = Object.create(valuesById);
|
2533
|
+
values[valuesById[0] = "PRODUCT_PAGE_TYPE_UNSPECIFIED"] = 0;
|
2534
|
+
values[valuesById[1] = "GOOGLE_HOSTED"] = 1;
|
2535
|
+
values[valuesById[2] = "MERCHANT_HOSTED"] = 2;
|
2536
|
+
values[valuesById[3] = "MERCHANT_HOSTED_STORE_SPECIFIC"] = 3;
|
2537
|
+
return values;
|
2538
|
+
})();
|
2539
|
+
|
2540
|
+
return CountrySettings;
|
2541
|
+
})();
|
2542
|
+
|
2543
|
+
return LfpMerchantState;
|
760
2544
|
})();
|
761
2545
|
|
762
|
-
v1beta.
|
2546
|
+
v1beta.GetLfpMerchantStateRequest = (function() {
|
763
2547
|
|
764
2548
|
/**
|
765
|
-
* Properties of
|
2549
|
+
* Properties of a GetLfpMerchantStateRequest.
|
766
2550
|
* @memberof google.shopping.merchant.lfp.v1beta
|
767
|
-
* @interface
|
768
|
-
* @property {string|null} [
|
769
|
-
* @property {google.shopping.merchant.lfp.v1beta.ILfpInventory|null} [lfpInventory] InsertLfpInventoryRequest lfpInventory
|
2551
|
+
* @interface IGetLfpMerchantStateRequest
|
2552
|
+
* @property {string|null} [name] GetLfpMerchantStateRequest name
|
770
2553
|
*/
|
771
2554
|
|
772
2555
|
/**
|
773
|
-
* Constructs a new
|
2556
|
+
* Constructs a new GetLfpMerchantStateRequest.
|
774
2557
|
* @memberof google.shopping.merchant.lfp.v1beta
|
775
|
-
* @classdesc Represents
|
776
|
-
* @implements
|
2558
|
+
* @classdesc Represents a GetLfpMerchantStateRequest.
|
2559
|
+
* @implements IGetLfpMerchantStateRequest
|
777
2560
|
* @constructor
|
778
|
-
* @param {google.shopping.merchant.lfp.v1beta.
|
2561
|
+
* @param {google.shopping.merchant.lfp.v1beta.IGetLfpMerchantStateRequest=} [properties] Properties to set
|
779
2562
|
*/
|
780
|
-
function
|
2563
|
+
function GetLfpMerchantStateRequest(properties) {
|
781
2564
|
if (properties)
|
782
2565
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
783
2566
|
if (properties[keys[i]] != null)
|
@@ -785,89 +2568,77 @@
|
|
785
2568
|
}
|
786
2569
|
|
787
2570
|
/**
|
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
|
2571
|
+
* GetLfpMerchantStateRequest name.
|
2572
|
+
* @member {string} name
|
2573
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
799
2574
|
* @instance
|
800
2575
|
*/
|
801
|
-
|
2576
|
+
GetLfpMerchantStateRequest.prototype.name = "";
|
802
2577
|
|
803
2578
|
/**
|
804
|
-
* Creates a new
|
2579
|
+
* Creates a new GetLfpMerchantStateRequest instance using the specified properties.
|
805
2580
|
* @function create
|
806
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2581
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
807
2582
|
* @static
|
808
|
-
* @param {google.shopping.merchant.lfp.v1beta.
|
809
|
-
* @returns {google.shopping.merchant.lfp.v1beta.
|
2583
|
+
* @param {google.shopping.merchant.lfp.v1beta.IGetLfpMerchantStateRequest=} [properties] Properties to set
|
2584
|
+
* @returns {google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest} GetLfpMerchantStateRequest instance
|
810
2585
|
*/
|
811
|
-
|
812
|
-
return new
|
2586
|
+
GetLfpMerchantStateRequest.create = function create(properties) {
|
2587
|
+
return new GetLfpMerchantStateRequest(properties);
|
813
2588
|
};
|
814
2589
|
|
815
2590
|
/**
|
816
|
-
* Encodes the specified
|
2591
|
+
* Encodes the specified GetLfpMerchantStateRequest message. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest.verify|verify} messages.
|
817
2592
|
* @function encode
|
818
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2593
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
819
2594
|
* @static
|
820
|
-
* @param {google.shopping.merchant.lfp.v1beta.
|
2595
|
+
* @param {google.shopping.merchant.lfp.v1beta.IGetLfpMerchantStateRequest} message GetLfpMerchantStateRequest message or plain object to encode
|
821
2596
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
822
2597
|
* @returns {$protobuf.Writer} Writer
|
823
2598
|
*/
|
824
|
-
|
2599
|
+
GetLfpMerchantStateRequest.encode = function encode(message, writer) {
|
825
2600
|
if (!writer)
|
826
2601
|
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();
|
2602
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
2603
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
831
2604
|
return writer;
|
832
2605
|
};
|
833
2606
|
|
834
2607
|
/**
|
835
|
-
* Encodes the specified
|
2608
|
+
* Encodes the specified GetLfpMerchantStateRequest message, length delimited. Does not implicitly {@link google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest.verify|verify} messages.
|
836
2609
|
* @function encodeDelimited
|
837
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2610
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
838
2611
|
* @static
|
839
|
-
* @param {google.shopping.merchant.lfp.v1beta.
|
2612
|
+
* @param {google.shopping.merchant.lfp.v1beta.IGetLfpMerchantStateRequest} message GetLfpMerchantStateRequest message or plain object to encode
|
840
2613
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
841
2614
|
* @returns {$protobuf.Writer} Writer
|
842
2615
|
*/
|
843
|
-
|
2616
|
+
GetLfpMerchantStateRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
844
2617
|
return this.encode(message, writer).ldelim();
|
845
2618
|
};
|
846
2619
|
|
847
2620
|
/**
|
848
|
-
* Decodes
|
2621
|
+
* Decodes a GetLfpMerchantStateRequest message from the specified reader or buffer.
|
849
2622
|
* @function decode
|
850
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2623
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
851
2624
|
* @static
|
852
2625
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
853
2626
|
* @param {number} [length] Message length if known beforehand
|
854
|
-
* @returns {google.shopping.merchant.lfp.v1beta.
|
2627
|
+
* @returns {google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest} GetLfpMerchantStateRequest
|
855
2628
|
* @throws {Error} If the payload is not a reader or valid buffer
|
856
2629
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
857
2630
|
*/
|
858
|
-
|
2631
|
+
GetLfpMerchantStateRequest.decode = function decode(reader, length, error) {
|
859
2632
|
if (!(reader instanceof $Reader))
|
860
2633
|
reader = $Reader.create(reader);
|
861
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.
|
2634
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest();
|
862
2635
|
while (reader.pos < end) {
|
863
2636
|
var tag = reader.uint32();
|
2637
|
+
if (tag === error)
|
2638
|
+
break;
|
864
2639
|
switch (tag >>> 3) {
|
865
2640
|
case 1: {
|
866
|
-
message.
|
867
|
-
break;
|
868
|
-
}
|
869
|
-
case 2: {
|
870
|
-
message.lfpInventory = $root.google.shopping.merchant.lfp.v1beta.LfpInventory.decode(reader, reader.uint32());
|
2641
|
+
message.name = reader.string();
|
871
2642
|
break;
|
872
2643
|
}
|
873
2644
|
default:
|
@@ -879,116 +2650,102 @@
|
|
879
2650
|
};
|
880
2651
|
|
881
2652
|
/**
|
882
|
-
* Decodes
|
2653
|
+
* Decodes a GetLfpMerchantStateRequest message from the specified reader or buffer, length delimited.
|
883
2654
|
* @function decodeDelimited
|
884
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2655
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
885
2656
|
* @static
|
886
2657
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
887
|
-
* @returns {google.shopping.merchant.lfp.v1beta.
|
2658
|
+
* @returns {google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest} GetLfpMerchantStateRequest
|
888
2659
|
* @throws {Error} If the payload is not a reader or valid buffer
|
889
2660
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
890
2661
|
*/
|
891
|
-
|
2662
|
+
GetLfpMerchantStateRequest.decodeDelimited = function decodeDelimited(reader) {
|
892
2663
|
if (!(reader instanceof $Reader))
|
893
2664
|
reader = new $Reader(reader);
|
894
2665
|
return this.decode(reader, reader.uint32());
|
895
2666
|
};
|
896
2667
|
|
897
2668
|
/**
|
898
|
-
* Verifies
|
2669
|
+
* Verifies a GetLfpMerchantStateRequest message.
|
899
2670
|
* @function verify
|
900
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2671
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
901
2672
|
* @static
|
902
2673
|
* @param {Object.<string,*>} message Plain object to verify
|
903
2674
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
904
2675
|
*/
|
905
|
-
|
2676
|
+
GetLfpMerchantStateRequest.verify = function verify(message) {
|
906
2677
|
if (typeof message !== "object" || message === null)
|
907
2678
|
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
|
-
}
|
2679
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
2680
|
+
if (!$util.isString(message.name))
|
2681
|
+
return "name: string expected";
|
916
2682
|
return null;
|
917
2683
|
};
|
918
2684
|
|
919
2685
|
/**
|
920
|
-
* Creates
|
2686
|
+
* Creates a GetLfpMerchantStateRequest message from a plain object. Also converts values to their respective internal types.
|
921
2687
|
* @function fromObject
|
922
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2688
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
923
2689
|
* @static
|
924
2690
|
* @param {Object.<string,*>} object Plain object
|
925
|
-
* @returns {google.shopping.merchant.lfp.v1beta.
|
2691
|
+
* @returns {google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest} GetLfpMerchantStateRequest
|
926
2692
|
*/
|
927
|
-
|
928
|
-
if (object instanceof $root.google.shopping.merchant.lfp.v1beta.
|
2693
|
+
GetLfpMerchantStateRequest.fromObject = function fromObject(object) {
|
2694
|
+
if (object instanceof $root.google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest)
|
929
2695
|
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
|
-
}
|
2696
|
+
var message = new $root.google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest();
|
2697
|
+
if (object.name != null)
|
2698
|
+
message.name = String(object.name);
|
938
2699
|
return message;
|
939
2700
|
};
|
940
2701
|
|
941
2702
|
/**
|
942
|
-
* Creates a plain object from
|
2703
|
+
* Creates a plain object from a GetLfpMerchantStateRequest message. Also converts values to other types if specified.
|
943
2704
|
* @function toObject
|
944
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2705
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
945
2706
|
* @static
|
946
|
-
* @param {google.shopping.merchant.lfp.v1beta.
|
2707
|
+
* @param {google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest} message GetLfpMerchantStateRequest
|
947
2708
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
948
2709
|
* @returns {Object.<string,*>} Plain object
|
949
2710
|
*/
|
950
|
-
|
2711
|
+
GetLfpMerchantStateRequest.toObject = function toObject(message, options) {
|
951
2712
|
if (!options)
|
952
2713
|
options = {};
|
953
2714
|
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);
|
2715
|
+
if (options.defaults)
|
2716
|
+
object.name = "";
|
2717
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
2718
|
+
object.name = message.name;
|
962
2719
|
return object;
|
963
2720
|
};
|
964
2721
|
|
965
2722
|
/**
|
966
|
-
* Converts this
|
2723
|
+
* Converts this GetLfpMerchantStateRequest to JSON.
|
967
2724
|
* @function toJSON
|
968
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2725
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
969
2726
|
* @instance
|
970
2727
|
* @returns {Object.<string,*>} JSON object
|
971
2728
|
*/
|
972
|
-
|
2729
|
+
GetLfpMerchantStateRequest.prototype.toJSON = function toJSON() {
|
973
2730
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
974
2731
|
};
|
975
2732
|
|
976
2733
|
/**
|
977
|
-
* Gets the default type url for
|
2734
|
+
* Gets the default type url for GetLfpMerchantStateRequest
|
978
2735
|
* @function getTypeUrl
|
979
|
-
* @memberof google.shopping.merchant.lfp.v1beta.
|
2736
|
+
* @memberof google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest
|
980
2737
|
* @static
|
981
2738
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
982
2739
|
* @returns {string} The default type url
|
983
2740
|
*/
|
984
|
-
|
2741
|
+
GetLfpMerchantStateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
985
2742
|
if (typeUrlPrefix === undefined) {
|
986
2743
|
typeUrlPrefix = "type.googleapis.com";
|
987
2744
|
}
|
988
|
-
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.
|
2745
|
+
return typeUrlPrefix + "/google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest";
|
989
2746
|
};
|
990
2747
|
|
991
|
-
return
|
2748
|
+
return GetLfpMerchantStateRequest;
|
992
2749
|
})();
|
993
2750
|
|
994
2751
|
v1beta.LfpSaleService = (function() {
|
@@ -1290,12 +3047,14 @@
|
|
1290
3047
|
* @throws {Error} If the payload is not a reader or valid buffer
|
1291
3048
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1292
3049
|
*/
|
1293
|
-
LfpSale.decode = function decode(reader, length) {
|
3050
|
+
LfpSale.decode = function decode(reader, length, error) {
|
1294
3051
|
if (!(reader instanceof $Reader))
|
1295
3052
|
reader = $Reader.create(reader);
|
1296
3053
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.LfpSale();
|
1297
3054
|
while (reader.pos < end) {
|
1298
3055
|
var tag = reader.uint32();
|
3056
|
+
if (tag === error)
|
3057
|
+
break;
|
1299
3058
|
switch (tag >>> 3) {
|
1300
3059
|
case 1: {
|
1301
3060
|
message.name = reader.string();
|
@@ -1684,12 +3443,14 @@
|
|
1684
3443
|
* @throws {Error} If the payload is not a reader or valid buffer
|
1685
3444
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
1686
3445
|
*/
|
1687
|
-
InsertLfpSaleRequest.decode = function decode(reader, length) {
|
3446
|
+
InsertLfpSaleRequest.decode = function decode(reader, length, error) {
|
1688
3447
|
if (!(reader instanceof $Reader))
|
1689
3448
|
reader = $Reader.create(reader);
|
1690
3449
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.InsertLfpSaleRequest();
|
1691
3450
|
while (reader.pos < end) {
|
1692
3451
|
var tag = reader.uint32();
|
3452
|
+
if (tag === error)
|
3453
|
+
break;
|
1693
3454
|
switch (tag >>> 3) {
|
1694
3455
|
case 1: {
|
1695
3456
|
message.parent = reader.string();
|
@@ -2242,12 +4003,14 @@
|
|
2242
4003
|
* @throws {Error} If the payload is not a reader or valid buffer
|
2243
4004
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2244
4005
|
*/
|
2245
|
-
LfpStore.decode = function decode(reader, length) {
|
4006
|
+
LfpStore.decode = function decode(reader, length, error) {
|
2246
4007
|
if (!(reader instanceof $Reader))
|
2247
4008
|
reader = $Reader.create(reader);
|
2248
4009
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.LfpStore();
|
2249
4010
|
while (reader.pos < end) {
|
2250
4011
|
var tag = reader.uint32();
|
4012
|
+
if (tag === error)
|
4013
|
+
break;
|
2251
4014
|
switch (tag >>> 3) {
|
2252
4015
|
case 1: {
|
2253
4016
|
message.name = reader.string();
|
@@ -2656,12 +4419,14 @@
|
|
2656
4419
|
* @throws {Error} If the payload is not a reader or valid buffer
|
2657
4420
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2658
4421
|
*/
|
2659
|
-
GetLfpStoreRequest.decode = function decode(reader, length) {
|
4422
|
+
GetLfpStoreRequest.decode = function decode(reader, length, error) {
|
2660
4423
|
if (!(reader instanceof $Reader))
|
2661
4424
|
reader = $Reader.create(reader);
|
2662
4425
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.GetLfpStoreRequest();
|
2663
4426
|
while (reader.pos < end) {
|
2664
4427
|
var tag = reader.uint32();
|
4428
|
+
if (tag === error)
|
4429
|
+
break;
|
2665
4430
|
switch (tag >>> 3) {
|
2666
4431
|
case 1: {
|
2667
4432
|
message.name = reader.string();
|
@@ -2870,12 +4635,14 @@
|
|
2870
4635
|
* @throws {Error} If the payload is not a reader or valid buffer
|
2871
4636
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
2872
4637
|
*/
|
2873
|
-
InsertLfpStoreRequest.decode = function decode(reader, length) {
|
4638
|
+
InsertLfpStoreRequest.decode = function decode(reader, length, error) {
|
2874
4639
|
if (!(reader instanceof $Reader))
|
2875
4640
|
reader = $Reader.create(reader);
|
2876
4641
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.InsertLfpStoreRequest();
|
2877
4642
|
while (reader.pos < end) {
|
2878
4643
|
var tag = reader.uint32();
|
4644
|
+
if (tag === error)
|
4645
|
+
break;
|
2879
4646
|
switch (tag >>> 3) {
|
2880
4647
|
case 1: {
|
2881
4648
|
message.parent = reader.string();
|
@@ -3091,12 +4858,14 @@
|
|
3091
4858
|
* @throws {Error} If the payload is not a reader or valid buffer
|
3092
4859
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3093
4860
|
*/
|
3094
|
-
DeleteLfpStoreRequest.decode = function decode(reader, length) {
|
4861
|
+
DeleteLfpStoreRequest.decode = function decode(reader, length, error) {
|
3095
4862
|
if (!(reader instanceof $Reader))
|
3096
4863
|
reader = $Reader.create(reader);
|
3097
4864
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.DeleteLfpStoreRequest();
|
3098
4865
|
while (reader.pos < end) {
|
3099
4866
|
var tag = reader.uint32();
|
4867
|
+
if (tag === error)
|
4868
|
+
break;
|
3100
4869
|
switch (tag >>> 3) {
|
3101
4870
|
case 1: {
|
3102
4871
|
message.name = reader.string();
|
@@ -3327,12 +5096,14 @@
|
|
3327
5096
|
* @throws {Error} If the payload is not a reader or valid buffer
|
3328
5097
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3329
5098
|
*/
|
3330
|
-
ListLfpStoresRequest.decode = function decode(reader, length) {
|
5099
|
+
ListLfpStoresRequest.decode = function decode(reader, length, error) {
|
3331
5100
|
if (!(reader instanceof $Reader))
|
3332
5101
|
reader = $Reader.create(reader);
|
3333
5102
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.ListLfpStoresRequest();
|
3334
5103
|
while (reader.pos < end) {
|
3335
5104
|
var tag = reader.uint32();
|
5105
|
+
if (tag === error)
|
5106
|
+
break;
|
3336
5107
|
switch (tag >>> 3) {
|
3337
5108
|
case 1: {
|
3338
5109
|
message.parent = reader.string();
|
@@ -3594,12 +5365,14 @@
|
|
3594
5365
|
* @throws {Error} If the payload is not a reader or valid buffer
|
3595
5366
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3596
5367
|
*/
|
3597
|
-
ListLfpStoresResponse.decode = function decode(reader, length) {
|
5368
|
+
ListLfpStoresResponse.decode = function decode(reader, length, error) {
|
3598
5369
|
if (!(reader instanceof $Reader))
|
3599
5370
|
reader = $Reader.create(reader);
|
3600
5371
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.merchant.lfp.v1beta.ListLfpStoresResponse();
|
3601
5372
|
while (reader.pos < end) {
|
3602
5373
|
var tag = reader.uint32();
|
5374
|
+
if (tag === error)
|
5375
|
+
break;
|
3603
5376
|
switch (tag >>> 3) {
|
3604
5377
|
case 1: {
|
3605
5378
|
if (!(message.lfpStores && message.lfpStores.length))
|
@@ -3872,12 +5645,14 @@
|
|
3872
5645
|
* @throws {Error} If the payload is not a reader or valid buffer
|
3873
5646
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
3874
5647
|
*/
|
3875
|
-
Weight.decode = function decode(reader, length) {
|
5648
|
+
Weight.decode = function decode(reader, length, error) {
|
3876
5649
|
if (!(reader instanceof $Reader))
|
3877
5650
|
reader = $Reader.create(reader);
|
3878
5651
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.type.Weight();
|
3879
5652
|
while (reader.pos < end) {
|
3880
5653
|
var tag = reader.uint32();
|
5654
|
+
if (tag === error)
|
5655
|
+
break;
|
3881
5656
|
switch (tag >>> 3) {
|
3882
5657
|
case 1: {
|
3883
5658
|
message.amountMicros = reader.int64();
|
@@ -4178,12 +5953,14 @@
|
|
4178
5953
|
* @throws {Error} If the payload is not a reader or valid buffer
|
4179
5954
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4180
5955
|
*/
|
4181
|
-
Price.decode = function decode(reader, length) {
|
5956
|
+
Price.decode = function decode(reader, length, error) {
|
4182
5957
|
if (!(reader instanceof $Reader))
|
4183
5958
|
reader = $Reader.create(reader);
|
4184
5959
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.type.Price();
|
4185
5960
|
while (reader.pos < end) {
|
4186
5961
|
var tag = reader.uint32();
|
5962
|
+
if (tag === error)
|
5963
|
+
break;
|
4187
5964
|
switch (tag >>> 3) {
|
4188
5965
|
case 1: {
|
4189
5966
|
message.amountMicros = reader.int64();
|
@@ -4460,12 +6237,14 @@
|
|
4460
6237
|
* @throws {Error} If the payload is not a reader or valid buffer
|
4461
6238
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4462
6239
|
*/
|
4463
|
-
CustomAttribute.decode = function decode(reader, length) {
|
6240
|
+
CustomAttribute.decode = function decode(reader, length, error) {
|
4464
6241
|
if (!(reader instanceof $Reader))
|
4465
6242
|
reader = $Reader.create(reader);
|
4466
6243
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.type.CustomAttribute();
|
4467
6244
|
while (reader.pos < end) {
|
4468
6245
|
var tag = reader.uint32();
|
6246
|
+
if (tag === error)
|
6247
|
+
break;
|
4469
6248
|
switch (tag >>> 3) {
|
4470
6249
|
case 1: {
|
4471
6250
|
message.name = reader.string();
|
@@ -4704,12 +6483,14 @@
|
|
4704
6483
|
* @throws {Error} If the payload is not a reader or valid buffer
|
4705
6484
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4706
6485
|
*/
|
4707
|
-
Destination.decode = function decode(reader, length) {
|
6486
|
+
Destination.decode = function decode(reader, length, error) {
|
4708
6487
|
if (!(reader instanceof $Reader))
|
4709
6488
|
reader = $Reader.create(reader);
|
4710
6489
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.type.Destination();
|
4711
6490
|
while (reader.pos < end) {
|
4712
6491
|
var tag = reader.uint32();
|
6492
|
+
if (tag === error)
|
6493
|
+
break;
|
4713
6494
|
switch (tag >>> 3) {
|
4714
6495
|
default:
|
4715
6496
|
reader.skipType(tag & 7);
|
@@ -4903,12 +6684,14 @@
|
|
4903
6684
|
* @throws {Error} If the payload is not a reader or valid buffer
|
4904
6685
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
4905
6686
|
*/
|
4906
|
-
ReportingContext.decode = function decode(reader, length) {
|
6687
|
+
ReportingContext.decode = function decode(reader, length, error) {
|
4907
6688
|
if (!(reader instanceof $Reader))
|
4908
6689
|
reader = $Reader.create(reader);
|
4909
6690
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.type.ReportingContext();
|
4910
6691
|
while (reader.pos < end) {
|
4911
6692
|
var tag = reader.uint32();
|
6693
|
+
if (tag === error)
|
6694
|
+
break;
|
4912
6695
|
switch (tag >>> 3) {
|
4913
6696
|
default:
|
4914
6697
|
reader.skipType(tag & 7);
|
@@ -5118,12 +6901,14 @@
|
|
5118
6901
|
* @throws {Error} If the payload is not a reader or valid buffer
|
5119
6902
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5120
6903
|
*/
|
5121
|
-
Channel.decode = function decode(reader, length) {
|
6904
|
+
Channel.decode = function decode(reader, length, error) {
|
5122
6905
|
if (!(reader instanceof $Reader))
|
5123
6906
|
reader = $Reader.create(reader);
|
5124
6907
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.shopping.type.Channel();
|
5125
6908
|
while (reader.pos < end) {
|
5126
6909
|
var tag = reader.uint32();
|
6910
|
+
if (tag === error)
|
6911
|
+
break;
|
5127
6912
|
switch (tag >>> 3) {
|
5128
6913
|
default:
|
5129
6914
|
reader.skipType(tag & 7);
|
@@ -5348,12 +7133,14 @@
|
|
5348
7133
|
* @throws {Error} If the payload is not a reader or valid buffer
|
5349
7134
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5350
7135
|
*/
|
5351
|
-
Http.decode = function decode(reader, length) {
|
7136
|
+
Http.decode = function decode(reader, length, error) {
|
5352
7137
|
if (!(reader instanceof $Reader))
|
5353
7138
|
reader = $Reader.create(reader);
|
5354
7139
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http();
|
5355
7140
|
while (reader.pos < end) {
|
5356
7141
|
var tag = reader.uint32();
|
7142
|
+
if (tag === error)
|
7143
|
+
break;
|
5357
7144
|
switch (tag >>> 3) {
|
5358
7145
|
case 1: {
|
5359
7146
|
if (!(message.rules && message.rules.length))
|
@@ -5698,12 +7485,14 @@
|
|
5698
7485
|
* @throws {Error} If the payload is not a reader or valid buffer
|
5699
7486
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
5700
7487
|
*/
|
5701
|
-
HttpRule.decode = function decode(reader, length) {
|
7488
|
+
HttpRule.decode = function decode(reader, length, error) {
|
5702
7489
|
if (!(reader instanceof $Reader))
|
5703
7490
|
reader = $Reader.create(reader);
|
5704
7491
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule();
|
5705
7492
|
while (reader.pos < end) {
|
5706
7493
|
var tag = reader.uint32();
|
7494
|
+
if (tag === error)
|
7495
|
+
break;
|
5707
7496
|
switch (tag >>> 3) {
|
5708
7497
|
case 1: {
|
5709
7498
|
message.selector = reader.string();
|
@@ -6082,12 +7871,14 @@
|
|
6082
7871
|
* @throws {Error} If the payload is not a reader or valid buffer
|
6083
7872
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6084
7873
|
*/
|
6085
|
-
CustomHttpPattern.decode = function decode(reader, length) {
|
7874
|
+
CustomHttpPattern.decode = function decode(reader, length, error) {
|
6086
7875
|
if (!(reader instanceof $Reader))
|
6087
7876
|
reader = $Reader.create(reader);
|
6088
7877
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern();
|
6089
7878
|
while (reader.pos < end) {
|
6090
7879
|
var tag = reader.uint32();
|
7880
|
+
if (tag === error)
|
7881
|
+
break;
|
6091
7882
|
switch (tag >>> 3) {
|
6092
7883
|
case 1: {
|
6093
7884
|
message.kind = reader.string();
|
@@ -6314,12 +8105,14 @@
|
|
6314
8105
|
* @throws {Error} If the payload is not a reader or valid buffer
|
6315
8106
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6316
8107
|
*/
|
6317
|
-
CommonLanguageSettings.decode = function decode(reader, length) {
|
8108
|
+
CommonLanguageSettings.decode = function decode(reader, length, error) {
|
6318
8109
|
if (!(reader instanceof $Reader))
|
6319
8110
|
reader = $Reader.create(reader);
|
6320
8111
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings();
|
6321
8112
|
while (reader.pos < end) {
|
6322
8113
|
var tag = reader.uint32();
|
8114
|
+
if (tag === error)
|
8115
|
+
break;
|
6323
8116
|
switch (tag >>> 3) {
|
6324
8117
|
case 1: {
|
6325
8118
|
message.referenceDocsUri = reader.string();
|
@@ -6683,12 +8476,14 @@
|
|
6683
8476
|
* @throws {Error} If the payload is not a reader or valid buffer
|
6684
8477
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
6685
8478
|
*/
|
6686
|
-
ClientLibrarySettings.decode = function decode(reader, length) {
|
8479
|
+
ClientLibrarySettings.decode = function decode(reader, length, error) {
|
6687
8480
|
if (!(reader instanceof $Reader))
|
6688
8481
|
reader = $Reader.create(reader);
|
6689
8482
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings();
|
6690
8483
|
while (reader.pos < end) {
|
6691
8484
|
var tag = reader.uint32();
|
8485
|
+
if (tag === error)
|
8486
|
+
break;
|
6692
8487
|
switch (tag >>> 3) {
|
6693
8488
|
case 1: {
|
6694
8489
|
message.version = reader.string();
|
@@ -7027,6 +8822,7 @@
|
|
7027
8822
|
* @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
|
7028
8823
|
* @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
|
7029
8824
|
* @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri
|
8825
|
+
* @property {string|null} [restReferenceDocumentationUri] Publishing restReferenceDocumentationUri
|
7030
8826
|
*/
|
7031
8827
|
|
7032
8828
|
/**
|
@@ -7127,6 +8923,14 @@
|
|
7127
8923
|
*/
|
7128
8924
|
Publishing.prototype.protoReferenceDocumentationUri = "";
|
7129
8925
|
|
8926
|
+
/**
|
8927
|
+
* Publishing restReferenceDocumentationUri.
|
8928
|
+
* @member {string} restReferenceDocumentationUri
|
8929
|
+
* @memberof google.api.Publishing
|
8930
|
+
* @instance
|
8931
|
+
*/
|
8932
|
+
Publishing.prototype.restReferenceDocumentationUri = "";
|
8933
|
+
|
7130
8934
|
/**
|
7131
8935
|
* Creates a new Publishing instance using the specified properties.
|
7132
8936
|
* @function create
|
@@ -7174,6 +8978,8 @@
|
|
7174
8978
|
$root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
|
7175
8979
|
if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri"))
|
7176
8980
|
writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri);
|
8981
|
+
if (message.restReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "restReferenceDocumentationUri"))
|
8982
|
+
writer.uint32(/* id 111, wireType 2 =*/890).string(message.restReferenceDocumentationUri);
|
7177
8983
|
return writer;
|
7178
8984
|
};
|
7179
8985
|
|
@@ -7201,12 +9007,14 @@
|
|
7201
9007
|
* @throws {Error} If the payload is not a reader or valid buffer
|
7202
9008
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7203
9009
|
*/
|
7204
|
-
Publishing.decode = function decode(reader, length) {
|
9010
|
+
Publishing.decode = function decode(reader, length, error) {
|
7205
9011
|
if (!(reader instanceof $Reader))
|
7206
9012
|
reader = $Reader.create(reader);
|
7207
9013
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing();
|
7208
9014
|
while (reader.pos < end) {
|
7209
9015
|
var tag = reader.uint32();
|
9016
|
+
if (tag === error)
|
9017
|
+
break;
|
7210
9018
|
switch (tag >>> 3) {
|
7211
9019
|
case 2: {
|
7212
9020
|
if (!(message.methodSettings && message.methodSettings.length))
|
@@ -7254,6 +9062,10 @@
|
|
7254
9062
|
message.protoReferenceDocumentationUri = reader.string();
|
7255
9063
|
break;
|
7256
9064
|
}
|
9065
|
+
case 111: {
|
9066
|
+
message.restReferenceDocumentationUri = reader.string();
|
9067
|
+
break;
|
9068
|
+
}
|
7257
9069
|
default:
|
7258
9070
|
reader.skipType(tag & 7);
|
7259
9071
|
break;
|
@@ -7346,6 +9158,9 @@
|
|
7346
9158
|
if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
|
7347
9159
|
if (!$util.isString(message.protoReferenceDocumentationUri))
|
7348
9160
|
return "protoReferenceDocumentationUri: string expected";
|
9161
|
+
if (message.restReferenceDocumentationUri != null && message.hasOwnProperty("restReferenceDocumentationUri"))
|
9162
|
+
if (!$util.isString(message.restReferenceDocumentationUri))
|
9163
|
+
return "restReferenceDocumentationUri: string expected";
|
7349
9164
|
return null;
|
7350
9165
|
};
|
7351
9166
|
|
@@ -7440,6 +9255,8 @@
|
|
7440
9255
|
}
|
7441
9256
|
if (object.protoReferenceDocumentationUri != null)
|
7442
9257
|
message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri);
|
9258
|
+
if (object.restReferenceDocumentationUri != null)
|
9259
|
+
message.restReferenceDocumentationUri = String(object.restReferenceDocumentationUri);
|
7443
9260
|
return message;
|
7444
9261
|
};
|
7445
9262
|
|
@@ -7469,6 +9286,7 @@
|
|
7469
9286
|
object.docTagPrefix = "";
|
7470
9287
|
object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
|
7471
9288
|
object.protoReferenceDocumentationUri = "";
|
9289
|
+
object.restReferenceDocumentationUri = "";
|
7472
9290
|
}
|
7473
9291
|
if (message.methodSettings && message.methodSettings.length) {
|
7474
9292
|
object.methodSettings = [];
|
@@ -7499,6 +9317,8 @@
|
|
7499
9317
|
}
|
7500
9318
|
if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
|
7501
9319
|
object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri;
|
9320
|
+
if (message.restReferenceDocumentationUri != null && message.hasOwnProperty("restReferenceDocumentationUri"))
|
9321
|
+
object.restReferenceDocumentationUri = message.restReferenceDocumentationUri;
|
7502
9322
|
return object;
|
7503
9323
|
};
|
7504
9324
|
|
@@ -7640,12 +9460,14 @@
|
|
7640
9460
|
* @throws {Error} If the payload is not a reader or valid buffer
|
7641
9461
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7642
9462
|
*/
|
7643
|
-
JavaSettings.decode = function decode(reader, length) {
|
9463
|
+
JavaSettings.decode = function decode(reader, length, error) {
|
7644
9464
|
if (!(reader instanceof $Reader))
|
7645
9465
|
reader = $Reader.create(reader);
|
7646
9466
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value;
|
7647
9467
|
while (reader.pos < end) {
|
7648
9468
|
var tag = reader.uint32();
|
9469
|
+
if (tag === error)
|
9470
|
+
break;
|
7649
9471
|
switch (tag >>> 3) {
|
7650
9472
|
case 1: {
|
7651
9473
|
message.libraryPackage = reader.string();
|
@@ -7907,12 +9729,14 @@
|
|
7907
9729
|
* @throws {Error} If the payload is not a reader or valid buffer
|
7908
9730
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
7909
9731
|
*/
|
7910
|
-
CppSettings.decode = function decode(reader, length) {
|
9732
|
+
CppSettings.decode = function decode(reader, length, error) {
|
7911
9733
|
if (!(reader instanceof $Reader))
|
7912
9734
|
reader = $Reader.create(reader);
|
7913
9735
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings();
|
7914
9736
|
while (reader.pos < end) {
|
7915
9737
|
var tag = reader.uint32();
|
9738
|
+
if (tag === error)
|
9739
|
+
break;
|
7916
9740
|
switch (tag >>> 3) {
|
7917
9741
|
case 1: {
|
7918
9742
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
@@ -8115,12 +9939,14 @@
|
|
8115
9939
|
* @throws {Error} If the payload is not a reader or valid buffer
|
8116
9940
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8117
9941
|
*/
|
8118
|
-
PhpSettings.decode = function decode(reader, length) {
|
9942
|
+
PhpSettings.decode = function decode(reader, length, error) {
|
8119
9943
|
if (!(reader instanceof $Reader))
|
8120
9944
|
reader = $Reader.create(reader);
|
8121
9945
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings();
|
8122
9946
|
while (reader.pos < end) {
|
8123
9947
|
var tag = reader.uint32();
|
9948
|
+
if (tag === error)
|
9949
|
+
break;
|
8124
9950
|
switch (tag >>> 3) {
|
8125
9951
|
case 1: {
|
8126
9952
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
@@ -8323,12 +10149,14 @@
|
|
8323
10149
|
* @throws {Error} If the payload is not a reader or valid buffer
|
8324
10150
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8325
10151
|
*/
|
8326
|
-
PythonSettings.decode = function decode(reader, length) {
|
10152
|
+
PythonSettings.decode = function decode(reader, length, error) {
|
8327
10153
|
if (!(reader instanceof $Reader))
|
8328
10154
|
reader = $Reader.create(reader);
|
8329
10155
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings();
|
8330
10156
|
while (reader.pos < end) {
|
8331
10157
|
var tag = reader.uint32();
|
10158
|
+
if (tag === error)
|
10159
|
+
break;
|
8332
10160
|
switch (tag >>> 3) {
|
8333
10161
|
case 1: {
|
8334
10162
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
@@ -8531,12 +10359,14 @@
|
|
8531
10359
|
* @throws {Error} If the payload is not a reader or valid buffer
|
8532
10360
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8533
10361
|
*/
|
8534
|
-
NodeSettings.decode = function decode(reader, length) {
|
10362
|
+
NodeSettings.decode = function decode(reader, length, error) {
|
8535
10363
|
if (!(reader instanceof $Reader))
|
8536
10364
|
reader = $Reader.create(reader);
|
8537
10365
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings();
|
8538
10366
|
while (reader.pos < end) {
|
8539
10367
|
var tag = reader.uint32();
|
10368
|
+
if (tag === error)
|
10369
|
+
break;
|
8540
10370
|
switch (tag >>> 3) {
|
8541
10371
|
case 1: {
|
8542
10372
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
@@ -8804,12 +10634,14 @@
|
|
8804
10634
|
* @throws {Error} If the payload is not a reader or valid buffer
|
8805
10635
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
8806
10636
|
*/
|
8807
|
-
DotnetSettings.decode = function decode(reader, length) {
|
10637
|
+
DotnetSettings.decode = function decode(reader, length, error) {
|
8808
10638
|
if (!(reader instanceof $Reader))
|
8809
10639
|
reader = $Reader.create(reader);
|
8810
10640
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings(), key, value;
|
8811
10641
|
while (reader.pos < end) {
|
8812
10642
|
var tag = reader.uint32();
|
10643
|
+
if (tag === error)
|
10644
|
+
break;
|
8813
10645
|
switch (tag >>> 3) {
|
8814
10646
|
case 1: {
|
8815
10647
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
@@ -9183,12 +11015,14 @@
|
|
9183
11015
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9184
11016
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9185
11017
|
*/
|
9186
|
-
RubySettings.decode = function decode(reader, length) {
|
11018
|
+
RubySettings.decode = function decode(reader, length, error) {
|
9187
11019
|
if (!(reader instanceof $Reader))
|
9188
11020
|
reader = $Reader.create(reader);
|
9189
11021
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings();
|
9190
11022
|
while (reader.pos < end) {
|
9191
11023
|
var tag = reader.uint32();
|
11024
|
+
if (tag === error)
|
11025
|
+
break;
|
9192
11026
|
switch (tag >>> 3) {
|
9193
11027
|
case 1: {
|
9194
11028
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
@@ -9391,12 +11225,14 @@
|
|
9391
11225
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9392
11226
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9393
11227
|
*/
|
9394
|
-
GoSettings.decode = function decode(reader, length) {
|
11228
|
+
GoSettings.decode = function decode(reader, length, error) {
|
9395
11229
|
if (!(reader instanceof $Reader))
|
9396
11230
|
reader = $Reader.create(reader);
|
9397
11231
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
|
9398
11232
|
while (reader.pos < end) {
|
9399
11233
|
var tag = reader.uint32();
|
11234
|
+
if (tag === error)
|
11235
|
+
break;
|
9400
11236
|
switch (tag >>> 3) {
|
9401
11237
|
case 1: {
|
9402
11238
|
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
@@ -9623,12 +11459,14 @@
|
|
9623
11459
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9624
11460
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9625
11461
|
*/
|
9626
|
-
MethodSettings.decode = function decode(reader, length) {
|
11462
|
+
MethodSettings.decode = function decode(reader, length, error) {
|
9627
11463
|
if (!(reader instanceof $Reader))
|
9628
11464
|
reader = $Reader.create(reader);
|
9629
11465
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings();
|
9630
11466
|
while (reader.pos < end) {
|
9631
11467
|
var tag = reader.uint32();
|
11468
|
+
if (tag === error)
|
11469
|
+
break;
|
9632
11470
|
switch (tag >>> 3) {
|
9633
11471
|
case 1: {
|
9634
11472
|
message.selector = reader.string();
|
@@ -9901,12 +11739,14 @@
|
|
9901
11739
|
* @throws {Error} If the payload is not a reader or valid buffer
|
9902
11740
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
9903
11741
|
*/
|
9904
|
-
LongRunning.decode = function decode(reader, length) {
|
11742
|
+
LongRunning.decode = function decode(reader, length, error) {
|
9905
11743
|
if (!(reader instanceof $Reader))
|
9906
11744
|
reader = $Reader.create(reader);
|
9907
11745
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning();
|
9908
11746
|
while (reader.pos < end) {
|
9909
11747
|
var tag = reader.uint32();
|
11748
|
+
if (tag === error)
|
11749
|
+
break;
|
9910
11750
|
switch (tag >>> 3) {
|
9911
11751
|
case 1: {
|
9912
11752
|
message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
@@ -10328,12 +12168,14 @@
|
|
10328
12168
|
* @throws {Error} If the payload is not a reader or valid buffer
|
10329
12169
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10330
12170
|
*/
|
10331
|
-
ResourceDescriptor.decode = function decode(reader, length) {
|
12171
|
+
ResourceDescriptor.decode = function decode(reader, length, error) {
|
10332
12172
|
if (!(reader instanceof $Reader))
|
10333
12173
|
reader = $Reader.create(reader);
|
10334
12174
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor();
|
10335
12175
|
while (reader.pos < end) {
|
10336
12176
|
var tag = reader.uint32();
|
12177
|
+
if (tag === error)
|
12178
|
+
break;
|
10337
12179
|
switch (tag >>> 3) {
|
10338
12180
|
case 1: {
|
10339
12181
|
message.type = reader.string();
|
@@ -10723,12 +12565,14 @@
|
|
10723
12565
|
* @throws {Error} If the payload is not a reader or valid buffer
|
10724
12566
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10725
12567
|
*/
|
10726
|
-
ResourceReference.decode = function decode(reader, length) {
|
12568
|
+
ResourceReference.decode = function decode(reader, length, error) {
|
10727
12569
|
if (!(reader instanceof $Reader))
|
10728
12570
|
reader = $Reader.create(reader);
|
10729
12571
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference();
|
10730
12572
|
while (reader.pos < end) {
|
10731
12573
|
var tag = reader.uint32();
|
12574
|
+
if (tag === error)
|
12575
|
+
break;
|
10732
12576
|
switch (tag >>> 3) {
|
10733
12577
|
case 1: {
|
10734
12578
|
message.type = reader.string();
|
@@ -10939,12 +12783,14 @@
|
|
10939
12783
|
* @throws {Error} If the payload is not a reader or valid buffer
|
10940
12784
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
10941
12785
|
*/
|
10942
|
-
FieldInfo.decode = function decode(reader, length) {
|
12786
|
+
FieldInfo.decode = function decode(reader, length, error) {
|
10943
12787
|
if (!(reader instanceof $Reader))
|
10944
12788
|
reader = $Reader.create(reader);
|
10945
12789
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.FieldInfo();
|
10946
12790
|
while (reader.pos < end) {
|
10947
12791
|
var tag = reader.uint32();
|
12792
|
+
if (tag === error)
|
12793
|
+
break;
|
10948
12794
|
switch (tag >>> 3) {
|
10949
12795
|
case 1: {
|
10950
12796
|
message.format = reader.int32();
|
@@ -11210,12 +13056,14 @@
|
|
11210
13056
|
* @throws {Error} If the payload is not a reader or valid buffer
|
11211
13057
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11212
13058
|
*/
|
11213
|
-
FileDescriptorSet.decode = function decode(reader, length) {
|
13059
|
+
FileDescriptorSet.decode = function decode(reader, length, error) {
|
11214
13060
|
if (!(reader instanceof $Reader))
|
11215
13061
|
reader = $Reader.create(reader);
|
11216
13062
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet();
|
11217
13063
|
while (reader.pos < end) {
|
11218
13064
|
var tag = reader.uint32();
|
13065
|
+
if (tag === error)
|
13066
|
+
break;
|
11219
13067
|
switch (tag >>> 3) {
|
11220
13068
|
case 1: {
|
11221
13069
|
if (!(message.file && message.file.length))
|
@@ -11610,12 +13458,14 @@
|
|
11610
13458
|
* @throws {Error} If the payload is not a reader or valid buffer
|
11611
13459
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
11612
13460
|
*/
|
11613
|
-
FileDescriptorProto.decode = function decode(reader, length) {
|
13461
|
+
FileDescriptorProto.decode = function decode(reader, length, error) {
|
11614
13462
|
if (!(reader instanceof $Reader))
|
11615
13463
|
reader = $Reader.create(reader);
|
11616
13464
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto();
|
11617
13465
|
while (reader.pos < end) {
|
11618
13466
|
var tag = reader.uint32();
|
13467
|
+
if (tag === error)
|
13468
|
+
break;
|
11619
13469
|
switch (tag >>> 3) {
|
11620
13470
|
case 1: {
|
11621
13471
|
message.name = reader.string();
|
@@ -12277,12 +14127,14 @@
|
|
12277
14127
|
* @throws {Error} If the payload is not a reader or valid buffer
|
12278
14128
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12279
14129
|
*/
|
12280
|
-
DescriptorProto.decode = function decode(reader, length) {
|
14130
|
+
DescriptorProto.decode = function decode(reader, length, error) {
|
12281
14131
|
if (!(reader instanceof $Reader))
|
12282
14132
|
reader = $Reader.create(reader);
|
12283
14133
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto();
|
12284
14134
|
while (reader.pos < end) {
|
12285
14135
|
var tag = reader.uint32();
|
14136
|
+
if (tag === error)
|
14137
|
+
break;
|
12286
14138
|
switch (tag >>> 3) {
|
12287
14139
|
case 1: {
|
12288
14140
|
message.name = reader.string();
|
@@ -12762,12 +14614,14 @@
|
|
12762
14614
|
* @throws {Error} If the payload is not a reader or valid buffer
|
12763
14615
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
12764
14616
|
*/
|
12765
|
-
ExtensionRange.decode = function decode(reader, length) {
|
14617
|
+
ExtensionRange.decode = function decode(reader, length, error) {
|
12766
14618
|
if (!(reader instanceof $Reader))
|
12767
14619
|
reader = $Reader.create(reader);
|
12768
14620
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange();
|
12769
14621
|
while (reader.pos < end) {
|
12770
14622
|
var tag = reader.uint32();
|
14623
|
+
if (tag === error)
|
14624
|
+
break;
|
12771
14625
|
switch (tag >>> 3) {
|
12772
14626
|
case 1: {
|
12773
14627
|
message.start = reader.int32();
|
@@ -13006,12 +14860,14 @@
|
|
13006
14860
|
* @throws {Error} If the payload is not a reader or valid buffer
|
13007
14861
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13008
14862
|
*/
|
13009
|
-
ReservedRange.decode = function decode(reader, length) {
|
14863
|
+
ReservedRange.decode = function decode(reader, length, error) {
|
13010
14864
|
if (!(reader instanceof $Reader))
|
13011
14865
|
reader = $Reader.create(reader);
|
13012
14866
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange();
|
13013
14867
|
while (reader.pos < end) {
|
13014
14868
|
var tag = reader.uint32();
|
14869
|
+
if (tag === error)
|
14870
|
+
break;
|
13015
14871
|
switch (tag >>> 3) {
|
13016
14872
|
case 1: {
|
13017
14873
|
message.start = reader.int32();
|
@@ -13262,12 +15118,14 @@
|
|
13262
15118
|
* @throws {Error} If the payload is not a reader or valid buffer
|
13263
15119
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13264
15120
|
*/
|
13265
|
-
ExtensionRangeOptions.decode = function decode(reader, length) {
|
15121
|
+
ExtensionRangeOptions.decode = function decode(reader, length, error) {
|
13266
15122
|
if (!(reader instanceof $Reader))
|
13267
15123
|
reader = $Reader.create(reader);
|
13268
15124
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions();
|
13269
15125
|
while (reader.pos < end) {
|
13270
15126
|
var tag = reader.uint32();
|
15127
|
+
if (tag === error)
|
15128
|
+
break;
|
13271
15129
|
switch (tag >>> 3) {
|
13272
15130
|
case 999: {
|
13273
15131
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
@@ -13607,12 +15465,14 @@
|
|
13607
15465
|
* @throws {Error} If the payload is not a reader or valid buffer
|
13608
15466
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13609
15467
|
*/
|
13610
|
-
Declaration.decode = function decode(reader, length) {
|
15468
|
+
Declaration.decode = function decode(reader, length, error) {
|
13611
15469
|
if (!(reader instanceof $Reader))
|
13612
15470
|
reader = $Reader.create(reader);
|
13613
15471
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions.Declaration();
|
13614
15472
|
while (reader.pos < end) {
|
13615
15473
|
var tag = reader.uint32();
|
15474
|
+
if (tag === error)
|
15475
|
+
break;
|
13616
15476
|
switch (tag >>> 3) {
|
13617
15477
|
case 1: {
|
13618
15478
|
message.number = reader.int32();
|
@@ -13986,12 +15846,14 @@
|
|
13986
15846
|
* @throws {Error} If the payload is not a reader or valid buffer
|
13987
15847
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
13988
15848
|
*/
|
13989
|
-
FieldDescriptorProto.decode = function decode(reader, length) {
|
15849
|
+
FieldDescriptorProto.decode = function decode(reader, length, error) {
|
13990
15850
|
if (!(reader instanceof $Reader))
|
13991
15851
|
reader = $Reader.create(reader);
|
13992
15852
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto();
|
13993
15853
|
while (reader.pos < end) {
|
13994
15854
|
var tag = reader.uint32();
|
15855
|
+
if (tag === error)
|
15856
|
+
break;
|
13995
15857
|
switch (tag >>> 3) {
|
13996
15858
|
case 1: {
|
13997
15859
|
message.name = reader.string();
|
@@ -14511,12 +16373,14 @@
|
|
14511
16373
|
* @throws {Error} If the payload is not a reader or valid buffer
|
14512
16374
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
14513
16375
|
*/
|
14514
|
-
OneofDescriptorProto.decode = function decode(reader, length) {
|
16376
|
+
OneofDescriptorProto.decode = function decode(reader, length, error) {
|
14515
16377
|
if (!(reader instanceof $Reader))
|
14516
16378
|
reader = $Reader.create(reader);
|
14517
16379
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto();
|
14518
16380
|
while (reader.pos < end) {
|
14519
16381
|
var tag = reader.uint32();
|
16382
|
+
if (tag === error)
|
16383
|
+
break;
|
14520
16384
|
switch (tag >>> 3) {
|
14521
16385
|
case 1: {
|
14522
16386
|
message.name = reader.string();
|
@@ -14782,12 +16646,14 @@
|
|
14782
16646
|
* @throws {Error} If the payload is not a reader or valid buffer
|
14783
16647
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
14784
16648
|
*/
|
14785
|
-
EnumDescriptorProto.decode = function decode(reader, length) {
|
16649
|
+
EnumDescriptorProto.decode = function decode(reader, length, error) {
|
14786
16650
|
if (!(reader instanceof $Reader))
|
14787
16651
|
reader = $Reader.create(reader);
|
14788
16652
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto();
|
14789
16653
|
while (reader.pos < end) {
|
14790
16654
|
var tag = reader.uint32();
|
16655
|
+
if (tag === error)
|
16656
|
+
break;
|
14791
16657
|
switch (tag >>> 3) {
|
14792
16658
|
case 1: {
|
14793
16659
|
message.name = reader.string();
|
@@ -15101,12 +16967,14 @@
|
|
15101
16967
|
* @throws {Error} If the payload is not a reader or valid buffer
|
15102
16968
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
15103
16969
|
*/
|
15104
|
-
EnumReservedRange.decode = function decode(reader, length) {
|
16970
|
+
EnumReservedRange.decode = function decode(reader, length, error) {
|
15105
16971
|
if (!(reader instanceof $Reader))
|
15106
16972
|
reader = $Reader.create(reader);
|
15107
16973
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange();
|
15108
16974
|
while (reader.pos < end) {
|
15109
16975
|
var tag = reader.uint32();
|
16976
|
+
if (tag === error)
|
16977
|
+
break;
|
15110
16978
|
switch (tag >>> 3) {
|
15111
16979
|
case 1: {
|
15112
16980
|
message.start = reader.int32();
|
@@ -15342,12 +17210,14 @@
|
|
15342
17210
|
* @throws {Error} If the payload is not a reader or valid buffer
|
15343
17211
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
15344
17212
|
*/
|
15345
|
-
EnumValueDescriptorProto.decode = function decode(reader, length) {
|
17213
|
+
EnumValueDescriptorProto.decode = function decode(reader, length, error) {
|
15346
17214
|
if (!(reader instanceof $Reader))
|
15347
17215
|
reader = $Reader.create(reader);
|
15348
17216
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto();
|
15349
17217
|
while (reader.pos < end) {
|
15350
17218
|
var tag = reader.uint32();
|
17219
|
+
if (tag === error)
|
17220
|
+
break;
|
15351
17221
|
switch (tag >>> 3) {
|
15352
17222
|
case 1: {
|
15353
17223
|
message.name = reader.string();
|
@@ -15599,12 +17469,14 @@
|
|
15599
17469
|
* @throws {Error} If the payload is not a reader or valid buffer
|
15600
17470
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
15601
17471
|
*/
|
15602
|
-
ServiceDescriptorProto.decode = function decode(reader, length) {
|
17472
|
+
ServiceDescriptorProto.decode = function decode(reader, length, error) {
|
15603
17473
|
if (!(reader instanceof $Reader))
|
15604
17474
|
reader = $Reader.create(reader);
|
15605
17475
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto();
|
15606
17476
|
while (reader.pos < end) {
|
15607
17477
|
var tag = reader.uint32();
|
17478
|
+
if (tag === error)
|
17479
|
+
break;
|
15608
17480
|
switch (tag >>> 3) {
|
15609
17481
|
case 1: {
|
15610
17482
|
message.name = reader.string();
|
@@ -15907,12 +17779,14 @@
|
|
15907
17779
|
* @throws {Error} If the payload is not a reader or valid buffer
|
15908
17780
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
15909
17781
|
*/
|
15910
|
-
MethodDescriptorProto.decode = function decode(reader, length) {
|
17782
|
+
MethodDescriptorProto.decode = function decode(reader, length, error) {
|
15911
17783
|
if (!(reader instanceof $Reader))
|
15912
17784
|
reader = $Reader.create(reader);
|
15913
17785
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto();
|
15914
17786
|
while (reader.pos < end) {
|
15915
17787
|
var tag = reader.uint32();
|
17788
|
+
if (tag === error)
|
17789
|
+
break;
|
15916
17790
|
switch (tag >>> 3) {
|
15917
17791
|
case 1: {
|
15918
17792
|
message.name = reader.string();
|
@@ -16411,12 +18285,14 @@
|
|
16411
18285
|
* @throws {Error} If the payload is not a reader or valid buffer
|
16412
18286
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
16413
18287
|
*/
|
16414
|
-
FileOptions.decode = function decode(reader, length) {
|
18288
|
+
FileOptions.decode = function decode(reader, length, error) {
|
16415
18289
|
if (!(reader instanceof $Reader))
|
16416
18290
|
reader = $Reader.create(reader);
|
16417
18291
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions();
|
16418
18292
|
while (reader.pos < end) {
|
16419
18293
|
var tag = reader.uint32();
|
18294
|
+
if (tag === error)
|
18295
|
+
break;
|
16420
18296
|
switch (tag >>> 3) {
|
16421
18297
|
case 1: {
|
16422
18298
|
message.javaPackage = reader.string();
|
@@ -17031,12 +18907,14 @@
|
|
17031
18907
|
* @throws {Error} If the payload is not a reader or valid buffer
|
17032
18908
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
17033
18909
|
*/
|
17034
|
-
MessageOptions.decode = function decode(reader, length) {
|
18910
|
+
MessageOptions.decode = function decode(reader, length, error) {
|
17035
18911
|
if (!(reader instanceof $Reader))
|
17036
18912
|
reader = $Reader.create(reader);
|
17037
18913
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions();
|
17038
18914
|
while (reader.pos < end) {
|
17039
18915
|
var tag = reader.uint32();
|
18916
|
+
if (tag === error)
|
18917
|
+
break;
|
17040
18918
|
switch (tag >>> 3) {
|
17041
18919
|
case 1: {
|
17042
18920
|
message.messageSetWireFormat = reader.bool();
|
@@ -17488,12 +19366,9 @@
|
|
17488
19366
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
17489
19367
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
17490
19368
|
$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();
|
19369
|
+
if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length)
|
17493
19370
|
for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i)
|
17494
|
-
writer.int32(message[".google.api.fieldBehavior"][i]);
|
17495
|
-
writer.ldelim();
|
17496
|
-
}
|
19371
|
+
writer.uint32(/* id 1052, wireType 0 =*/8416).int32(message[".google.api.fieldBehavior"][i]);
|
17497
19372
|
if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference"))
|
17498
19373
|
$root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim();
|
17499
19374
|
if (message[".google.api.fieldInfo"] != null && Object.hasOwnProperty.call(message, ".google.api.fieldInfo"))
|
@@ -17525,12 +19400,14 @@
|
|
17525
19400
|
* @throws {Error} If the payload is not a reader or valid buffer
|
17526
19401
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
17527
19402
|
*/
|
17528
|
-
FieldOptions.decode = function decode(reader, length) {
|
19403
|
+
FieldOptions.decode = function decode(reader, length, error) {
|
17529
19404
|
if (!(reader instanceof $Reader))
|
17530
19405
|
reader = $Reader.create(reader);
|
17531
19406
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions();
|
17532
19407
|
while (reader.pos < end) {
|
17533
19408
|
var tag = reader.uint32();
|
19409
|
+
if (tag === error)
|
19410
|
+
break;
|
17534
19411
|
switch (tag >>> 3) {
|
17535
19412
|
case 1: {
|
17536
19413
|
message.ctype = reader.int32();
|
@@ -18273,12 +20150,14 @@
|
|
18273
20150
|
* @throws {Error} If the payload is not a reader or valid buffer
|
18274
20151
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
18275
20152
|
*/
|
18276
|
-
EditionDefault.decode = function decode(reader, length) {
|
20153
|
+
EditionDefault.decode = function decode(reader, length, error) {
|
18277
20154
|
if (!(reader instanceof $Reader))
|
18278
20155
|
reader = $Reader.create(reader);
|
18279
20156
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.EditionDefault();
|
18280
20157
|
while (reader.pos < end) {
|
18281
20158
|
var tag = reader.uint32();
|
20159
|
+
if (tag === error)
|
20160
|
+
break;
|
18282
20161
|
switch (tag >>> 3) {
|
18283
20162
|
case 3: {
|
18284
20163
|
message.edition = reader.int32();
|
@@ -18569,12 +20448,14 @@
|
|
18569
20448
|
* @throws {Error} If the payload is not a reader or valid buffer
|
18570
20449
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
18571
20450
|
*/
|
18572
|
-
OneofOptions.decode = function decode(reader, length) {
|
20451
|
+
OneofOptions.decode = function decode(reader, length, error) {
|
18573
20452
|
if (!(reader instanceof $Reader))
|
18574
20453
|
reader = $Reader.create(reader);
|
18575
20454
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions();
|
18576
20455
|
while (reader.pos < end) {
|
18577
20456
|
var tag = reader.uint32();
|
20457
|
+
if (tag === error)
|
20458
|
+
break;
|
18578
20459
|
switch (tag >>> 3) {
|
18579
20460
|
case 1: {
|
18580
20461
|
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
@@ -18855,12 +20736,14 @@
|
|
18855
20736
|
* @throws {Error} If the payload is not a reader or valid buffer
|
18856
20737
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
18857
20738
|
*/
|
18858
|
-
EnumOptions.decode = function decode(reader, length) {
|
20739
|
+
EnumOptions.decode = function decode(reader, length, error) {
|
18859
20740
|
if (!(reader instanceof $Reader))
|
18860
20741
|
reader = $Reader.create(reader);
|
18861
20742
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions();
|
18862
20743
|
while (reader.pos < end) {
|
18863
20744
|
var tag = reader.uint32();
|
20745
|
+
if (tag === error)
|
20746
|
+
break;
|
18864
20747
|
switch (tag >>> 3) {
|
18865
20748
|
case 2: {
|
18866
20749
|
message.allowAlias = reader.bool();
|
@@ -19167,12 +21050,14 @@
|
|
19167
21050
|
* @throws {Error} If the payload is not a reader or valid buffer
|
19168
21051
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
19169
21052
|
*/
|
19170
|
-
EnumValueOptions.decode = function decode(reader, length) {
|
21053
|
+
EnumValueOptions.decode = function decode(reader, length, error) {
|
19171
21054
|
if (!(reader instanceof $Reader))
|
19172
21055
|
reader = $Reader.create(reader);
|
19173
21056
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions();
|
19174
21057
|
while (reader.pos < end) {
|
19175
21058
|
var tag = reader.uint32();
|
21059
|
+
if (tag === error)
|
21060
|
+
break;
|
19176
21061
|
switch (tag >>> 3) {
|
19177
21062
|
case 1: {
|
19178
21063
|
message.deprecated = reader.bool();
|
@@ -19358,6 +21243,7 @@
|
|
19358
21243
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] ServiceOptions uninterpretedOption
|
19359
21244
|
* @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost
|
19360
21245
|
* @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes
|
21246
|
+
* @property {string|null} [".google.api.apiVersion"] ServiceOptions .google.api.apiVersion
|
19361
21247
|
*/
|
19362
21248
|
|
19363
21249
|
/**
|
@@ -19416,6 +21302,14 @@
|
|
19416
21302
|
*/
|
19417
21303
|
ServiceOptions.prototype[".google.api.oauthScopes"] = "";
|
19418
21304
|
|
21305
|
+
/**
|
21306
|
+
* ServiceOptions .google.api.apiVersion.
|
21307
|
+
* @member {string} .google.api.apiVersion
|
21308
|
+
* @memberof google.protobuf.ServiceOptions
|
21309
|
+
* @instance
|
21310
|
+
*/
|
21311
|
+
ServiceOptions.prototype[".google.api.apiVersion"] = "";
|
21312
|
+
|
19419
21313
|
/**
|
19420
21314
|
* Creates a new ServiceOptions instance using the specified properties.
|
19421
21315
|
* @function create
|
@@ -19451,6 +21345,8 @@
|
|
19451
21345
|
writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]);
|
19452
21346
|
if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes"))
|
19453
21347
|
writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]);
|
21348
|
+
if (message[".google.api.apiVersion"] != null && Object.hasOwnProperty.call(message, ".google.api.apiVersion"))
|
21349
|
+
writer.uint32(/* id 525000001, wireType 2 =*/4200000010).string(message[".google.api.apiVersion"]);
|
19454
21350
|
return writer;
|
19455
21351
|
};
|
19456
21352
|
|
@@ -19478,12 +21374,14 @@
|
|
19478
21374
|
* @throws {Error} If the payload is not a reader or valid buffer
|
19479
21375
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
19480
21376
|
*/
|
19481
|
-
ServiceOptions.decode = function decode(reader, length) {
|
21377
|
+
ServiceOptions.decode = function decode(reader, length, error) {
|
19482
21378
|
if (!(reader instanceof $Reader))
|
19483
21379
|
reader = $Reader.create(reader);
|
19484
21380
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions();
|
19485
21381
|
while (reader.pos < end) {
|
19486
21382
|
var tag = reader.uint32();
|
21383
|
+
if (tag === error)
|
21384
|
+
break;
|
19487
21385
|
switch (tag >>> 3) {
|
19488
21386
|
case 34: {
|
19489
21387
|
message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32());
|
@@ -19507,6 +21405,10 @@
|
|
19507
21405
|
message[".google.api.oauthScopes"] = reader.string();
|
19508
21406
|
break;
|
19509
21407
|
}
|
21408
|
+
case 525000001: {
|
21409
|
+
message[".google.api.apiVersion"] = reader.string();
|
21410
|
+
break;
|
21411
|
+
}
|
19510
21412
|
default:
|
19511
21413
|
reader.skipType(tag & 7);
|
19512
21414
|
break;
|
@@ -19565,6 +21467,9 @@
|
|
19565
21467
|
if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes"))
|
19566
21468
|
if (!$util.isString(message[".google.api.oauthScopes"]))
|
19567
21469
|
return ".google.api.oauthScopes: string expected";
|
21470
|
+
if (message[".google.api.apiVersion"] != null && message.hasOwnProperty(".google.api.apiVersion"))
|
21471
|
+
if (!$util.isString(message[".google.api.apiVersion"]))
|
21472
|
+
return ".google.api.apiVersion: string expected";
|
19568
21473
|
return null;
|
19569
21474
|
};
|
19570
21475
|
|
@@ -19601,6 +21506,8 @@
|
|
19601
21506
|
message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]);
|
19602
21507
|
if (object[".google.api.oauthScopes"] != null)
|
19603
21508
|
message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]);
|
21509
|
+
if (object[".google.api.apiVersion"] != null)
|
21510
|
+
message[".google.api.apiVersion"] = String(object[".google.api.apiVersion"]);
|
19604
21511
|
return message;
|
19605
21512
|
};
|
19606
21513
|
|
@@ -19624,6 +21531,7 @@
|
|
19624
21531
|
object.features = null;
|
19625
21532
|
object[".google.api.defaultHost"] = "";
|
19626
21533
|
object[".google.api.oauthScopes"] = "";
|
21534
|
+
object[".google.api.apiVersion"] = "";
|
19627
21535
|
}
|
19628
21536
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
19629
21537
|
object.deprecated = message.deprecated;
|
@@ -19638,6 +21546,8 @@
|
|
19638
21546
|
object[".google.api.defaultHost"] = message[".google.api.defaultHost"];
|
19639
21547
|
if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes"))
|
19640
21548
|
object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"];
|
21549
|
+
if (message[".google.api.apiVersion"] != null && message.hasOwnProperty(".google.api.apiVersion"))
|
21550
|
+
object[".google.api.apiVersion"] = message[".google.api.apiVersion"];
|
19641
21551
|
return object;
|
19642
21552
|
};
|
19643
21553
|
|
@@ -19814,12 +21724,14 @@
|
|
19814
21724
|
* @throws {Error} If the payload is not a reader or valid buffer
|
19815
21725
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
19816
21726
|
*/
|
19817
|
-
MethodOptions.decode = function decode(reader, length) {
|
21727
|
+
MethodOptions.decode = function decode(reader, length, error) {
|
19818
21728
|
if (!(reader instanceof $Reader))
|
19819
21729
|
reader = $Reader.create(reader);
|
19820
21730
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions();
|
19821
21731
|
while (reader.pos < end) {
|
19822
21732
|
var tag = reader.uint32();
|
21733
|
+
if (tag === error)
|
21734
|
+
break;
|
19823
21735
|
switch (tag >>> 3) {
|
19824
21736
|
case 33: {
|
19825
21737
|
message.deprecated = reader.bool();
|
@@ -20231,12 +22143,14 @@
|
|
20231
22143
|
* @throws {Error} If the payload is not a reader or valid buffer
|
20232
22144
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
20233
22145
|
*/
|
20234
|
-
UninterpretedOption.decode = function decode(reader, length) {
|
22146
|
+
UninterpretedOption.decode = function decode(reader, length, error) {
|
20235
22147
|
if (!(reader instanceof $Reader))
|
20236
22148
|
reader = $Reader.create(reader);
|
20237
22149
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption();
|
20238
22150
|
while (reader.pos < end) {
|
20239
22151
|
var tag = reader.uint32();
|
22152
|
+
if (tag === error)
|
22153
|
+
break;
|
20240
22154
|
switch (tag >>> 3) {
|
20241
22155
|
case 2: {
|
20242
22156
|
if (!(message.name && message.name.length))
|
@@ -20570,12 +22484,14 @@
|
|
20570
22484
|
* @throws {Error} If the payload is not a reader or valid buffer
|
20571
22485
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
20572
22486
|
*/
|
20573
|
-
NamePart.decode = function decode(reader, length) {
|
22487
|
+
NamePart.decode = function decode(reader, length, error) {
|
20574
22488
|
if (!(reader instanceof $Reader))
|
20575
22489
|
reader = $Reader.create(reader);
|
20576
22490
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart();
|
20577
22491
|
while (reader.pos < end) {
|
20578
22492
|
var tag = reader.uint32();
|
22493
|
+
if (tag === error)
|
22494
|
+
break;
|
20579
22495
|
switch (tag >>> 3) {
|
20580
22496
|
case 1: {
|
20581
22497
|
message.namePart = reader.string();
|
@@ -20846,12 +22762,14 @@
|
|
20846
22762
|
* @throws {Error} If the payload is not a reader or valid buffer
|
20847
22763
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
20848
22764
|
*/
|
20849
|
-
FeatureSet.decode = function decode(reader, length) {
|
22765
|
+
FeatureSet.decode = function decode(reader, length, error) {
|
20850
22766
|
if (!(reader instanceof $Reader))
|
20851
22767
|
reader = $Reader.create(reader);
|
20852
22768
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet();
|
20853
22769
|
while (reader.pos < end) {
|
20854
22770
|
var tag = reader.uint32();
|
22771
|
+
if (tag === error)
|
22772
|
+
break;
|
20855
22773
|
switch (tag >>> 3) {
|
20856
22774
|
case 1: {
|
20857
22775
|
message.fieldPresence = reader.int32();
|
@@ -21381,12 +23299,14 @@
|
|
21381
23299
|
* @throws {Error} If the payload is not a reader or valid buffer
|
21382
23300
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
21383
23301
|
*/
|
21384
|
-
FeatureSetDefaults.decode = function decode(reader, length) {
|
23302
|
+
FeatureSetDefaults.decode = function decode(reader, length, error) {
|
21385
23303
|
if (!(reader instanceof $Reader))
|
21386
23304
|
reader = $Reader.create(reader);
|
21387
23305
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults();
|
21388
23306
|
while (reader.pos < end) {
|
21389
23307
|
var tag = reader.uint32();
|
23308
|
+
if (tag === error)
|
23309
|
+
break;
|
21390
23310
|
switch (tag >>> 3) {
|
21391
23311
|
case 1: {
|
21392
23312
|
if (!(message.defaults && message.defaults.length))
|
@@ -21765,12 +23685,14 @@
|
|
21765
23685
|
* @throws {Error} If the payload is not a reader or valid buffer
|
21766
23686
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
21767
23687
|
*/
|
21768
|
-
FeatureSetEditionDefault.decode = function decode(reader, length) {
|
23688
|
+
FeatureSetEditionDefault.decode = function decode(reader, length, error) {
|
21769
23689
|
if (!(reader instanceof $Reader))
|
21770
23690
|
reader = $Reader.create(reader);
|
21771
23691
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault();
|
21772
23692
|
while (reader.pos < end) {
|
21773
23693
|
var tag = reader.uint32();
|
23694
|
+
if (tag === error)
|
23695
|
+
break;
|
21774
23696
|
switch (tag >>> 3) {
|
21775
23697
|
case 3: {
|
21776
23698
|
message.edition = reader.int32();
|
@@ -22055,12 +23977,14 @@
|
|
22055
23977
|
* @throws {Error} If the payload is not a reader or valid buffer
|
22056
23978
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
22057
23979
|
*/
|
22058
|
-
SourceCodeInfo.decode = function decode(reader, length) {
|
23980
|
+
SourceCodeInfo.decode = function decode(reader, length, error) {
|
22059
23981
|
if (!(reader instanceof $Reader))
|
22060
23982
|
reader = $Reader.create(reader);
|
22061
23983
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo();
|
22062
23984
|
while (reader.pos < end) {
|
22063
23985
|
var tag = reader.uint32();
|
23986
|
+
if (tag === error)
|
23987
|
+
break;
|
22064
23988
|
switch (tag >>> 3) {
|
22065
23989
|
case 1: {
|
22066
23990
|
if (!(message.location && message.location.length))
|
@@ -22330,12 +24254,14 @@
|
|
22330
24254
|
* @throws {Error} If the payload is not a reader or valid buffer
|
22331
24255
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
22332
24256
|
*/
|
22333
|
-
Location.decode = function decode(reader, length) {
|
24257
|
+
Location.decode = function decode(reader, length, error) {
|
22334
24258
|
if (!(reader instanceof $Reader))
|
22335
24259
|
reader = $Reader.create(reader);
|
22336
24260
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location();
|
22337
24261
|
while (reader.pos < end) {
|
22338
24262
|
var tag = reader.uint32();
|
24263
|
+
if (tag === error)
|
24264
|
+
break;
|
22339
24265
|
switch (tag >>> 3) {
|
22340
24266
|
case 1: {
|
22341
24267
|
if (!(message.path && message.path.length))
|
@@ -22641,12 +24567,14 @@
|
|
22641
24567
|
* @throws {Error} If the payload is not a reader or valid buffer
|
22642
24568
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
22643
24569
|
*/
|
22644
|
-
GeneratedCodeInfo.decode = function decode(reader, length) {
|
24570
|
+
GeneratedCodeInfo.decode = function decode(reader, length, error) {
|
22645
24571
|
if (!(reader instanceof $Reader))
|
22646
24572
|
reader = $Reader.create(reader);
|
22647
24573
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo();
|
22648
24574
|
while (reader.pos < end) {
|
22649
24575
|
var tag = reader.uint32();
|
24576
|
+
if (tag === error)
|
24577
|
+
break;
|
22650
24578
|
switch (tag >>> 3) {
|
22651
24579
|
case 1: {
|
22652
24580
|
if (!(message.annotation && message.annotation.length))
|
@@ -22909,12 +24837,14 @@
|
|
22909
24837
|
* @throws {Error} If the payload is not a reader or valid buffer
|
22910
24838
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
22911
24839
|
*/
|
22912
|
-
Annotation.decode = function decode(reader, length) {
|
24840
|
+
Annotation.decode = function decode(reader, length, error) {
|
22913
24841
|
if (!(reader instanceof $Reader))
|
22914
24842
|
reader = $Reader.create(reader);
|
22915
24843
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation();
|
22916
24844
|
while (reader.pos < end) {
|
22917
24845
|
var tag = reader.uint32();
|
24846
|
+
if (tag === error)
|
24847
|
+
break;
|
22918
24848
|
switch (tag >>> 3) {
|
22919
24849
|
case 1: {
|
22920
24850
|
if (!(message.path && message.path.length))
|
@@ -23235,12 +25165,14 @@
|
|
23235
25165
|
* @throws {Error} If the payload is not a reader or valid buffer
|
23236
25166
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
23237
25167
|
*/
|
23238
|
-
Duration.decode = function decode(reader, length) {
|
25168
|
+
Duration.decode = function decode(reader, length, error) {
|
23239
25169
|
if (!(reader instanceof $Reader))
|
23240
25170
|
reader = $Reader.create(reader);
|
23241
25171
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration();
|
23242
25172
|
while (reader.pos < end) {
|
23243
25173
|
var tag = reader.uint32();
|
25174
|
+
if (tag === error)
|
25175
|
+
break;
|
23244
25176
|
switch (tag >>> 3) {
|
23245
25177
|
case 1: {
|
23246
25178
|
message.seconds = reader.int64();
|
@@ -23476,12 +25408,14 @@
|
|
23476
25408
|
* @throws {Error} If the payload is not a reader or valid buffer
|
23477
25409
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
23478
25410
|
*/
|
23479
|
-
Timestamp.decode = function decode(reader, length) {
|
25411
|
+
Timestamp.decode = function decode(reader, length, error) {
|
23480
25412
|
if (!(reader instanceof $Reader))
|
23481
25413
|
reader = $Reader.create(reader);
|
23482
25414
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp();
|
23483
25415
|
while (reader.pos < end) {
|
23484
25416
|
var tag = reader.uint32();
|
25417
|
+
if (tag === error)
|
25418
|
+
break;
|
23485
25419
|
switch (tag >>> 3) {
|
23486
25420
|
case 1: {
|
23487
25421
|
message.seconds = reader.int64();
|
@@ -23695,12 +25629,14 @@
|
|
23695
25629
|
* @throws {Error} If the payload is not a reader or valid buffer
|
23696
25630
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
23697
25631
|
*/
|
23698
|
-
Empty.decode = function decode(reader, length) {
|
25632
|
+
Empty.decode = function decode(reader, length, error) {
|
23699
25633
|
if (!(reader instanceof $Reader))
|
23700
25634
|
reader = $Reader.create(reader);
|
23701
25635
|
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Empty();
|
23702
25636
|
while (reader.pos < end) {
|
23703
25637
|
var tag = reader.uint32();
|
25638
|
+
if (tag === error)
|
25639
|
+
break;
|
23704
25640
|
switch (tag >>> 3) {
|
23705
25641
|
default:
|
23706
25642
|
reader.skipType(tag & 7);
|