pulumi/sdk/nodejs/proto/resource_pb.js

7448 lines
223 KiB
JavaScript

// source: pulumi/resource.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;
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
goog.object.extend(proto, google_protobuf_empty_pb);
var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
goog.object.extend(proto, google_protobuf_struct_pb);
var pulumi_provider_pb = require('./provider_pb.js');
goog.object.extend(proto, pulumi_provider_pb);
var pulumi_alias_pb = require('./alias_pb.js');
goog.object.extend(proto, pulumi_alias_pb);
var pulumi_source_pb = require('./source_pb.js');
goog.object.extend(proto, pulumi_source_pb);
var pulumi_callback_pb = require('./callback_pb.js');
goog.object.extend(proto, pulumi_callback_pb);
goog.exportSymbol('proto.pulumirpc.Parameterization', null, global);
goog.exportSymbol('proto.pulumirpc.ReadResourceRequest', null, global);
goog.exportSymbol('proto.pulumirpc.ReadResourceResponse', null, global);
goog.exportSymbol('proto.pulumirpc.RegisterPackageRequest', null, global);
goog.exportSymbol('proto.pulumirpc.RegisterPackageResponse', null, global);
goog.exportSymbol('proto.pulumirpc.RegisterResourceOutputsRequest', null, global);
goog.exportSymbol('proto.pulumirpc.RegisterResourceRequest', null, global);
goog.exportSymbol('proto.pulumirpc.RegisterResourceRequest.CustomTimeouts', null, global);
goog.exportSymbol('proto.pulumirpc.RegisterResourceRequest.PropertyDependencies', null, global);
goog.exportSymbol('proto.pulumirpc.RegisterResourceResponse', null, global);
goog.exportSymbol('proto.pulumirpc.RegisterResourceResponse.PropertyDependencies', null, global);
goog.exportSymbol('proto.pulumirpc.ResourceCallRequest', null, global);
goog.exportSymbol('proto.pulumirpc.ResourceCallRequest.ArgumentDependencies', null, global);
goog.exportSymbol('proto.pulumirpc.ResourceInvokeRequest', null, global);
goog.exportSymbol('proto.pulumirpc.Result', null, global);
goog.exportSymbol('proto.pulumirpc.SupportsFeatureRequest', null, global);
goog.exportSymbol('proto.pulumirpc.SupportsFeatureResponse', null, global);
goog.exportSymbol('proto.pulumirpc.TransformInvokeOptions', null, global);
goog.exportSymbol('proto.pulumirpc.TransformInvokeRequest', null, global);
goog.exportSymbol('proto.pulumirpc.TransformInvokeResponse', null, global);
goog.exportSymbol('proto.pulumirpc.TransformRequest', null, global);
goog.exportSymbol('proto.pulumirpc.TransformResourceOptions', null, global);
goog.exportSymbol('proto.pulumirpc.TransformResponse', 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.SupportsFeatureRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.SupportsFeatureRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.SupportsFeatureRequest.displayName = 'proto.pulumirpc.SupportsFeatureRequest';
}
/**
* 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.SupportsFeatureResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.SupportsFeatureResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.SupportsFeatureResponse.displayName = 'proto.pulumirpc.SupportsFeatureResponse';
}
/**
* 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.ReadResourceRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.ReadResourceRequest.repeatedFields_, null);
};
goog.inherits(proto.pulumirpc.ReadResourceRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.ReadResourceRequest.displayName = 'proto.pulumirpc.ReadResourceRequest';
}
/**
* 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.ReadResourceResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.ReadResourceResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.ReadResourceResponse.displayName = 'proto.pulumirpc.ReadResourceResponse';
}
/**
* 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.RegisterResourceRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.RegisterResourceRequest.repeatedFields_, null);
};
goog.inherits(proto.pulumirpc.RegisterResourceRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.RegisterResourceRequest.displayName = 'proto.pulumirpc.RegisterResourceRequest';
}
/**
* 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.RegisterResourceRequest.PropertyDependencies = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.repeatedFields_, null);
};
goog.inherits(proto.pulumirpc.RegisterResourceRequest.PropertyDependencies, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.displayName = 'proto.pulumirpc.RegisterResourceRequest.PropertyDependencies';
}
/**
* 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.RegisterResourceRequest.CustomTimeouts = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.RegisterResourceRequest.CustomTimeouts, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.displayName = 'proto.pulumirpc.RegisterResourceRequest.CustomTimeouts';
}
/**
* 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.RegisterResourceResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.RegisterResourceResponse.repeatedFields_, null);
};
goog.inherits(proto.pulumirpc.RegisterResourceResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.RegisterResourceResponse.displayName = 'proto.pulumirpc.RegisterResourceResponse';
}
/**
* 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.RegisterResourceResponse.PropertyDependencies = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.repeatedFields_, null);
};
goog.inherits(proto.pulumirpc.RegisterResourceResponse.PropertyDependencies, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.displayName = 'proto.pulumirpc.RegisterResourceResponse.PropertyDependencies';
}
/**
* 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.RegisterResourceOutputsRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.RegisterResourceOutputsRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.RegisterResourceOutputsRequest.displayName = 'proto.pulumirpc.RegisterResourceOutputsRequest';
}
/**
* 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.ResourceInvokeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.ResourceInvokeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.ResourceInvokeRequest.displayName = 'proto.pulumirpc.ResourceInvokeRequest';
}
/**
* 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.ResourceCallRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.ResourceCallRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.ResourceCallRequest.displayName = 'proto.pulumirpc.ResourceCallRequest';
}
/**
* 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.ResourceCallRequest.ArgumentDependencies = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.repeatedFields_, null);
};
goog.inherits(proto.pulumirpc.ResourceCallRequest.ArgumentDependencies, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.displayName = 'proto.pulumirpc.ResourceCallRequest.ArgumentDependencies';
}
/**
* 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.TransformResourceOptions = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.TransformResourceOptions.repeatedFields_, null);
};
goog.inherits(proto.pulumirpc.TransformResourceOptions, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.TransformResourceOptions.displayName = 'proto.pulumirpc.TransformResourceOptions';
}
/**
* 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.TransformRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.TransformRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.TransformRequest.displayName = 'proto.pulumirpc.TransformRequest';
}
/**
* 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.TransformResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.TransformResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.TransformResponse.displayName = 'proto.pulumirpc.TransformResponse';
}
/**
* 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.TransformInvokeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.TransformInvokeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.TransformInvokeRequest.displayName = 'proto.pulumirpc.TransformInvokeRequest';
}
/**
* 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.TransformInvokeResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.TransformInvokeResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.TransformInvokeResponse.displayName = 'proto.pulumirpc.TransformInvokeResponse';
}
/**
* 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.TransformInvokeOptions = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.TransformInvokeOptions, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.TransformInvokeOptions.displayName = 'proto.pulumirpc.TransformInvokeOptions';
}
/**
* 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.RegisterPackageRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.RegisterPackageRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.RegisterPackageRequest.displayName = 'proto.pulumirpc.RegisterPackageRequest';
}
/**
* 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.RegisterPackageResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.RegisterPackageResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.RegisterPackageResponse.displayName = 'proto.pulumirpc.RegisterPackageResponse';
}
/**
* 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.Parameterization = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.pulumirpc.Parameterization, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.pulumirpc.Parameterization.displayName = 'proto.pulumirpc.Parameterization';
}
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.SupportsFeatureRequest.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.SupportsFeatureRequest.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.SupportsFeatureRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.SupportsFeatureRequest.toObject = function(includeInstance, msg) {
var f, obj = {
id: 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.SupportsFeatureRequest}
*/
proto.pulumirpc.SupportsFeatureRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.SupportsFeatureRequest;
return proto.pulumirpc.SupportsFeatureRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.SupportsFeatureRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.SupportsFeatureRequest}
*/
proto.pulumirpc.SupportsFeatureRequest.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.setId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.SupportsFeatureRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.SupportsFeatureRequest.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.SupportsFeatureRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.SupportsFeatureRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string id = 1;
* @return {string}
*/
proto.pulumirpc.SupportsFeatureRequest.prototype.getId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.SupportsFeatureRequest} returns this
*/
proto.pulumirpc.SupportsFeatureRequest.prototype.setId = 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.SupportsFeatureResponse.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.SupportsFeatureResponse.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.SupportsFeatureResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.SupportsFeatureResponse.toObject = function(includeInstance, msg) {
var f, obj = {
hassupport: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
};
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.SupportsFeatureResponse}
*/
proto.pulumirpc.SupportsFeatureResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.SupportsFeatureResponse;
return proto.pulumirpc.SupportsFeatureResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.SupportsFeatureResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.SupportsFeatureResponse}
*/
proto.pulumirpc.SupportsFeatureResponse.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.setHassupport(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.SupportsFeatureResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.SupportsFeatureResponse.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.SupportsFeatureResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.SupportsFeatureResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHassupport();
if (f) {
writer.writeBool(
1,
f
);
}
};
/**
* optional bool hasSupport = 1;
* @return {boolean}
*/
proto.pulumirpc.SupportsFeatureResponse.prototype.getHassupport = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.SupportsFeatureResponse} returns this
*/
proto.pulumirpc.SupportsFeatureResponse.prototype.setHassupport = function(value) {
return jspb.Message.setProto3BooleanField(this, 1, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.pulumirpc.ReadResourceRequest.repeatedFields_ = [6,10];
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.ReadResourceRequest.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.ReadResourceRequest.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.ReadResourceRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.ReadResourceRequest.toObject = function(includeInstance, msg) {
var f, obj = {
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
parent: jspb.Message.getFieldWithDefault(msg, 4, ""),
properties: (f = msg.getProperties()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
dependenciesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
provider: jspb.Message.getFieldWithDefault(msg, 7, ""),
version: jspb.Message.getFieldWithDefault(msg, 8, ""),
acceptsecrets: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
additionalsecretoutputsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f,
acceptresources: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
plugindownloadurl: jspb.Message.getFieldWithDefault(msg, 13, ""),
pluginchecksumsMap: (f = msg.getPluginchecksumsMap()) ? f.toObject(includeInstance, undefined) : [],
sourceposition: (f = msg.getSourceposition()) && pulumi_source_pb.SourcePosition.toObject(includeInstance, f),
packageref: jspb.Message.getFieldWithDefault(msg, 16, "")
};
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.ReadResourceRequest}
*/
proto.pulumirpc.ReadResourceRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.ReadResourceRequest;
return proto.pulumirpc.ReadResourceRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.ReadResourceRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.ReadResourceRequest}
*/
proto.pulumirpc.ReadResourceRequest.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.setId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setType(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setParent(value);
break;
case 5:
var value = new google_protobuf_struct_pb.Struct;
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setProperties(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.addDependencies(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setProvider(value);
break;
case 8:
var value = /** @type {string} */ (reader.readString());
msg.setVersion(value);
break;
case 9:
var value = /** @type {boolean} */ (reader.readBool());
msg.setAcceptsecrets(value);
break;
case 10:
var value = /** @type {string} */ (reader.readString());
msg.addAdditionalsecretoutputs(value);
break;
case 12:
var value = /** @type {boolean} */ (reader.readBool());
msg.setAcceptresources(value);
break;
case 13:
var value = /** @type {string} */ (reader.readString());
msg.setPlugindownloadurl(value);
break;
case 15:
var value = msg.getPluginchecksumsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
});
break;
case 14:
var value = new pulumi_source_pb.SourcePosition;
reader.readMessage(value,pulumi_source_pb.SourcePosition.deserializeBinaryFromReader);
msg.setSourceposition(value);
break;
case 16:
var value = /** @type {string} */ (reader.readString());
msg.setPackageref(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.ReadResourceRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.ReadResourceRequest.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.ReadResourceRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.ReadResourceRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getId();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getType();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getName();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getParent();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getProperties();
if (f != null) {
writer.writeMessage(
5,
f,
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
);
}
f = message.getDependenciesList();
if (f.length > 0) {
writer.writeRepeatedString(
6,
f
);
}
f = message.getProvider();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
f = message.getVersion();
if (f.length > 0) {
writer.writeString(
8,
f
);
}
f = message.getAcceptsecrets();
if (f) {
writer.writeBool(
9,
f
);
}
f = message.getAdditionalsecretoutputsList();
if (f.length > 0) {
writer.writeRepeatedString(
10,
f
);
}
f = message.getAcceptresources();
if (f) {
writer.writeBool(
12,
f
);
}
f = message.getPlugindownloadurl();
if (f.length > 0) {
writer.writeString(
13,
f
);
}
f = message.getPluginchecksumsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(15, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
}
f = message.getSourceposition();
if (f != null) {
writer.writeMessage(
14,
f,
pulumi_source_pb.SourcePosition.serializeBinaryToWriter
);
}
f = message.getPackageref();
if (f.length > 0) {
writer.writeString(
16,
f
);
}
};
/**
* optional string id = 1;
* @return {string}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.setId = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string type = 2;
* @return {string}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getType = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.setType = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string name = 3;
* @return {string}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string parent = 4;
* @return {string}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getParent = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.setParent = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional google.protobuf.Struct properties = 5;
* @return {?proto.google.protobuf.Struct}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getProperties = function() {
return /** @type{?proto.google.protobuf.Struct} */ (
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5));
};
/**
* @param {?proto.google.protobuf.Struct|undefined} value
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.setProperties = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.clearProperties = function() {
return this.setProperties(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.ReadResourceRequest.prototype.hasProperties = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* repeated string dependencies = 6;
* @return {!Array<string>}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getDependenciesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.setDependenciesList = function(value) {
return jspb.Message.setField(this, 6, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.addDependencies = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.clearDependenciesList = function() {
return this.setDependenciesList([]);
};
/**
* optional string provider = 7;
* @return {string}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getProvider = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.setProvider = function(value) {
return jspb.Message.setProto3StringField(this, 7, value);
};
/**
* optional string version = 8;
* @return {string}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.setVersion = function(value) {
return jspb.Message.setProto3StringField(this, 8, value);
};
/**
* optional bool acceptSecrets = 9;
* @return {boolean}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getAcceptsecrets = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.setAcceptsecrets = function(value) {
return jspb.Message.setProto3BooleanField(this, 9, value);
};
/**
* repeated string additionalSecretOutputs = 10;
* @return {!Array<string>}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getAdditionalsecretoutputsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.setAdditionalsecretoutputsList = function(value) {
return jspb.Message.setField(this, 10, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.addAdditionalsecretoutputs = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.clearAdditionalsecretoutputsList = function() {
return this.setAdditionalsecretoutputsList([]);
};
/**
* optional bool acceptResources = 12;
* @return {boolean}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getAcceptresources = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.setAcceptresources = function(value) {
return jspb.Message.setProto3BooleanField(this, 12, value);
};
/**
* optional string pluginDownloadURL = 13;
* @return {string}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getPlugindownloadurl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.setPlugindownloadurl = function(value) {
return jspb.Message.setProto3StringField(this, 13, value);
};
/**
* map<string, bytes> pluginChecksums = 15;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!(string|Uint8Array)>}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getPluginchecksumsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
jspb.Message.getMapField(this, 15, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.clearPluginchecksumsMap = function() {
this.getPluginchecksumsMap().clear();
return this;};
/**
* optional SourcePosition sourcePosition = 14;
* @return {?proto.pulumirpc.SourcePosition}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getSourceposition = function() {
return /** @type{?proto.pulumirpc.SourcePosition} */ (
jspb.Message.getWrapperField(this, pulumi_source_pb.SourcePosition, 14));
};
/**
* @param {?proto.pulumirpc.SourcePosition|undefined} value
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.setSourceposition = function(value) {
return jspb.Message.setWrapperField(this, 14, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.clearSourceposition = function() {
return this.setSourceposition(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.ReadResourceRequest.prototype.hasSourceposition = function() {
return jspb.Message.getField(this, 14) != null;
};
/**
* optional string packageRef = 16;
* @return {string}
*/
proto.pulumirpc.ReadResourceRequest.prototype.getPackageref = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
*/
proto.pulumirpc.ReadResourceRequest.prototype.setPackageref = function(value) {
return jspb.Message.setProto3StringField(this, 16, 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.ReadResourceResponse.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.ReadResourceResponse.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.ReadResourceResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.ReadResourceResponse.toObject = function(includeInstance, msg) {
var f, obj = {
urn: jspb.Message.getFieldWithDefault(msg, 1, ""),
properties: (f = msg.getProperties()) && google_protobuf_struct_pb.Struct.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.pulumirpc.ReadResourceResponse}
*/
proto.pulumirpc.ReadResourceResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.ReadResourceResponse;
return proto.pulumirpc.ReadResourceResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.ReadResourceResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.ReadResourceResponse}
*/
proto.pulumirpc.ReadResourceResponse.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.setUrn(value);
break;
case 2:
var value = new google_protobuf_struct_pb.Struct;
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setProperties(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.ReadResourceResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.ReadResourceResponse.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.ReadResourceResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.ReadResourceResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUrn();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getProperties();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
);
}
};
/**
* optional string urn = 1;
* @return {string}
*/
proto.pulumirpc.ReadResourceResponse.prototype.getUrn = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ReadResourceResponse} returns this
*/
proto.pulumirpc.ReadResourceResponse.prototype.setUrn = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional google.protobuf.Struct properties = 2;
* @return {?proto.google.protobuf.Struct}
*/
proto.pulumirpc.ReadResourceResponse.prototype.getProperties = function() {
return /** @type{?proto.google.protobuf.Struct} */ (
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2));
};
/**
* @param {?proto.google.protobuf.Struct|undefined} value
* @return {!proto.pulumirpc.ReadResourceResponse} returns this
*/
proto.pulumirpc.ReadResourceResponse.prototype.setProperties = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.ReadResourceResponse} returns this
*/
proto.pulumirpc.ReadResourceResponse.prototype.clearProperties = function() {
return this.setProperties(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.ReadResourceResponse.prototype.hasProperties = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.pulumirpc.RegisterResourceRequest.repeatedFields_ = [7,12,14,15,23,26,31];
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.RegisterResourceRequest.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.RegisterResourceRequest.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.RegisterResourceRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterResourceRequest.toObject = function(includeInstance, msg) {
var f, obj = {
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
parent: jspb.Message.getFieldWithDefault(msg, 3, ""),
custom: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
object: (f = msg.getObject()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
protect: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
dependenciesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
provider: jspb.Message.getFieldWithDefault(msg, 8, ""),
propertydependenciesMap: (f = msg.getPropertydependenciesMap()) ? f.toObject(includeInstance, proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.toObject) : [],
deletebeforereplace: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
version: jspb.Message.getFieldWithDefault(msg, 11, ""),
ignorechangesList: (f = jspb.Message.getRepeatedField(msg, 12)) == null ? undefined : f,
acceptsecrets: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
additionalsecretoutputsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
aliasurnsList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f,
importid: jspb.Message.getFieldWithDefault(msg, 16, ""),
customtimeouts: (f = msg.getCustomtimeouts()) && proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.toObject(includeInstance, f),
deletebeforereplacedefined: jspb.Message.getBooleanFieldWithDefault(msg, 18, false),
supportspartialvalues: jspb.Message.getBooleanFieldWithDefault(msg, 19, false),
remote: jspb.Message.getBooleanFieldWithDefault(msg, 20, false),
acceptresources: jspb.Message.getBooleanFieldWithDefault(msg, 21, false),
providersMap: (f = msg.getProvidersMap()) ? f.toObject(includeInstance, undefined) : [],
replaceonchangesList: (f = jspb.Message.getRepeatedField(msg, 23)) == null ? undefined : f,
plugindownloadurl: jspb.Message.getFieldWithDefault(msg, 24, ""),
pluginchecksumsMap: (f = msg.getPluginchecksumsMap()) ? f.toObject(includeInstance, undefined) : [],
retainondelete: jspb.Message.getBooleanFieldWithDefault(msg, 25, false),
aliasesList: jspb.Message.toObjectList(msg.getAliasesList(),
pulumi_alias_pb.Alias.toObject, includeInstance),
deletedwith: jspb.Message.getFieldWithDefault(msg, 27, ""),
aliasspecs: jspb.Message.getBooleanFieldWithDefault(msg, 28, false),
sourceposition: (f = msg.getSourceposition()) && pulumi_source_pb.SourcePosition.toObject(includeInstance, f),
transformsList: jspb.Message.toObjectList(msg.getTransformsList(),
pulumi_callback_pb.Callback.toObject, includeInstance),
supportsresultreporting: jspb.Message.getBooleanFieldWithDefault(msg, 32, false),
packageref: jspb.Message.getFieldWithDefault(msg, 33, "")
};
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.RegisterResourceRequest}
*/
proto.pulumirpc.RegisterResourceRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.RegisterResourceRequest;
return proto.pulumirpc.RegisterResourceRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.RegisterResourceRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.RegisterResourceRequest}
*/
proto.pulumirpc.RegisterResourceRequest.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.setName(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setParent(value);
break;
case 4:
var value = /** @type {boolean} */ (reader.readBool());
msg.setCustom(value);
break;
case 5:
var value = new google_protobuf_struct_pb.Struct;
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setObject(value);
break;
case 6:
var value = /** @type {boolean} */ (reader.readBool());
msg.setProtect(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.addDependencies(value);
break;
case 8:
var value = /** @type {string} */ (reader.readString());
msg.setProvider(value);
break;
case 9:
var value = msg.getPropertydependenciesMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.deserializeBinaryFromReader, "", new proto.pulumirpc.RegisterResourceRequest.PropertyDependencies());
});
break;
case 10:
var value = /** @type {boolean} */ (reader.readBool());
msg.setDeletebeforereplace(value);
break;
case 11:
var value = /** @type {string} */ (reader.readString());
msg.setVersion(value);
break;
case 12:
var value = /** @type {string} */ (reader.readString());
msg.addIgnorechanges(value);
break;
case 13:
var value = /** @type {boolean} */ (reader.readBool());
msg.setAcceptsecrets(value);
break;
case 14:
var value = /** @type {string} */ (reader.readString());
msg.addAdditionalsecretoutputs(value);
break;
case 15:
var value = /** @type {string} */ (reader.readString());
msg.addAliasurns(value);
break;
case 16:
var value = /** @type {string} */ (reader.readString());
msg.setImportid(value);
break;
case 17:
var value = new proto.pulumirpc.RegisterResourceRequest.CustomTimeouts;
reader.readMessage(value,proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.deserializeBinaryFromReader);
msg.setCustomtimeouts(value);
break;
case 18:
var value = /** @type {boolean} */ (reader.readBool());
msg.setDeletebeforereplacedefined(value);
break;
case 19:
var value = /** @type {boolean} */ (reader.readBool());
msg.setSupportspartialvalues(value);
break;
case 20:
var value = /** @type {boolean} */ (reader.readBool());
msg.setRemote(value);
break;
case 21:
var value = /** @type {boolean} */ (reader.readBool());
msg.setAcceptresources(value);
break;
case 22:
var value = msg.getProvidersMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
});
break;
case 23:
var value = /** @type {string} */ (reader.readString());
msg.addReplaceonchanges(value);
break;
case 24:
var value = /** @type {string} */ (reader.readString());
msg.setPlugindownloadurl(value);
break;
case 30:
var value = msg.getPluginchecksumsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
});
break;
case 25:
var value = /** @type {boolean} */ (reader.readBool());
msg.setRetainondelete(value);
break;
case 26:
var value = new pulumi_alias_pb.Alias;
reader.readMessage(value,pulumi_alias_pb.Alias.deserializeBinaryFromReader);
msg.addAliases(value);
break;
case 27:
var value = /** @type {string} */ (reader.readString());
msg.setDeletedwith(value);
break;
case 28:
var value = /** @type {boolean} */ (reader.readBool());
msg.setAliasspecs(value);
break;
case 29:
var value = new pulumi_source_pb.SourcePosition;
reader.readMessage(value,pulumi_source_pb.SourcePosition.deserializeBinaryFromReader);
msg.setSourceposition(value);
break;
case 31:
var value = new pulumi_callback_pb.Callback;
reader.readMessage(value,pulumi_callback_pb.Callback.deserializeBinaryFromReader);
msg.addTransforms(value);
break;
case 32:
var value = /** @type {boolean} */ (reader.readBool());
msg.setSupportsresultreporting(value);
break;
case 33:
var value = /** @type {string} */ (reader.readString());
msg.setPackageref(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.RegisterResourceRequest.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.RegisterResourceRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterResourceRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getType();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getName();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getParent();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getCustom();
if (f) {
writer.writeBool(
4,
f
);
}
f = message.getObject();
if (f != null) {
writer.writeMessage(
5,
f,
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
);
}
f = message.getProtect();
if (f) {
writer.writeBool(
6,
f
);
}
f = message.getDependenciesList();
if (f.length > 0) {
writer.writeRepeatedString(
7,
f
);
}
f = message.getProvider();
if (f.length > 0) {
writer.writeString(
8,
f
);
}
f = message.getPropertydependenciesMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.serializeBinaryToWriter);
}
f = message.getDeletebeforereplace();
if (f) {
writer.writeBool(
10,
f
);
}
f = message.getVersion();
if (f.length > 0) {
writer.writeString(
11,
f
);
}
f = message.getIgnorechangesList();
if (f.length > 0) {
writer.writeRepeatedString(
12,
f
);
}
f = message.getAcceptsecrets();
if (f) {
writer.writeBool(
13,
f
);
}
f = message.getAdditionalsecretoutputsList();
if (f.length > 0) {
writer.writeRepeatedString(
14,
f
);
}
f = message.getAliasurnsList();
if (f.length > 0) {
writer.writeRepeatedString(
15,
f
);
}
f = message.getImportid();
if (f.length > 0) {
writer.writeString(
16,
f
);
}
f = message.getCustomtimeouts();
if (f != null) {
writer.writeMessage(
17,
f,
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.serializeBinaryToWriter
);
}
f = message.getDeletebeforereplacedefined();
if (f) {
writer.writeBool(
18,
f
);
}
f = message.getSupportspartialvalues();
if (f) {
writer.writeBool(
19,
f
);
}
f = message.getRemote();
if (f) {
writer.writeBool(
20,
f
);
}
f = message.getAcceptresources();
if (f) {
writer.writeBool(
21,
f
);
}
f = message.getProvidersMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(22, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
}
f = message.getReplaceonchangesList();
if (f.length > 0) {
writer.writeRepeatedString(
23,
f
);
}
f = message.getPlugindownloadurl();
if (f.length > 0) {
writer.writeString(
24,
f
);
}
f = message.getPluginchecksumsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(30, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
}
f = message.getRetainondelete();
if (f) {
writer.writeBool(
25,
f
);
}
f = message.getAliasesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
26,
f,
pulumi_alias_pb.Alias.serializeBinaryToWriter
);
}
f = message.getDeletedwith();
if (f.length > 0) {
writer.writeString(
27,
f
);
}
f = message.getAliasspecs();
if (f) {
writer.writeBool(
28,
f
);
}
f = message.getSourceposition();
if (f != null) {
writer.writeMessage(
29,
f,
pulumi_source_pb.SourcePosition.serializeBinaryToWriter
);
}
f = message.getTransformsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
31,
f,
pulumi_callback_pb.Callback.serializeBinaryToWriter
);
}
f = message.getSupportsresultreporting();
if (f) {
writer.writeBool(
32,
f
);
}
f = message.getPackageref();
if (f.length > 0) {
writer.writeString(
33,
f
);
}
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.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.RegisterResourceRequest.PropertyDependencies.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.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.RegisterResourceRequest.PropertyDependencies} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.toObject = function(includeInstance, msg) {
var f, obj = {
urnsList: (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.RegisterResourceRequest.PropertyDependencies}
*/
proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.RegisterResourceRequest.PropertyDependencies;
return proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.RegisterResourceRequest.PropertyDependencies} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.RegisterResourceRequest.PropertyDependencies}
*/
proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.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.addUrns(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.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.RegisterResourceRequest.PropertyDependencies} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUrnsList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
f
);
}
};
/**
* repeated string urns = 1;
* @return {!Array<string>}
*/
proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.prototype.getUrnsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.RegisterResourceRequest.PropertyDependencies} returns this
*/
proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.prototype.setUrnsList = function(value) {
return jspb.Message.setField(this, 1, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.RegisterResourceRequest.PropertyDependencies} returns this
*/
proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.prototype.addUrns = 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.RegisterResourceRequest.PropertyDependencies} returns this
*/
proto.pulumirpc.RegisterResourceRequest.PropertyDependencies.prototype.clearUrnsList = function() {
return this.setUrnsList([]);
};
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.RegisterResourceRequest.CustomTimeouts.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.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.RegisterResourceRequest.CustomTimeouts} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.toObject = function(includeInstance, msg) {
var f, obj = {
create: jspb.Message.getFieldWithDefault(msg, 1, ""),
update: jspb.Message.getFieldWithDefault(msg, 2, ""),
pb_delete: 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.RegisterResourceRequest.CustomTimeouts}
*/
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.RegisterResourceRequest.CustomTimeouts;
return proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.RegisterResourceRequest.CustomTimeouts} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.RegisterResourceRequest.CustomTimeouts}
*/
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.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.setCreate(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setUpdate(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setDelete(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.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.RegisterResourceRequest.CustomTimeouts} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCreate();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getUpdate();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getDelete();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional string create = 1;
* @return {string}
*/
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.prototype.getCreate = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceRequest.CustomTimeouts} returns this
*/
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.prototype.setCreate = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string update = 2;
* @return {string}
*/
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.prototype.getUpdate = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceRequest.CustomTimeouts} returns this
*/
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.prototype.setUpdate = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string delete = 3;
* @return {string}
*/
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.prototype.getDelete = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceRequest.CustomTimeouts} returns this
*/
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.prototype.setDelete = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string type = 1;
* @return {string}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getType = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setType = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string name = 2;
* @return {string}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string parent = 3;
* @return {string}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getParent = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setParent = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional bool custom = 4;
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getCustom = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setCustom = function(value) {
return jspb.Message.setProto3BooleanField(this, 4, value);
};
/**
* optional google.protobuf.Struct object = 5;
* @return {?proto.google.protobuf.Struct}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getObject = function() {
return /** @type{?proto.google.protobuf.Struct} */ (
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5));
};
/**
* @param {?proto.google.protobuf.Struct|undefined} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setObject = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.clearObject = function() {
return this.setObject(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.hasObject = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional bool protect = 6;
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getProtect = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setProtect = function(value) {
return jspb.Message.setProto3BooleanField(this, 6, value);
};
/**
* repeated string dependencies = 7;
* @return {!Array<string>}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getDependenciesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setDependenciesList = function(value) {
return jspb.Message.setField(this, 7, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.addDependencies = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.clearDependenciesList = function() {
return this.setDependenciesList([]);
};
/**
* optional string provider = 8;
* @return {string}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getProvider = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setProvider = function(value) {
return jspb.Message.setProto3StringField(this, 8, value);
};
/**
* map<string, PropertyDependencies> propertyDependencies = 9;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!proto.pulumirpc.RegisterResourceRequest.PropertyDependencies>}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getPropertydependenciesMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!proto.pulumirpc.RegisterResourceRequest.PropertyDependencies>} */ (
jspb.Message.getMapField(this, 9, opt_noLazyCreate,
proto.pulumirpc.RegisterResourceRequest.PropertyDependencies));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.clearPropertydependenciesMap = function() {
this.getPropertydependenciesMap().clear();
return this;};
/**
* optional bool deleteBeforeReplace = 10;
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getDeletebeforereplace = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setDeletebeforereplace = function(value) {
return jspb.Message.setProto3BooleanField(this, 10, value);
};
/**
* optional string version = 11;
* @return {string}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setVersion = function(value) {
return jspb.Message.setProto3StringField(this, 11, value);
};
/**
* repeated string ignoreChanges = 12;
* @return {!Array<string>}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getIgnorechangesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 12));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setIgnorechangesList = function(value) {
return jspb.Message.setField(this, 12, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.addIgnorechanges = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 12, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.clearIgnorechangesList = function() {
return this.setIgnorechangesList([]);
};
/**
* optional bool acceptSecrets = 13;
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getAcceptsecrets = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setAcceptsecrets = function(value) {
return jspb.Message.setProto3BooleanField(this, 13, value);
};
/**
* repeated string additionalSecretOutputs = 14;
* @return {!Array<string>}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getAdditionalsecretoutputsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 14));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setAdditionalsecretoutputsList = function(value) {
return jspb.Message.setField(this, 14, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.addAdditionalsecretoutputs = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 14, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.clearAdditionalsecretoutputsList = function() {
return this.setAdditionalsecretoutputsList([]);
};
/**
* repeated string aliasURNs = 15;
* @return {!Array<string>}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getAliasurnsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 15));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setAliasurnsList = function(value) {
return jspb.Message.setField(this, 15, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.addAliasurns = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 15, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.clearAliasurnsList = function() {
return this.setAliasurnsList([]);
};
/**
* optional string importId = 16;
* @return {string}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getImportid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setImportid = function(value) {
return jspb.Message.setProto3StringField(this, 16, value);
};
/**
* optional CustomTimeouts customTimeouts = 17;
* @return {?proto.pulumirpc.RegisterResourceRequest.CustomTimeouts}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getCustomtimeouts = function() {
return /** @type{?proto.pulumirpc.RegisterResourceRequest.CustomTimeouts} */ (
jspb.Message.getWrapperField(this, proto.pulumirpc.RegisterResourceRequest.CustomTimeouts, 17));
};
/**
* @param {?proto.pulumirpc.RegisterResourceRequest.CustomTimeouts|undefined} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setCustomtimeouts = function(value) {
return jspb.Message.setWrapperField(this, 17, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.clearCustomtimeouts = function() {
return this.setCustomtimeouts(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.hasCustomtimeouts = function() {
return jspb.Message.getField(this, 17) != null;
};
/**
* optional bool deleteBeforeReplaceDefined = 18;
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getDeletebeforereplacedefined = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 18, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setDeletebeforereplacedefined = function(value) {
return jspb.Message.setProto3BooleanField(this, 18, value);
};
/**
* optional bool supportsPartialValues = 19;
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getSupportspartialvalues = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 19, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setSupportspartialvalues = function(value) {
return jspb.Message.setProto3BooleanField(this, 19, value);
};
/**
* optional bool remote = 20;
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getRemote = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 20, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setRemote = function(value) {
return jspb.Message.setProto3BooleanField(this, 20, value);
};
/**
* optional bool acceptResources = 21;
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getAcceptresources = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setAcceptresources = function(value) {
return jspb.Message.setProto3BooleanField(this, 21, value);
};
/**
* map<string, string> providers = 22;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,string>}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getProvidersMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,string>} */ (
jspb.Message.getMapField(this, 22, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.clearProvidersMap = function() {
this.getProvidersMap().clear();
return this;};
/**
* repeated string replaceOnChanges = 23;
* @return {!Array<string>}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getReplaceonchangesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 23));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setReplaceonchangesList = function(value) {
return jspb.Message.setField(this, 23, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.addReplaceonchanges = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 23, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.clearReplaceonchangesList = function() {
return this.setReplaceonchangesList([]);
};
/**
* optional string pluginDownloadURL = 24;
* @return {string}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getPlugindownloadurl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setPlugindownloadurl = function(value) {
return jspb.Message.setProto3StringField(this, 24, value);
};
/**
* map<string, bytes> pluginChecksums = 30;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!(string|Uint8Array)>}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getPluginchecksumsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
jspb.Message.getMapField(this, 30, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.clearPluginchecksumsMap = function() {
this.getPluginchecksumsMap().clear();
return this;};
/**
* optional bool retainOnDelete = 25;
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getRetainondelete = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 25, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setRetainondelete = function(value) {
return jspb.Message.setProto3BooleanField(this, 25, value);
};
/**
* repeated Alias aliases = 26;
* @return {!Array<!proto.pulumirpc.Alias>}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getAliasesList = function() {
return /** @type{!Array<!proto.pulumirpc.Alias>} */ (
jspb.Message.getRepeatedWrapperField(this, pulumi_alias_pb.Alias, 26));
};
/**
* @param {!Array<!proto.pulumirpc.Alias>} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setAliasesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 26, value);
};
/**
* @param {!proto.pulumirpc.Alias=} opt_value
* @param {number=} opt_index
* @return {!proto.pulumirpc.Alias}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.addAliases = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 26, opt_value, proto.pulumirpc.Alias, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.clearAliasesList = function() {
return this.setAliasesList([]);
};
/**
* optional string deletedWith = 27;
* @return {string}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getDeletedwith = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 27, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setDeletedwith = function(value) {
return jspb.Message.setProto3StringField(this, 27, value);
};
/**
* optional bool aliasSpecs = 28;
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getAliasspecs = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 28, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setAliasspecs = function(value) {
return jspb.Message.setProto3BooleanField(this, 28, value);
};
/**
* optional SourcePosition sourcePosition = 29;
* @return {?proto.pulumirpc.SourcePosition}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getSourceposition = function() {
return /** @type{?proto.pulumirpc.SourcePosition} */ (
jspb.Message.getWrapperField(this, pulumi_source_pb.SourcePosition, 29));
};
/**
* @param {?proto.pulumirpc.SourcePosition|undefined} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setSourceposition = function(value) {
return jspb.Message.setWrapperField(this, 29, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.clearSourceposition = function() {
return this.setSourceposition(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.hasSourceposition = function() {
return jspb.Message.getField(this, 29) != null;
};
/**
* repeated Callback transforms = 31;
* @return {!Array<!proto.pulumirpc.Callback>}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getTransformsList = function() {
return /** @type{!Array<!proto.pulumirpc.Callback>} */ (
jspb.Message.getRepeatedWrapperField(this, pulumi_callback_pb.Callback, 31));
};
/**
* @param {!Array<!proto.pulumirpc.Callback>} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setTransformsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 31, value);
};
/**
* @param {!proto.pulumirpc.Callback=} opt_value
* @param {number=} opt_index
* @return {!proto.pulumirpc.Callback}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.addTransforms = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 31, opt_value, proto.pulumirpc.Callback, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.clearTransformsList = function() {
return this.setTransformsList([]);
};
/**
* optional bool supportsResultReporting = 32;
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getSupportsresultreporting = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 32, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setSupportsresultreporting = function(value) {
return jspb.Message.setProto3BooleanField(this, 32, value);
};
/**
* optional string packageRef = 33;
* @return {string}
*/
proto.pulumirpc.RegisterResourceRequest.prototype.getPackageref = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 33, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
*/
proto.pulumirpc.RegisterResourceRequest.prototype.setPackageref = function(value) {
return jspb.Message.setProto3StringField(this, 33, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.pulumirpc.RegisterResourceResponse.repeatedFields_ = [5];
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.RegisterResourceResponse.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.RegisterResourceResponse.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.RegisterResourceResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterResourceResponse.toObject = function(includeInstance, msg) {
var f, obj = {
urn: jspb.Message.getFieldWithDefault(msg, 1, ""),
id: jspb.Message.getFieldWithDefault(msg, 2, ""),
object: (f = msg.getObject()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
stable: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
stablesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
propertydependenciesMap: (f = msg.getPropertydependenciesMap()) ? f.toObject(includeInstance, proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.toObject) : [],
result: jspb.Message.getFieldWithDefault(msg, 7, 0)
};
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.RegisterResourceResponse}
*/
proto.pulumirpc.RegisterResourceResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.RegisterResourceResponse;
return proto.pulumirpc.RegisterResourceResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.RegisterResourceResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.RegisterResourceResponse}
*/
proto.pulumirpc.RegisterResourceResponse.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.setUrn(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setId(value);
break;
case 3:
var value = new google_protobuf_struct_pb.Struct;
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setObject(value);
break;
case 4:
var value = /** @type {boolean} */ (reader.readBool());
msg.setStable(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.addStables(value);
break;
case 6:
var value = msg.getPropertydependenciesMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.deserializeBinaryFromReader, "", new proto.pulumirpc.RegisterResourceResponse.PropertyDependencies());
});
break;
case 7:
var value = /** @type {!proto.pulumirpc.Result} */ (reader.readEnum());
msg.setResult(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.RegisterResourceResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.RegisterResourceResponse.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.RegisterResourceResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterResourceResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUrn();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getId();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getObject();
if (f != null) {
writer.writeMessage(
3,
f,
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
);
}
f = message.getStable();
if (f) {
writer.writeBool(
4,
f
);
}
f = message.getStablesList();
if (f.length > 0) {
writer.writeRepeatedString(
5,
f
);
}
f = message.getPropertydependenciesMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.serializeBinaryToWriter);
}
f = message.getResult();
if (f !== 0.0) {
writer.writeEnum(
7,
f
);
}
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.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.RegisterResourceResponse.PropertyDependencies.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.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.RegisterResourceResponse.PropertyDependencies} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.toObject = function(includeInstance, msg) {
var f, obj = {
urnsList: (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.RegisterResourceResponse.PropertyDependencies}
*/
proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.RegisterResourceResponse.PropertyDependencies;
return proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.RegisterResourceResponse.PropertyDependencies} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.RegisterResourceResponse.PropertyDependencies}
*/
proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.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.addUrns(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.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.RegisterResourceResponse.PropertyDependencies} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUrnsList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
f
);
}
};
/**
* repeated string urns = 1;
* @return {!Array<string>}
*/
proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.prototype.getUrnsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.RegisterResourceResponse.PropertyDependencies} returns this
*/
proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.prototype.setUrnsList = function(value) {
return jspb.Message.setField(this, 1, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.RegisterResourceResponse.PropertyDependencies} returns this
*/
proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.prototype.addUrns = 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.RegisterResourceResponse.PropertyDependencies} returns this
*/
proto.pulumirpc.RegisterResourceResponse.PropertyDependencies.prototype.clearUrnsList = function() {
return this.setUrnsList([]);
};
/**
* optional string urn = 1;
* @return {string}
*/
proto.pulumirpc.RegisterResourceResponse.prototype.getUrn = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceResponse} returns this
*/
proto.pulumirpc.RegisterResourceResponse.prototype.setUrn = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string id = 2;
* @return {string}
*/
proto.pulumirpc.RegisterResourceResponse.prototype.getId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceResponse} returns this
*/
proto.pulumirpc.RegisterResourceResponse.prototype.setId = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional google.protobuf.Struct object = 3;
* @return {?proto.google.protobuf.Struct}
*/
proto.pulumirpc.RegisterResourceResponse.prototype.getObject = function() {
return /** @type{?proto.google.protobuf.Struct} */ (
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3));
};
/**
* @param {?proto.google.protobuf.Struct|undefined} value
* @return {!proto.pulumirpc.RegisterResourceResponse} returns this
*/
proto.pulumirpc.RegisterResourceResponse.prototype.setObject = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.RegisterResourceResponse} returns this
*/
proto.pulumirpc.RegisterResourceResponse.prototype.clearObject = function() {
return this.setObject(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceResponse.prototype.hasObject = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional bool stable = 4;
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceResponse.prototype.getStable = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.RegisterResourceResponse} returns this
*/
proto.pulumirpc.RegisterResourceResponse.prototype.setStable = function(value) {
return jspb.Message.setProto3BooleanField(this, 4, value);
};
/**
* repeated string stables = 5;
* @return {!Array<string>}
*/
proto.pulumirpc.RegisterResourceResponse.prototype.getStablesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.RegisterResourceResponse} returns this
*/
proto.pulumirpc.RegisterResourceResponse.prototype.setStablesList = function(value) {
return jspb.Message.setField(this, 5, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.RegisterResourceResponse} returns this
*/
proto.pulumirpc.RegisterResourceResponse.prototype.addStables = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.pulumirpc.RegisterResourceResponse} returns this
*/
proto.pulumirpc.RegisterResourceResponse.prototype.clearStablesList = function() {
return this.setStablesList([]);
};
/**
* map<string, PropertyDependencies> propertyDependencies = 6;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!proto.pulumirpc.RegisterResourceResponse.PropertyDependencies>}
*/
proto.pulumirpc.RegisterResourceResponse.prototype.getPropertydependenciesMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!proto.pulumirpc.RegisterResourceResponse.PropertyDependencies>} */ (
jspb.Message.getMapField(this, 6, opt_noLazyCreate,
proto.pulumirpc.RegisterResourceResponse.PropertyDependencies));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.pulumirpc.RegisterResourceResponse} returns this
*/
proto.pulumirpc.RegisterResourceResponse.prototype.clearPropertydependenciesMap = function() {
this.getPropertydependenciesMap().clear();
return this;};
/**
* optional Result result = 7;
* @return {!proto.pulumirpc.Result}
*/
proto.pulumirpc.RegisterResourceResponse.prototype.getResult = function() {
return /** @type {!proto.pulumirpc.Result} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/**
* @param {!proto.pulumirpc.Result} value
* @return {!proto.pulumirpc.RegisterResourceResponse} returns this
*/
proto.pulumirpc.RegisterResourceResponse.prototype.setResult = function(value) {
return jspb.Message.setProto3EnumField(this, 7, 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.RegisterResourceOutputsRequest.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.RegisterResourceOutputsRequest.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.RegisterResourceOutputsRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterResourceOutputsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
urn: jspb.Message.getFieldWithDefault(msg, 1, ""),
outputs: (f = msg.getOutputs()) && google_protobuf_struct_pb.Struct.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.pulumirpc.RegisterResourceOutputsRequest}
*/
proto.pulumirpc.RegisterResourceOutputsRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.RegisterResourceOutputsRequest;
return proto.pulumirpc.RegisterResourceOutputsRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.RegisterResourceOutputsRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.RegisterResourceOutputsRequest}
*/
proto.pulumirpc.RegisterResourceOutputsRequest.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.setUrn(value);
break;
case 2:
var value = new google_protobuf_struct_pb.Struct;
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setOutputs(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.RegisterResourceOutputsRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.RegisterResourceOutputsRequest.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.RegisterResourceOutputsRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterResourceOutputsRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUrn();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getOutputs();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
);
}
};
/**
* optional string urn = 1;
* @return {string}
*/
proto.pulumirpc.RegisterResourceOutputsRequest.prototype.getUrn = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterResourceOutputsRequest} returns this
*/
proto.pulumirpc.RegisterResourceOutputsRequest.prototype.setUrn = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional google.protobuf.Struct outputs = 2;
* @return {?proto.google.protobuf.Struct}
*/
proto.pulumirpc.RegisterResourceOutputsRequest.prototype.getOutputs = function() {
return /** @type{?proto.google.protobuf.Struct} */ (
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2));
};
/**
* @param {?proto.google.protobuf.Struct|undefined} value
* @return {!proto.pulumirpc.RegisterResourceOutputsRequest} returns this
*/
proto.pulumirpc.RegisterResourceOutputsRequest.prototype.setOutputs = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.RegisterResourceOutputsRequest} returns this
*/
proto.pulumirpc.RegisterResourceOutputsRequest.prototype.clearOutputs = function() {
return this.setOutputs(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.RegisterResourceOutputsRequest.prototype.hasOutputs = function() {
return jspb.Message.getField(this, 2) != null;
};
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.ResourceInvokeRequest.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.ResourceInvokeRequest.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.ResourceInvokeRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.ResourceInvokeRequest.toObject = function(includeInstance, msg) {
var f, obj = {
tok: jspb.Message.getFieldWithDefault(msg, 1, ""),
args: (f = msg.getArgs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
provider: jspb.Message.getFieldWithDefault(msg, 3, ""),
version: jspb.Message.getFieldWithDefault(msg, 4, ""),
acceptresources: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
plugindownloadurl: jspb.Message.getFieldWithDefault(msg, 6, ""),
pluginchecksumsMap: (f = msg.getPluginchecksumsMap()) ? f.toObject(includeInstance, undefined) : [],
sourceposition: (f = msg.getSourceposition()) && pulumi_source_pb.SourcePosition.toObject(includeInstance, f),
packageref: jspb.Message.getFieldWithDefault(msg, 9, "")
};
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.ResourceInvokeRequest}
*/
proto.pulumirpc.ResourceInvokeRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.ResourceInvokeRequest;
return proto.pulumirpc.ResourceInvokeRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.ResourceInvokeRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.ResourceInvokeRequest}
*/
proto.pulumirpc.ResourceInvokeRequest.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.setTok(value);
break;
case 2:
var value = new google_protobuf_struct_pb.Struct;
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setArgs(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setProvider(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setVersion(value);
break;
case 5:
var value = /** @type {boolean} */ (reader.readBool());
msg.setAcceptresources(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setPlugindownloadurl(value);
break;
case 8:
var value = msg.getPluginchecksumsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
});
break;
case 7:
var value = new pulumi_source_pb.SourcePosition;
reader.readMessage(value,pulumi_source_pb.SourcePosition.deserializeBinaryFromReader);
msg.setSourceposition(value);
break;
case 9:
var value = /** @type {string} */ (reader.readString());
msg.setPackageref(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.ResourceInvokeRequest.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.ResourceInvokeRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.ResourceInvokeRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTok();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getArgs();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
);
}
f = message.getProvider();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getVersion();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getAcceptresources();
if (f) {
writer.writeBool(
5,
f
);
}
f = message.getPlugindownloadurl();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = message.getPluginchecksumsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(8, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
}
f = message.getSourceposition();
if (f != null) {
writer.writeMessage(
7,
f,
pulumi_source_pb.SourcePosition.serializeBinaryToWriter
);
}
f = message.getPackageref();
if (f.length > 0) {
writer.writeString(
9,
f
);
}
};
/**
* optional string tok = 1;
* @return {string}
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.getTok = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ResourceInvokeRequest} returns this
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.setTok = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional google.protobuf.Struct args = 2;
* @return {?proto.google.protobuf.Struct}
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.getArgs = function() {
return /** @type{?proto.google.protobuf.Struct} */ (
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2));
};
/**
* @param {?proto.google.protobuf.Struct|undefined} value
* @return {!proto.pulumirpc.ResourceInvokeRequest} returns this
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.setArgs = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.ResourceInvokeRequest} returns this
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.clearArgs = function() {
return this.setArgs(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.hasArgs = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional string provider = 3;
* @return {string}
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.getProvider = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ResourceInvokeRequest} returns this
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.setProvider = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string version = 4;
* @return {string}
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.getVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ResourceInvokeRequest} returns this
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.setVersion = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional bool acceptResources = 5;
* @return {boolean}
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.getAcceptresources = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.ResourceInvokeRequest} returns this
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.setAcceptresources = function(value) {
return jspb.Message.setProto3BooleanField(this, 5, value);
};
/**
* optional string pluginDownloadURL = 6;
* @return {string}
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.getPlugindownloadurl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ResourceInvokeRequest} returns this
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.setPlugindownloadurl = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* map<string, bytes> pluginChecksums = 8;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!(string|Uint8Array)>}
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.getPluginchecksumsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
jspb.Message.getMapField(this, 8, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.pulumirpc.ResourceInvokeRequest} returns this
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.clearPluginchecksumsMap = function() {
this.getPluginchecksumsMap().clear();
return this;};
/**
* optional SourcePosition sourcePosition = 7;
* @return {?proto.pulumirpc.SourcePosition}
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.getSourceposition = function() {
return /** @type{?proto.pulumirpc.SourcePosition} */ (
jspb.Message.getWrapperField(this, pulumi_source_pb.SourcePosition, 7));
};
/**
* @param {?proto.pulumirpc.SourcePosition|undefined} value
* @return {!proto.pulumirpc.ResourceInvokeRequest} returns this
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.setSourceposition = function(value) {
return jspb.Message.setWrapperField(this, 7, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.ResourceInvokeRequest} returns this
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.clearSourceposition = function() {
return this.setSourceposition(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.hasSourceposition = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* optional string packageRef = 9;
* @return {string}
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.getPackageref = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ResourceInvokeRequest} returns this
*/
proto.pulumirpc.ResourceInvokeRequest.prototype.setPackageref = function(value) {
return jspb.Message.setProto3StringField(this, 9, 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.ResourceCallRequest.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.ResourceCallRequest.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.ResourceCallRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.ResourceCallRequest.toObject = function(includeInstance, msg) {
var f, obj = {
tok: jspb.Message.getFieldWithDefault(msg, 1, ""),
args: (f = msg.getArgs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
argdependenciesMap: (f = msg.getArgdependenciesMap()) ? f.toObject(includeInstance, proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.toObject) : [],
provider: jspb.Message.getFieldWithDefault(msg, 4, ""),
version: jspb.Message.getFieldWithDefault(msg, 5, ""),
plugindownloadurl: jspb.Message.getFieldWithDefault(msg, 13, ""),
pluginchecksumsMap: (f = msg.getPluginchecksumsMap()) ? f.toObject(includeInstance, undefined) : [],
sourceposition: (f = msg.getSourceposition()) && pulumi_source_pb.SourcePosition.toObject(includeInstance, f),
packageref: jspb.Message.getFieldWithDefault(msg, 17, "")
};
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.ResourceCallRequest}
*/
proto.pulumirpc.ResourceCallRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.ResourceCallRequest;
return proto.pulumirpc.ResourceCallRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.ResourceCallRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.ResourceCallRequest}
*/
proto.pulumirpc.ResourceCallRequest.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.setTok(value);
break;
case 2:
var value = new google_protobuf_struct_pb.Struct;
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setArgs(value);
break;
case 3:
var value = msg.getArgdependenciesMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.deserializeBinaryFromReader, "", new proto.pulumirpc.ResourceCallRequest.ArgumentDependencies());
});
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setProvider(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setVersion(value);
break;
case 13:
var value = /** @type {string} */ (reader.readString());
msg.setPlugindownloadurl(value);
break;
case 16:
var value = msg.getPluginchecksumsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
});
break;
case 15:
var value = new pulumi_source_pb.SourcePosition;
reader.readMessage(value,pulumi_source_pb.SourcePosition.deserializeBinaryFromReader);
msg.setSourceposition(value);
break;
case 17:
var value = /** @type {string} */ (reader.readString());
msg.setPackageref(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.ResourceCallRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.ResourceCallRequest.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.ResourceCallRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.ResourceCallRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTok();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getArgs();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
);
}
f = message.getArgdependenciesMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.serializeBinaryToWriter);
}
f = message.getProvider();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getVersion();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = message.getPlugindownloadurl();
if (f.length > 0) {
writer.writeString(
13,
f
);
}
f = message.getPluginchecksumsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(16, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
}
f = message.getSourceposition();
if (f != null) {
writer.writeMessage(
15,
f,
pulumi_source_pb.SourcePosition.serializeBinaryToWriter
);
}
f = message.getPackageref();
if (f.length > 0) {
writer.writeString(
17,
f
);
}
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.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.ResourceCallRequest.ArgumentDependencies.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.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.ResourceCallRequest.ArgumentDependencies} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.toObject = function(includeInstance, msg) {
var f, obj = {
urnsList: (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.ResourceCallRequest.ArgumentDependencies}
*/
proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.ResourceCallRequest.ArgumentDependencies;
return proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.ResourceCallRequest.ArgumentDependencies} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.ResourceCallRequest.ArgumentDependencies}
*/
proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.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.addUrns(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.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.ResourceCallRequest.ArgumentDependencies} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUrnsList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
f
);
}
};
/**
* repeated string urns = 1;
* @return {!Array<string>}
*/
proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.prototype.getUrnsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.ResourceCallRequest.ArgumentDependencies} returns this
*/
proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.prototype.setUrnsList = function(value) {
return jspb.Message.setField(this, 1, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.ResourceCallRequest.ArgumentDependencies} returns this
*/
proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.prototype.addUrns = 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.ResourceCallRequest.ArgumentDependencies} returns this
*/
proto.pulumirpc.ResourceCallRequest.ArgumentDependencies.prototype.clearUrnsList = function() {
return this.setUrnsList([]);
};
/**
* optional string tok = 1;
* @return {string}
*/
proto.pulumirpc.ResourceCallRequest.prototype.getTok = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ResourceCallRequest} returns this
*/
proto.pulumirpc.ResourceCallRequest.prototype.setTok = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional google.protobuf.Struct args = 2;
* @return {?proto.google.protobuf.Struct}
*/
proto.pulumirpc.ResourceCallRequest.prototype.getArgs = function() {
return /** @type{?proto.google.protobuf.Struct} */ (
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2));
};
/**
* @param {?proto.google.protobuf.Struct|undefined} value
* @return {!proto.pulumirpc.ResourceCallRequest} returns this
*/
proto.pulumirpc.ResourceCallRequest.prototype.setArgs = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.ResourceCallRequest} returns this
*/
proto.pulumirpc.ResourceCallRequest.prototype.clearArgs = function() {
return this.setArgs(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.ResourceCallRequest.prototype.hasArgs = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* map<string, ArgumentDependencies> argDependencies = 3;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!proto.pulumirpc.ResourceCallRequest.ArgumentDependencies>}
*/
proto.pulumirpc.ResourceCallRequest.prototype.getArgdependenciesMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!proto.pulumirpc.ResourceCallRequest.ArgumentDependencies>} */ (
jspb.Message.getMapField(this, 3, opt_noLazyCreate,
proto.pulumirpc.ResourceCallRequest.ArgumentDependencies));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.pulumirpc.ResourceCallRequest} returns this
*/
proto.pulumirpc.ResourceCallRequest.prototype.clearArgdependenciesMap = function() {
this.getArgdependenciesMap().clear();
return this;};
/**
* optional string provider = 4;
* @return {string}
*/
proto.pulumirpc.ResourceCallRequest.prototype.getProvider = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ResourceCallRequest} returns this
*/
proto.pulumirpc.ResourceCallRequest.prototype.setProvider = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional string version = 5;
* @return {string}
*/
proto.pulumirpc.ResourceCallRequest.prototype.getVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ResourceCallRequest} returns this
*/
proto.pulumirpc.ResourceCallRequest.prototype.setVersion = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
/**
* optional string pluginDownloadURL = 13;
* @return {string}
*/
proto.pulumirpc.ResourceCallRequest.prototype.getPlugindownloadurl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ResourceCallRequest} returns this
*/
proto.pulumirpc.ResourceCallRequest.prototype.setPlugindownloadurl = function(value) {
return jspb.Message.setProto3StringField(this, 13, value);
};
/**
* map<string, bytes> pluginChecksums = 16;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!(string|Uint8Array)>}
*/
proto.pulumirpc.ResourceCallRequest.prototype.getPluginchecksumsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
jspb.Message.getMapField(this, 16, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.pulumirpc.ResourceCallRequest} returns this
*/
proto.pulumirpc.ResourceCallRequest.prototype.clearPluginchecksumsMap = function() {
this.getPluginchecksumsMap().clear();
return this;};
/**
* optional SourcePosition sourcePosition = 15;
* @return {?proto.pulumirpc.SourcePosition}
*/
proto.pulumirpc.ResourceCallRequest.prototype.getSourceposition = function() {
return /** @type{?proto.pulumirpc.SourcePosition} */ (
jspb.Message.getWrapperField(this, pulumi_source_pb.SourcePosition, 15));
};
/**
* @param {?proto.pulumirpc.SourcePosition|undefined} value
* @return {!proto.pulumirpc.ResourceCallRequest} returns this
*/
proto.pulumirpc.ResourceCallRequest.prototype.setSourceposition = function(value) {
return jspb.Message.setWrapperField(this, 15, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.ResourceCallRequest} returns this
*/
proto.pulumirpc.ResourceCallRequest.prototype.clearSourceposition = function() {
return this.setSourceposition(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.ResourceCallRequest.prototype.hasSourceposition = function() {
return jspb.Message.getField(this, 15) != null;
};
/**
* optional string packageRef = 17;
* @return {string}
*/
proto.pulumirpc.ResourceCallRequest.prototype.getPackageref = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.ResourceCallRequest} returns this
*/
proto.pulumirpc.ResourceCallRequest.prototype.setPackageref = function(value) {
return jspb.Message.setProto3StringField(this, 17, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.pulumirpc.TransformResourceOptions.repeatedFields_ = [1,3,4,6,13];
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.TransformResourceOptions.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.TransformResourceOptions.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.TransformResourceOptions} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.TransformResourceOptions.toObject = function(includeInstance, msg) {
var f, obj = {
dependsOnList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
protect: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
ignoreChangesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
replaceOnChangesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
version: jspb.Message.getFieldWithDefault(msg, 5, ""),
aliasesList: jspb.Message.toObjectList(msg.getAliasesList(),
pulumi_alias_pb.Alias.toObject, includeInstance),
provider: jspb.Message.getFieldWithDefault(msg, 7, ""),
customTimeouts: (f = msg.getCustomTimeouts()) && proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.toObject(includeInstance, f),
pluginDownloadUrl: jspb.Message.getFieldWithDefault(msg, 9, ""),
retainOnDelete: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
deletedWith: jspb.Message.getFieldWithDefault(msg, 11, ""),
deleteBeforeReplace: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
additionalSecretOutputsList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f,
providersMap: (f = msg.getProvidersMap()) ? f.toObject(includeInstance, undefined) : [],
pluginChecksumsMap: (f = msg.getPluginChecksumsMap()) ? f.toObject(includeInstance, undefined) : []
};
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.TransformResourceOptions}
*/
proto.pulumirpc.TransformResourceOptions.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.TransformResourceOptions;
return proto.pulumirpc.TransformResourceOptions.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.TransformResourceOptions} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.TransformResourceOptions}
*/
proto.pulumirpc.TransformResourceOptions.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.addDependsOn(value);
break;
case 2:
var value = /** @type {boolean} */ (reader.readBool());
msg.setProtect(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.addIgnoreChanges(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.addReplaceOnChanges(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setVersion(value);
break;
case 6:
var value = new pulumi_alias_pb.Alias;
reader.readMessage(value,pulumi_alias_pb.Alias.deserializeBinaryFromReader);
msg.addAliases(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setProvider(value);
break;
case 8:
var value = new proto.pulumirpc.RegisterResourceRequest.CustomTimeouts;
reader.readMessage(value,proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.deserializeBinaryFromReader);
msg.setCustomTimeouts(value);
break;
case 9:
var value = /** @type {string} */ (reader.readString());
msg.setPluginDownloadUrl(value);
break;
case 10:
var value = /** @type {boolean} */ (reader.readBool());
msg.setRetainOnDelete(value);
break;
case 11:
var value = /** @type {string} */ (reader.readString());
msg.setDeletedWith(value);
break;
case 12:
var value = /** @type {boolean} */ (reader.readBool());
msg.setDeleteBeforeReplace(value);
break;
case 13:
var value = /** @type {string} */ (reader.readString());
msg.addAdditionalSecretOutputs(value);
break;
case 14:
var value = msg.getProvidersMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
});
break;
case 15:
var value = msg.getPluginChecksumsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
});
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.TransformResourceOptions.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.TransformResourceOptions.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.TransformResourceOptions} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.TransformResourceOptions.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDependsOnList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
f
);
}
f = message.getProtect();
if (f) {
writer.writeBool(
2,
f
);
}
f = message.getIgnoreChangesList();
if (f.length > 0) {
writer.writeRepeatedString(
3,
f
);
}
f = message.getReplaceOnChangesList();
if (f.length > 0) {
writer.writeRepeatedString(
4,
f
);
}
f = message.getVersion();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = message.getAliasesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
6,
f,
pulumi_alias_pb.Alias.serializeBinaryToWriter
);
}
f = message.getProvider();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
f = message.getCustomTimeouts();
if (f != null) {
writer.writeMessage(
8,
f,
proto.pulumirpc.RegisterResourceRequest.CustomTimeouts.serializeBinaryToWriter
);
}
f = message.getPluginDownloadUrl();
if (f.length > 0) {
writer.writeString(
9,
f
);
}
f = message.getRetainOnDelete();
if (f) {
writer.writeBool(
10,
f
);
}
f = message.getDeletedWith();
if (f.length > 0) {
writer.writeString(
11,
f
);
}
f = /** @type {boolean} */ (jspb.Message.getField(message, 12));
if (f != null) {
writer.writeBool(
12,
f
);
}
f = message.getAdditionalSecretOutputsList();
if (f.length > 0) {
writer.writeRepeatedString(
13,
f
);
}
f = message.getProvidersMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(14, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
}
f = message.getPluginChecksumsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(15, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
}
};
/**
* repeated string depends_on = 1;
* @return {!Array<string>}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getDependsOnList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.setDependsOnList = function(value) {
return jspb.Message.setField(this, 1, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.addDependsOn = 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.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.clearDependsOnList = function() {
return this.setDependsOnList([]);
};
/**
* optional bool protect = 2;
* @return {boolean}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getProtect = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.setProtect = function(value) {
return jspb.Message.setProto3BooleanField(this, 2, value);
};
/**
* repeated string ignore_changes = 3;
* @return {!Array<string>}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getIgnoreChangesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.setIgnoreChangesList = function(value) {
return jspb.Message.setField(this, 3, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.addIgnoreChanges = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.clearIgnoreChangesList = function() {
return this.setIgnoreChangesList([]);
};
/**
* repeated string replace_on_changes = 4;
* @return {!Array<string>}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getReplaceOnChangesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.setReplaceOnChangesList = function(value) {
return jspb.Message.setField(this, 4, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.addReplaceOnChanges = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.clearReplaceOnChangesList = function() {
return this.setReplaceOnChangesList([]);
};
/**
* optional string version = 5;
* @return {string}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.setVersion = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
/**
* repeated Alias aliases = 6;
* @return {!Array<!proto.pulumirpc.Alias>}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getAliasesList = function() {
return /** @type{!Array<!proto.pulumirpc.Alias>} */ (
jspb.Message.getRepeatedWrapperField(this, pulumi_alias_pb.Alias, 6));
};
/**
* @param {!Array<!proto.pulumirpc.Alias>} value
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.setAliasesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 6, value);
};
/**
* @param {!proto.pulumirpc.Alias=} opt_value
* @param {number=} opt_index
* @return {!proto.pulumirpc.Alias}
*/
proto.pulumirpc.TransformResourceOptions.prototype.addAliases = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.pulumirpc.Alias, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.clearAliasesList = function() {
return this.setAliasesList([]);
};
/**
* optional string provider = 7;
* @return {string}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getProvider = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.setProvider = function(value) {
return jspb.Message.setProto3StringField(this, 7, value);
};
/**
* optional RegisterResourceRequest.CustomTimeouts custom_timeouts = 8;
* @return {?proto.pulumirpc.RegisterResourceRequest.CustomTimeouts}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getCustomTimeouts = function() {
return /** @type{?proto.pulumirpc.RegisterResourceRequest.CustomTimeouts} */ (
jspb.Message.getWrapperField(this, proto.pulumirpc.RegisterResourceRequest.CustomTimeouts, 8));
};
/**
* @param {?proto.pulumirpc.RegisterResourceRequest.CustomTimeouts|undefined} value
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.setCustomTimeouts = function(value) {
return jspb.Message.setWrapperField(this, 8, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.clearCustomTimeouts = function() {
return this.setCustomTimeouts(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.TransformResourceOptions.prototype.hasCustomTimeouts = function() {
return jspb.Message.getField(this, 8) != null;
};
/**
* optional string plugin_download_url = 9;
* @return {string}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getPluginDownloadUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.setPluginDownloadUrl = function(value) {
return jspb.Message.setProto3StringField(this, 9, value);
};
/**
* optional bool retain_on_delete = 10;
* @return {boolean}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getRetainOnDelete = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.setRetainOnDelete = function(value) {
return jspb.Message.setProto3BooleanField(this, 10, value);
};
/**
* optional string deleted_with = 11;
* @return {string}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getDeletedWith = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.setDeletedWith = function(value) {
return jspb.Message.setProto3StringField(this, 11, value);
};
/**
* optional bool delete_before_replace = 12;
* @return {boolean}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getDeleteBeforeReplace = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.setDeleteBeforeReplace = function(value) {
return jspb.Message.setField(this, 12, value);
};
/**
* Clears the field making it undefined.
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.clearDeleteBeforeReplace = function() {
return jspb.Message.setField(this, 12, undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.TransformResourceOptions.prototype.hasDeleteBeforeReplace = function() {
return jspb.Message.getField(this, 12) != null;
};
/**
* repeated string additional_secret_outputs = 13;
* @return {!Array<string>}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getAdditionalSecretOutputsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 13));
};
/**
* @param {!Array<string>} value
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.setAdditionalSecretOutputsList = function(value) {
return jspb.Message.setField(this, 13, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.addAdditionalSecretOutputs = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 13, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.clearAdditionalSecretOutputsList = function() {
return this.setAdditionalSecretOutputsList([]);
};
/**
* map<string, string> providers = 14;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,string>}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getProvidersMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,string>} */ (
jspb.Message.getMapField(this, 14, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.clearProvidersMap = function() {
this.getProvidersMap().clear();
return this;};
/**
* map<string, bytes> plugin_checksums = 15;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!(string|Uint8Array)>}
*/
proto.pulumirpc.TransformResourceOptions.prototype.getPluginChecksumsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
jspb.Message.getMapField(this, 15, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
*/
proto.pulumirpc.TransformResourceOptions.prototype.clearPluginChecksumsMap = function() {
this.getPluginChecksumsMap().clear();
return this;};
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.TransformRequest.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.TransformRequest.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.TransformRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.TransformRequest.toObject = function(includeInstance, msg) {
var f, obj = {
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
custom: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
parent: jspb.Message.getFieldWithDefault(msg, 4, ""),
properties: (f = msg.getProperties()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
options: (f = msg.getOptions()) && proto.pulumirpc.TransformResourceOptions.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.pulumirpc.TransformRequest}
*/
proto.pulumirpc.TransformRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.TransformRequest;
return proto.pulumirpc.TransformRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.TransformRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.TransformRequest}
*/
proto.pulumirpc.TransformRequest.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.setName(value);
break;
case 3:
var value = /** @type {boolean} */ (reader.readBool());
msg.setCustom(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setParent(value);
break;
case 5:
var value = new google_protobuf_struct_pb.Struct;
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setProperties(value);
break;
case 6:
var value = new proto.pulumirpc.TransformResourceOptions;
reader.readMessage(value,proto.pulumirpc.TransformResourceOptions.deserializeBinaryFromReader);
msg.setOptions(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.TransformRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.TransformRequest.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.TransformRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.TransformRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getType();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getName();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getCustom();
if (f) {
writer.writeBool(
3,
f
);
}
f = message.getParent();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getProperties();
if (f != null) {
writer.writeMessage(
5,
f,
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
);
}
f = message.getOptions();
if (f != null) {
writer.writeMessage(
6,
f,
proto.pulumirpc.TransformResourceOptions.serializeBinaryToWriter
);
}
};
/**
* optional string type = 1;
* @return {string}
*/
proto.pulumirpc.TransformRequest.prototype.getType = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.TransformRequest} returns this
*/
proto.pulumirpc.TransformRequest.prototype.setType = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string name = 2;
* @return {string}
*/
proto.pulumirpc.TransformRequest.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.TransformRequest} returns this
*/
proto.pulumirpc.TransformRequest.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional bool custom = 3;
* @return {boolean}
*/
proto.pulumirpc.TransformRequest.prototype.getCustom = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};
/**
* @param {boolean} value
* @return {!proto.pulumirpc.TransformRequest} returns this
*/
proto.pulumirpc.TransformRequest.prototype.setCustom = function(value) {
return jspb.Message.setProto3BooleanField(this, 3, value);
};
/**
* optional string parent = 4;
* @return {string}
*/
proto.pulumirpc.TransformRequest.prototype.getParent = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.TransformRequest} returns this
*/
proto.pulumirpc.TransformRequest.prototype.setParent = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional google.protobuf.Struct properties = 5;
* @return {?proto.google.protobuf.Struct}
*/
proto.pulumirpc.TransformRequest.prototype.getProperties = function() {
return /** @type{?proto.google.protobuf.Struct} */ (
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5));
};
/**
* @param {?proto.google.protobuf.Struct|undefined} value
* @return {!proto.pulumirpc.TransformRequest} returns this
*/
proto.pulumirpc.TransformRequest.prototype.setProperties = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.TransformRequest} returns this
*/
proto.pulumirpc.TransformRequest.prototype.clearProperties = function() {
return this.setProperties(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.TransformRequest.prototype.hasProperties = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional TransformResourceOptions options = 6;
* @return {?proto.pulumirpc.TransformResourceOptions}
*/
proto.pulumirpc.TransformRequest.prototype.getOptions = function() {
return /** @type{?proto.pulumirpc.TransformResourceOptions} */ (
jspb.Message.getWrapperField(this, proto.pulumirpc.TransformResourceOptions, 6));
};
/**
* @param {?proto.pulumirpc.TransformResourceOptions|undefined} value
* @return {!proto.pulumirpc.TransformRequest} returns this
*/
proto.pulumirpc.TransformRequest.prototype.setOptions = function(value) {
return jspb.Message.setWrapperField(this, 6, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.TransformRequest} returns this
*/
proto.pulumirpc.TransformRequest.prototype.clearOptions = function() {
return this.setOptions(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.TransformRequest.prototype.hasOptions = function() {
return jspb.Message.getField(this, 6) != null;
};
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.TransformResponse.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.TransformResponse.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.TransformResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.TransformResponse.toObject = function(includeInstance, msg) {
var f, obj = {
properties: (f = msg.getProperties()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
options: (f = msg.getOptions()) && proto.pulumirpc.TransformResourceOptions.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.pulumirpc.TransformResponse}
*/
proto.pulumirpc.TransformResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.TransformResponse;
return proto.pulumirpc.TransformResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.TransformResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.TransformResponse}
*/
proto.pulumirpc.TransformResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new google_protobuf_struct_pb.Struct;
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setProperties(value);
break;
case 2:
var value = new proto.pulumirpc.TransformResourceOptions;
reader.readMessage(value,proto.pulumirpc.TransformResourceOptions.deserializeBinaryFromReader);
msg.setOptions(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.TransformResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.TransformResponse.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.TransformResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.TransformResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getProperties();
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
);
}
f = message.getOptions();
if (f != null) {
writer.writeMessage(
2,
f,
proto.pulumirpc.TransformResourceOptions.serializeBinaryToWriter
);
}
};
/**
* optional google.protobuf.Struct properties = 1;
* @return {?proto.google.protobuf.Struct}
*/
proto.pulumirpc.TransformResponse.prototype.getProperties = function() {
return /** @type{?proto.google.protobuf.Struct} */ (
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
};
/**
* @param {?proto.google.protobuf.Struct|undefined} value
* @return {!proto.pulumirpc.TransformResponse} returns this
*/
proto.pulumirpc.TransformResponse.prototype.setProperties = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.TransformResponse} returns this
*/
proto.pulumirpc.TransformResponse.prototype.clearProperties = function() {
return this.setProperties(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.TransformResponse.prototype.hasProperties = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional TransformResourceOptions options = 2;
* @return {?proto.pulumirpc.TransformResourceOptions}
*/
proto.pulumirpc.TransformResponse.prototype.getOptions = function() {
return /** @type{?proto.pulumirpc.TransformResourceOptions} */ (
jspb.Message.getWrapperField(this, proto.pulumirpc.TransformResourceOptions, 2));
};
/**
* @param {?proto.pulumirpc.TransformResourceOptions|undefined} value
* @return {!proto.pulumirpc.TransformResponse} returns this
*/
proto.pulumirpc.TransformResponse.prototype.setOptions = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.TransformResponse} returns this
*/
proto.pulumirpc.TransformResponse.prototype.clearOptions = function() {
return this.setOptions(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.TransformResponse.prototype.hasOptions = function() {
return jspb.Message.getField(this, 2) != null;
};
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.TransformInvokeRequest.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.TransformInvokeRequest.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.TransformInvokeRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.TransformInvokeRequest.toObject = function(includeInstance, msg) {
var f, obj = {
token: jspb.Message.getFieldWithDefault(msg, 1, ""),
args: (f = msg.getArgs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
options: (f = msg.getOptions()) && proto.pulumirpc.TransformInvokeOptions.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.pulumirpc.TransformInvokeRequest}
*/
proto.pulumirpc.TransformInvokeRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.TransformInvokeRequest;
return proto.pulumirpc.TransformInvokeRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.TransformInvokeRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.TransformInvokeRequest}
*/
proto.pulumirpc.TransformInvokeRequest.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 = new google_protobuf_struct_pb.Struct;
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setArgs(value);
break;
case 3:
var value = new proto.pulumirpc.TransformInvokeOptions;
reader.readMessage(value,proto.pulumirpc.TransformInvokeOptions.deserializeBinaryFromReader);
msg.setOptions(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.TransformInvokeRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.TransformInvokeRequest.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.TransformInvokeRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.TransformInvokeRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getToken();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getArgs();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
);
}
f = message.getOptions();
if (f != null) {
writer.writeMessage(
3,
f,
proto.pulumirpc.TransformInvokeOptions.serializeBinaryToWriter
);
}
};
/**
* optional string token = 1;
* @return {string}
*/
proto.pulumirpc.TransformInvokeRequest.prototype.getToken = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.TransformInvokeRequest} returns this
*/
proto.pulumirpc.TransformInvokeRequest.prototype.setToken = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional google.protobuf.Struct args = 2;
* @return {?proto.google.protobuf.Struct}
*/
proto.pulumirpc.TransformInvokeRequest.prototype.getArgs = function() {
return /** @type{?proto.google.protobuf.Struct} */ (
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2));
};
/**
* @param {?proto.google.protobuf.Struct|undefined} value
* @return {!proto.pulumirpc.TransformInvokeRequest} returns this
*/
proto.pulumirpc.TransformInvokeRequest.prototype.setArgs = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.TransformInvokeRequest} returns this
*/
proto.pulumirpc.TransformInvokeRequest.prototype.clearArgs = function() {
return this.setArgs(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.TransformInvokeRequest.prototype.hasArgs = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional TransformInvokeOptions options = 3;
* @return {?proto.pulumirpc.TransformInvokeOptions}
*/
proto.pulumirpc.TransformInvokeRequest.prototype.getOptions = function() {
return /** @type{?proto.pulumirpc.TransformInvokeOptions} */ (
jspb.Message.getWrapperField(this, proto.pulumirpc.TransformInvokeOptions, 3));
};
/**
* @param {?proto.pulumirpc.TransformInvokeOptions|undefined} value
* @return {!proto.pulumirpc.TransformInvokeRequest} returns this
*/
proto.pulumirpc.TransformInvokeRequest.prototype.setOptions = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.TransformInvokeRequest} returns this
*/
proto.pulumirpc.TransformInvokeRequest.prototype.clearOptions = function() {
return this.setOptions(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.TransformInvokeRequest.prototype.hasOptions = function() {
return jspb.Message.getField(this, 3) != null;
};
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.TransformInvokeResponse.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.TransformInvokeResponse.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.TransformInvokeResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.TransformInvokeResponse.toObject = function(includeInstance, msg) {
var f, obj = {
args: (f = msg.getArgs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
options: (f = msg.getOptions()) && proto.pulumirpc.TransformInvokeOptions.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.pulumirpc.TransformInvokeResponse}
*/
proto.pulumirpc.TransformInvokeResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.TransformInvokeResponse;
return proto.pulumirpc.TransformInvokeResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.TransformInvokeResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.TransformInvokeResponse}
*/
proto.pulumirpc.TransformInvokeResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new google_protobuf_struct_pb.Struct;
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
msg.setArgs(value);
break;
case 2:
var value = new proto.pulumirpc.TransformInvokeOptions;
reader.readMessage(value,proto.pulumirpc.TransformInvokeOptions.deserializeBinaryFromReader);
msg.setOptions(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.TransformInvokeResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.TransformInvokeResponse.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.TransformInvokeResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.TransformInvokeResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getArgs();
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
);
}
f = message.getOptions();
if (f != null) {
writer.writeMessage(
2,
f,
proto.pulumirpc.TransformInvokeOptions.serializeBinaryToWriter
);
}
};
/**
* optional google.protobuf.Struct args = 1;
* @return {?proto.google.protobuf.Struct}
*/
proto.pulumirpc.TransformInvokeResponse.prototype.getArgs = function() {
return /** @type{?proto.google.protobuf.Struct} */ (
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
};
/**
* @param {?proto.google.protobuf.Struct|undefined} value
* @return {!proto.pulumirpc.TransformInvokeResponse} returns this
*/
proto.pulumirpc.TransformInvokeResponse.prototype.setArgs = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.TransformInvokeResponse} returns this
*/
proto.pulumirpc.TransformInvokeResponse.prototype.clearArgs = function() {
return this.setArgs(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.TransformInvokeResponse.prototype.hasArgs = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional TransformInvokeOptions options = 2;
* @return {?proto.pulumirpc.TransformInvokeOptions}
*/
proto.pulumirpc.TransformInvokeResponse.prototype.getOptions = function() {
return /** @type{?proto.pulumirpc.TransformInvokeOptions} */ (
jspb.Message.getWrapperField(this, proto.pulumirpc.TransformInvokeOptions, 2));
};
/**
* @param {?proto.pulumirpc.TransformInvokeOptions|undefined} value
* @return {!proto.pulumirpc.TransformInvokeResponse} returns this
*/
proto.pulumirpc.TransformInvokeResponse.prototype.setOptions = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.TransformInvokeResponse} returns this
*/
proto.pulumirpc.TransformInvokeResponse.prototype.clearOptions = function() {
return this.setOptions(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.TransformInvokeResponse.prototype.hasOptions = function() {
return jspb.Message.getField(this, 2) != null;
};
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.TransformInvokeOptions.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.TransformInvokeOptions.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.TransformInvokeOptions} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.TransformInvokeOptions.toObject = function(includeInstance, msg) {
var f, obj = {
provider: jspb.Message.getFieldWithDefault(msg, 1, ""),
pluginDownloadUrl: jspb.Message.getFieldWithDefault(msg, 2, ""),
version: jspb.Message.getFieldWithDefault(msg, 3, ""),
pluginChecksumsMap: (f = msg.getPluginChecksumsMap()) ? f.toObject(includeInstance, undefined) : []
};
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.TransformInvokeOptions}
*/
proto.pulumirpc.TransformInvokeOptions.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.TransformInvokeOptions;
return proto.pulumirpc.TransformInvokeOptions.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.TransformInvokeOptions} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.TransformInvokeOptions}
*/
proto.pulumirpc.TransformInvokeOptions.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.setProvider(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setPluginDownloadUrl(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setVersion(value);
break;
case 4:
var value = msg.getPluginChecksumsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
});
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.TransformInvokeOptions.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.TransformInvokeOptions.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.TransformInvokeOptions} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.TransformInvokeOptions.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getProvider();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getPluginDownloadUrl();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getVersion();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getPluginChecksumsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
}
};
/**
* optional string provider = 1;
* @return {string}
*/
proto.pulumirpc.TransformInvokeOptions.prototype.getProvider = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.TransformInvokeOptions} returns this
*/
proto.pulumirpc.TransformInvokeOptions.prototype.setProvider = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string plugin_download_url = 2;
* @return {string}
*/
proto.pulumirpc.TransformInvokeOptions.prototype.getPluginDownloadUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.TransformInvokeOptions} returns this
*/
proto.pulumirpc.TransformInvokeOptions.prototype.setPluginDownloadUrl = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string version = 3;
* @return {string}
*/
proto.pulumirpc.TransformInvokeOptions.prototype.getVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.TransformInvokeOptions} returns this
*/
proto.pulumirpc.TransformInvokeOptions.prototype.setVersion = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* map<string, bytes> plugin_checksums = 4;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!(string|Uint8Array)>}
*/
proto.pulumirpc.TransformInvokeOptions.prototype.getPluginChecksumsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
jspb.Message.getMapField(this, 4, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.pulumirpc.TransformInvokeOptions} returns this
*/
proto.pulumirpc.TransformInvokeOptions.prototype.clearPluginChecksumsMap = function() {
this.getPluginChecksumsMap().clear();
return this;};
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.RegisterPackageRequest.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.RegisterPackageRequest.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.RegisterPackageRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterPackageRequest.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
version: jspb.Message.getFieldWithDefault(msg, 2, ""),
downloadUrl: jspb.Message.getFieldWithDefault(msg, 3, ""),
checksumsMap: (f = msg.getChecksumsMap()) ? f.toObject(includeInstance, undefined) : [],
parameterization: (f = msg.getParameterization()) && proto.pulumirpc.Parameterization.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.pulumirpc.RegisterPackageRequest}
*/
proto.pulumirpc.RegisterPackageRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.RegisterPackageRequest;
return proto.pulumirpc.RegisterPackageRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.RegisterPackageRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.RegisterPackageRequest}
*/
proto.pulumirpc.RegisterPackageRequest.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.setName(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setVersion(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setDownloadUrl(value);
break;
case 4:
var value = msg.getChecksumsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
});
break;
case 5:
var value = new proto.pulumirpc.Parameterization;
reader.readMessage(value,proto.pulumirpc.Parameterization.deserializeBinaryFromReader);
msg.setParameterization(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.RegisterPackageRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.RegisterPackageRequest.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.RegisterPackageRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterPackageRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getVersion();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getDownloadUrl();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getChecksumsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeBytes);
}
f = message.getParameterization();
if (f != null) {
writer.writeMessage(
5,
f,
proto.pulumirpc.Parameterization.serializeBinaryToWriter
);
}
};
/**
* optional string name = 1;
* @return {string}
*/
proto.pulumirpc.RegisterPackageRequest.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterPackageRequest} returns this
*/
proto.pulumirpc.RegisterPackageRequest.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string version = 2;
* @return {string}
*/
proto.pulumirpc.RegisterPackageRequest.prototype.getVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterPackageRequest} returns this
*/
proto.pulumirpc.RegisterPackageRequest.prototype.setVersion = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string download_url = 3;
* @return {string}
*/
proto.pulumirpc.RegisterPackageRequest.prototype.getDownloadUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterPackageRequest} returns this
*/
proto.pulumirpc.RegisterPackageRequest.prototype.setDownloadUrl = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* map<string, bytes> checksums = 4;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!(string|Uint8Array)>}
*/
proto.pulumirpc.RegisterPackageRequest.prototype.getChecksumsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!(string|Uint8Array)>} */ (
jspb.Message.getMapField(this, 4, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.pulumirpc.RegisterPackageRequest} returns this
*/
proto.pulumirpc.RegisterPackageRequest.prototype.clearChecksumsMap = function() {
this.getChecksumsMap().clear();
return this;};
/**
* optional Parameterization parameterization = 5;
* @return {?proto.pulumirpc.Parameterization}
*/
proto.pulumirpc.RegisterPackageRequest.prototype.getParameterization = function() {
return /** @type{?proto.pulumirpc.Parameterization} */ (
jspb.Message.getWrapperField(this, proto.pulumirpc.Parameterization, 5));
};
/**
* @param {?proto.pulumirpc.Parameterization|undefined} value
* @return {!proto.pulumirpc.RegisterPackageRequest} returns this
*/
proto.pulumirpc.RegisterPackageRequest.prototype.setParameterization = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.pulumirpc.RegisterPackageRequest} returns this
*/
proto.pulumirpc.RegisterPackageRequest.prototype.clearParameterization = function() {
return this.setParameterization(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.pulumirpc.RegisterPackageRequest.prototype.hasParameterization = function() {
return jspb.Message.getField(this, 5) != null;
};
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.RegisterPackageResponse.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.RegisterPackageResponse.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.RegisterPackageResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterPackageResponse.toObject = function(includeInstance, msg) {
var f, obj = {
ref: 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.RegisterPackageResponse}
*/
proto.pulumirpc.RegisterPackageResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.RegisterPackageResponse;
return proto.pulumirpc.RegisterPackageResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.RegisterPackageResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.RegisterPackageResponse}
*/
proto.pulumirpc.RegisterPackageResponse.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.setRef(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.RegisterPackageResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.RegisterPackageResponse.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.RegisterPackageResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.RegisterPackageResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getRef();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string ref = 1;
* @return {string}
*/
proto.pulumirpc.RegisterPackageResponse.prototype.getRef = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.RegisterPackageResponse} returns this
*/
proto.pulumirpc.RegisterPackageResponse.prototype.setRef = 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.Parameterization.prototype.toObject = function(opt_includeInstance) {
return proto.pulumirpc.Parameterization.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.Parameterization} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.Parameterization.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
version: jspb.Message.getFieldWithDefault(msg, 2, ""),
value: msg.getValue_asB64()
};
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.Parameterization}
*/
proto.pulumirpc.Parameterization.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.pulumirpc.Parameterization;
return proto.pulumirpc.Parameterization.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.pulumirpc.Parameterization} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.pulumirpc.Parameterization}
*/
proto.pulumirpc.Parameterization.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.setName(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setVersion(value);
break;
case 3:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.pulumirpc.Parameterization.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.pulumirpc.Parameterization.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.Parameterization} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.pulumirpc.Parameterization.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getVersion();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getValue_asU8();
if (f.length > 0) {
writer.writeBytes(
3,
f
);
}
};
/**
* optional string name = 1;
* @return {string}
*/
proto.pulumirpc.Parameterization.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.Parameterization} returns this
*/
proto.pulumirpc.Parameterization.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string version = 2;
* @return {string}
*/
proto.pulumirpc.Parameterization.prototype.getVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.pulumirpc.Parameterization} returns this
*/
proto.pulumirpc.Parameterization.prototype.setVersion = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional bytes value = 3;
* @return {!(string|Uint8Array)}
*/
proto.pulumirpc.Parameterization.prototype.getValue = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* optional bytes value = 3;
* This is a type-conversion wrapper around `getValue()`
* @return {string}
*/
proto.pulumirpc.Parameterization.prototype.getValue_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getValue()));
};
/**
* optional bytes value = 3;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getValue()`
* @return {!Uint8Array}
*/
proto.pulumirpc.Parameterization.prototype.getValue_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getValue()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.pulumirpc.Parameterization} returns this
*/
proto.pulumirpc.Parameterization.prototype.setValue = function(value) {
return jspb.Message.setProto3BytesField(this, 3, value);
};
/**
* @enum {number}
*/
proto.pulumirpc.Result = {
SUCCESS: 0,
FAIL: 1,
SKIP: 2
};
goog.object.extend(exports, proto.pulumirpc);