mirror of https://github.com/pulumi/pulumi.git
773 lines
26 KiB
C#
773 lines
26 KiB
C#
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: resource.proto
|
|
#pragma warning disable 1591, 0612, 3021
|
|
#region Designer generated code
|
|
|
|
using pb = global::Google.Protobuf;
|
|
using pbc = global::Google.Protobuf.Collections;
|
|
using pbr = global::Google.Protobuf.Reflection;
|
|
using scg = global::System.Collections.Generic;
|
|
namespace Pulumirpc {
|
|
|
|
/// <summary>Holder for reflection information generated from resource.proto</summary>
|
|
public static partial class ResourceReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for resource.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static ResourceReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"Cg5yZXNvdXJjZS5wcm90bxIJcHVsdW1pcnBjGhtnb29nbGUvcHJvdG9idWYv",
|
|
"ZW1wdHkucHJvdG8aHGdvb2dsZS9wcm90b2J1Zi9zdHJ1Y3QucHJvdG8aDnBy",
|
|
"b3ZpZGVyLnByb3RvIqUBChdSZWdpc3RlclJlc291cmNlUmVxdWVzdBIMCgR0",
|
|
"eXBlGAEgASgJEgwKBG5hbWUYAiABKAkSDgoGcGFyZW50GAMgASgJEg4KBmN1",
|
|
"c3RvbRgEIAEoCBInCgZvYmplY3QYBSABKAsyFy5nb29nbGUucHJvdG9idWYu",
|
|
"U3RydWN0Eg8KB3Byb3RlY3QYBiABKAgSFAoMZGVwZW5kZW5jaWVzGAcgAygJ",
|
|
"In0KGFJlZ2lzdGVyUmVzb3VyY2VSZXNwb25zZRILCgN1cm4YASABKAkSCgoC",
|
|
"aWQYAiABKAkSJwoGb2JqZWN0GAMgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0",
|
|
"cnVjdBIOCgZzdGFibGUYBCABKAgSDwoHc3RhYmxlcxgFIAMoCSJXCh5SZWdp",
|
|
"c3RlclJlc291cmNlT3V0cHV0c1JlcXVlc3QSCwoDdXJuGAEgASgJEigKB291",
|
|
"dHB1dHMYAiABKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0MpECCg9SZXNv",
|
|
"dXJjZU1vbml0b3ISPwoGSW52b2tlEhgucHVsdW1pcnBjLkludm9rZVJlcXVl",
|
|
"c3QaGS5wdWx1bWlycGMuSW52b2tlUmVzcG9uc2UiABJdChBSZWdpc3RlclJl",
|
|
"c291cmNlEiIucHVsdW1pcnBjLlJlZ2lzdGVyUmVzb3VyY2VSZXF1ZXN0GiMu",
|
|
"cHVsdW1pcnBjLlJlZ2lzdGVyUmVzb3VyY2VSZXNwb25zZSIAEl4KF1JlZ2lz",
|
|
"dGVyUmVzb3VyY2VPdXRwdXRzEikucHVsdW1pcnBjLlJlZ2lzdGVyUmVzb3Vy",
|
|
"Y2VPdXRwdXRzUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAYgZw",
|
|
"cm90bzM="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Pulumirpc.ProviderReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pulumirpc.RegisterResourceRequest), global::Pulumirpc.RegisterResourceRequest.Parser, new[]{ "Type", "Name", "Parent", "Custom", "Object", "Protect", "Dependencies" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pulumirpc.RegisterResourceResponse), global::Pulumirpc.RegisterResourceResponse.Parser, new[]{ "Urn", "Id", "Object", "Stable", "Stables" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pulumirpc.RegisterResourceOutputsRequest), global::Pulumirpc.RegisterResourceOutputsRequest.Parser, new[]{ "Urn", "Outputs" }, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
/// <summary>
|
|
/// RegisterResourceRequest contains information about a resource object that was newly allocated.
|
|
/// </summary>
|
|
public sealed partial class RegisterResourceRequest : pb::IMessage<RegisterResourceRequest> {
|
|
private static readonly pb::MessageParser<RegisterResourceRequest> _parser = new pb::MessageParser<RegisterResourceRequest>(() => new RegisterResourceRequest());
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<RegisterResourceRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Pulumirpc.ResourceReflection.Descriptor.MessageTypes[0]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public RegisterResourceRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public RegisterResourceRequest(RegisterResourceRequest other) : this() {
|
|
type_ = other.type_;
|
|
name_ = other.name_;
|
|
parent_ = other.parent_;
|
|
custom_ = other.custom_;
|
|
Object = other.object_ != null ? other.Object.Clone() : null;
|
|
protect_ = other.protect_;
|
|
dependencies_ = other.dependencies_.Clone();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public RegisterResourceRequest Clone() {
|
|
return new RegisterResourceRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "type" field.</summary>
|
|
public const int TypeFieldNumber = 1;
|
|
private string type_ = "";
|
|
/// <summary>
|
|
/// the type of the object allocated.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Type {
|
|
get { return type_; }
|
|
set {
|
|
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "name" field.</summary>
|
|
public const int NameFieldNumber = 2;
|
|
private string name_ = "";
|
|
/// <summary>
|
|
/// the name, for URN purposes, of the object.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Name {
|
|
get { return name_; }
|
|
set {
|
|
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "parent" field.</summary>
|
|
public const int ParentFieldNumber = 3;
|
|
private string parent_ = "";
|
|
/// <summary>
|
|
/// an optional parent URN that this child resource belongs to.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Parent {
|
|
get { return parent_; }
|
|
set {
|
|
parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "custom" field.</summary>
|
|
public const int CustomFieldNumber = 4;
|
|
private bool custom_;
|
|
/// <summary>
|
|
/// true if the resource is a custom, managed by a plugin's CRUD operations.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Custom {
|
|
get { return custom_; }
|
|
set {
|
|
custom_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "object" field.</summary>
|
|
public const int ObjectFieldNumber = 5;
|
|
private global::Google.Protobuf.WellKnownTypes.Struct object_;
|
|
/// <summary>
|
|
/// an object produced by the interpreter/source.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Google.Protobuf.WellKnownTypes.Struct Object {
|
|
get { return object_; }
|
|
set {
|
|
object_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "protect" field.</summary>
|
|
public const int ProtectFieldNumber = 6;
|
|
private bool protect_;
|
|
/// <summary>
|
|
/// true if the resource should be marked protected.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Protect {
|
|
get { return protect_; }
|
|
set {
|
|
protect_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "dependencies" field.</summary>
|
|
public const int DependenciesFieldNumber = 7;
|
|
private static readonly pb::FieldCodec<string> _repeated_dependencies_codec
|
|
= pb::FieldCodec.ForString(58);
|
|
private readonly pbc::RepeatedField<string> dependencies_ = new pbc::RepeatedField<string>();
|
|
/// <summary>
|
|
/// a list of URNs that this resource depends on, as observed by the language host.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<string> Dependencies {
|
|
get { return dependencies_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as RegisterResourceRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(RegisterResourceRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Type != other.Type) return false;
|
|
if (Name != other.Name) return false;
|
|
if (Parent != other.Parent) return false;
|
|
if (Custom != other.Custom) return false;
|
|
if (!object.Equals(Object, other.Object)) return false;
|
|
if (Protect != other.Protect) return false;
|
|
if(!dependencies_.Equals(other.dependencies_)) return false;
|
|
return true;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Type.Length != 0) hash ^= Type.GetHashCode();
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode();
|
|
if (Parent.Length != 0) hash ^= Parent.GetHashCode();
|
|
if (Custom != false) hash ^= Custom.GetHashCode();
|
|
if (object_ != null) hash ^= Object.GetHashCode();
|
|
if (Protect != false) hash ^= Protect.GetHashCode();
|
|
hash ^= dependencies_.GetHashCode();
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (Type.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Type);
|
|
}
|
|
if (Name.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Name);
|
|
}
|
|
if (Parent.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(Parent);
|
|
}
|
|
if (Custom != false) {
|
|
output.WriteRawTag(32);
|
|
output.WriteBool(Custom);
|
|
}
|
|
if (object_ != null) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(Object);
|
|
}
|
|
if (Protect != false) {
|
|
output.WriteRawTag(48);
|
|
output.WriteBool(Protect);
|
|
}
|
|
dependencies_.WriteTo(output, _repeated_dependencies_codec);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Type.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Type);
|
|
}
|
|
if (Name.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
}
|
|
if (Parent.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent);
|
|
}
|
|
if (Custom != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (object_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Object);
|
|
}
|
|
if (Protect != false) {
|
|
size += 1 + 1;
|
|
}
|
|
size += dependencies_.CalculateSize(_repeated_dependencies_codec);
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(RegisterResourceRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Type.Length != 0) {
|
|
Type = other.Type;
|
|
}
|
|
if (other.Name.Length != 0) {
|
|
Name = other.Name;
|
|
}
|
|
if (other.Parent.Length != 0) {
|
|
Parent = other.Parent;
|
|
}
|
|
if (other.Custom != false) {
|
|
Custom = other.Custom;
|
|
}
|
|
if (other.object_ != null) {
|
|
if (object_ == null) {
|
|
object_ = new global::Google.Protobuf.WellKnownTypes.Struct();
|
|
}
|
|
Object.MergeFrom(other.Object);
|
|
}
|
|
if (other.Protect != false) {
|
|
Protect = other.Protect;
|
|
}
|
|
dependencies_.Add(other.dependencies_);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
input.SkipLastField();
|
|
break;
|
|
case 10: {
|
|
Type = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
Parent = input.ReadString();
|
|
break;
|
|
}
|
|
case 32: {
|
|
Custom = input.ReadBool();
|
|
break;
|
|
}
|
|
case 42: {
|
|
if (object_ == null) {
|
|
object_ = new global::Google.Protobuf.WellKnownTypes.Struct();
|
|
}
|
|
input.ReadMessage(object_);
|
|
break;
|
|
}
|
|
case 48: {
|
|
Protect = input.ReadBool();
|
|
break;
|
|
}
|
|
case 58: {
|
|
dependencies_.AddEntriesFrom(input, _repeated_dependencies_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// RegisterResourceResponse is returned by the engine after a resource has finished being initialized. It includes the
|
|
/// auto-assigned URN, the provider-assigned ID, and any other properties initialized by the engine.
|
|
/// </summary>
|
|
public sealed partial class RegisterResourceResponse : pb::IMessage<RegisterResourceResponse> {
|
|
private static readonly pb::MessageParser<RegisterResourceResponse> _parser = new pb::MessageParser<RegisterResourceResponse>(() => new RegisterResourceResponse());
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<RegisterResourceResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Pulumirpc.ResourceReflection.Descriptor.MessageTypes[1]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public RegisterResourceResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public RegisterResourceResponse(RegisterResourceResponse other) : this() {
|
|
urn_ = other.urn_;
|
|
id_ = other.id_;
|
|
Object = other.object_ != null ? other.Object.Clone() : null;
|
|
stable_ = other.stable_;
|
|
stables_ = other.stables_.Clone();
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public RegisterResourceResponse Clone() {
|
|
return new RegisterResourceResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "urn" field.</summary>
|
|
public const int UrnFieldNumber = 1;
|
|
private string urn_ = "";
|
|
/// <summary>
|
|
/// the URN assigned by the fabric.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Urn {
|
|
get { return urn_; }
|
|
set {
|
|
urn_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 2;
|
|
private string id_ = "";
|
|
/// <summary>
|
|
/// the unique ID assigned by the provider.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "object" field.</summary>
|
|
public const int ObjectFieldNumber = 3;
|
|
private global::Google.Protobuf.WellKnownTypes.Struct object_;
|
|
/// <summary>
|
|
/// the resulting object properties, including provider defaults.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Google.Protobuf.WellKnownTypes.Struct Object {
|
|
get { return object_; }
|
|
set {
|
|
object_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "stable" field.</summary>
|
|
public const int StableFieldNumber = 4;
|
|
private bool stable_;
|
|
/// <summary>
|
|
/// if true, the object's state is stable and may be trusted not to change.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Stable {
|
|
get { return stable_; }
|
|
set {
|
|
stable_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "stables" field.</summary>
|
|
public const int StablesFieldNumber = 5;
|
|
private static readonly pb::FieldCodec<string> _repeated_stables_codec
|
|
= pb::FieldCodec.ForString(42);
|
|
private readonly pbc::RepeatedField<string> stables_ = new pbc::RepeatedField<string>();
|
|
/// <summary>
|
|
/// an optional list of guaranteed-stable properties.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<string> Stables {
|
|
get { return stables_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as RegisterResourceResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(RegisterResourceResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Urn != other.Urn) return false;
|
|
if (Id != other.Id) return false;
|
|
if (!object.Equals(Object, other.Object)) return false;
|
|
if (Stable != other.Stable) return false;
|
|
if(!stables_.Equals(other.stables_)) return false;
|
|
return true;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Urn.Length != 0) hash ^= Urn.GetHashCode();
|
|
if (Id.Length != 0) hash ^= Id.GetHashCode();
|
|
if (object_ != null) hash ^= Object.GetHashCode();
|
|
if (Stable != false) hash ^= Stable.GetHashCode();
|
|
hash ^= stables_.GetHashCode();
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (Urn.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Urn);
|
|
}
|
|
if (Id.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Id);
|
|
}
|
|
if (object_ != null) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(Object);
|
|
}
|
|
if (Stable != false) {
|
|
output.WriteRawTag(32);
|
|
output.WriteBool(Stable);
|
|
}
|
|
stables_.WriteTo(output, _repeated_stables_codec);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Urn.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Urn);
|
|
}
|
|
if (Id.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
|
}
|
|
if (object_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Object);
|
|
}
|
|
if (Stable != false) {
|
|
size += 1 + 1;
|
|
}
|
|
size += stables_.CalculateSize(_repeated_stables_codec);
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(RegisterResourceResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Urn.Length != 0) {
|
|
Urn = other.Urn;
|
|
}
|
|
if (other.Id.Length != 0) {
|
|
Id = other.Id;
|
|
}
|
|
if (other.object_ != null) {
|
|
if (object_ == null) {
|
|
object_ = new global::Google.Protobuf.WellKnownTypes.Struct();
|
|
}
|
|
Object.MergeFrom(other.Object);
|
|
}
|
|
if (other.Stable != false) {
|
|
Stable = other.Stable;
|
|
}
|
|
stables_.Add(other.stables_);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
input.SkipLastField();
|
|
break;
|
|
case 10: {
|
|
Urn = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
if (object_ == null) {
|
|
object_ = new global::Google.Protobuf.WellKnownTypes.Struct();
|
|
}
|
|
input.ReadMessage(object_);
|
|
break;
|
|
}
|
|
case 32: {
|
|
Stable = input.ReadBool();
|
|
break;
|
|
}
|
|
case 42: {
|
|
stables_.AddEntriesFrom(input, _repeated_stables_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// RegisterResourceOutputsRequest adds extra resource outputs created by the program after registration has occurred.
|
|
/// </summary>
|
|
public sealed partial class RegisterResourceOutputsRequest : pb::IMessage<RegisterResourceOutputsRequest> {
|
|
private static readonly pb::MessageParser<RegisterResourceOutputsRequest> _parser = new pb::MessageParser<RegisterResourceOutputsRequest>(() => new RegisterResourceOutputsRequest());
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<RegisterResourceOutputsRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Pulumirpc.ResourceReflection.Descriptor.MessageTypes[2]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public RegisterResourceOutputsRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public RegisterResourceOutputsRequest(RegisterResourceOutputsRequest other) : this() {
|
|
urn_ = other.urn_;
|
|
Outputs = other.outputs_ != null ? other.Outputs.Clone() : null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public RegisterResourceOutputsRequest Clone() {
|
|
return new RegisterResourceOutputsRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "urn" field.</summary>
|
|
public const int UrnFieldNumber = 1;
|
|
private string urn_ = "";
|
|
/// <summary>
|
|
/// the URN for the resource to attach output properties to.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Urn {
|
|
get { return urn_; }
|
|
set {
|
|
urn_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "outputs" field.</summary>
|
|
public const int OutputsFieldNumber = 2;
|
|
private global::Google.Protobuf.WellKnownTypes.Struct outputs_;
|
|
/// <summary>
|
|
/// additional output properties to add to the existing resource.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Google.Protobuf.WellKnownTypes.Struct Outputs {
|
|
get { return outputs_; }
|
|
set {
|
|
outputs_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as RegisterResourceOutputsRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(RegisterResourceOutputsRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Urn != other.Urn) return false;
|
|
if (!object.Equals(Outputs, other.Outputs)) return false;
|
|
return true;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Urn.Length != 0) hash ^= Urn.GetHashCode();
|
|
if (outputs_ != null) hash ^= Outputs.GetHashCode();
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (Urn.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Urn);
|
|
}
|
|
if (outputs_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(Outputs);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Urn.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Urn);
|
|
}
|
|
if (outputs_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Outputs);
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(RegisterResourceOutputsRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Urn.Length != 0) {
|
|
Urn = other.Urn;
|
|
}
|
|
if (other.outputs_ != null) {
|
|
if (outputs_ == null) {
|
|
outputs_ = new global::Google.Protobuf.WellKnownTypes.Struct();
|
|
}
|
|
Outputs.MergeFrom(other.Outputs);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
input.SkipLastField();
|
|
break;
|
|
case 10: {
|
|
Urn = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (outputs_ == null) {
|
|
outputs_ = new global::Google.Protobuf.WellKnownTypes.Struct();
|
|
}
|
|
input.ReadMessage(outputs_);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|