// source: pulumi/provider.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 pulumi_plugin_pb = require('./plugin_pb.js'); goog.object.extend(proto, pulumi_plugin_pb); 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); goog.exportSymbol('proto.pulumirpc.CallRequest', null, global); goog.exportSymbol('proto.pulumirpc.CallRequest.ArgumentDependencies', null, global); goog.exportSymbol('proto.pulumirpc.CallResponse', null, global); goog.exportSymbol('proto.pulumirpc.CallResponse.ReturnDependencies', null, global); goog.exportSymbol('proto.pulumirpc.CheckFailure', null, global); goog.exportSymbol('proto.pulumirpc.CheckRequest', null, global); goog.exportSymbol('proto.pulumirpc.CheckResponse', null, global); goog.exportSymbol('proto.pulumirpc.ConfigureErrorMissingKeys', null, global); goog.exportSymbol('proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey', null, global); goog.exportSymbol('proto.pulumirpc.ConfigureRequest', null, global); goog.exportSymbol('proto.pulumirpc.ConfigureResponse', null, global); goog.exportSymbol('proto.pulumirpc.ConstructRequest', null, global); goog.exportSymbol('proto.pulumirpc.ConstructRequest.CustomTimeouts', null, global); goog.exportSymbol('proto.pulumirpc.ConstructRequest.PropertyDependencies', null, global); goog.exportSymbol('proto.pulumirpc.ConstructResponse', null, global); goog.exportSymbol('proto.pulumirpc.ConstructResponse.PropertyDependencies', null, global); goog.exportSymbol('proto.pulumirpc.CreateRequest', null, global); goog.exportSymbol('proto.pulumirpc.CreateResponse', null, global); goog.exportSymbol('proto.pulumirpc.DeleteRequest', null, global); goog.exportSymbol('proto.pulumirpc.DiffRequest', null, global); goog.exportSymbol('proto.pulumirpc.DiffResponse', null, global); goog.exportSymbol('proto.pulumirpc.DiffResponse.DiffChanges', null, global); goog.exportSymbol('proto.pulumirpc.ErrorResourceInitFailed', null, global); goog.exportSymbol('proto.pulumirpc.GetMappingRequest', null, global); goog.exportSymbol('proto.pulumirpc.GetMappingResponse', null, global); goog.exportSymbol('proto.pulumirpc.GetMappingsRequest', null, global); goog.exportSymbol('proto.pulumirpc.GetMappingsResponse', null, global); goog.exportSymbol('proto.pulumirpc.GetSchemaRequest', null, global); goog.exportSymbol('proto.pulumirpc.GetSchemaResponse', null, global); goog.exportSymbol('proto.pulumirpc.InvokeRequest', null, global); goog.exportSymbol('proto.pulumirpc.InvokeResponse', null, global); goog.exportSymbol('proto.pulumirpc.ParameterizeRequest', null, global); goog.exportSymbol('proto.pulumirpc.ParameterizeRequest.ParametersArgs', null, global); goog.exportSymbol('proto.pulumirpc.ParameterizeRequest.ParametersCase', null, global); goog.exportSymbol('proto.pulumirpc.ParameterizeRequest.ParametersValue', null, global); goog.exportSymbol('proto.pulumirpc.ParameterizeResponse', null, global); goog.exportSymbol('proto.pulumirpc.PropertyDiff', null, global); goog.exportSymbol('proto.pulumirpc.PropertyDiff.Kind', null, global); goog.exportSymbol('proto.pulumirpc.ReadRequest', null, global); goog.exportSymbol('proto.pulumirpc.ReadResponse', null, global); goog.exportSymbol('proto.pulumirpc.UpdateRequest', null, global); goog.exportSymbol('proto.pulumirpc.UpdateResponse', 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.ParameterizeRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.pulumirpc.ParameterizeRequest.oneofGroups_); }; goog.inherits(proto.pulumirpc.ParameterizeRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ParameterizeRequest.displayName = 'proto.pulumirpc.ParameterizeRequest'; } /** * 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.ParameterizeRequest.ParametersArgs = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.ParameterizeRequest.ParametersArgs.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.ParameterizeRequest.ParametersArgs, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ParameterizeRequest.ParametersArgs.displayName = 'proto.pulumirpc.ParameterizeRequest.ParametersArgs'; } /** * 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.ParameterizeRequest.ParametersValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.ParameterizeRequest.ParametersValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ParameterizeRequest.ParametersValue.displayName = 'proto.pulumirpc.ParameterizeRequest.ParametersValue'; } /** * 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.ParameterizeResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.ParameterizeResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ParameterizeResponse.displayName = 'proto.pulumirpc.ParameterizeResponse'; } /** * 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.GetSchemaRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.GetSchemaRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.GetSchemaRequest.displayName = 'proto.pulumirpc.GetSchemaRequest'; } /** * 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.GetSchemaResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.GetSchemaResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.GetSchemaResponse.displayName = 'proto.pulumirpc.GetSchemaResponse'; } /** * 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.ConfigureRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.ConfigureRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ConfigureRequest.displayName = 'proto.pulumirpc.ConfigureRequest'; } /** * 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.ConfigureResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.ConfigureResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ConfigureResponse.displayName = 'proto.pulumirpc.ConfigureResponse'; } /** * 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.ConfigureErrorMissingKeys = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.ConfigureErrorMissingKeys.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.ConfigureErrorMissingKeys, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ConfigureErrorMissingKeys.displayName = 'proto.pulumirpc.ConfigureErrorMissingKeys'; } /** * 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.ConfigureErrorMissingKeys.MissingKey = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.displayName = 'proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey'; } /** * 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.InvokeRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.InvokeRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.InvokeRequest.displayName = 'proto.pulumirpc.InvokeRequest'; } /** * 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.InvokeResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.InvokeResponse.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.InvokeResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.InvokeResponse.displayName = 'proto.pulumirpc.InvokeResponse'; } /** * 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.CallRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.CallRequest.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.CallRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.CallRequest.displayName = 'proto.pulumirpc.CallRequest'; } /** * 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.CallRequest.ArgumentDependencies = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.CallRequest.ArgumentDependencies.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.CallRequest.ArgumentDependencies, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.CallRequest.ArgumentDependencies.displayName = 'proto.pulumirpc.CallRequest.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.CallResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.CallResponse.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.CallResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.CallResponse.displayName = 'proto.pulumirpc.CallResponse'; } /** * 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.CallResponse.ReturnDependencies = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.CallResponse.ReturnDependencies.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.CallResponse.ReturnDependencies, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.CallResponse.ReturnDependencies.displayName = 'proto.pulumirpc.CallResponse.ReturnDependencies'; } /** * 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.CheckRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.CheckRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.CheckRequest.displayName = 'proto.pulumirpc.CheckRequest'; } /** * 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.CheckResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.CheckResponse.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.CheckResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.CheckResponse.displayName = 'proto.pulumirpc.CheckResponse'; } /** * 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.CheckFailure = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.CheckFailure, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.CheckFailure.displayName = 'proto.pulumirpc.CheckFailure'; } /** * 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.DiffRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.DiffRequest.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.DiffRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.DiffRequest.displayName = 'proto.pulumirpc.DiffRequest'; } /** * 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.PropertyDiff = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.PropertyDiff, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.PropertyDiff.displayName = 'proto.pulumirpc.PropertyDiff'; } /** * 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.DiffResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.DiffResponse.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.DiffResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.DiffResponse.displayName = 'proto.pulumirpc.DiffResponse'; } /** * 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.CreateRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.CreateRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.CreateRequest.displayName = 'proto.pulumirpc.CreateRequest'; } /** * 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.CreateResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.CreateResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.CreateResponse.displayName = 'proto.pulumirpc.CreateResponse'; } /** * 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.ReadRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.ReadRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ReadRequest.displayName = 'proto.pulumirpc.ReadRequest'; } /** * 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.ReadResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.ReadResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ReadResponse.displayName = 'proto.pulumirpc.ReadResponse'; } /** * 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.UpdateRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.UpdateRequest.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.UpdateRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.UpdateRequest.displayName = 'proto.pulumirpc.UpdateRequest'; } /** * 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.UpdateResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.UpdateResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.UpdateResponse.displayName = 'proto.pulumirpc.UpdateResponse'; } /** * 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.DeleteRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.DeleteRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.DeleteRequest.displayName = 'proto.pulumirpc.DeleteRequest'; } /** * 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.ConstructRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.ConstructRequest.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.ConstructRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ConstructRequest.displayName = 'proto.pulumirpc.ConstructRequest'; } /** * 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.ConstructRequest.PropertyDependencies = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.ConstructRequest.PropertyDependencies.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.ConstructRequest.PropertyDependencies, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ConstructRequest.PropertyDependencies.displayName = 'proto.pulumirpc.ConstructRequest.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.ConstructRequest.CustomTimeouts = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.ConstructRequest.CustomTimeouts, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ConstructRequest.CustomTimeouts.displayName = 'proto.pulumirpc.ConstructRequest.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.ConstructResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.ConstructResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ConstructResponse.displayName = 'proto.pulumirpc.ConstructResponse'; } /** * 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.ConstructResponse.PropertyDependencies = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.ConstructResponse.PropertyDependencies.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.ConstructResponse.PropertyDependencies, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ConstructResponse.PropertyDependencies.displayName = 'proto.pulumirpc.ConstructResponse.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.ErrorResourceInitFailed = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.ErrorResourceInitFailed.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.ErrorResourceInitFailed, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.ErrorResourceInitFailed.displayName = 'proto.pulumirpc.ErrorResourceInitFailed'; } /** * 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.GetMappingRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.GetMappingRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.GetMappingRequest.displayName = 'proto.pulumirpc.GetMappingRequest'; } /** * 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.GetMappingResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.GetMappingResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.GetMappingResponse.displayName = 'proto.pulumirpc.GetMappingResponse'; } /** * 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.GetMappingsRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.pulumirpc.GetMappingsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.GetMappingsRequest.displayName = 'proto.pulumirpc.GetMappingsRequest'; } /** * 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.GetMappingsResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.GetMappingsResponse.repeatedFields_, null); }; goog.inherits(proto.pulumirpc.GetMappingsResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.pulumirpc.GetMappingsResponse.displayName = 'proto.pulumirpc.GetMappingsResponse'; } /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array<!Array<number>>} * @const */ proto.pulumirpc.ParameterizeRequest.oneofGroups_ = [[1,2]]; /** * @enum {number} */ proto.pulumirpc.ParameterizeRequest.ParametersCase = { PARAMETERS_NOT_SET: 0, ARGS: 1, VALUE: 2 }; /** * @return {proto.pulumirpc.ParameterizeRequest.ParametersCase} */ proto.pulumirpc.ParameterizeRequest.prototype.getParametersCase = function() { return /** @type {proto.pulumirpc.ParameterizeRequest.ParametersCase} */(jspb.Message.computeOneofCase(this, proto.pulumirpc.ParameterizeRequest.oneofGroups_[0])); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<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.ParameterizeRequest.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ParameterizeRequest.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.ParameterizeRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ParameterizeRequest.toObject = function(includeInstance, msg) { var f, obj = { args: (f = msg.getArgs()) && proto.pulumirpc.ParameterizeRequest.ParametersArgs.toObject(includeInstance, f), value: (f = msg.getValue()) && proto.pulumirpc.ParameterizeRequest.ParametersValue.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.ParameterizeRequest} */ proto.pulumirpc.ParameterizeRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ParameterizeRequest; return proto.pulumirpc.ParameterizeRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ParameterizeRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ParameterizeRequest} */ proto.pulumirpc.ParameterizeRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.pulumirpc.ParameterizeRequest.ParametersArgs; reader.readMessage(value,proto.pulumirpc.ParameterizeRequest.ParametersArgs.deserializeBinaryFromReader); msg.setArgs(value); break; case 2: var value = new proto.pulumirpc.ParameterizeRequest.ParametersValue; reader.readMessage(value,proto.pulumirpc.ParameterizeRequest.ParametersValue.deserializeBinaryFromReader); msg.setValue(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.ParameterizeRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ParameterizeRequest.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.ParameterizeRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ParameterizeRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getArgs(); if (f != null) { writer.writeMessage( 1, f, proto.pulumirpc.ParameterizeRequest.ParametersArgs.serializeBinaryToWriter ); } f = message.getValue(); if (f != null) { writer.writeMessage( 2, f, proto.pulumirpc.ParameterizeRequest.ParametersValue.serializeBinaryToWriter ); } }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.ParameterizeRequest.ParametersArgs.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.ParameterizeRequest.ParametersArgs.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ParameterizeRequest.ParametersArgs.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.ParameterizeRequest.ParametersArgs} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ParameterizeRequest.ParametersArgs.toObject = function(includeInstance, msg) { var f, obj = { argsList: (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.ParameterizeRequest.ParametersArgs} */ proto.pulumirpc.ParameterizeRequest.ParametersArgs.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ParameterizeRequest.ParametersArgs; return proto.pulumirpc.ParameterizeRequest.ParametersArgs.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ParameterizeRequest.ParametersArgs} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ParameterizeRequest.ParametersArgs} */ proto.pulumirpc.ParameterizeRequest.ParametersArgs.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.addArgs(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.ParameterizeRequest.ParametersArgs.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ParameterizeRequest.ParametersArgs.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.ParameterizeRequest.ParametersArgs} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ParameterizeRequest.ParametersArgs.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getArgsList(); if (f.length > 0) { writer.writeRepeatedString( 1, f ); } }; /** * repeated string args = 1; * @return {!Array<string>} */ proto.pulumirpc.ParameterizeRequest.ParametersArgs.prototype.getArgsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.ParameterizeRequest.ParametersArgs} returns this */ proto.pulumirpc.ParameterizeRequest.ParametersArgs.prototype.setArgsList = function(value) { return jspb.Message.setField(this, 1, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.ParameterizeRequest.ParametersArgs} returns this */ proto.pulumirpc.ParameterizeRequest.ParametersArgs.prototype.addArgs = 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.ParameterizeRequest.ParametersArgs} returns this */ proto.pulumirpc.ParameterizeRequest.ParametersArgs.prototype.clearArgsList = function() { return this.setArgsList([]); }; 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.ParameterizeRequest.ParametersValue.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ParameterizeRequest.ParametersValue.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.ParameterizeRequest.ParametersValue} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ParameterizeRequest.ParametersValue.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.ParameterizeRequest.ParametersValue} */ proto.pulumirpc.ParameterizeRequest.ParametersValue.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ParameterizeRequest.ParametersValue; return proto.pulumirpc.ParameterizeRequest.ParametersValue.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ParameterizeRequest.ParametersValue} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ParameterizeRequest.ParametersValue} */ proto.pulumirpc.ParameterizeRequest.ParametersValue.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.ParameterizeRequest.ParametersValue.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ParameterizeRequest.ParametersValue.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.ParameterizeRequest.ParametersValue} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ParameterizeRequest.ParametersValue.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.ParameterizeRequest.ParametersValue.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ParameterizeRequest.ParametersValue} returns this */ proto.pulumirpc.ParameterizeRequest.ParametersValue.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string version = 2; * @return {string} */ proto.pulumirpc.ParameterizeRequest.ParametersValue.prototype.getVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ParameterizeRequest.ParametersValue} returns this */ proto.pulumirpc.ParameterizeRequest.ParametersValue.prototype.setVersion = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional bytes value = 3; * @return {!(string|Uint8Array)} */ proto.pulumirpc.ParameterizeRequest.ParametersValue.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.ParameterizeRequest.ParametersValue.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.ParameterizeRequest.ParametersValue.prototype.getValue_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getValue())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.pulumirpc.ParameterizeRequest.ParametersValue} returns this */ proto.pulumirpc.ParameterizeRequest.ParametersValue.prototype.setValue = function(value) { return jspb.Message.setProto3BytesField(this, 3, value); }; /** * optional ParametersArgs args = 1; * @return {?proto.pulumirpc.ParameterizeRequest.ParametersArgs} */ proto.pulumirpc.ParameterizeRequest.prototype.getArgs = function() { return /** @type{?proto.pulumirpc.ParameterizeRequest.ParametersArgs} */ ( jspb.Message.getWrapperField(this, proto.pulumirpc.ParameterizeRequest.ParametersArgs, 1)); }; /** * @param {?proto.pulumirpc.ParameterizeRequest.ParametersArgs|undefined} value * @return {!proto.pulumirpc.ParameterizeRequest} returns this */ proto.pulumirpc.ParameterizeRequest.prototype.setArgs = function(value) { return jspb.Message.setOneofWrapperField(this, 1, proto.pulumirpc.ParameterizeRequest.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.ParameterizeRequest} returns this */ proto.pulumirpc.ParameterizeRequest.prototype.clearArgs = function() { return this.setArgs(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.ParameterizeRequest.prototype.hasArgs = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional ParametersValue value = 2; * @return {?proto.pulumirpc.ParameterizeRequest.ParametersValue} */ proto.pulumirpc.ParameterizeRequest.prototype.getValue = function() { return /** @type{?proto.pulumirpc.ParameterizeRequest.ParametersValue} */ ( jspb.Message.getWrapperField(this, proto.pulumirpc.ParameterizeRequest.ParametersValue, 2)); }; /** * @param {?proto.pulumirpc.ParameterizeRequest.ParametersValue|undefined} value * @return {!proto.pulumirpc.ParameterizeRequest} returns this */ proto.pulumirpc.ParameterizeRequest.prototype.setValue = function(value) { return jspb.Message.setOneofWrapperField(this, 2, proto.pulumirpc.ParameterizeRequest.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.ParameterizeRequest} returns this */ proto.pulumirpc.ParameterizeRequest.prototype.clearValue = function() { return this.setValue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.ParameterizeRequest.prototype.hasValue = 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.ParameterizeResponse.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ParameterizeResponse.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.ParameterizeResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ParameterizeResponse.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), version: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.pulumirpc.ParameterizeResponse} */ proto.pulumirpc.ParameterizeResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ParameterizeResponse; return proto.pulumirpc.ParameterizeResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ParameterizeResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ParameterizeResponse} */ proto.pulumirpc.ParameterizeResponse.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; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.ParameterizeResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ParameterizeResponse.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.ParameterizeResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ParameterizeResponse.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 ); } }; /** * optional string name = 1; * @return {string} */ proto.pulumirpc.ParameterizeResponse.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ParameterizeResponse} returns this */ proto.pulumirpc.ParameterizeResponse.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string version = 2; * @return {string} */ proto.pulumirpc.ParameterizeResponse.prototype.getVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ParameterizeResponse} returns this */ proto.pulumirpc.ParameterizeResponse.prototype.setVersion = function(value) { return jspb.Message.setProto3StringField(this, 2, 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.GetSchemaRequest.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.GetSchemaRequest.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.GetSchemaRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.GetSchemaRequest.toObject = function(includeInstance, msg) { var f, obj = { version: jspb.Message.getFieldWithDefault(msg, 1, 0), subpackageName: jspb.Message.getFieldWithDefault(msg, 2, ""), subpackageVersion: 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.GetSchemaRequest} */ proto.pulumirpc.GetSchemaRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.GetSchemaRequest; return proto.pulumirpc.GetSchemaRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.GetSchemaRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.GetSchemaRequest} */ proto.pulumirpc.GetSchemaRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readInt32()); msg.setVersion(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setSubpackageName(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setSubpackageVersion(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.GetSchemaRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.GetSchemaRequest.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.GetSchemaRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.GetSchemaRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getVersion(); if (f !== 0) { writer.writeInt32( 1, f ); } f = message.getSubpackageName(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getSubpackageVersion(); if (f.length > 0) { writer.writeString( 3, f ); } }; /** * optional int32 version = 1; * @return {number} */ proto.pulumirpc.GetSchemaRequest.prototype.getVersion = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.pulumirpc.GetSchemaRequest} returns this */ proto.pulumirpc.GetSchemaRequest.prototype.setVersion = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional string subpackage_name = 2; * @return {string} */ proto.pulumirpc.GetSchemaRequest.prototype.getSubpackageName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.GetSchemaRequest} returns this */ proto.pulumirpc.GetSchemaRequest.prototype.setSubpackageName = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string subpackage_version = 3; * @return {string} */ proto.pulumirpc.GetSchemaRequest.prototype.getSubpackageVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.GetSchemaRequest} returns this */ proto.pulumirpc.GetSchemaRequest.prototype.setSubpackageVersion = function(value) { return jspb.Message.setProto3StringField(this, 3, 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.GetSchemaResponse.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.GetSchemaResponse.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.GetSchemaResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.GetSchemaResponse.toObject = function(includeInstance, msg) { var f, obj = { schema: 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.GetSchemaResponse} */ proto.pulumirpc.GetSchemaResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.GetSchemaResponse; return proto.pulumirpc.GetSchemaResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.GetSchemaResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.GetSchemaResponse} */ proto.pulumirpc.GetSchemaResponse.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.setSchema(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.GetSchemaResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.GetSchemaResponse.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.GetSchemaResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.GetSchemaResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSchema(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string schema = 1; * @return {string} */ proto.pulumirpc.GetSchemaResponse.prototype.getSchema = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.GetSchemaResponse} returns this */ proto.pulumirpc.GetSchemaResponse.prototype.setSchema = 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.ConfigureRequest.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ConfigureRequest.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.ConfigureRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConfigureRequest.toObject = function(includeInstance, msg) { var f, obj = { variablesMap: (f = msg.getVariablesMap()) ? f.toObject(includeInstance, undefined) : [], args: (f = msg.getArgs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), acceptsecrets: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), acceptresources: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), sendsOldInputs: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), sendsOldInputsToDelete: jspb.Message.getBooleanFieldWithDefault(msg, 6, 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.ConfigureRequest} */ proto.pulumirpc.ConfigureRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ConfigureRequest; return proto.pulumirpc.ConfigureRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ConfigureRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ConfigureRequest} */ proto.pulumirpc.ConfigureRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = msg.getVariablesMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); }); break; case 2: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setArgs(value); break; case 3: var value = /** @type {boolean} */ (reader.readBool()); msg.setAcceptsecrets(value); break; case 4: var value = /** @type {boolean} */ (reader.readBool()); msg.setAcceptresources(value); break; case 5: var value = /** @type {boolean} */ (reader.readBool()); msg.setSendsOldInputs(value); break; case 6: var value = /** @type {boolean} */ (reader.readBool()); msg.setSendsOldInputsToDelete(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.ConfigureRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ConfigureRequest.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.ConfigureRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConfigureRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getVariablesMap(true); if (f && f.getLength() > 0) { f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } f = message.getArgs(); if (f != null) { writer.writeMessage( 2, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getAcceptsecrets(); if (f) { writer.writeBool( 3, f ); } f = message.getAcceptresources(); if (f) { writer.writeBool( 4, f ); } f = message.getSendsOldInputs(); if (f) { writer.writeBool( 5, f ); } f = message.getSendsOldInputsToDelete(); if (f) { writer.writeBool( 6, f ); } }; /** * map<string, string> variables = 1; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<string,string>} */ proto.pulumirpc.ConfigureRequest.prototype.getVariablesMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<string,string>} */ ( jspb.Message.getMapField(this, 1, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. * @return {!proto.pulumirpc.ConfigureRequest} returns this */ proto.pulumirpc.ConfigureRequest.prototype.clearVariablesMap = function() { this.getVariablesMap().clear(); return this;}; /** * optional google.protobuf.Struct args = 2; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.ConfigureRequest.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.ConfigureRequest} returns this */ proto.pulumirpc.ConfigureRequest.prototype.setArgs = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.ConfigureRequest} returns this */ proto.pulumirpc.ConfigureRequest.prototype.clearArgs = function() { return this.setArgs(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.ConfigureRequest.prototype.hasArgs = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional bool acceptSecrets = 3; * @return {boolean} */ proto.pulumirpc.ConfigureRequest.prototype.getAcceptsecrets = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.ConfigureRequest} returns this */ proto.pulumirpc.ConfigureRequest.prototype.setAcceptsecrets = function(value) { return jspb.Message.setProto3BooleanField(this, 3, value); }; /** * optional bool acceptResources = 4; * @return {boolean} */ proto.pulumirpc.ConfigureRequest.prototype.getAcceptresources = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.ConfigureRequest} returns this */ proto.pulumirpc.ConfigureRequest.prototype.setAcceptresources = function(value) { return jspb.Message.setProto3BooleanField(this, 4, value); }; /** * optional bool sends_old_inputs = 5; * @return {boolean} */ proto.pulumirpc.ConfigureRequest.prototype.getSendsOldInputs = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.ConfigureRequest} returns this */ proto.pulumirpc.ConfigureRequest.prototype.setSendsOldInputs = function(value) { return jspb.Message.setProto3BooleanField(this, 5, value); }; /** * optional bool sends_old_inputs_to_delete = 6; * @return {boolean} */ proto.pulumirpc.ConfigureRequest.prototype.getSendsOldInputsToDelete = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.ConfigureRequest} returns this */ proto.pulumirpc.ConfigureRequest.prototype.setSendsOldInputsToDelete = function(value) { return jspb.Message.setProto3BooleanField(this, 6, 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.ConfigureResponse.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ConfigureResponse.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.ConfigureResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConfigureResponse.toObject = function(includeInstance, msg) { var f, obj = { acceptsecrets: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), supportspreview: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), acceptresources: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), acceptoutputs: jspb.Message.getBooleanFieldWithDefault(msg, 4, 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.ConfigureResponse} */ proto.pulumirpc.ConfigureResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ConfigureResponse; return proto.pulumirpc.ConfigureResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ConfigureResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ConfigureResponse} */ proto.pulumirpc.ConfigureResponse.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.setAcceptsecrets(value); break; case 2: var value = /** @type {boolean} */ (reader.readBool()); msg.setSupportspreview(value); break; case 3: var value = /** @type {boolean} */ (reader.readBool()); msg.setAcceptresources(value); break; case 4: var value = /** @type {boolean} */ (reader.readBool()); msg.setAcceptoutputs(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.ConfigureResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ConfigureResponse.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.ConfigureResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConfigureResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getAcceptsecrets(); if (f) { writer.writeBool( 1, f ); } f = message.getSupportspreview(); if (f) { writer.writeBool( 2, f ); } f = message.getAcceptresources(); if (f) { writer.writeBool( 3, f ); } f = message.getAcceptoutputs(); if (f) { writer.writeBool( 4, f ); } }; /** * optional bool acceptSecrets = 1; * @return {boolean} */ proto.pulumirpc.ConfigureResponse.prototype.getAcceptsecrets = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.ConfigureResponse} returns this */ proto.pulumirpc.ConfigureResponse.prototype.setAcceptsecrets = function(value) { return jspb.Message.setProto3BooleanField(this, 1, value); }; /** * optional bool supportsPreview = 2; * @return {boolean} */ proto.pulumirpc.ConfigureResponse.prototype.getSupportspreview = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.ConfigureResponse} returns this */ proto.pulumirpc.ConfigureResponse.prototype.setSupportspreview = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** * optional bool acceptResources = 3; * @return {boolean} */ proto.pulumirpc.ConfigureResponse.prototype.getAcceptresources = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.ConfigureResponse} returns this */ proto.pulumirpc.ConfigureResponse.prototype.setAcceptresources = function(value) { return jspb.Message.setProto3BooleanField(this, 3, value); }; /** * optional bool acceptOutputs = 4; * @return {boolean} */ proto.pulumirpc.ConfigureResponse.prototype.getAcceptoutputs = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.ConfigureResponse} returns this */ proto.pulumirpc.ConfigureResponse.prototype.setAcceptoutputs = function(value) { return jspb.Message.setProto3BooleanField(this, 4, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.ConfigureErrorMissingKeys.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.ConfigureErrorMissingKeys.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ConfigureErrorMissingKeys.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.ConfigureErrorMissingKeys} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConfigureErrorMissingKeys.toObject = function(includeInstance, msg) { var f, obj = { missingkeysList: jspb.Message.toObjectList(msg.getMissingkeysList(), proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.pulumirpc.ConfigureErrorMissingKeys} */ proto.pulumirpc.ConfigureErrorMissingKeys.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ConfigureErrorMissingKeys; return proto.pulumirpc.ConfigureErrorMissingKeys.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ConfigureErrorMissingKeys} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ConfigureErrorMissingKeys} */ proto.pulumirpc.ConfigureErrorMissingKeys.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey; reader.readMessage(value,proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.deserializeBinaryFromReader); msg.addMissingkeys(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.ConfigureErrorMissingKeys.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ConfigureErrorMissingKeys.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.ConfigureErrorMissingKeys} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConfigureErrorMissingKeys.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMissingkeysList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.serializeBinaryToWriter ); } }; 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.ConfigureErrorMissingKeys.MissingKey.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.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.ConfigureErrorMissingKeys.MissingKey} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), description: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey} */ proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey; return proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey} */ proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.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.setDescription(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.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.ConfigureErrorMissingKeys.MissingKey} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getDescription(); if (f.length > 0) { writer.writeString( 2, f ); } }; /** * optional string name = 1; * @return {string} */ proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey} returns this */ proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string description = 2; * @return {string} */ proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.prototype.getDescription = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey} returns this */ proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey.prototype.setDescription = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * repeated MissingKey missingKeys = 1; * @return {!Array<!proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey>} */ proto.pulumirpc.ConfigureErrorMissingKeys.prototype.getMissingkeysList = function() { return /** @type{!Array<!proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey, 1)); }; /** * @param {!Array<!proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey>} value * @return {!proto.pulumirpc.ConfigureErrorMissingKeys} returns this */ proto.pulumirpc.ConfigureErrorMissingKeys.prototype.setMissingkeysList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey=} opt_value * @param {number=} opt_index * @return {!proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey} */ proto.pulumirpc.ConfigureErrorMissingKeys.prototype.addMissingkeys = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.pulumirpc.ConfigureErrorMissingKeys.MissingKey, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.pulumirpc.ConfigureErrorMissingKeys} returns this */ proto.pulumirpc.ConfigureErrorMissingKeys.prototype.clearMissingkeysList = function() { return this.setMissingkeysList([]); }; 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.InvokeRequest.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.InvokeRequest.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.InvokeRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.InvokeRequest.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) }; 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.InvokeRequest} */ proto.pulumirpc.InvokeRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.InvokeRequest; return proto.pulumirpc.InvokeRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.InvokeRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.InvokeRequest} */ proto.pulumirpc.InvokeRequest.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; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.InvokeRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.InvokeRequest.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.InvokeRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.InvokeRequest.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 ); } }; /** * optional string tok = 1; * @return {string} */ proto.pulumirpc.InvokeRequest.prototype.getTok = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.InvokeRequest} returns this */ proto.pulumirpc.InvokeRequest.prototype.setTok = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional google.protobuf.Struct args = 2; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.InvokeRequest.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.InvokeRequest} returns this */ proto.pulumirpc.InvokeRequest.prototype.setArgs = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.InvokeRequest} returns this */ proto.pulumirpc.InvokeRequest.prototype.clearArgs = function() { return this.setArgs(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.InvokeRequest.prototype.hasArgs = function() { return jspb.Message.getField(this, 2) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.InvokeResponse.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.pulumirpc.InvokeResponse.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.InvokeResponse.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.InvokeResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.InvokeResponse.toObject = function(includeInstance, msg) { var f, obj = { pb_return: (f = msg.getReturn()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), failuresList: jspb.Message.toObjectList(msg.getFailuresList(), proto.pulumirpc.CheckFailure.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.pulumirpc.InvokeResponse} */ proto.pulumirpc.InvokeResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.InvokeResponse; return proto.pulumirpc.InvokeResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.InvokeResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.InvokeResponse} */ proto.pulumirpc.InvokeResponse.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.setReturn(value); break; case 2: var value = new proto.pulumirpc.CheckFailure; reader.readMessage(value,proto.pulumirpc.CheckFailure.deserializeBinaryFromReader); msg.addFailures(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.InvokeResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.InvokeResponse.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.InvokeResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.InvokeResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getReturn(); if (f != null) { writer.writeMessage( 1, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getFailuresList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, proto.pulumirpc.CheckFailure.serializeBinaryToWriter ); } }; /** * optional google.protobuf.Struct return = 1; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.InvokeResponse.prototype.getReturn = 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.InvokeResponse} returns this */ proto.pulumirpc.InvokeResponse.prototype.setReturn = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.InvokeResponse} returns this */ proto.pulumirpc.InvokeResponse.prototype.clearReturn = function() { return this.setReturn(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.InvokeResponse.prototype.hasReturn = function() { return jspb.Message.getField(this, 1) != null; }; /** * repeated CheckFailure failures = 2; * @return {!Array<!proto.pulumirpc.CheckFailure>} */ proto.pulumirpc.InvokeResponse.prototype.getFailuresList = function() { return /** @type{!Array<!proto.pulumirpc.CheckFailure>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.pulumirpc.CheckFailure, 2)); }; /** * @param {!Array<!proto.pulumirpc.CheckFailure>} value * @return {!proto.pulumirpc.InvokeResponse} returns this */ proto.pulumirpc.InvokeResponse.prototype.setFailuresList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.pulumirpc.CheckFailure=} opt_value * @param {number=} opt_index * @return {!proto.pulumirpc.CheckFailure} */ proto.pulumirpc.InvokeResponse.prototype.addFailures = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.pulumirpc.CheckFailure, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.pulumirpc.InvokeResponse} returns this */ proto.pulumirpc.InvokeResponse.prototype.clearFailuresList = function() { return this.setFailuresList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.CallRequest.repeatedFields_ = [9]; 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.CallRequest.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.CallRequest.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.CallRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CallRequest.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.CallRequest.ArgumentDependencies.toObject) : [], project: jspb.Message.getFieldWithDefault(msg, 6, ""), stack: jspb.Message.getFieldWithDefault(msg, 7, ""), configMap: (f = msg.getConfigMap()) ? f.toObject(includeInstance, undefined) : [], configsecretkeysList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f, dryrun: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), parallel: jspb.Message.getFieldWithDefault(msg, 11, 0), monitorendpoint: jspb.Message.getFieldWithDefault(msg, 12, ""), organization: jspb.Message.getFieldWithDefault(msg, 14, ""), acceptsOutputValues: jspb.Message.getBooleanFieldWithDefault(msg, 17, 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.CallRequest} */ proto.pulumirpc.CallRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.CallRequest; return proto.pulumirpc.CallRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.CallRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.CallRequest} */ proto.pulumirpc.CallRequest.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.CallRequest.ArgumentDependencies.deserializeBinaryFromReader, "", new proto.pulumirpc.CallRequest.ArgumentDependencies()); }); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setProject(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setStack(value); break; case 8: var value = msg.getConfigMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); }); break; case 9: var value = /** @type {string} */ (reader.readString()); msg.addConfigsecretkeys(value); break; case 10: var value = /** @type {boolean} */ (reader.readBool()); msg.setDryrun(value); break; case 11: var value = /** @type {number} */ (reader.readInt32()); msg.setParallel(value); break; case 12: var value = /** @type {string} */ (reader.readString()); msg.setMonitorendpoint(value); break; case 14: var value = /** @type {string} */ (reader.readString()); msg.setOrganization(value); break; case 17: var value = /** @type {boolean} */ (reader.readBool()); msg.setAcceptsOutputValues(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.CallRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.CallRequest.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.CallRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CallRequest.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.CallRequest.ArgumentDependencies.serializeBinaryToWriter); } f = message.getProject(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getStack(); if (f.length > 0) { writer.writeString( 7, f ); } f = message.getConfigMap(true); if (f && f.getLength() > 0) { f.serializeBinary(8, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } f = message.getConfigsecretkeysList(); if (f.length > 0) { writer.writeRepeatedString( 9, f ); } f = message.getDryrun(); if (f) { writer.writeBool( 10, f ); } f = message.getParallel(); if (f !== 0) { writer.writeInt32( 11, f ); } f = message.getMonitorendpoint(); if (f.length > 0) { writer.writeString( 12, f ); } f = message.getOrganization(); if (f.length > 0) { writer.writeString( 14, f ); } f = message.getAcceptsOutputValues(); if (f) { writer.writeBool( 17, f ); } }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.CallRequest.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.CallRequest.ArgumentDependencies.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.CallRequest.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.CallRequest.ArgumentDependencies} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CallRequest.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.CallRequest.ArgumentDependencies} */ proto.pulumirpc.CallRequest.ArgumentDependencies.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.CallRequest.ArgumentDependencies; return proto.pulumirpc.CallRequest.ArgumentDependencies.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.CallRequest.ArgumentDependencies} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.CallRequest.ArgumentDependencies} */ proto.pulumirpc.CallRequest.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.CallRequest.ArgumentDependencies.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.CallRequest.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.CallRequest.ArgumentDependencies} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CallRequest.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.CallRequest.ArgumentDependencies.prototype.getUrnsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.CallRequest.ArgumentDependencies} returns this */ proto.pulumirpc.CallRequest.ArgumentDependencies.prototype.setUrnsList = function(value) { return jspb.Message.setField(this, 1, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.CallRequest.ArgumentDependencies} returns this */ proto.pulumirpc.CallRequest.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.CallRequest.ArgumentDependencies} returns this */ proto.pulumirpc.CallRequest.ArgumentDependencies.prototype.clearUrnsList = function() { return this.setUrnsList([]); }; /** * optional string tok = 1; * @return {string} */ proto.pulumirpc.CallRequest.prototype.getTok = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.setTok = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional google.protobuf.Struct args = 2; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.CallRequest.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.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.setArgs = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.clearArgs = function() { return this.setArgs(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.CallRequest.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.CallRequest.ArgumentDependencies>} */ proto.pulumirpc.CallRequest.prototype.getArgdependenciesMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<string,!proto.pulumirpc.CallRequest.ArgumentDependencies>} */ ( jspb.Message.getMapField(this, 3, opt_noLazyCreate, proto.pulumirpc.CallRequest.ArgumentDependencies)); }; /** * Clears values from the map. The map will be non-null. * @return {!proto.pulumirpc.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.clearArgdependenciesMap = function() { this.getArgdependenciesMap().clear(); return this;}; /** * optional string project = 6; * @return {string} */ proto.pulumirpc.CallRequest.prototype.getProject = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.setProject = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional string stack = 7; * @return {string} */ proto.pulumirpc.CallRequest.prototype.getStack = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.setStack = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; /** * map<string, string> config = 8; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<string,string>} */ proto.pulumirpc.CallRequest.prototype.getConfigMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<string,string>} */ ( jspb.Message.getMapField(this, 8, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. * @return {!proto.pulumirpc.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.clearConfigMap = function() { this.getConfigMap().clear(); return this;}; /** * repeated string configSecretKeys = 9; * @return {!Array<string>} */ proto.pulumirpc.CallRequest.prototype.getConfigsecretkeysList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 9)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.setConfigsecretkeysList = function(value) { return jspb.Message.setField(this, 9, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.addConfigsecretkeys = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 9, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.pulumirpc.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.clearConfigsecretkeysList = function() { return this.setConfigsecretkeysList([]); }; /** * optional bool dryRun = 10; * @return {boolean} */ proto.pulumirpc.CallRequest.prototype.getDryrun = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.setDryrun = function(value) { return jspb.Message.setProto3BooleanField(this, 10, value); }; /** * optional int32 parallel = 11; * @return {number} */ proto.pulumirpc.CallRequest.prototype.getParallel = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); }; /** * @param {number} value * @return {!proto.pulumirpc.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.setParallel = function(value) { return jspb.Message.setProto3IntField(this, 11, value); }; /** * optional string monitorEndpoint = 12; * @return {string} */ proto.pulumirpc.CallRequest.prototype.getMonitorendpoint = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.setMonitorendpoint = function(value) { return jspb.Message.setProto3StringField(this, 12, value); }; /** * optional string organization = 14; * @return {string} */ proto.pulumirpc.CallRequest.prototype.getOrganization = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.setOrganization = function(value) { return jspb.Message.setProto3StringField(this, 14, value); }; /** * optional bool accepts_output_values = 17; * @return {boolean} */ proto.pulumirpc.CallRequest.prototype.getAcceptsOutputValues = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.CallRequest} returns this */ proto.pulumirpc.CallRequest.prototype.setAcceptsOutputValues = function(value) { return jspb.Message.setProto3BooleanField(this, 17, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.CallResponse.repeatedFields_ = [3]; 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.CallResponse.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.CallResponse.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.CallResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CallResponse.toObject = function(includeInstance, msg) { var f, obj = { pb_return: (f = msg.getReturn()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), failuresList: jspb.Message.toObjectList(msg.getFailuresList(), proto.pulumirpc.CheckFailure.toObject, includeInstance), returndependenciesMap: (f = msg.getReturndependenciesMap()) ? f.toObject(includeInstance, proto.pulumirpc.CallResponse.ReturnDependencies.toObject) : [] }; 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.CallResponse} */ proto.pulumirpc.CallResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.CallResponse; return proto.pulumirpc.CallResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.CallResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.CallResponse} */ proto.pulumirpc.CallResponse.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.setReturn(value); break; case 3: var value = new proto.pulumirpc.CheckFailure; reader.readMessage(value,proto.pulumirpc.CheckFailure.deserializeBinaryFromReader); msg.addFailures(value); break; case 2: var value = msg.getReturndependenciesMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.pulumirpc.CallResponse.ReturnDependencies.deserializeBinaryFromReader, "", new proto.pulumirpc.CallResponse.ReturnDependencies()); }); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.CallResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.CallResponse.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.CallResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CallResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getReturn(); if (f != null) { writer.writeMessage( 1, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getFailuresList(); if (f.length > 0) { writer.writeRepeatedMessage( 3, f, proto.pulumirpc.CheckFailure.serializeBinaryToWriter ); } f = message.getReturndependenciesMap(true); if (f && f.getLength() > 0) { f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.pulumirpc.CallResponse.ReturnDependencies.serializeBinaryToWriter); } }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.CallResponse.ReturnDependencies.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.CallResponse.ReturnDependencies.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.CallResponse.ReturnDependencies.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.CallResponse.ReturnDependencies} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CallResponse.ReturnDependencies.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.CallResponse.ReturnDependencies} */ proto.pulumirpc.CallResponse.ReturnDependencies.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.CallResponse.ReturnDependencies; return proto.pulumirpc.CallResponse.ReturnDependencies.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.CallResponse.ReturnDependencies} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.CallResponse.ReturnDependencies} */ proto.pulumirpc.CallResponse.ReturnDependencies.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.CallResponse.ReturnDependencies.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.CallResponse.ReturnDependencies.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.CallResponse.ReturnDependencies} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CallResponse.ReturnDependencies.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.CallResponse.ReturnDependencies.prototype.getUrnsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.CallResponse.ReturnDependencies} returns this */ proto.pulumirpc.CallResponse.ReturnDependencies.prototype.setUrnsList = function(value) { return jspb.Message.setField(this, 1, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.CallResponse.ReturnDependencies} returns this */ proto.pulumirpc.CallResponse.ReturnDependencies.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.CallResponse.ReturnDependencies} returns this */ proto.pulumirpc.CallResponse.ReturnDependencies.prototype.clearUrnsList = function() { return this.setUrnsList([]); }; /** * optional google.protobuf.Struct return = 1; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.CallResponse.prototype.getReturn = 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.CallResponse} returns this */ proto.pulumirpc.CallResponse.prototype.setReturn = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.CallResponse} returns this */ proto.pulumirpc.CallResponse.prototype.clearReturn = function() { return this.setReturn(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.CallResponse.prototype.hasReturn = function() { return jspb.Message.getField(this, 1) != null; }; /** * repeated CheckFailure failures = 3; * @return {!Array<!proto.pulumirpc.CheckFailure>} */ proto.pulumirpc.CallResponse.prototype.getFailuresList = function() { return /** @type{!Array<!proto.pulumirpc.CheckFailure>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.pulumirpc.CheckFailure, 3)); }; /** * @param {!Array<!proto.pulumirpc.CheckFailure>} value * @return {!proto.pulumirpc.CallResponse} returns this */ proto.pulumirpc.CallResponse.prototype.setFailuresList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** * @param {!proto.pulumirpc.CheckFailure=} opt_value * @param {number=} opt_index * @return {!proto.pulumirpc.CheckFailure} */ proto.pulumirpc.CallResponse.prototype.addFailures = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.pulumirpc.CheckFailure, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.pulumirpc.CallResponse} returns this */ proto.pulumirpc.CallResponse.prototype.clearFailuresList = function() { return this.setFailuresList([]); }; /** * map<string, ReturnDependencies> returnDependencies = 2; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<string,!proto.pulumirpc.CallResponse.ReturnDependencies>} */ proto.pulumirpc.CallResponse.prototype.getReturndependenciesMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<string,!proto.pulumirpc.CallResponse.ReturnDependencies>} */ ( jspb.Message.getMapField(this, 2, opt_noLazyCreate, proto.pulumirpc.CallResponse.ReturnDependencies)); }; /** * Clears values from the map. The map will be non-null. * @return {!proto.pulumirpc.CallResponse} returns this */ proto.pulumirpc.CallResponse.prototype.clearReturndependenciesMap = function() { this.getReturndependenciesMap().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.CheckRequest.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.CheckRequest.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.CheckRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CheckRequest.toObject = function(includeInstance, msg) { var f, obj = { urn: jspb.Message.getFieldWithDefault(msg, 1, ""), olds: (f = msg.getOlds()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), news: (f = msg.getNews()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), randomseed: msg.getRandomseed_asB64(), name: jspb.Message.getFieldWithDefault(msg, 6, ""), type: jspb.Message.getFieldWithDefault(msg, 7, "") }; 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.CheckRequest} */ proto.pulumirpc.CheckRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.CheckRequest; return proto.pulumirpc.CheckRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.CheckRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.CheckRequest} */ proto.pulumirpc.CheckRequest.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.setOlds(value); break; case 3: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setNews(value); break; case 5: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setRandomseed(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setType(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.CheckRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.CheckRequest.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.CheckRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CheckRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUrn(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getOlds(); if (f != null) { writer.writeMessage( 2, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getNews(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getRandomseed_asU8(); if (f.length > 0) { writer.writeBytes( 5, f ); } f = message.getName(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getType(); if (f.length > 0) { writer.writeString( 7, f ); } }; /** * optional string urn = 1; * @return {string} */ proto.pulumirpc.CheckRequest.prototype.getUrn = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.CheckRequest} returns this */ proto.pulumirpc.CheckRequest.prototype.setUrn = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional google.protobuf.Struct olds = 2; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.CheckRequest.prototype.getOlds = 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.CheckRequest} returns this */ proto.pulumirpc.CheckRequest.prototype.setOlds = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.CheckRequest} returns this */ proto.pulumirpc.CheckRequest.prototype.clearOlds = function() { return this.setOlds(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.CheckRequest.prototype.hasOlds = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional google.protobuf.Struct news = 3; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.CheckRequest.prototype.getNews = 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.CheckRequest} returns this */ proto.pulumirpc.CheckRequest.prototype.setNews = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.CheckRequest} returns this */ proto.pulumirpc.CheckRequest.prototype.clearNews = function() { return this.setNews(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.CheckRequest.prototype.hasNews = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional bytes randomSeed = 5; * @return {!(string|Uint8Array)} */ proto.pulumirpc.CheckRequest.prototype.getRandomseed = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * optional bytes randomSeed = 5; * This is a type-conversion wrapper around `getRandomseed()` * @return {string} */ proto.pulumirpc.CheckRequest.prototype.getRandomseed_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getRandomseed())); }; /** * optional bytes randomSeed = 5; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getRandomseed()` * @return {!Uint8Array} */ proto.pulumirpc.CheckRequest.prototype.getRandomseed_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getRandomseed())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.pulumirpc.CheckRequest} returns this */ proto.pulumirpc.CheckRequest.prototype.setRandomseed = function(value) { return jspb.Message.setProto3BytesField(this, 5, value); }; /** * optional string name = 6; * @return {string} */ proto.pulumirpc.CheckRequest.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.CheckRequest} returns this */ proto.pulumirpc.CheckRequest.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional string type = 7; * @return {string} */ proto.pulumirpc.CheckRequest.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.CheckRequest} returns this */ proto.pulumirpc.CheckRequest.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.CheckResponse.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.pulumirpc.CheckResponse.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.CheckResponse.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.CheckResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CheckResponse.toObject = function(includeInstance, msg) { var f, obj = { inputs: (f = msg.getInputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), failuresList: jspb.Message.toObjectList(msg.getFailuresList(), proto.pulumirpc.CheckFailure.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.pulumirpc.CheckResponse} */ proto.pulumirpc.CheckResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.CheckResponse; return proto.pulumirpc.CheckResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.CheckResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.CheckResponse} */ proto.pulumirpc.CheckResponse.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.setInputs(value); break; case 2: var value = new proto.pulumirpc.CheckFailure; reader.readMessage(value,proto.pulumirpc.CheckFailure.deserializeBinaryFromReader); msg.addFailures(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.CheckResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.CheckResponse.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.CheckResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CheckResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getInputs(); if (f != null) { writer.writeMessage( 1, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getFailuresList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, proto.pulumirpc.CheckFailure.serializeBinaryToWriter ); } }; /** * optional google.protobuf.Struct inputs = 1; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.CheckResponse.prototype.getInputs = 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.CheckResponse} returns this */ proto.pulumirpc.CheckResponse.prototype.setInputs = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.CheckResponse} returns this */ proto.pulumirpc.CheckResponse.prototype.clearInputs = function() { return this.setInputs(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.CheckResponse.prototype.hasInputs = function() { return jspb.Message.getField(this, 1) != null; }; /** * repeated CheckFailure failures = 2; * @return {!Array<!proto.pulumirpc.CheckFailure>} */ proto.pulumirpc.CheckResponse.prototype.getFailuresList = function() { return /** @type{!Array<!proto.pulumirpc.CheckFailure>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.pulumirpc.CheckFailure, 2)); }; /** * @param {!Array<!proto.pulumirpc.CheckFailure>} value * @return {!proto.pulumirpc.CheckResponse} returns this */ proto.pulumirpc.CheckResponse.prototype.setFailuresList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.pulumirpc.CheckFailure=} opt_value * @param {number=} opt_index * @return {!proto.pulumirpc.CheckFailure} */ proto.pulumirpc.CheckResponse.prototype.addFailures = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.pulumirpc.CheckFailure, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.pulumirpc.CheckResponse} returns this */ proto.pulumirpc.CheckResponse.prototype.clearFailuresList = function() { return this.setFailuresList([]); }; 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.CheckFailure.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.CheckFailure.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.CheckFailure} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CheckFailure.toObject = function(includeInstance, msg) { var f, obj = { property: jspb.Message.getFieldWithDefault(msg, 1, ""), reason: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.pulumirpc.CheckFailure} */ proto.pulumirpc.CheckFailure.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.CheckFailure; return proto.pulumirpc.CheckFailure.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.CheckFailure} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.CheckFailure} */ proto.pulumirpc.CheckFailure.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.setProperty(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setReason(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.CheckFailure.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.CheckFailure.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.CheckFailure} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CheckFailure.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getProperty(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getReason(); if (f.length > 0) { writer.writeString( 2, f ); } }; /** * optional string property = 1; * @return {string} */ proto.pulumirpc.CheckFailure.prototype.getProperty = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.CheckFailure} returns this */ proto.pulumirpc.CheckFailure.prototype.setProperty = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string reason = 2; * @return {string} */ proto.pulumirpc.CheckFailure.prototype.getReason = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.CheckFailure} returns this */ proto.pulumirpc.CheckFailure.prototype.setReason = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.DiffRequest.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.DiffRequest.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.DiffRequest.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.DiffRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.DiffRequest.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), urn: jspb.Message.getFieldWithDefault(msg, 2, ""), olds: (f = msg.getOlds()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), news: (f = msg.getNews()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), ignorechangesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, oldInputs: (f = msg.getOldInputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), name: jspb.Message.getFieldWithDefault(msg, 7, ""), type: jspb.Message.getFieldWithDefault(msg, 8, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.pulumirpc.DiffRequest} */ proto.pulumirpc.DiffRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.DiffRequest; return proto.pulumirpc.DiffRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.DiffRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.DiffRequest} */ proto.pulumirpc.DiffRequest.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.setUrn(value); break; case 3: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setOlds(value); break; case 4: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setNews(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.addIgnorechanges(value); break; case 6: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setOldInputs(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 8: var value = /** @type {string} */ (reader.readString()); msg.setType(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.DiffRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.DiffRequest.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.DiffRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.DiffRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getUrn(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getOlds(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getNews(); if (f != null) { writer.writeMessage( 4, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getIgnorechangesList(); if (f.length > 0) { writer.writeRepeatedString( 5, f ); } f = message.getOldInputs(); if (f != null) { writer.writeMessage( 6, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getName(); if (f.length > 0) { writer.writeString( 7, f ); } f = message.getType(); if (f.length > 0) { writer.writeString( 8, f ); } }; /** * optional string id = 1; * @return {string} */ proto.pulumirpc.DiffRequest.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.DiffRequest} returns this */ proto.pulumirpc.DiffRequest.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string urn = 2; * @return {string} */ proto.pulumirpc.DiffRequest.prototype.getUrn = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.DiffRequest} returns this */ proto.pulumirpc.DiffRequest.prototype.setUrn = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional google.protobuf.Struct olds = 3; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.DiffRequest.prototype.getOlds = 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.DiffRequest} returns this */ proto.pulumirpc.DiffRequest.prototype.setOlds = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.DiffRequest} returns this */ proto.pulumirpc.DiffRequest.prototype.clearOlds = function() { return this.setOlds(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.DiffRequest.prototype.hasOlds = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional google.protobuf.Struct news = 4; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.DiffRequest.prototype.getNews = function() { return /** @type{?proto.google.protobuf.Struct} */ ( jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4)); }; /** * @param {?proto.google.protobuf.Struct|undefined} value * @return {!proto.pulumirpc.DiffRequest} returns this */ proto.pulumirpc.DiffRequest.prototype.setNews = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.DiffRequest} returns this */ proto.pulumirpc.DiffRequest.prototype.clearNews = function() { return this.setNews(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.DiffRequest.prototype.hasNews = function() { return jspb.Message.getField(this, 4) != null; }; /** * repeated string ignoreChanges = 5; * @return {!Array<string>} */ proto.pulumirpc.DiffRequest.prototype.getIgnorechangesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.DiffRequest} returns this */ proto.pulumirpc.DiffRequest.prototype.setIgnorechangesList = function(value) { return jspb.Message.setField(this, 5, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.DiffRequest} returns this */ proto.pulumirpc.DiffRequest.prototype.addIgnorechanges = 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.DiffRequest} returns this */ proto.pulumirpc.DiffRequest.prototype.clearIgnorechangesList = function() { return this.setIgnorechangesList([]); }; /** * optional google.protobuf.Struct old_inputs = 6; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.DiffRequest.prototype.getOldInputs = function() { return /** @type{?proto.google.protobuf.Struct} */ ( jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6)); }; /** * @param {?proto.google.protobuf.Struct|undefined} value * @return {!proto.pulumirpc.DiffRequest} returns this */ proto.pulumirpc.DiffRequest.prototype.setOldInputs = function(value) { return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.DiffRequest} returns this */ proto.pulumirpc.DiffRequest.prototype.clearOldInputs = function() { return this.setOldInputs(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.DiffRequest.prototype.hasOldInputs = function() { return jspb.Message.getField(this, 6) != null; }; /** * optional string name = 7; * @return {string} */ proto.pulumirpc.DiffRequest.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.DiffRequest} returns this */ proto.pulumirpc.DiffRequest.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; /** * optional string type = 8; * @return {string} */ proto.pulumirpc.DiffRequest.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.DiffRequest} returns this */ proto.pulumirpc.DiffRequest.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 8, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.pulumirpc.PropertyDiff.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.PropertyDiff.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.PropertyDiff} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.PropertyDiff.toObject = function(includeInstance, msg) { var f, obj = { kind: jspb.Message.getFieldWithDefault(msg, 1, 0), inputdiff: jspb.Message.getBooleanFieldWithDefault(msg, 2, 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.PropertyDiff} */ proto.pulumirpc.PropertyDiff.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.PropertyDiff; return proto.pulumirpc.PropertyDiff.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.PropertyDiff} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.PropertyDiff} */ proto.pulumirpc.PropertyDiff.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {!proto.pulumirpc.PropertyDiff.Kind} */ (reader.readEnum()); msg.setKind(value); break; case 2: var value = /** @type {boolean} */ (reader.readBool()); msg.setInputdiff(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.PropertyDiff.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.PropertyDiff.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.PropertyDiff} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.PropertyDiff.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getKind(); if (f !== 0.0) { writer.writeEnum( 1, f ); } f = message.getInputdiff(); if (f) { writer.writeBool( 2, f ); } }; /** * @enum {number} */ proto.pulumirpc.PropertyDiff.Kind = { ADD: 0, ADD_REPLACE: 1, DELETE: 2, DELETE_REPLACE: 3, UPDATE: 4, UPDATE_REPLACE: 5 }; /** * optional Kind kind = 1; * @return {!proto.pulumirpc.PropertyDiff.Kind} */ proto.pulumirpc.PropertyDiff.prototype.getKind = function() { return /** @type {!proto.pulumirpc.PropertyDiff.Kind} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {!proto.pulumirpc.PropertyDiff.Kind} value * @return {!proto.pulumirpc.PropertyDiff} returns this */ proto.pulumirpc.PropertyDiff.prototype.setKind = function(value) { return jspb.Message.setProto3EnumField(this, 1, value); }; /** * optional bool inputDiff = 2; * @return {boolean} */ proto.pulumirpc.PropertyDiff.prototype.getInputdiff = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.PropertyDiff} returns this */ proto.pulumirpc.PropertyDiff.prototype.setInputdiff = function(value) { return jspb.Message.setProto3BooleanField(this, 2, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.DiffResponse.repeatedFields_ = [1,2,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.DiffResponse.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.DiffResponse.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.DiffResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.DiffResponse.toObject = function(includeInstance, msg) { var f, obj = { replacesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, stablesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, deletebeforereplace: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), changes: jspb.Message.getFieldWithDefault(msg, 4, 0), diffsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f, detaileddiffMap: (f = msg.getDetaileddiffMap()) ? f.toObject(includeInstance, proto.pulumirpc.PropertyDiff.toObject) : [], hasdetaileddiff: jspb.Message.getBooleanFieldWithDefault(msg, 7, 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.DiffResponse} */ proto.pulumirpc.DiffResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.DiffResponse; return proto.pulumirpc.DiffResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.DiffResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.DiffResponse} */ proto.pulumirpc.DiffResponse.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.addReplaces(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.addStables(value); break; case 3: var value = /** @type {boolean} */ (reader.readBool()); msg.setDeletebeforereplace(value); break; case 4: var value = /** @type {!proto.pulumirpc.DiffResponse.DiffChanges} */ (reader.readEnum()); msg.setChanges(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.addDiffs(value); break; case 6: var value = msg.getDetaileddiffMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.pulumirpc.PropertyDiff.deserializeBinaryFromReader, "", new proto.pulumirpc.PropertyDiff()); }); break; case 7: var value = /** @type {boolean} */ (reader.readBool()); msg.setHasdetaileddiff(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.DiffResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.DiffResponse.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.DiffResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.DiffResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getReplacesList(); if (f.length > 0) { writer.writeRepeatedString( 1, f ); } f = message.getStablesList(); if (f.length > 0) { writer.writeRepeatedString( 2, f ); } f = message.getDeletebeforereplace(); if (f) { writer.writeBool( 3, f ); } f = message.getChanges(); if (f !== 0.0) { writer.writeEnum( 4, f ); } f = message.getDiffsList(); if (f.length > 0) { writer.writeRepeatedString( 5, f ); } f = message.getDetaileddiffMap(true); if (f && f.getLength() > 0) { f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.pulumirpc.PropertyDiff.serializeBinaryToWriter); } f = message.getHasdetaileddiff(); if (f) { writer.writeBool( 7, f ); } }; /** * @enum {number} */ proto.pulumirpc.DiffResponse.DiffChanges = { DIFF_UNKNOWN: 0, DIFF_NONE: 1, DIFF_SOME: 2 }; /** * repeated string replaces = 1; * @return {!Array<string>} */ proto.pulumirpc.DiffResponse.prototype.getReplacesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.DiffResponse} returns this */ proto.pulumirpc.DiffResponse.prototype.setReplacesList = function(value) { return jspb.Message.setField(this, 1, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.DiffResponse} returns this */ proto.pulumirpc.DiffResponse.prototype.addReplaces = 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.DiffResponse} returns this */ proto.pulumirpc.DiffResponse.prototype.clearReplacesList = function() { return this.setReplacesList([]); }; /** * repeated string stables = 2; * @return {!Array<string>} */ proto.pulumirpc.DiffResponse.prototype.getStablesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.DiffResponse} returns this */ proto.pulumirpc.DiffResponse.prototype.setStablesList = function(value) { return jspb.Message.setField(this, 2, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.DiffResponse} returns this */ proto.pulumirpc.DiffResponse.prototype.addStables = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.pulumirpc.DiffResponse} returns this */ proto.pulumirpc.DiffResponse.prototype.clearStablesList = function() { return this.setStablesList([]); }; /** * optional bool deleteBeforeReplace = 3; * @return {boolean} */ proto.pulumirpc.DiffResponse.prototype.getDeletebeforereplace = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.DiffResponse} returns this */ proto.pulumirpc.DiffResponse.prototype.setDeletebeforereplace = function(value) { return jspb.Message.setProto3BooleanField(this, 3, value); }; /** * optional DiffChanges changes = 4; * @return {!proto.pulumirpc.DiffResponse.DiffChanges} */ proto.pulumirpc.DiffResponse.prototype.getChanges = function() { return /** @type {!proto.pulumirpc.DiffResponse.DiffChanges} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {!proto.pulumirpc.DiffResponse.DiffChanges} value * @return {!proto.pulumirpc.DiffResponse} returns this */ proto.pulumirpc.DiffResponse.prototype.setChanges = function(value) { return jspb.Message.setProto3EnumField(this, 4, value); }; /** * repeated string diffs = 5; * @return {!Array<string>} */ proto.pulumirpc.DiffResponse.prototype.getDiffsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.DiffResponse} returns this */ proto.pulumirpc.DiffResponse.prototype.setDiffsList = function(value) { return jspb.Message.setField(this, 5, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.DiffResponse} returns this */ proto.pulumirpc.DiffResponse.prototype.addDiffs = 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.DiffResponse} returns this */ proto.pulumirpc.DiffResponse.prototype.clearDiffsList = function() { return this.setDiffsList([]); }; /** * map<string, PropertyDiff> detailedDiff = 6; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<string,!proto.pulumirpc.PropertyDiff>} */ proto.pulumirpc.DiffResponse.prototype.getDetaileddiffMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<string,!proto.pulumirpc.PropertyDiff>} */ ( jspb.Message.getMapField(this, 6, opt_noLazyCreate, proto.pulumirpc.PropertyDiff)); }; /** * Clears values from the map. The map will be non-null. * @return {!proto.pulumirpc.DiffResponse} returns this */ proto.pulumirpc.DiffResponse.prototype.clearDetaileddiffMap = function() { this.getDetaileddiffMap().clear(); return this;}; /** * optional bool hasDetailedDiff = 7; * @return {boolean} */ proto.pulumirpc.DiffResponse.prototype.getHasdetaileddiff = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.DiffResponse} returns this */ proto.pulumirpc.DiffResponse.prototype.setHasdetaileddiff = function(value) { return jspb.Message.setProto3BooleanField(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.CreateRequest.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.CreateRequest.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.CreateRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CreateRequest.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), timeout: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0), preview: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), name: jspb.Message.getFieldWithDefault(msg, 5, ""), type: jspb.Message.getFieldWithDefault(msg, 6, "") }; 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.CreateRequest} */ proto.pulumirpc.CreateRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.CreateRequest; return proto.pulumirpc.CreateRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.CreateRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.CreateRequest} */ proto.pulumirpc.CreateRequest.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; case 3: var value = /** @type {number} */ (reader.readDouble()); msg.setTimeout(value); break; case 4: var value = /** @type {boolean} */ (reader.readBool()); msg.setPreview(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setType(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.CreateRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.CreateRequest.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.CreateRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CreateRequest.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 ); } f = message.getTimeout(); if (f !== 0.0) { writer.writeDouble( 3, f ); } f = message.getPreview(); if (f) { writer.writeBool( 4, f ); } f = message.getName(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getType(); if (f.length > 0) { writer.writeString( 6, f ); } }; /** * optional string urn = 1; * @return {string} */ proto.pulumirpc.CreateRequest.prototype.getUrn = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.CreateRequest} returns this */ proto.pulumirpc.CreateRequest.prototype.setUrn = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional google.protobuf.Struct properties = 2; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.CreateRequest.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.CreateRequest} returns this */ proto.pulumirpc.CreateRequest.prototype.setProperties = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.CreateRequest} returns this */ proto.pulumirpc.CreateRequest.prototype.clearProperties = function() { return this.setProperties(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.CreateRequest.prototype.hasProperties = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional double timeout = 3; * @return {number} */ proto.pulumirpc.CreateRequest.prototype.getTimeout = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); }; /** * @param {number} value * @return {!proto.pulumirpc.CreateRequest} returns this */ proto.pulumirpc.CreateRequest.prototype.setTimeout = function(value) { return jspb.Message.setProto3FloatField(this, 3, value); }; /** * optional bool preview = 4; * @return {boolean} */ proto.pulumirpc.CreateRequest.prototype.getPreview = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.CreateRequest} returns this */ proto.pulumirpc.CreateRequest.prototype.setPreview = function(value) { return jspb.Message.setProto3BooleanField(this, 4, value); }; /** * optional string name = 5; * @return {string} */ proto.pulumirpc.CreateRequest.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.CreateRequest} returns this */ proto.pulumirpc.CreateRequest.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** * optional string type = 6; * @return {string} */ proto.pulumirpc.CreateRequest.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.CreateRequest} returns this */ proto.pulumirpc.CreateRequest.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 6, 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.CreateResponse.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.CreateResponse.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.CreateResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CreateResponse.toObject = function(includeInstance, msg) { var f, obj = { id: 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.CreateResponse} */ proto.pulumirpc.CreateResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.CreateResponse; return proto.pulumirpc.CreateResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.CreateResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.CreateResponse} */ proto.pulumirpc.CreateResponse.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 = 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.CreateResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.CreateResponse.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.CreateResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.CreateResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); 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 id = 1; * @return {string} */ proto.pulumirpc.CreateResponse.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.CreateResponse} returns this */ proto.pulumirpc.CreateResponse.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional google.protobuf.Struct properties = 2; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.CreateResponse.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.CreateResponse} returns this */ proto.pulumirpc.CreateResponse.prototype.setProperties = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.CreateResponse} returns this */ proto.pulumirpc.CreateResponse.prototype.clearProperties = function() { return this.setProperties(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.CreateResponse.prototype.hasProperties = 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.ReadRequest.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ReadRequest.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.ReadRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ReadRequest.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), urn: jspb.Message.getFieldWithDefault(msg, 2, ""), properties: (f = msg.getProperties()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), inputs: (f = msg.getInputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), name: jspb.Message.getFieldWithDefault(msg, 5, ""), type: jspb.Message.getFieldWithDefault(msg, 6, "") }; 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.ReadRequest} */ proto.pulumirpc.ReadRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ReadRequest; return proto.pulumirpc.ReadRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ReadRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ReadRequest} */ proto.pulumirpc.ReadRequest.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.setUrn(value); break; case 3: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setProperties(value); break; case 4: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setInputs(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setType(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.ReadRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ReadRequest.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.ReadRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ReadRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getUrn(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getProperties(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getInputs(); if (f != null) { writer.writeMessage( 4, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getName(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getType(); if (f.length > 0) { writer.writeString( 6, f ); } }; /** * optional string id = 1; * @return {string} */ proto.pulumirpc.ReadRequest.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ReadRequest} returns this */ proto.pulumirpc.ReadRequest.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string urn = 2; * @return {string} */ proto.pulumirpc.ReadRequest.prototype.getUrn = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ReadRequest} returns this */ proto.pulumirpc.ReadRequest.prototype.setUrn = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional google.protobuf.Struct properties = 3; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.ReadRequest.prototype.getProperties = 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.ReadRequest} returns this */ proto.pulumirpc.ReadRequest.prototype.setProperties = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.ReadRequest} returns this */ proto.pulumirpc.ReadRequest.prototype.clearProperties = function() { return this.setProperties(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.ReadRequest.prototype.hasProperties = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional google.protobuf.Struct inputs = 4; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.ReadRequest.prototype.getInputs = function() { return /** @type{?proto.google.protobuf.Struct} */ ( jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4)); }; /** * @param {?proto.google.protobuf.Struct|undefined} value * @return {!proto.pulumirpc.ReadRequest} returns this */ proto.pulumirpc.ReadRequest.prototype.setInputs = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.ReadRequest} returns this */ proto.pulumirpc.ReadRequest.prototype.clearInputs = function() { return this.setInputs(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.ReadRequest.prototype.hasInputs = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional string name = 5; * @return {string} */ proto.pulumirpc.ReadRequest.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ReadRequest} returns this */ proto.pulumirpc.ReadRequest.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 5, value); }; /** * optional string type = 6; * @return {string} */ proto.pulumirpc.ReadRequest.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ReadRequest} returns this */ proto.pulumirpc.ReadRequest.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 6, 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.ReadResponse.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ReadResponse.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.ReadResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ReadResponse.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), properties: (f = msg.getProperties()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), inputs: (f = msg.getInputs()) && 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.ReadResponse} */ proto.pulumirpc.ReadResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ReadResponse; return proto.pulumirpc.ReadResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ReadResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ReadResponse} */ proto.pulumirpc.ReadResponse.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 = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setProperties(value); break; case 3: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setInputs(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.ReadResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ReadResponse.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.ReadResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ReadResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getProperties(); if (f != null) { writer.writeMessage( 2, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getInputs(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } }; /** * optional string id = 1; * @return {string} */ proto.pulumirpc.ReadResponse.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ReadResponse} returns this */ proto.pulumirpc.ReadResponse.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional google.protobuf.Struct properties = 2; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.ReadResponse.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.ReadResponse} returns this */ proto.pulumirpc.ReadResponse.prototype.setProperties = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.ReadResponse} returns this */ proto.pulumirpc.ReadResponse.prototype.clearProperties = function() { return this.setProperties(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.ReadResponse.prototype.hasProperties = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional google.protobuf.Struct inputs = 3; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.ReadResponse.prototype.getInputs = 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.ReadResponse} returns this */ proto.pulumirpc.ReadResponse.prototype.setInputs = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.ReadResponse} returns this */ proto.pulumirpc.ReadResponse.prototype.clearInputs = function() { return this.setInputs(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.ReadResponse.prototype.hasInputs = function() { return jspb.Message.getField(this, 3) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.UpdateRequest.repeatedFields_ = [6]; 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.UpdateRequest.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.UpdateRequest.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.UpdateRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.UpdateRequest.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), urn: jspb.Message.getFieldWithDefault(msg, 2, ""), olds: (f = msg.getOlds()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), news: (f = msg.getNews()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), timeout: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), ignorechangesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f, preview: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), oldInputs: (f = msg.getOldInputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), name: jspb.Message.getFieldWithDefault(msg, 9, ""), type: jspb.Message.getFieldWithDefault(msg, 10, "") }; 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.UpdateRequest} */ proto.pulumirpc.UpdateRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.UpdateRequest; return proto.pulumirpc.UpdateRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.UpdateRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.UpdateRequest} */ proto.pulumirpc.UpdateRequest.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.setUrn(value); break; case 3: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setOlds(value); break; case 4: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setNews(value); break; case 5: var value = /** @type {number} */ (reader.readDouble()); msg.setTimeout(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.addIgnorechanges(value); break; case 7: var value = /** @type {boolean} */ (reader.readBool()); msg.setPreview(value); break; case 8: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setOldInputs(value); break; case 9: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 10: var value = /** @type {string} */ (reader.readString()); msg.setType(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.UpdateRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.UpdateRequest.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.UpdateRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.UpdateRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getUrn(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getOlds(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getNews(); if (f != null) { writer.writeMessage( 4, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getTimeout(); if (f !== 0.0) { writer.writeDouble( 5, f ); } f = message.getIgnorechangesList(); if (f.length > 0) { writer.writeRepeatedString( 6, f ); } f = message.getPreview(); if (f) { writer.writeBool( 7, f ); } f = message.getOldInputs(); if (f != null) { writer.writeMessage( 8, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getName(); if (f.length > 0) { writer.writeString( 9, f ); } f = message.getType(); if (f.length > 0) { writer.writeString( 10, f ); } }; /** * optional string id = 1; * @return {string} */ proto.pulumirpc.UpdateRequest.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string urn = 2; * @return {string} */ proto.pulumirpc.UpdateRequest.prototype.getUrn = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.setUrn = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional google.protobuf.Struct olds = 3; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.UpdateRequest.prototype.getOlds = 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.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.setOlds = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.clearOlds = function() { return this.setOlds(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.UpdateRequest.prototype.hasOlds = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional google.protobuf.Struct news = 4; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.UpdateRequest.prototype.getNews = function() { return /** @type{?proto.google.protobuf.Struct} */ ( jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4)); }; /** * @param {?proto.google.protobuf.Struct|undefined} value * @return {!proto.pulumirpc.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.setNews = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.clearNews = function() { return this.setNews(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.UpdateRequest.prototype.hasNews = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional double timeout = 5; * @return {number} */ proto.pulumirpc.UpdateRequest.prototype.getTimeout = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); }; /** * @param {number} value * @return {!proto.pulumirpc.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.setTimeout = function(value) { return jspb.Message.setProto3FloatField(this, 5, value); }; /** * repeated string ignoreChanges = 6; * @return {!Array<string>} */ proto.pulumirpc.UpdateRequest.prototype.getIgnorechangesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.setIgnorechangesList = function(value) { return jspb.Message.setField(this, 6, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.addIgnorechanges = 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.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.clearIgnorechangesList = function() { return this.setIgnorechangesList([]); }; /** * optional bool preview = 7; * @return {boolean} */ proto.pulumirpc.UpdateRequest.prototype.getPreview = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.setPreview = function(value) { return jspb.Message.setProto3BooleanField(this, 7, value); }; /** * optional google.protobuf.Struct old_inputs = 8; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.UpdateRequest.prototype.getOldInputs = function() { return /** @type{?proto.google.protobuf.Struct} */ ( jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 8)); }; /** * @param {?proto.google.protobuf.Struct|undefined} value * @return {!proto.pulumirpc.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.setOldInputs = function(value) { return jspb.Message.setWrapperField(this, 8, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.clearOldInputs = function() { return this.setOldInputs(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.UpdateRequest.prototype.hasOldInputs = function() { return jspb.Message.getField(this, 8) != null; }; /** * optional string name = 9; * @return {string} */ proto.pulumirpc.UpdateRequest.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 9, value); }; /** * optional string type = 10; * @return {string} */ proto.pulumirpc.UpdateRequest.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.UpdateRequest} returns this */ proto.pulumirpc.UpdateRequest.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 10, 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.UpdateResponse.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.UpdateResponse.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.UpdateResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.UpdateResponse.toObject = function(includeInstance, msg) { var f, obj = { 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.UpdateResponse} */ proto.pulumirpc.UpdateResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.UpdateResponse; return proto.pulumirpc.UpdateResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.UpdateResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.UpdateResponse} */ proto.pulumirpc.UpdateResponse.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; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.UpdateResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.UpdateResponse.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.UpdateResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.UpdateResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getProperties(); if (f != null) { writer.writeMessage( 1, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } }; /** * optional google.protobuf.Struct properties = 1; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.UpdateResponse.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.UpdateResponse} returns this */ proto.pulumirpc.UpdateResponse.prototype.setProperties = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.UpdateResponse} returns this */ proto.pulumirpc.UpdateResponse.prototype.clearProperties = function() { return this.setProperties(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.UpdateResponse.prototype.hasProperties = function() { return jspb.Message.getField(this, 1) != 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.DeleteRequest.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.DeleteRequest.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.DeleteRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.DeleteRequest.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), urn: jspb.Message.getFieldWithDefault(msg, 2, ""), properties: (f = msg.getProperties()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), timeout: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0), oldInputs: (f = msg.getOldInputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), name: jspb.Message.getFieldWithDefault(msg, 6, ""), type: jspb.Message.getFieldWithDefault(msg, 7, "") }; 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.DeleteRequest} */ proto.pulumirpc.DeleteRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.DeleteRequest; return proto.pulumirpc.DeleteRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.DeleteRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.DeleteRequest} */ proto.pulumirpc.DeleteRequest.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.setUrn(value); break; case 3: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setProperties(value); break; case 4: var value = /** @type {number} */ (reader.readDouble()); msg.setTimeout(value); break; case 5: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setOldInputs(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setType(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.DeleteRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.DeleteRequest.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.DeleteRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.DeleteRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getUrn(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getProperties(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getTimeout(); if (f !== 0.0) { writer.writeDouble( 4, f ); } f = message.getOldInputs(); if (f != null) { writer.writeMessage( 5, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getName(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getType(); if (f.length > 0) { writer.writeString( 7, f ); } }; /** * optional string id = 1; * @return {string} */ proto.pulumirpc.DeleteRequest.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.DeleteRequest} returns this */ proto.pulumirpc.DeleteRequest.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string urn = 2; * @return {string} */ proto.pulumirpc.DeleteRequest.prototype.getUrn = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.DeleteRequest} returns this */ proto.pulumirpc.DeleteRequest.prototype.setUrn = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional google.protobuf.Struct properties = 3; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.DeleteRequest.prototype.getProperties = 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.DeleteRequest} returns this */ proto.pulumirpc.DeleteRequest.prototype.setProperties = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.DeleteRequest} returns this */ proto.pulumirpc.DeleteRequest.prototype.clearProperties = function() { return this.setProperties(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.DeleteRequest.prototype.hasProperties = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional double timeout = 4; * @return {number} */ proto.pulumirpc.DeleteRequest.prototype.getTimeout = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0)); }; /** * @param {number} value * @return {!proto.pulumirpc.DeleteRequest} returns this */ proto.pulumirpc.DeleteRequest.prototype.setTimeout = function(value) { return jspb.Message.setProto3FloatField(this, 4, value); }; /** * optional google.protobuf.Struct old_inputs = 5; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.DeleteRequest.prototype.getOldInputs = 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.DeleteRequest} returns this */ proto.pulumirpc.DeleteRequest.prototype.setOldInputs = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.DeleteRequest} returns this */ proto.pulumirpc.DeleteRequest.prototype.clearOldInputs = function() { return this.setOldInputs(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.DeleteRequest.prototype.hasOldInputs = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional string name = 6; * @return {string} */ proto.pulumirpc.DeleteRequest.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.DeleteRequest} returns this */ proto.pulumirpc.DeleteRequest.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional string type = 7; * @return {string} */ proto.pulumirpc.DeleteRequest.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.DeleteRequest} returns this */ proto.pulumirpc.DeleteRequest.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.ConstructRequest.repeatedFields_ = [15,16,14,18,22,23]; 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.ConstructRequest.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ConstructRequest.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.ConstructRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConstructRequest.toObject = function(includeInstance, msg) { var f, obj = { project: jspb.Message.getFieldWithDefault(msg, 1, ""), stack: jspb.Message.getFieldWithDefault(msg, 2, ""), configMap: (f = msg.getConfigMap()) ? f.toObject(includeInstance, undefined) : [], dryrun: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), parallel: jspb.Message.getFieldWithDefault(msg, 5, 0), monitorendpoint: jspb.Message.getFieldWithDefault(msg, 6, ""), type: jspb.Message.getFieldWithDefault(msg, 7, ""), name: jspb.Message.getFieldWithDefault(msg, 8, ""), parent: jspb.Message.getFieldWithDefault(msg, 9, ""), inputs: (f = msg.getInputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), inputdependenciesMap: (f = msg.getInputdependenciesMap()) ? f.toObject(includeInstance, proto.pulumirpc.ConstructRequest.PropertyDependencies.toObject) : [], providersMap: (f = msg.getProvidersMap()) ? f.toObject(includeInstance, undefined) : [], dependenciesList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f, configsecretkeysList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f, organization: jspb.Message.getFieldWithDefault(msg, 17, ""), protect: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), aliasesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f, additionalsecretoutputsList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f, customtimeouts: (f = msg.getCustomtimeouts()) && proto.pulumirpc.ConstructRequest.CustomTimeouts.toObject(includeInstance, f), deletedwith: jspb.Message.getFieldWithDefault(msg, 20, ""), deletebeforereplace: jspb.Message.getBooleanFieldWithDefault(msg, 21, false), ignorechangesList: (f = jspb.Message.getRepeatedField(msg, 22)) == null ? undefined : f, replaceonchangesList: (f = jspb.Message.getRepeatedField(msg, 23)) == null ? undefined : f, retainondelete: jspb.Message.getBooleanFieldWithDefault(msg, 24, false), acceptsOutputValues: jspb.Message.getBooleanFieldWithDefault(msg, 25, 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.ConstructRequest} */ proto.pulumirpc.ConstructRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ConstructRequest; return proto.pulumirpc.ConstructRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ConstructRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ConstructRequest} */ proto.pulumirpc.ConstructRequest.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.setProject(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setStack(value); break; case 3: var value = msg.getConfigMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); }); break; case 4: var value = /** @type {boolean} */ (reader.readBool()); msg.setDryrun(value); break; case 5: var value = /** @type {number} */ (reader.readInt32()); msg.setParallel(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setMonitorendpoint(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setType(value); break; case 8: var value = /** @type {string} */ (reader.readString()); msg.setName(value); break; case 9: var value = /** @type {string} */ (reader.readString()); msg.setParent(value); break; case 10: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setInputs(value); break; case 11: var value = msg.getInputdependenciesMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.pulumirpc.ConstructRequest.PropertyDependencies.deserializeBinaryFromReader, "", new proto.pulumirpc.ConstructRequest.PropertyDependencies()); }); break; case 13: 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 = /** @type {string} */ (reader.readString()); msg.addDependencies(value); break; case 16: var value = /** @type {string} */ (reader.readString()); msg.addConfigsecretkeys(value); break; case 17: var value = /** @type {string} */ (reader.readString()); msg.setOrganization(value); break; case 12: var value = /** @type {boolean} */ (reader.readBool()); msg.setProtect(value); break; case 14: var value = /** @type {string} */ (reader.readString()); msg.addAliases(value); break; case 18: var value = /** @type {string} */ (reader.readString()); msg.addAdditionalsecretoutputs(value); break; case 19: var value = new proto.pulumirpc.ConstructRequest.CustomTimeouts; reader.readMessage(value,proto.pulumirpc.ConstructRequest.CustomTimeouts.deserializeBinaryFromReader); msg.setCustomtimeouts(value); break; case 20: var value = /** @type {string} */ (reader.readString()); msg.setDeletedwith(value); break; case 21: var value = /** @type {boolean} */ (reader.readBool()); msg.setDeletebeforereplace(value); break; case 22: var value = /** @type {string} */ (reader.readString()); msg.addIgnorechanges(value); break; case 23: var value = /** @type {string} */ (reader.readString()); msg.addReplaceonchanges(value); break; case 24: var value = /** @type {boolean} */ (reader.readBool()); msg.setRetainondelete(value); break; case 25: var value = /** @type {boolean} */ (reader.readBool()); msg.setAcceptsOutputValues(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.ConstructRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ConstructRequest.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.ConstructRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConstructRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getProject(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getStack(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getConfigMap(true); if (f && f.getLength() > 0) { f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } f = message.getDryrun(); if (f) { writer.writeBool( 4, f ); } f = message.getParallel(); if (f !== 0) { writer.writeInt32( 5, f ); } f = message.getMonitorendpoint(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getType(); if (f.length > 0) { writer.writeString( 7, f ); } f = message.getName(); if (f.length > 0) { writer.writeString( 8, f ); } f = message.getParent(); if (f.length > 0) { writer.writeString( 9, f ); } f = message.getInputs(); if (f != null) { writer.writeMessage( 10, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getInputdependenciesMap(true); if (f && f.getLength() > 0) { f.serializeBinary(11, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.pulumirpc.ConstructRequest.PropertyDependencies.serializeBinaryToWriter); } f = message.getProvidersMap(true); if (f && f.getLength() > 0) { f.serializeBinary(13, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } f = message.getDependenciesList(); if (f.length > 0) { writer.writeRepeatedString( 15, f ); } f = message.getConfigsecretkeysList(); if (f.length > 0) { writer.writeRepeatedString( 16, f ); } f = message.getOrganization(); if (f.length > 0) { writer.writeString( 17, f ); } f = message.getProtect(); if (f) { writer.writeBool( 12, f ); } f = message.getAliasesList(); if (f.length > 0) { writer.writeRepeatedString( 14, f ); } f = message.getAdditionalsecretoutputsList(); if (f.length > 0) { writer.writeRepeatedString( 18, f ); } f = message.getCustomtimeouts(); if (f != null) { writer.writeMessage( 19, f, proto.pulumirpc.ConstructRequest.CustomTimeouts.serializeBinaryToWriter ); } f = message.getDeletedwith(); if (f.length > 0) { writer.writeString( 20, f ); } f = message.getDeletebeforereplace(); if (f) { writer.writeBool( 21, f ); } f = message.getIgnorechangesList(); if (f.length > 0) { writer.writeRepeatedString( 22, f ); } f = message.getReplaceonchangesList(); if (f.length > 0) { writer.writeRepeatedString( 23, f ); } f = message.getRetainondelete(); if (f) { writer.writeBool( 24, f ); } f = message.getAcceptsOutputValues(); if (f) { writer.writeBool( 25, f ); } }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.ConstructRequest.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.ConstructRequest.PropertyDependencies.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ConstructRequest.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.ConstructRequest.PropertyDependencies} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConstructRequest.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.ConstructRequest.PropertyDependencies} */ proto.pulumirpc.ConstructRequest.PropertyDependencies.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ConstructRequest.PropertyDependencies; return proto.pulumirpc.ConstructRequest.PropertyDependencies.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ConstructRequest.PropertyDependencies} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ConstructRequest.PropertyDependencies} */ proto.pulumirpc.ConstructRequest.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.ConstructRequest.PropertyDependencies.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ConstructRequest.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.ConstructRequest.PropertyDependencies} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConstructRequest.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.ConstructRequest.PropertyDependencies.prototype.getUrnsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.ConstructRequest.PropertyDependencies} returns this */ proto.pulumirpc.ConstructRequest.PropertyDependencies.prototype.setUrnsList = function(value) { return jspb.Message.setField(this, 1, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.ConstructRequest.PropertyDependencies} returns this */ proto.pulumirpc.ConstructRequest.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.ConstructRequest.PropertyDependencies} returns this */ proto.pulumirpc.ConstructRequest.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.ConstructRequest.CustomTimeouts.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ConstructRequest.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.ConstructRequest.CustomTimeouts} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConstructRequest.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.ConstructRequest.CustomTimeouts} */ proto.pulumirpc.ConstructRequest.CustomTimeouts.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ConstructRequest.CustomTimeouts; return proto.pulumirpc.ConstructRequest.CustomTimeouts.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ConstructRequest.CustomTimeouts} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ConstructRequest.CustomTimeouts} */ proto.pulumirpc.ConstructRequest.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.ConstructRequest.CustomTimeouts.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ConstructRequest.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.ConstructRequest.CustomTimeouts} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConstructRequest.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.ConstructRequest.CustomTimeouts.prototype.getCreate = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ConstructRequest.CustomTimeouts} returns this */ proto.pulumirpc.ConstructRequest.CustomTimeouts.prototype.setCreate = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string update = 2; * @return {string} */ proto.pulumirpc.ConstructRequest.CustomTimeouts.prototype.getUpdate = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ConstructRequest.CustomTimeouts} returns this */ proto.pulumirpc.ConstructRequest.CustomTimeouts.prototype.setUpdate = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string delete = 3; * @return {string} */ proto.pulumirpc.ConstructRequest.CustomTimeouts.prototype.getDelete = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ConstructRequest.CustomTimeouts} returns this */ proto.pulumirpc.ConstructRequest.CustomTimeouts.prototype.setDelete = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * optional string project = 1; * @return {string} */ proto.pulumirpc.ConstructRequest.prototype.getProject = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setProject = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string stack = 2; * @return {string} */ proto.pulumirpc.ConstructRequest.prototype.getStack = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setStack = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * map<string, string> config = 3; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<string,string>} */ proto.pulumirpc.ConstructRequest.prototype.getConfigMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<string,string>} */ ( jspb.Message.getMapField(this, 3, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.clearConfigMap = function() { this.getConfigMap().clear(); return this;}; /** * optional bool dryRun = 4; * @return {boolean} */ proto.pulumirpc.ConstructRequest.prototype.getDryrun = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setDryrun = function(value) { return jspb.Message.setProto3BooleanField(this, 4, value); }; /** * optional int32 parallel = 5; * @return {number} */ proto.pulumirpc.ConstructRequest.prototype.getParallel = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {number} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setParallel = function(value) { return jspb.Message.setProto3IntField(this, 5, value); }; /** * optional string monitorEndpoint = 6; * @return {string} */ proto.pulumirpc.ConstructRequest.prototype.getMonitorendpoint = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setMonitorendpoint = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional string type = 7; * @return {string} */ proto.pulumirpc.ConstructRequest.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 7, value); }; /** * optional string name = 8; * @return {string} */ proto.pulumirpc.ConstructRequest.prototype.getName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setName = function(value) { return jspb.Message.setProto3StringField(this, 8, value); }; /** * optional string parent = 9; * @return {string} */ proto.pulumirpc.ConstructRequest.prototype.getParent = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setParent = function(value) { return jspb.Message.setProto3StringField(this, 9, value); }; /** * optional google.protobuf.Struct inputs = 10; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.ConstructRequest.prototype.getInputs = function() { return /** @type{?proto.google.protobuf.Struct} */ ( jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 10)); }; /** * @param {?proto.google.protobuf.Struct|undefined} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setInputs = function(value) { return jspb.Message.setWrapperField(this, 10, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.clearInputs = function() { return this.setInputs(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.ConstructRequest.prototype.hasInputs = function() { return jspb.Message.getField(this, 10) != null; }; /** * map<string, PropertyDependencies> inputDependencies = 11; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<string,!proto.pulumirpc.ConstructRequest.PropertyDependencies>} */ proto.pulumirpc.ConstructRequest.prototype.getInputdependenciesMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<string,!proto.pulumirpc.ConstructRequest.PropertyDependencies>} */ ( jspb.Message.getMapField(this, 11, opt_noLazyCreate, proto.pulumirpc.ConstructRequest.PropertyDependencies)); }; /** * Clears values from the map. The map will be non-null. * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.clearInputdependenciesMap = function() { this.getInputdependenciesMap().clear(); return this;}; /** * map<string, string> providers = 13; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<string,string>} */ proto.pulumirpc.ConstructRequest.prototype.getProvidersMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<string,string>} */ ( jspb.Message.getMapField(this, 13, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.clearProvidersMap = function() { this.getProvidersMap().clear(); return this;}; /** * repeated string dependencies = 15; * @return {!Array<string>} */ proto.pulumirpc.ConstructRequest.prototype.getDependenciesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 15)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setDependenciesList = function(value) { return jspb.Message.setField(this, 15, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.addDependencies = 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.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.clearDependenciesList = function() { return this.setDependenciesList([]); }; /** * repeated string configSecretKeys = 16; * @return {!Array<string>} */ proto.pulumirpc.ConstructRequest.prototype.getConfigsecretkeysList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 16)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setConfigsecretkeysList = function(value) { return jspb.Message.setField(this, 16, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.addConfigsecretkeys = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 16, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.clearConfigsecretkeysList = function() { return this.setConfigsecretkeysList([]); }; /** * optional string organization = 17; * @return {string} */ proto.pulumirpc.ConstructRequest.prototype.getOrganization = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setOrganization = function(value) { return jspb.Message.setProto3StringField(this, 17, value); }; /** * optional bool protect = 12; * @return {boolean} */ proto.pulumirpc.ConstructRequest.prototype.getProtect = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setProtect = function(value) { return jspb.Message.setProto3BooleanField(this, 12, value); }; /** * repeated string aliases = 14; * @return {!Array<string>} */ proto.pulumirpc.ConstructRequest.prototype.getAliasesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 14)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setAliasesList = function(value) { return jspb.Message.setField(this, 14, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.addAliases = 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.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.clearAliasesList = function() { return this.setAliasesList([]); }; /** * repeated string additionalSecretOutputs = 18; * @return {!Array<string>} */ proto.pulumirpc.ConstructRequest.prototype.getAdditionalsecretoutputsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 18)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setAdditionalsecretoutputsList = function(value) { return jspb.Message.setField(this, 18, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.addAdditionalsecretoutputs = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 18, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.clearAdditionalsecretoutputsList = function() { return this.setAdditionalsecretoutputsList([]); }; /** * optional CustomTimeouts customTimeouts = 19; * @return {?proto.pulumirpc.ConstructRequest.CustomTimeouts} */ proto.pulumirpc.ConstructRequest.prototype.getCustomtimeouts = function() { return /** @type{?proto.pulumirpc.ConstructRequest.CustomTimeouts} */ ( jspb.Message.getWrapperField(this, proto.pulumirpc.ConstructRequest.CustomTimeouts, 19)); }; /** * @param {?proto.pulumirpc.ConstructRequest.CustomTimeouts|undefined} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setCustomtimeouts = function(value) { return jspb.Message.setWrapperField(this, 19, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.clearCustomtimeouts = function() { return this.setCustomtimeouts(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.ConstructRequest.prototype.hasCustomtimeouts = function() { return jspb.Message.getField(this, 19) != null; }; /** * optional string deletedWith = 20; * @return {string} */ proto.pulumirpc.ConstructRequest.prototype.getDeletedwith = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setDeletedwith = function(value) { return jspb.Message.setProto3StringField(this, 20, value); }; /** * optional bool deleteBeforeReplace = 21; * @return {boolean} */ proto.pulumirpc.ConstructRequest.prototype.getDeletebeforereplace = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setDeletebeforereplace = function(value) { return jspb.Message.setProto3BooleanField(this, 21, value); }; /** * repeated string ignoreChanges = 22; * @return {!Array<string>} */ proto.pulumirpc.ConstructRequest.prototype.getIgnorechangesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 22)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setIgnorechangesList = function(value) { return jspb.Message.setField(this, 22, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.addIgnorechanges = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 22, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.clearIgnorechangesList = function() { return this.setIgnorechangesList([]); }; /** * repeated string replaceOnChanges = 23; * @return {!Array<string>} */ proto.pulumirpc.ConstructRequest.prototype.getReplaceonchangesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 23)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setReplaceonchangesList = function(value) { return jspb.Message.setField(this, 23, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.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.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.clearReplaceonchangesList = function() { return this.setReplaceonchangesList([]); }; /** * optional bool retainOnDelete = 24; * @return {boolean} */ proto.pulumirpc.ConstructRequest.prototype.getRetainondelete = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 24, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setRetainondelete = function(value) { return jspb.Message.setProto3BooleanField(this, 24, value); }; /** * optional bool accepts_output_values = 25; * @return {boolean} */ proto.pulumirpc.ConstructRequest.prototype.getAcceptsOutputValues = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 25, false)); }; /** * @param {boolean} value * @return {!proto.pulumirpc.ConstructRequest} returns this */ proto.pulumirpc.ConstructRequest.prototype.setAcceptsOutputValues = function(value) { return jspb.Message.setProto3BooleanField(this, 25, 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.ConstructResponse.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ConstructResponse.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.ConstructResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConstructResponse.toObject = function(includeInstance, msg) { var f, obj = { urn: jspb.Message.getFieldWithDefault(msg, 1, ""), state: (f = msg.getState()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), statedependenciesMap: (f = msg.getStatedependenciesMap()) ? f.toObject(includeInstance, proto.pulumirpc.ConstructResponse.PropertyDependencies.toObject) : [] }; 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.ConstructResponse} */ proto.pulumirpc.ConstructResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ConstructResponse; return proto.pulumirpc.ConstructResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ConstructResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ConstructResponse} */ proto.pulumirpc.ConstructResponse.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.setState(value); break; case 3: var value = msg.getStatedependenciesMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.pulumirpc.ConstructResponse.PropertyDependencies.deserializeBinaryFromReader, "", new proto.pulumirpc.ConstructResponse.PropertyDependencies()); }); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.ConstructResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ConstructResponse.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.ConstructResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConstructResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getUrn(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getState(); if (f != null) { writer.writeMessage( 2, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getStatedependenciesMap(true); if (f && f.getLength() > 0) { f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.pulumirpc.ConstructResponse.PropertyDependencies.serializeBinaryToWriter); } }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.ConstructResponse.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.ConstructResponse.PropertyDependencies.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ConstructResponse.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.ConstructResponse.PropertyDependencies} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConstructResponse.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.ConstructResponse.PropertyDependencies} */ proto.pulumirpc.ConstructResponse.PropertyDependencies.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ConstructResponse.PropertyDependencies; return proto.pulumirpc.ConstructResponse.PropertyDependencies.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ConstructResponse.PropertyDependencies} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ConstructResponse.PropertyDependencies} */ proto.pulumirpc.ConstructResponse.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.ConstructResponse.PropertyDependencies.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ConstructResponse.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.ConstructResponse.PropertyDependencies} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ConstructResponse.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.ConstructResponse.PropertyDependencies.prototype.getUrnsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.ConstructResponse.PropertyDependencies} returns this */ proto.pulumirpc.ConstructResponse.PropertyDependencies.prototype.setUrnsList = function(value) { return jspb.Message.setField(this, 1, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.ConstructResponse.PropertyDependencies} returns this */ proto.pulumirpc.ConstructResponse.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.ConstructResponse.PropertyDependencies} returns this */ proto.pulumirpc.ConstructResponse.PropertyDependencies.prototype.clearUrnsList = function() { return this.setUrnsList([]); }; /** * optional string urn = 1; * @return {string} */ proto.pulumirpc.ConstructResponse.prototype.getUrn = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ConstructResponse} returns this */ proto.pulumirpc.ConstructResponse.prototype.setUrn = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional google.protobuf.Struct state = 2; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.ConstructResponse.prototype.getState = 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.ConstructResponse} returns this */ proto.pulumirpc.ConstructResponse.prototype.setState = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.ConstructResponse} returns this */ proto.pulumirpc.ConstructResponse.prototype.clearState = function() { return this.setState(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.ConstructResponse.prototype.hasState = function() { return jspb.Message.getField(this, 2) != null; }; /** * map<string, PropertyDependencies> stateDependencies = 3; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<string,!proto.pulumirpc.ConstructResponse.PropertyDependencies>} */ proto.pulumirpc.ConstructResponse.prototype.getStatedependenciesMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<string,!proto.pulumirpc.ConstructResponse.PropertyDependencies>} */ ( jspb.Message.getMapField(this, 3, opt_noLazyCreate, proto.pulumirpc.ConstructResponse.PropertyDependencies)); }; /** * Clears values from the map. The map will be non-null. * @return {!proto.pulumirpc.ConstructResponse} returns this */ proto.pulumirpc.ConstructResponse.prototype.clearStatedependenciesMap = function() { this.getStatedependenciesMap().clear(); return this;}; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.ErrorResourceInitFailed.repeatedFields_ = [3]; 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.ErrorResourceInitFailed.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.ErrorResourceInitFailed.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.ErrorResourceInitFailed} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ErrorResourceInitFailed.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), properties: (f = msg.getProperties()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), reasonsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, inputs: (f = msg.getInputs()) && 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.ErrorResourceInitFailed} */ proto.pulumirpc.ErrorResourceInitFailed.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.ErrorResourceInitFailed; return proto.pulumirpc.ErrorResourceInitFailed.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.ErrorResourceInitFailed} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.ErrorResourceInitFailed} */ proto.pulumirpc.ErrorResourceInitFailed.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 = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setProperties(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.addReasons(value); break; case 4: var value = new google_protobuf_struct_pb.Struct; reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setInputs(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.ErrorResourceInitFailed.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.ErrorResourceInitFailed.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.ErrorResourceInitFailed} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.ErrorResourceInitFailed.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getProperties(); if (f != null) { writer.writeMessage( 2, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } f = message.getReasonsList(); if (f.length > 0) { writer.writeRepeatedString( 3, f ); } f = message.getInputs(); if (f != null) { writer.writeMessage( 4, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } }; /** * optional string id = 1; * @return {string} */ proto.pulumirpc.ErrorResourceInitFailed.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.ErrorResourceInitFailed} returns this */ proto.pulumirpc.ErrorResourceInitFailed.prototype.setId = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional google.protobuf.Struct properties = 2; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.ErrorResourceInitFailed.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.ErrorResourceInitFailed} returns this */ proto.pulumirpc.ErrorResourceInitFailed.prototype.setProperties = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.ErrorResourceInitFailed} returns this */ proto.pulumirpc.ErrorResourceInitFailed.prototype.clearProperties = function() { return this.setProperties(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.ErrorResourceInitFailed.prototype.hasProperties = function() { return jspb.Message.getField(this, 2) != null; }; /** * repeated string reasons = 3; * @return {!Array<string>} */ proto.pulumirpc.ErrorResourceInitFailed.prototype.getReasonsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.ErrorResourceInitFailed} returns this */ proto.pulumirpc.ErrorResourceInitFailed.prototype.setReasonsList = function(value) { return jspb.Message.setField(this, 3, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.ErrorResourceInitFailed} returns this */ proto.pulumirpc.ErrorResourceInitFailed.prototype.addReasons = 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.ErrorResourceInitFailed} returns this */ proto.pulumirpc.ErrorResourceInitFailed.prototype.clearReasonsList = function() { return this.setReasonsList([]); }; /** * optional google.protobuf.Struct inputs = 4; * @return {?proto.google.protobuf.Struct} */ proto.pulumirpc.ErrorResourceInitFailed.prototype.getInputs = function() { return /** @type{?proto.google.protobuf.Struct} */ ( jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4)); }; /** * @param {?proto.google.protobuf.Struct|undefined} value * @return {!proto.pulumirpc.ErrorResourceInitFailed} returns this */ proto.pulumirpc.ErrorResourceInitFailed.prototype.setInputs = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. * @return {!proto.pulumirpc.ErrorResourceInitFailed} returns this */ proto.pulumirpc.ErrorResourceInitFailed.prototype.clearInputs = function() { return this.setInputs(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.pulumirpc.ErrorResourceInitFailed.prototype.hasInputs = function() { return jspb.Message.getField(this, 4) != 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.GetMappingRequest.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.GetMappingRequest.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.GetMappingRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.GetMappingRequest.toObject = function(includeInstance, msg) { var f, obj = { key: jspb.Message.getFieldWithDefault(msg, 1, ""), provider: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.pulumirpc.GetMappingRequest} */ proto.pulumirpc.GetMappingRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.GetMappingRequest; return proto.pulumirpc.GetMappingRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.GetMappingRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.GetMappingRequest} */ proto.pulumirpc.GetMappingRequest.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.setKey(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setProvider(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.GetMappingRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.GetMappingRequest.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.GetMappingRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.GetMappingRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getKey(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getProvider(); if (f.length > 0) { writer.writeString( 2, f ); } }; /** * optional string key = 1; * @return {string} */ proto.pulumirpc.GetMappingRequest.prototype.getKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.GetMappingRequest} returns this */ proto.pulumirpc.GetMappingRequest.prototype.setKey = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string provider = 2; * @return {string} */ proto.pulumirpc.GetMappingRequest.prototype.getProvider = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.GetMappingRequest} returns this */ proto.pulumirpc.GetMappingRequest.prototype.setProvider = function(value) { return jspb.Message.setProto3StringField(this, 2, 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.GetMappingResponse.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.GetMappingResponse.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.GetMappingResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.GetMappingResponse.toObject = function(includeInstance, msg) { var f, obj = { provider: jspb.Message.getFieldWithDefault(msg, 1, ""), data: msg.getData_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.GetMappingResponse} */ proto.pulumirpc.GetMappingResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.GetMappingResponse; return proto.pulumirpc.GetMappingResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.GetMappingResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.GetMappingResponse} */ proto.pulumirpc.GetMappingResponse.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 {!Uint8Array} */ (reader.readBytes()); msg.setData(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.GetMappingResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.GetMappingResponse.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.GetMappingResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.GetMappingResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getProvider(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getData_asU8(); if (f.length > 0) { writer.writeBytes( 2, f ); } }; /** * optional string provider = 1; * @return {string} */ proto.pulumirpc.GetMappingResponse.prototype.getProvider = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.GetMappingResponse} returns this */ proto.pulumirpc.GetMappingResponse.prototype.setProvider = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional bytes data = 2; * @return {!(string|Uint8Array)} */ proto.pulumirpc.GetMappingResponse.prototype.getData = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * optional bytes data = 2; * This is a type-conversion wrapper around `getData()` * @return {string} */ proto.pulumirpc.GetMappingResponse.prototype.getData_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getData())); }; /** * optional bytes data = 2; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getData()` * @return {!Uint8Array} */ proto.pulumirpc.GetMappingResponse.prototype.getData_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getData())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.pulumirpc.GetMappingResponse} returns this */ proto.pulumirpc.GetMappingResponse.prototype.setData = function(value) { return jspb.Message.setProto3BytesField(this, 2, 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.GetMappingsRequest.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.GetMappingsRequest.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.GetMappingsRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.GetMappingsRequest.toObject = function(includeInstance, msg) { var f, obj = { key: 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.GetMappingsRequest} */ proto.pulumirpc.GetMappingsRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.GetMappingsRequest; return proto.pulumirpc.GetMappingsRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.GetMappingsRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.GetMappingsRequest} */ proto.pulumirpc.GetMappingsRequest.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.setKey(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.GetMappingsRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.GetMappingsRequest.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.GetMappingsRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.GetMappingsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getKey(); if (f.length > 0) { writer.writeString( 1, f ); } }; /** * optional string key = 1; * @return {string} */ proto.pulumirpc.GetMappingsRequest.prototype.getKey = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.pulumirpc.GetMappingsRequest} returns this */ proto.pulumirpc.GetMappingsRequest.prototype.setKey = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.pulumirpc.GetMappingsResponse.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.GetMappingsResponse.prototype.toObject = function(opt_includeInstance) { return proto.pulumirpc.GetMappingsResponse.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.GetMappingsResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.GetMappingsResponse.toObject = function(includeInstance, msg) { var f, obj = { providersList: (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.GetMappingsResponse} */ proto.pulumirpc.GetMappingsResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.pulumirpc.GetMappingsResponse; return proto.pulumirpc.GetMappingsResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.pulumirpc.GetMappingsResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.pulumirpc.GetMappingsResponse} */ proto.pulumirpc.GetMappingsResponse.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.addProviders(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.pulumirpc.GetMappingsResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.pulumirpc.GetMappingsResponse.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.GetMappingsResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.pulumirpc.GetMappingsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getProvidersList(); if (f.length > 0) { writer.writeRepeatedString( 1, f ); } }; /** * repeated string providers = 1; * @return {!Array<string>} */ proto.pulumirpc.GetMappingsResponse.prototype.getProvidersList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array<string>} value * @return {!proto.pulumirpc.GetMappingsResponse} returns this */ proto.pulumirpc.GetMappingsResponse.prototype.setProvidersList = function(value) { return jspb.Message.setField(this, 1, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.pulumirpc.GetMappingsResponse} returns this */ proto.pulumirpc.GetMappingsResponse.prototype.addProviders = 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.GetMappingsResponse} returns this */ proto.pulumirpc.GetMappingsResponse.prototype.clearProvidersList = function() { return this.setProvidersList([]); }; goog.object.extend(exports, proto.pulumirpc);