/* eslint-disable */ /*Proudly generated by GenDocu.com*/ // source: google/api/servicecontrol/v1/metric_value.proto /** * @fileoverview * @enhanceable * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); var google_api_servicecontrol_v1_distribution_pb = require('../../../../google/api/servicecontrol/v1/distribution_pb.js'); goog.object.extend(proto, google_api_servicecontrol_v1_distribution_pb); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); goog.exportSymbol('proto.google.api.servicecontrol.v1.MetricValue', null, global); goog.exportSymbol('proto.google.api.servicecontrol.v1.MetricValue.ValueCase', null, global); goog.exportSymbol('proto.google.api.servicecontrol.v1.MetricValueSet', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.servicecontrol.v1.MetricValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_); }; goog.inherits(proto.google.api.servicecontrol.v1.MetricValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.servicecontrol.v1.MetricValue.displayName = 'proto.google.api.servicecontrol.v1.MetricValue'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.servicecontrol.v1.MetricValueSet = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.servicecontrol.v1.MetricValueSet.repeatedFields_, null); }; goog.inherits(proto.google.api.servicecontrol.v1.MetricValueSet, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.servicecontrol.v1.MetricValueSet.displayName = 'proto.google.api.servicecontrol.v1.MetricValueSet'; } /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array>} * @const */ proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_ = [[4,5,6,7,8]]; /** * @enum {number} */ proto.google.api.servicecontrol.v1.MetricValue.ValueCase = { VALUE_NOT_SET: 0, BOOL_VALUE: 4, INT64_VALUE: 5, DOUBLE_VALUE: 6, STRING_VALUE: 7, DISTRIBUTION_VALUE: 8 }; /** * @return {proto.google.api.servicecontrol.v1.MetricValue.ValueCase} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.getValueCase = function() { return /** @type {proto.google.api.servicecontrol.v1.MetricValue.ValueCase} */(jspb.Message.computeOneofCase(this, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0])); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.toObject = function(opt_includeInstance) { return proto.google.api.servicecontrol.v1.MetricValue.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.google.api.servicecontrol.v1.MetricValue} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.servicecontrol.v1.MetricValue.toObject = function(includeInstance, msg) { var f, obj = { labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : [], startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), boolValue: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), int64Value: jspb.Message.getFieldWithDefault(msg, 5, 0), doubleValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), stringValue: jspb.Message.getFieldWithDefault(msg, 7, ""), distributionValue: (f = msg.getDistributionValue()) && google_api_servicecontrol_v1_distribution_pb.Distribution.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.google.api.servicecontrol.v1.MetricValue} */ proto.google.api.servicecontrol.v1.MetricValue.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.servicecontrol.v1.MetricValue; return proto.google.api.servicecontrol.v1.MetricValue.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.servicecontrol.v1.MetricValue} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.servicecontrol.v1.MetricValue} */ proto.google.api.servicecontrol.v1.MetricValue.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = msg.getLabelsMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); }); break; case 2: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setStartTime(value); break; case 3: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setEndTime(value); break; case 4: var value = /** @type {boolean} */ (reader.readBool()); msg.setBoolValue(value); break; case 5: var value = /** @type {number} */ (reader.readInt64()); msg.setInt64Value(value); break; case 6: var value = /** @type {number} */ (reader.readDouble()); msg.setDoubleValue(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setStringValue(value); break; case 8: var value = new google_api_servicecontrol_v1_distribution_pb.Distribution; reader.readMessage(value,google_api_servicecontrol_v1_distribution_pb.Distribution.deserializeBinaryFromReader); msg.setDistributionValue(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.servicecontrol.v1.MetricValue.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.api.servicecontrol.v1.MetricValue} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.servicecontrol.v1.MetricValue.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getLabelsMap(true); if (f && f.getLength() > 0) { f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } f = message.getStartTime(); if (f != null) { writer.writeMessage( 2, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getEndTime(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = /** @type {boolean} */ (jspb.Message.getField(message, 4)); if (f != null) { writer.writeBool( 4, f ); } f = /** @type {number} */ (jspb.Message.getField(message, 5)); if (f != null) { writer.writeInt64( 5, f ); } f = /** @type {number} */ (jspb.Message.getField(message, 6)); if (f != null) { writer.writeDouble( 6, f ); } f = /** @type {string} */ (jspb.Message.getField(message, 7)); if (f != null) { writer.writeString( 7, f ); } f = message.getDistributionValue(); if (f != null) { writer.writeMessage( 8, f, google_api_servicecontrol_v1_distribution_pb.Distribution.serializeBinaryToWriter ); } }; /** * map labels = 1; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.getLabelsMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map} */ ( jspb.Message.getMapField(this, 1, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.clearLabelsMap = function() { this.getLabelsMap().clear(); return this;}; /** * optional google.protobuf.Timestamp start_time = 2; * @return {?proto.google.protobuf.Timestamp} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.getStartTime = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.setStartTime = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.clearStartTime = function() { return this.setStartTime(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.hasStartTime = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional google.protobuf.Timestamp end_time = 3; * @return {?proto.google.protobuf.Timestamp} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.getEndTime = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.setEndTime = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.clearEndTime = function() { return this.setEndTime(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.hasEndTime = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional bool bool_value = 4; * @return {boolean} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.getBoolValue = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** * @param {boolean} value * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.setBoolValue = function(value) { return jspb.Message.setOneofField(this, 4, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.clearBoolValue = function() { return jspb.Message.setOneofField(this, 4, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.hasBoolValue = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional int64 int64_value = 5; * @return {number} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.getInt64Value = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {number} value * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.setInt64Value = function(value) { return jspb.Message.setOneofField(this, 5, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.clearInt64Value = function() { return jspb.Message.setOneofField(this, 5, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.hasInt64Value = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional double double_value = 6; * @return {number} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.getDoubleValue = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); }; /** * @param {number} value * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.setDoubleValue = function(value) { return jspb.Message.setOneofField(this, 6, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.clearDoubleValue = function() { return jspb.Message.setOneofField(this, 6, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.hasDoubleValue = function() { return jspb.Message.getField(this, 6) != null; }; /** * optional string string_value = 7; * @return {string} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.getStringValue = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.setStringValue = function(value) { return jspb.Message.setOneofField(this, 7, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.clearStringValue = function() { return jspb.Message.setOneofField(this, 7, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.hasStringValue = function() { return jspb.Message.getField(this, 7) != null; }; /** * optional Distribution distribution_value = 8; * @return {?proto.google.api.servicecontrol.v1.Distribution} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.getDistributionValue = function() { return /** @type{?proto.google.api.servicecontrol.v1.Distribution} */ ( jspb.Message.getWrapperField(this, google_api_servicecontrol_v1_distribution_pb.Distribution, 8)); }; /** * @param {?proto.google.api.servicecontrol.v1.Distribution|undefined} value * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.setDistributionValue = function(value) { return jspb.Message.setOneofWrapperField(this, 8, proto.google.api.servicecontrol.v1.MetricValue.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.servicecontrol.v1.MetricValue} returns this */ proto.google.api.servicecontrol.v1.MetricValue.prototype.clearDistributionValue = function() { return this.setDistributionValue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.servicecontrol.v1.MetricValue.prototype.hasDistributionValue = function() { return jspb.Message.getField(this, 8) != null; }; /** * List of repeated fields within this message type. * @private {!Array} * @const */ proto.google.api.servicecontrol.v1.MetricValueSet.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.google.api.servicecontrol.v1.MetricValueSet.prototype.toObject = function(opt_includeInstance) { return proto.google.api.servicecontrol.v1.MetricValueSet.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.google.api.servicecontrol.v1.MetricValueSet} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.servicecontrol.v1.MetricValueSet.toObject = function(includeInstance, msg) { var f, obj = { metricName: jspb.Message.getFieldWithDefault(msg, 1, ""), metricValuesList: jspb.Message.toObjectList(msg.getMetricValuesList(), proto.google.api.servicecontrol.v1.MetricValue.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.google.api.servicecontrol.v1.MetricValueSet} */ proto.google.api.servicecontrol.v1.MetricValueSet.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.servicecontrol.v1.MetricValueSet; return proto.google.api.servicecontrol.v1.MetricValueSet.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.servicecontrol.v1.MetricValueSet} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.servicecontrol.v1.MetricValueSet} */ proto.google.api.servicecontrol.v1.MetricValueSet.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setMetricName(value); break; case 2: var value = new proto.google.api.servicecontrol.v1.MetricValue; reader.readMessage(value,proto.google.api.servicecontrol.v1.MetricValue.deserializeBinaryFromReader); msg.addMetricValues(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.servicecontrol.v1.MetricValueSet.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.servicecontrol.v1.MetricValueSet.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.api.servicecontrol.v1.MetricValueSet} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.servicecontrol.v1.MetricValueSet.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMetricName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getMetricValuesList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, proto.google.api.servicecontrol.v1.MetricValue.serializeBinaryToWriter ); } }; /** * optional string metric_name = 1; * @return {string} */ proto.google.api.servicecontrol.v1.MetricValueSet.prototype.getMetricName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.google.api.servicecontrol.v1.MetricValueSet} returns this */ proto.google.api.servicecontrol.v1.MetricValueSet.prototype.setMetricName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * repeated MetricValue metric_values = 2; * @return {!Array} */ proto.google.api.servicecontrol.v1.MetricValueSet.prototype.getMetricValuesList = function() { return /** @type{!Array} */ ( jspb.Message.getRepeatedWrapperField(this, proto.google.api.servicecontrol.v1.MetricValue, 2)); }; /** * @param {!Array} value * @return {!proto.google.api.servicecontrol.v1.MetricValueSet} returns this */ proto.google.api.servicecontrol.v1.MetricValueSet.prototype.setMetricValuesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.google.api.servicecontrol.v1.MetricValue=} opt_value * @param {number=} opt_index * @return {!proto.google.api.servicecontrol.v1.MetricValue} */ proto.google.api.servicecontrol.v1.MetricValueSet.prototype.addMetricValues = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.servicecontrol.v1.MetricValue, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.google.api.servicecontrol.v1.MetricValueSet} returns this */ proto.google.api.servicecontrol.v1.MetricValueSet.prototype.clearMetricValuesList = function() { return this.setMetricValuesList([]); }; goog.object.extend(exports, proto.google.api.servicecontrol.v1);