google-ads-node
Version:
Google Ads gRPC Client Library for Node
1,564 lines (1,340 loc) • 72.1 kB
JavaScript
/**
* @fileoverview
* @enhanceable
* @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!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
goog.exportSymbol('proto.google.rpc.BadRequest', null, global);
goog.exportSymbol('proto.google.rpc.BadRequest.FieldViolation', null, global);
goog.exportSymbol('proto.google.rpc.DebugInfo', null, global);
goog.exportSymbol('proto.google.rpc.Help', null, global);
goog.exportSymbol('proto.google.rpc.Help.Link', null, global);
goog.exportSymbol('proto.google.rpc.LocalizedMessage', null, global);
goog.exportSymbol('proto.google.rpc.PreconditionFailure', null, global);
goog.exportSymbol('proto.google.rpc.PreconditionFailure.Violation', null, global);
goog.exportSymbol('proto.google.rpc.QuotaFailure', null, global);
goog.exportSymbol('proto.google.rpc.QuotaFailure.Violation', null, global);
goog.exportSymbol('proto.google.rpc.RequestInfo', null, global);
goog.exportSymbol('proto.google.rpc.ResourceInfo', null, global);
goog.exportSymbol('proto.google.rpc.RetryInfo', 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.rpc.RetryInfo = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.rpc.RetryInfo, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.rpc.RetryInfo.displayName = 'proto.google.rpc.RetryInfo';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.rpc.RetryInfo.prototype.toObject = function(opt_includeInstance) {
return proto.google.rpc.RetryInfo.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.rpc.RetryInfo} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.RetryInfo.toObject = function(includeInstance, msg) {
var f, obj = {
retryDelay: (f = msg.getRetryDelay()) && google_protobuf_duration_pb.Duration.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.rpc.RetryInfo}
*/
proto.google.rpc.RetryInfo.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.rpc.RetryInfo;
return proto.google.rpc.RetryInfo.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.rpc.RetryInfo} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.rpc.RetryInfo}
*/
proto.google.rpc.RetryInfo.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new google_protobuf_duration_pb.Duration;
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
msg.setRetryDelay(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.rpc.RetryInfo.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.rpc.RetryInfo.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.rpc.RetryInfo} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.RetryInfo.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getRetryDelay();
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_duration_pb.Duration.serializeBinaryToWriter
);
}
};
/**
* optional google.protobuf.Duration retry_delay = 1;
* @return {?proto.google.protobuf.Duration}
*/
proto.google.rpc.RetryInfo.prototype.getRetryDelay = function() {
return /** @type{?proto.google.protobuf.Duration} */ (
jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 1));
};
/** @param {?proto.google.protobuf.Duration|undefined} value */
proto.google.rpc.RetryInfo.prototype.setRetryDelay = function(value) {
jspb.Message.setWrapperField(this, 1, value);
};
proto.google.rpc.RetryInfo.prototype.clearRetryDelay = function() {
this.setRetryDelay(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.google.rpc.RetryInfo.prototype.hasRetryDelay = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* 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.rpc.DebugInfo = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.DebugInfo.repeatedFields_, null);
};
goog.inherits(proto.google.rpc.DebugInfo, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.rpc.DebugInfo.displayName = 'proto.google.rpc.DebugInfo';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.rpc.DebugInfo.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.rpc.DebugInfo.prototype.toObject = function(opt_includeInstance) {
return proto.google.rpc.DebugInfo.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.rpc.DebugInfo} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.DebugInfo.toObject = function(includeInstance, msg) {
var f, obj = {
stackEntriesList: jspb.Message.getRepeatedField(msg, 1),
detail: jspb.Message.getFieldWithDefault(msg, 2, "")
};
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.rpc.DebugInfo}
*/
proto.google.rpc.DebugInfo.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.rpc.DebugInfo;
return proto.google.rpc.DebugInfo.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.rpc.DebugInfo} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.rpc.DebugInfo}
*/
proto.google.rpc.DebugInfo.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.addStackEntries(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setDetail(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.rpc.DebugInfo.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.rpc.DebugInfo.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.rpc.DebugInfo} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.DebugInfo.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getStackEntriesList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
f
);
}
f = message.getDetail();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* repeated string stack_entries = 1;
* @return {!Array<string>}
*/
proto.google.rpc.DebugInfo.prototype.getStackEntriesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/** @param {!Array<string>} value */
proto.google.rpc.DebugInfo.prototype.setStackEntriesList = function(value) {
jspb.Message.setField(this, 1, value || []);
};
/**
* @param {!string} value
* @param {number=} opt_index
*/
proto.google.rpc.DebugInfo.prototype.addStackEntries = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
proto.google.rpc.DebugInfo.prototype.clearStackEntriesList = function() {
this.setStackEntriesList([]);
};
/**
* optional string detail = 2;
* @return {string}
*/
proto.google.rpc.DebugInfo.prototype.getDetail = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
proto.google.rpc.DebugInfo.prototype.setDetail = function(value) {
jspb.Message.setProto3StringField(this, 2, value);
};
/**
* 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.rpc.QuotaFailure = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.QuotaFailure.repeatedFields_, null);
};
goog.inherits(proto.google.rpc.QuotaFailure, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.rpc.QuotaFailure.displayName = 'proto.google.rpc.QuotaFailure';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.rpc.QuotaFailure.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.rpc.QuotaFailure.prototype.toObject = function(opt_includeInstance) {
return proto.google.rpc.QuotaFailure.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.rpc.QuotaFailure} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.QuotaFailure.toObject = function(includeInstance, msg) {
var f, obj = {
violationsList: jspb.Message.toObjectList(msg.getViolationsList(),
proto.google.rpc.QuotaFailure.Violation.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.rpc.QuotaFailure}
*/
proto.google.rpc.QuotaFailure.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.rpc.QuotaFailure;
return proto.google.rpc.QuotaFailure.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.rpc.QuotaFailure} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.rpc.QuotaFailure}
*/
proto.google.rpc.QuotaFailure.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.google.rpc.QuotaFailure.Violation;
reader.readMessage(value,proto.google.rpc.QuotaFailure.Violation.deserializeBinaryFromReader);
msg.addViolations(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.rpc.QuotaFailure.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.rpc.QuotaFailure.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.rpc.QuotaFailure} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.QuotaFailure.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getViolationsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.google.rpc.QuotaFailure.Violation.serializeBinaryToWriter
);
}
};
/**
* 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.rpc.QuotaFailure.Violation = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.rpc.QuotaFailure.Violation, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.rpc.QuotaFailure.Violation.displayName = 'proto.google.rpc.QuotaFailure.Violation';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.rpc.QuotaFailure.Violation.prototype.toObject = function(opt_includeInstance) {
return proto.google.rpc.QuotaFailure.Violation.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.rpc.QuotaFailure.Violation} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.QuotaFailure.Violation.toObject = function(includeInstance, msg) {
var f, obj = {
subject: jspb.Message.getFieldWithDefault(msg, 1, ""),
description: jspb.Message.getFieldWithDefault(msg, 2, "")
};
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.rpc.QuotaFailure.Violation}
*/
proto.google.rpc.QuotaFailure.Violation.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.rpc.QuotaFailure.Violation;
return proto.google.rpc.QuotaFailure.Violation.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.rpc.QuotaFailure.Violation} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.rpc.QuotaFailure.Violation}
*/
proto.google.rpc.QuotaFailure.Violation.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.setSubject(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setDescription(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.rpc.QuotaFailure.Violation.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.rpc.QuotaFailure.Violation.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.rpc.QuotaFailure.Violation} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.QuotaFailure.Violation.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSubject();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional string subject = 1;
* @return {string}
*/
proto.google.rpc.QuotaFailure.Violation.prototype.getSubject = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.google.rpc.QuotaFailure.Violation.prototype.setSubject = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string description = 2;
* @return {string}
*/
proto.google.rpc.QuotaFailure.Violation.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
proto.google.rpc.QuotaFailure.Violation.prototype.setDescription = function(value) {
jspb.Message.setProto3StringField(this, 2, value);
};
/**
* repeated Violation violations = 1;
* @return {!Array<!proto.google.rpc.QuotaFailure.Violation>}
*/
proto.google.rpc.QuotaFailure.prototype.getViolationsList = function() {
return /** @type{!Array<!proto.google.rpc.QuotaFailure.Violation>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.rpc.QuotaFailure.Violation, 1));
};
/** @param {!Array<!proto.google.rpc.QuotaFailure.Violation>} value */
proto.google.rpc.QuotaFailure.prototype.setViolationsList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.google.rpc.QuotaFailure.Violation=} opt_value
* @param {number=} opt_index
* @return {!proto.google.rpc.QuotaFailure.Violation}
*/
proto.google.rpc.QuotaFailure.prototype.addViolations = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.rpc.QuotaFailure.Violation, opt_index);
};
proto.google.rpc.QuotaFailure.prototype.clearViolationsList = function() {
this.setViolationsList([]);
};
/**
* 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.rpc.PreconditionFailure = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.PreconditionFailure.repeatedFields_, null);
};
goog.inherits(proto.google.rpc.PreconditionFailure, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.rpc.PreconditionFailure.displayName = 'proto.google.rpc.PreconditionFailure';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.rpc.PreconditionFailure.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.rpc.PreconditionFailure.prototype.toObject = function(opt_includeInstance) {
return proto.google.rpc.PreconditionFailure.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.rpc.PreconditionFailure} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.PreconditionFailure.toObject = function(includeInstance, msg) {
var f, obj = {
violationsList: jspb.Message.toObjectList(msg.getViolationsList(),
proto.google.rpc.PreconditionFailure.Violation.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.rpc.PreconditionFailure}
*/
proto.google.rpc.PreconditionFailure.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.rpc.PreconditionFailure;
return proto.google.rpc.PreconditionFailure.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.rpc.PreconditionFailure} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.rpc.PreconditionFailure}
*/
proto.google.rpc.PreconditionFailure.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.google.rpc.PreconditionFailure.Violation;
reader.readMessage(value,proto.google.rpc.PreconditionFailure.Violation.deserializeBinaryFromReader);
msg.addViolations(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.rpc.PreconditionFailure.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.rpc.PreconditionFailure.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.rpc.PreconditionFailure} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.PreconditionFailure.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getViolationsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.google.rpc.PreconditionFailure.Violation.serializeBinaryToWriter
);
}
};
/**
* 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.rpc.PreconditionFailure.Violation = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.rpc.PreconditionFailure.Violation, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.rpc.PreconditionFailure.Violation.displayName = 'proto.google.rpc.PreconditionFailure.Violation';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.rpc.PreconditionFailure.Violation.prototype.toObject = function(opt_includeInstance) {
return proto.google.rpc.PreconditionFailure.Violation.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.rpc.PreconditionFailure.Violation} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.PreconditionFailure.Violation.toObject = function(includeInstance, msg) {
var f, obj = {
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
subject: jspb.Message.getFieldWithDefault(msg, 2, ""),
description: jspb.Message.getFieldWithDefault(msg, 3, "")
};
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.rpc.PreconditionFailure.Violation}
*/
proto.google.rpc.PreconditionFailure.Violation.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.rpc.PreconditionFailure.Violation;
return proto.google.rpc.PreconditionFailure.Violation.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.rpc.PreconditionFailure.Violation} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.rpc.PreconditionFailure.Violation}
*/
proto.google.rpc.PreconditionFailure.Violation.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.setType(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setSubject(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setDescription(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.rpc.PreconditionFailure.Violation.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.rpc.PreconditionFailure.Violation.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.rpc.PreconditionFailure.Violation} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.PreconditionFailure.Violation.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getType();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getSubject();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional string type = 1;
* @return {string}
*/
proto.google.rpc.PreconditionFailure.Violation.prototype.getType = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.google.rpc.PreconditionFailure.Violation.prototype.setType = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string subject = 2;
* @return {string}
*/
proto.google.rpc.PreconditionFailure.Violation.prototype.getSubject = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
proto.google.rpc.PreconditionFailure.Violation.prototype.setSubject = function(value) {
jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string description = 3;
* @return {string}
*/
proto.google.rpc.PreconditionFailure.Violation.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/** @param {string} value */
proto.google.rpc.PreconditionFailure.Violation.prototype.setDescription = function(value) {
jspb.Message.setProto3StringField(this, 3, value);
};
/**
* repeated Violation violations = 1;
* @return {!Array<!proto.google.rpc.PreconditionFailure.Violation>}
*/
proto.google.rpc.PreconditionFailure.prototype.getViolationsList = function() {
return /** @type{!Array<!proto.google.rpc.PreconditionFailure.Violation>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.rpc.PreconditionFailure.Violation, 1));
};
/** @param {!Array<!proto.google.rpc.PreconditionFailure.Violation>} value */
proto.google.rpc.PreconditionFailure.prototype.setViolationsList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.google.rpc.PreconditionFailure.Violation=} opt_value
* @param {number=} opt_index
* @return {!proto.google.rpc.PreconditionFailure.Violation}
*/
proto.google.rpc.PreconditionFailure.prototype.addViolations = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.rpc.PreconditionFailure.Violation, opt_index);
};
proto.google.rpc.PreconditionFailure.prototype.clearViolationsList = function() {
this.setViolationsList([]);
};
/**
* 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.rpc.BadRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.BadRequest.repeatedFields_, null);
};
goog.inherits(proto.google.rpc.BadRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.rpc.BadRequest.displayName = 'proto.google.rpc.BadRequest';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.rpc.BadRequest.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.rpc.BadRequest.prototype.toObject = function(opt_includeInstance) {
return proto.google.rpc.BadRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.rpc.BadRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.BadRequest.toObject = function(includeInstance, msg) {
var f, obj = {
fieldViolationsList: jspb.Message.toObjectList(msg.getFieldViolationsList(),
proto.google.rpc.BadRequest.FieldViolation.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.rpc.BadRequest}
*/
proto.google.rpc.BadRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.rpc.BadRequest;
return proto.google.rpc.BadRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.rpc.BadRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.rpc.BadRequest}
*/
proto.google.rpc.BadRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.google.rpc.BadRequest.FieldViolation;
reader.readMessage(value,proto.google.rpc.BadRequest.FieldViolation.deserializeBinaryFromReader);
msg.addFieldViolations(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.rpc.BadRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.rpc.BadRequest.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.rpc.BadRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.BadRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getFieldViolationsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.google.rpc.BadRequest.FieldViolation.serializeBinaryToWriter
);
}
};
/**
* 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.rpc.BadRequest.FieldViolation = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.rpc.BadRequest.FieldViolation, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.rpc.BadRequest.FieldViolation.displayName = 'proto.google.rpc.BadRequest.FieldViolation';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.rpc.BadRequest.FieldViolation.prototype.toObject = function(opt_includeInstance) {
return proto.google.rpc.BadRequest.FieldViolation.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.rpc.BadRequest.FieldViolation} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.BadRequest.FieldViolation.toObject = function(includeInstance, msg) {
var f, obj = {
field: jspb.Message.getFieldWithDefault(msg, 1, ""),
description: jspb.Message.getFieldWithDefault(msg, 2, "")
};
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.rpc.BadRequest.FieldViolation}
*/
proto.google.rpc.BadRequest.FieldViolation.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.rpc.BadRequest.FieldViolation;
return proto.google.rpc.BadRequest.FieldViolation.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.rpc.BadRequest.FieldViolation} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.rpc.BadRequest.FieldViolation}
*/
proto.google.rpc.BadRequest.FieldViolation.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.setField(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setDescription(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.rpc.BadRequest.FieldViolation.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.rpc.BadRequest.FieldViolation.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.rpc.BadRequest.FieldViolation} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.BadRequest.FieldViolation.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getField();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional string field = 1;
* @return {string}
*/
proto.google.rpc.BadRequest.FieldViolation.prototype.getField = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.google.rpc.BadRequest.FieldViolation.prototype.setField = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string description = 2;
* @return {string}
*/
proto.google.rpc.BadRequest.FieldViolation.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/** @param {string} value */
proto.google.rpc.BadRequest.FieldViolation.prototype.setDescription = function(value) {
jspb.Message.setProto3StringField(this, 2, value);
};
/**
* repeated FieldViolation field_violations = 1;
* @return {!Array<!proto.google.rpc.BadRequest.FieldViolation>}
*/
proto.google.rpc.BadRequest.prototype.getFieldViolationsList = function() {
return /** @type{!Array<!proto.google.rpc.BadRequest.FieldViolation>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.google.rpc.BadRequest.FieldViolation, 1));
};
/** @param {!Array<!proto.google.rpc.BadRequest.FieldViolation>} value */
proto.google.rpc.BadRequest.prototype.setFieldViolationsList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.google.rpc.BadRequest.FieldViolation=} opt_value
* @param {number=} opt_index
* @return {!proto.google.rpc.BadRequest.FieldViolation}
*/
proto.google.rpc.BadRequest.prototype.addFieldViolations = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.rpc.BadRequest.FieldViolation, opt_index);
};
proto.google.rpc.BadRequest.prototype.clearFieldViolationsList = function() {
this.setFieldViolationsList([]);
};
/**
* 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.rpc.RequestInfo = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.rpc.RequestInfo, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.google.rpc.RequestInfo.displayName = 'proto.google.rpc.RequestInfo';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.rpc.RequestInfo.prototype.toObject = function(opt_includeInstance) {
return proto.google.rpc.RequestInfo.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.rpc.RequestInfo} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.RequestInfo.toObject = function(includeInstance, msg) {
var f, obj = {
requestId: jspb.Message.getFieldWithDefault(msg, 1, ""),
servingData: jspb.Message.getFieldWithDefault(msg, 2, "")
};
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.rpc.RequestInfo}
*/
proto.google.rpc.RequestInfo.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.rpc.RequestInfo;
return proto.google.rpc.RequestInfo.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.rpc.RequestInfo} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.rpc.RequestInfo}
*/
proto.google.rpc.RequestInfo.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.setRequestId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setServingData(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.rpc.RequestInfo.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.rpc.RequestInfo.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.rpc.RequestInfo} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.rpc.RequestInfo.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getRequestId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getServingData();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional string request_id = 1;
* @return {string}
*/
proto.google.rpc.RequestInfo.prototype.getRequestId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.google.rpc.RequestInfo.pr