mirror of https://github.com/pulumi/pulumi.git
1526 lines
48 KiB
JavaScript
1526 lines
48 KiB
JavaScript
// source: pulumi/testing/language.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 proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
|
|
goog.exportSymbol('proto.pulumirpc.testing.GetLanguageTestsRequest', null, global);
|
|
goog.exportSymbol('proto.pulumirpc.testing.GetLanguageTestsResponse', null, global);
|
|
goog.exportSymbol('proto.pulumirpc.testing.PrepareLanguageTestsRequest', null, global);
|
|
goog.exportSymbol('proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement', null, global);
|
|
goog.exportSymbol('proto.pulumirpc.testing.PrepareLanguageTestsResponse', null, global);
|
|
goog.exportSymbol('proto.pulumirpc.testing.RunLanguageTestRequest', null, global);
|
|
goog.exportSymbol('proto.pulumirpc.testing.RunLanguageTestResponse', 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.pulumirpc.testing.GetLanguageTestsRequest = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.pulumirpc.testing.GetLanguageTestsRequest, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsRequest.displayName = 'proto.pulumirpc.testing.GetLanguageTestsRequest';
|
|
}
|
|
/**
|
|
* 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.pulumirpc.testing.GetLanguageTestsResponse = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.testing.GetLanguageTestsResponse.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.pulumirpc.testing.GetLanguageTestsResponse, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsResponse.displayName = 'proto.pulumirpc.testing.GetLanguageTestsResponse';
|
|
}
|
|
/**
|
|
* 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.pulumirpc.testing.PrepareLanguageTestsRequest = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.testing.PrepareLanguageTestsRequest.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.pulumirpc.testing.PrepareLanguageTestsRequest, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.displayName = 'proto.pulumirpc.testing.PrepareLanguageTestsRequest';
|
|
}
|
|
/**
|
|
* 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.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.displayName = 'proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement';
|
|
}
|
|
/**
|
|
* 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.pulumirpc.testing.PrepareLanguageTestsResponse = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.pulumirpc.testing.PrepareLanguageTestsResponse, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsResponse.displayName = 'proto.pulumirpc.testing.PrepareLanguageTestsResponse';
|
|
}
|
|
/**
|
|
* 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.pulumirpc.testing.RunLanguageTestRequest = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
};
|
|
goog.inherits(proto.pulumirpc.testing.RunLanguageTestRequest, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestRequest.displayName = 'proto.pulumirpc.testing.RunLanguageTestRequest';
|
|
}
|
|
/**
|
|
* 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.pulumirpc.testing.RunLanguageTestResponse = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.testing.RunLanguageTestResponse.repeatedFields_, null);
|
|
};
|
|
goog.inherits(proto.pulumirpc.testing.RunLanguageTestResponse, jspb.Message);
|
|
if (goog.DEBUG && !COMPILED) {
|
|
/**
|
|
* @public
|
|
* @override
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.displayName = 'proto.pulumirpc.testing.RunLanguageTestResponse';
|
|
}
|
|
|
|
|
|
|
|
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_<name>, 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.pulumirpc.testing.GetLanguageTestsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.pulumirpc.testing.GetLanguageTestsRequest.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.pulumirpc.testing.GetLanguageTestsRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsRequest.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.pulumirpc.testing.GetLanguageTestsRequest}
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsRequest.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.pulumirpc.testing.GetLanguageTestsRequest;
|
|
return proto.pulumirpc.testing.GetLanguageTestsRequest.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.pulumirpc.testing.GetLanguageTestsRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.pulumirpc.testing.GetLanguageTestsRequest}
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsRequest.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.pulumirpc.testing.GetLanguageTestsRequest.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.pulumirpc.testing.GetLanguageTestsRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsResponse.repeatedFields_ = [1];
|
|
|
|
|
|
|
|
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_<name>, 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.pulumirpc.testing.GetLanguageTestsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.pulumirpc.testing.GetLanguageTestsResponse.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.pulumirpc.testing.GetLanguageTestsResponse} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsResponse.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
testsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : 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.pulumirpc.testing.GetLanguageTestsResponse}
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsResponse.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.pulumirpc.testing.GetLanguageTestsResponse;
|
|
return proto.pulumirpc.testing.GetLanguageTestsResponse.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.pulumirpc.testing.GetLanguageTestsResponse} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.pulumirpc.testing.GetLanguageTestsResponse}
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsResponse.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.addTests(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsResponse.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.pulumirpc.testing.GetLanguageTestsResponse.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.pulumirpc.testing.GetLanguageTestsResponse} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getTestsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated string tests = 1;
|
|
* @return {!Array<string>}
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsResponse.prototype.getTestsList = function() {
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<string>} value
|
|
* @return {!proto.pulumirpc.testing.GetLanguageTestsResponse} returns this
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsResponse.prototype.setTestsList = function(value) {
|
|
return jspb.Message.setField(this, 1, value || []);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.pulumirpc.testing.GetLanguageTestsResponse} returns this
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsResponse.prototype.addTests = function(value, opt_index) {
|
|
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.pulumirpc.testing.GetLanguageTestsResponse} returns this
|
|
*/
|
|
proto.pulumirpc.testing.GetLanguageTestsResponse.prototype.clearTestsList = function() {
|
|
return this.setTestsList([]);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.repeatedFields_ = [7];
|
|
|
|
|
|
|
|
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_<name>, 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.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.pulumirpc.testing.PrepareLanguageTestsRequest.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.pulumirpc.testing.PrepareLanguageTestsRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
languagePluginName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
languagePluginTarget: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
snapshotDirectory: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
temporaryDirectory: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
coreSdkDirectory: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
coreSdkVersion: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
snapshotEditsList: jspb.Message.toObjectList(msg.getSnapshotEditsList(),
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.toObject, includeInstance),
|
|
languageInfo: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.pulumirpc.testing.PrepareLanguageTestsRequest;
|
|
return proto.pulumirpc.testing.PrepareLanguageTestsRequest.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.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.setLanguagePluginName(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setLanguagePluginTarget(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setSnapshotDirectory(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setTemporaryDirectory(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setCoreSdkDirectory(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setCoreSdkVersion(value);
|
|
break;
|
|
case 7:
|
|
var value = new proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement;
|
|
reader.readMessage(value,proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.deserializeBinaryFromReader);
|
|
msg.addSnapshotEdits(value);
|
|
break;
|
|
case 8:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setLanguageInfo(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getLanguagePluginName();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getLanguagePluginTarget();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSnapshotDirectory();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getTemporaryDirectory();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCoreSdkDirectory();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
f = message.getCoreSdkVersion();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getSnapshotEditsList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedMessage(
|
|
7,
|
|
f,
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getLanguageInfo();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
8,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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_<name>, 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.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.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.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
path: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
pattern: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
replacement: 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.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement;
|
|
return proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.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.setPath(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setPattern(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setReplacement(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getPath();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getPattern();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getReplacement();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string path = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.getPath = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement} returns this
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.setPath = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string pattern = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.getPattern = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement} returns this
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.setPattern = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string replacement = 3;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.getReplacement = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement} returns this
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.setReplacement = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string language_plugin_name = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.getLanguagePluginName = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} returns this
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.setLanguagePluginName = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string language_plugin_target = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.getLanguagePluginTarget = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} returns this
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.setLanguagePluginTarget = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string snapshot_directory = 3;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.getSnapshotDirectory = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} returns this
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.setSnapshotDirectory = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string temporary_directory = 4;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.getTemporaryDirectory = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} returns this
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.setTemporaryDirectory = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string core_sdk_directory = 5;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.getCoreSdkDirectory = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} returns this
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.setCoreSdkDirectory = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string core_sdk_version = 6;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.getCoreSdkVersion = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} returns this
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.setCoreSdkVersion = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated Replacement snapshot_edits = 7;
|
|
* @return {!Array<!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement>}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.getSnapshotEditsList = function() {
|
|
return /** @type{!Array<!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement>} */ (
|
|
jspb.Message.getRepeatedWrapperField(this, proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement, 7));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement>} value
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} returns this
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.setSnapshotEditsList = function(value) {
|
|
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement=} opt_value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.addSnapshotEdits = function(opt_value, opt_index) {
|
|
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} returns this
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.clearSnapshotEditsList = function() {
|
|
return this.setSnapshotEditsList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string language_info = 8;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.getLanguageInfo = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} returns this
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.setLanguageInfo = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 8, value);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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_<name>, 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.pulumirpc.testing.PrepareLanguageTestsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.pulumirpc.testing.PrepareLanguageTestsResponse.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.pulumirpc.testing.PrepareLanguageTestsResponse} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsResponse.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
token: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsResponse}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsResponse.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.pulumirpc.testing.PrepareLanguageTestsResponse;
|
|
return proto.pulumirpc.testing.PrepareLanguageTestsResponse.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.pulumirpc.testing.PrepareLanguageTestsResponse} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsResponse}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsResponse.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.setToken(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsResponse.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.pulumirpc.testing.PrepareLanguageTestsResponse.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.pulumirpc.testing.PrepareLanguageTestsResponse} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getToken();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string token = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsResponse.prototype.getToken = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsResponse} returns this
|
|
*/
|
|
proto.pulumirpc.testing.PrepareLanguageTestsResponse.prototype.setToken = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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_<name>, 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.pulumirpc.testing.RunLanguageTestRequest.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.pulumirpc.testing.RunLanguageTestRequest.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.pulumirpc.testing.RunLanguageTestRequest} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestRequest.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
token: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
test: 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.pulumirpc.testing.RunLanguageTestRequest}
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestRequest.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.pulumirpc.testing.RunLanguageTestRequest;
|
|
return proto.pulumirpc.testing.RunLanguageTestRequest.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.pulumirpc.testing.RunLanguageTestRequest} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.pulumirpc.testing.RunLanguageTestRequest}
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestRequest.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.setToken(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setTest(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestRequest.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.pulumirpc.testing.RunLanguageTestRequest.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.pulumirpc.testing.RunLanguageTestRequest} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestRequest.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getToken();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getTest();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string token = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestRequest.prototype.getToken = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.RunLanguageTestRequest} returns this
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestRequest.prototype.setToken = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string test = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestRequest.prototype.getTest = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.RunLanguageTestRequest} returns this
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestRequest.prototype.setTest = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.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_<name>, 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.pulumirpc.testing.RunLanguageTestResponse.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.pulumirpc.testing.RunLanguageTestResponse.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.pulumirpc.testing.RunLanguageTestResponse} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.toObject = function(includeInstance, msg) {
|
|
var f, obj = {
|
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
messagesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
stdout: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
stderr: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.pulumirpc.testing.RunLanguageTestResponse}
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.pulumirpc.testing.RunLanguageTestResponse;
|
|
return proto.pulumirpc.testing.RunLanguageTestResponse.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.pulumirpc.testing.RunLanguageTestResponse} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.pulumirpc.testing.RunLanguageTestResponse}
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
msg.setSuccess(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.addMessages(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setStdout(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setStderr(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.pulumirpc.testing.RunLanguageTestResponse} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getSuccess();
|
|
if (f) {
|
|
writer.writeBool(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getMessagesList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getStdout();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getStderr();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional bool success = 1;
|
|
* @return {boolean}
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.prototype.getSuccess = function() {
|
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {boolean} value
|
|
* @return {!proto.pulumirpc.testing.RunLanguageTestResponse} returns this
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.prototype.setSuccess = function(value) {
|
|
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated string messages = 2;
|
|
* @return {!Array<string>}
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.prototype.getMessagesList = function() {
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {!Array<string>} value
|
|
* @return {!proto.pulumirpc.testing.RunLanguageTestResponse} returns this
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.prototype.setMessagesList = function(value) {
|
|
return jspb.Message.setField(this, 2, value || []);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @param {number=} opt_index
|
|
* @return {!proto.pulumirpc.testing.RunLanguageTestResponse} returns this
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.prototype.addMessages = function(value, opt_index) {
|
|
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
* @return {!proto.pulumirpc.testing.RunLanguageTestResponse} returns this
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.prototype.clearMessagesList = function() {
|
|
return this.setMessagesList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string stdout = 3;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.prototype.getStdout = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.RunLanguageTestResponse} returns this
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.prototype.setStdout = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string stderr = 4;
|
|
* @return {string}
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.prototype.getStderr = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @return {!proto.pulumirpc.testing.RunLanguageTestResponse} returns this
|
|
*/
|
|
proto.pulumirpc.testing.RunLanguageTestResponse.prototype.setStderr = function(value) {
|
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
};
|
|
|
|
|
|
goog.object.extend(exports, proto.pulumirpc.testing);
|