|
| 1 | +// <auto-generated> |
| 2 | +// Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | +// source: google/cloud/deploy/v1/customtargettype_notification_payload.proto |
| 4 | +// </auto-generated> |
| 5 | +#pragma warning disable 1591, 0612, 3021, 8981 |
| 6 | +#region Designer generated code |
| 7 | + |
| 8 | +using pb = global::Google.Protobuf; |
| 9 | +using pbc = global::Google.Protobuf.Collections; |
| 10 | +using pbr = global::Google.Protobuf.Reflection; |
| 11 | +using scg = global::System.Collections.Generic; |
| 12 | +namespace Google.Cloud.Deploy.V1 { |
| 13 | + |
| 14 | + /// <summary>Holder for reflection information generated from google/cloud/deploy/v1/customtargettype_notification_payload.proto</summary> |
| 15 | + public static partial class CustomtargettypeNotificationPayloadReflection { |
| 16 | + |
| 17 | + #region Descriptor |
| 18 | + /// <summary>File descriptor for google/cloud/deploy/v1/customtargettype_notification_payload.proto</summary> |
| 19 | + public static pbr::FileDescriptor Descriptor { |
| 20 | + get { return descriptor; } |
| 21 | + } |
| 22 | + private static pbr::FileDescriptor descriptor; |
| 23 | + |
| 24 | + static CustomtargettypeNotificationPayloadReflection() { |
| 25 | + byte[] descriptorData = global::System.Convert.FromBase64String( |
| 26 | + string.Concat( |
| 27 | + "CkJnb29nbGUvY2xvdWQvZGVwbG95L3YxL2N1c3RvbXRhcmdldHR5cGVfbm90", |
| 28 | + "aWZpY2F0aW9uX3BheWxvYWQucHJvdG8SFmdvb2dsZS5jbG91ZC5kZXBsb3ku", |
| 29 | + "djEaJmdvb2dsZS9jbG91ZC9kZXBsb3kvdjEvbG9nX2VudW1zLnByb3RvIpwB", |
| 30 | + "CiFDdXN0b21UYXJnZXRUeXBlTm90aWZpY2F0aW9uRXZlbnQSDwoHbWVzc2Fn", |
| 31 | + "ZRgBIAEoCRIeChZjdXN0b21fdGFyZ2V0X3R5cGVfdWlkGAQgASgJEhoKEmN1", |
| 32 | + "c3RvbV90YXJnZXRfdHlwZRgCIAEoCRIqCgR0eXBlGAMgASgOMhwuZ29vZ2xl", |
| 33 | + "LmNsb3VkLmRlcGxveS52MS5UeXBlQnwKGmNvbS5nb29nbGUuY2xvdWQuZGVw", |
| 34 | + "bG95LnYxQihDdXN0b21UYXJnZXRUeXBlTm90aWZpY2F0aW9uUGF5bG9hZFBy", |
| 35 | + "b3RvUAFaMmNsb3VkLmdvb2dsZS5jb20vZ28vZGVwbG95L2FwaXYxL2RlcGxv", |
| 36 | + "eXBiO2RlcGxveXBiYgZwcm90bzM=")); |
| 37 | + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| 38 | + new pbr::FileDescriptor[] { global::Google.Cloud.Deploy.V1.LogEnumsReflection.Descriptor, }, |
| 39 | + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| 40 | + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.Deploy.V1.CustomTargetTypeNotificationEvent), global::Google.Cloud.Deploy.V1.CustomTargetTypeNotificationEvent.Parser, new[]{ "Message", "CustomTargetTypeUid", "CustomTargetType", "Type" }, null, null, null, null) |
| 41 | + })); |
| 42 | + } |
| 43 | + #endregion |
| 44 | + |
| 45 | + } |
| 46 | + #region Messages |
| 47 | + /// <summary> |
| 48 | + /// Payload proto for "clouddeploy.googleapis.com/customtargettype_notification" |
| 49 | + /// Platform Log event that describes the failure to send a custom target type |
| 50 | + /// status change Pub/Sub notification. |
| 51 | + /// </summary> |
| 52 | + [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] |
| 53 | + public sealed partial class CustomTargetTypeNotificationEvent : pb::IMessage<CustomTargetTypeNotificationEvent> |
| 54 | + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| 55 | + , pb::IBufferMessage |
| 56 | + #endif |
| 57 | + { |
| 58 | + private static readonly pb::MessageParser<CustomTargetTypeNotificationEvent> _parser = new pb::MessageParser<CustomTargetTypeNotificationEvent>(() => new CustomTargetTypeNotificationEvent()); |
| 59 | + private pb::UnknownFieldSet _unknownFields; |
| 60 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 61 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 62 | + public static pb::MessageParser<CustomTargetTypeNotificationEvent> Parser { get { return _parser; } } |
| 63 | + |
| 64 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 65 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 66 | + public static pbr::MessageDescriptor Descriptor { |
| 67 | + get { return global::Google.Cloud.Deploy.V1.CustomtargettypeNotificationPayloadReflection.Descriptor.MessageTypes[0]; } |
| 68 | + } |
| 69 | + |
| 70 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 71 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 72 | + pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 73 | + get { return Descriptor; } |
| 74 | + } |
| 75 | + |
| 76 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 77 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 78 | + public CustomTargetTypeNotificationEvent() { |
| 79 | + OnConstruction(); |
| 80 | + } |
| 81 | + |
| 82 | + partial void OnConstruction(); |
| 83 | + |
| 84 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 85 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 86 | + public CustomTargetTypeNotificationEvent(CustomTargetTypeNotificationEvent other) : this() { |
| 87 | + message_ = other.message_; |
| 88 | + customTargetTypeUid_ = other.customTargetTypeUid_; |
| 89 | + customTargetType_ = other.customTargetType_; |
| 90 | + type_ = other.type_; |
| 91 | + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 92 | + } |
| 93 | + |
| 94 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 95 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 96 | + public CustomTargetTypeNotificationEvent Clone() { |
| 97 | + return new CustomTargetTypeNotificationEvent(this); |
| 98 | + } |
| 99 | + |
| 100 | + /// <summary>Field number for the "message" field.</summary> |
| 101 | + public const int MessageFieldNumber = 1; |
| 102 | + private string message_ = ""; |
| 103 | + /// <summary> |
| 104 | + /// Debug message for when a notification fails to send. |
| 105 | + /// </summary> |
| 106 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 107 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 108 | + public string Message { |
| 109 | + get { return message_; } |
| 110 | + set { |
| 111 | + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 112 | + } |
| 113 | + } |
| 114 | + |
| 115 | + /// <summary>Field number for the "custom_target_type_uid" field.</summary> |
| 116 | + public const int CustomTargetTypeUidFieldNumber = 4; |
| 117 | + private string customTargetTypeUid_ = ""; |
| 118 | + /// <summary> |
| 119 | + /// Unique identifier of the `CustomTargetType`. |
| 120 | + /// </summary> |
| 121 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 122 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 123 | + public string CustomTargetTypeUid { |
| 124 | + get { return customTargetTypeUid_; } |
| 125 | + set { |
| 126 | + customTargetTypeUid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 127 | + } |
| 128 | + } |
| 129 | + |
| 130 | + /// <summary>Field number for the "custom_target_type" field.</summary> |
| 131 | + public const int CustomTargetTypeFieldNumber = 2; |
| 132 | + private string customTargetType_ = ""; |
| 133 | + /// <summary> |
| 134 | + /// The name of the `CustomTargetType`. |
| 135 | + /// </summary> |
| 136 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 137 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 138 | + public string CustomTargetType { |
| 139 | + get { return customTargetType_; } |
| 140 | + set { |
| 141 | + customTargetType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 142 | + } |
| 143 | + } |
| 144 | + |
| 145 | + /// <summary>Field number for the "type" field.</summary> |
| 146 | + public const int TypeFieldNumber = 3; |
| 147 | + private global::Google.Cloud.Deploy.V1.Type type_ = global::Google.Cloud.Deploy.V1.Type.Unspecified; |
| 148 | + /// <summary> |
| 149 | + /// Type of this notification, e.g. for a Pub/Sub failure. |
| 150 | + /// </summary> |
| 151 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 152 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 153 | + public global::Google.Cloud.Deploy.V1.Type Type { |
| 154 | + get { return type_; } |
| 155 | + set { |
| 156 | + type_ = value; |
| 157 | + } |
| 158 | + } |
| 159 | + |
| 160 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 161 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 162 | + public override bool Equals(object other) { |
| 163 | + return Equals(other as CustomTargetTypeNotificationEvent); |
| 164 | + } |
| 165 | + |
| 166 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 167 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 168 | + public bool Equals(CustomTargetTypeNotificationEvent other) { |
| 169 | + if (ReferenceEquals(other, null)) { |
| 170 | + return false; |
| 171 | + } |
| 172 | + if (ReferenceEquals(other, this)) { |
| 173 | + return true; |
| 174 | + } |
| 175 | + if (Message != other.Message) return false; |
| 176 | + if (CustomTargetTypeUid != other.CustomTargetTypeUid) return false; |
| 177 | + if (CustomTargetType != other.CustomTargetType) return false; |
| 178 | + if (Type != other.Type) return false; |
| 179 | + return Equals(_unknownFields, other._unknownFields); |
| 180 | + } |
| 181 | + |
| 182 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 183 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 184 | + public override int GetHashCode() { |
| 185 | + int hash = 1; |
| 186 | + if (Message.Length != 0) hash ^= Message.GetHashCode(); |
| 187 | + if (CustomTargetTypeUid.Length != 0) hash ^= CustomTargetTypeUid.GetHashCode(); |
| 188 | + if (CustomTargetType.Length != 0) hash ^= CustomTargetType.GetHashCode(); |
| 189 | + if (Type != global::Google.Cloud.Deploy.V1.Type.Unspecified) hash ^= Type.GetHashCode(); |
| 190 | + if (_unknownFields != null) { |
| 191 | + hash ^= _unknownFields.GetHashCode(); |
| 192 | + } |
| 193 | + return hash; |
| 194 | + } |
| 195 | + |
| 196 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 197 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 198 | + public override string ToString() { |
| 199 | + return pb::JsonFormatter.ToDiagnosticString(this); |
| 200 | + } |
| 201 | + |
| 202 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 203 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 204 | + public void WriteTo(pb::CodedOutputStream output) { |
| 205 | + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| 206 | + output.WriteRawMessage(this); |
| 207 | + #else |
| 208 | + if (Message.Length != 0) { |
| 209 | + output.WriteRawTag(10); |
| 210 | + output.WriteString(Message); |
| 211 | + } |
| 212 | + if (CustomTargetType.Length != 0) { |
| 213 | + output.WriteRawTag(18); |
| 214 | + output.WriteString(CustomTargetType); |
| 215 | + } |
| 216 | + if (Type != global::Google.Cloud.Deploy.V1.Type.Unspecified) { |
| 217 | + output.WriteRawTag(24); |
| 218 | + output.WriteEnum((int) Type); |
| 219 | + } |
| 220 | + if (CustomTargetTypeUid.Length != 0) { |
| 221 | + output.WriteRawTag(34); |
| 222 | + output.WriteString(CustomTargetTypeUid); |
| 223 | + } |
| 224 | + if (_unknownFields != null) { |
| 225 | + _unknownFields.WriteTo(output); |
| 226 | + } |
| 227 | + #endif |
| 228 | + } |
| 229 | + |
| 230 | + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| 231 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 232 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 233 | + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| 234 | + if (Message.Length != 0) { |
| 235 | + output.WriteRawTag(10); |
| 236 | + output.WriteString(Message); |
| 237 | + } |
| 238 | + if (CustomTargetType.Length != 0) { |
| 239 | + output.WriteRawTag(18); |
| 240 | + output.WriteString(CustomTargetType); |
| 241 | + } |
| 242 | + if (Type != global::Google.Cloud.Deploy.V1.Type.Unspecified) { |
| 243 | + output.WriteRawTag(24); |
| 244 | + output.WriteEnum((int) Type); |
| 245 | + } |
| 246 | + if (CustomTargetTypeUid.Length != 0) { |
| 247 | + output.WriteRawTag(34); |
| 248 | + output.WriteString(CustomTargetTypeUid); |
| 249 | + } |
| 250 | + if (_unknownFields != null) { |
| 251 | + _unknownFields.WriteTo(ref output); |
| 252 | + } |
| 253 | + } |
| 254 | + #endif |
| 255 | + |
| 256 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 257 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 258 | + public int CalculateSize() { |
| 259 | + int size = 0; |
| 260 | + if (Message.Length != 0) { |
| 261 | + size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); |
| 262 | + } |
| 263 | + if (CustomTargetTypeUid.Length != 0) { |
| 264 | + size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomTargetTypeUid); |
| 265 | + } |
| 266 | + if (CustomTargetType.Length != 0) { |
| 267 | + size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomTargetType); |
| 268 | + } |
| 269 | + if (Type != global::Google.Cloud.Deploy.V1.Type.Unspecified) { |
| 270 | + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); |
| 271 | + } |
| 272 | + if (_unknownFields != null) { |
| 273 | + size += _unknownFields.CalculateSize(); |
| 274 | + } |
| 275 | + return size; |
| 276 | + } |
| 277 | + |
| 278 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 279 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 280 | + public void MergeFrom(CustomTargetTypeNotificationEvent other) { |
| 281 | + if (other == null) { |
| 282 | + return; |
| 283 | + } |
| 284 | + if (other.Message.Length != 0) { |
| 285 | + Message = other.Message; |
| 286 | + } |
| 287 | + if (other.CustomTargetTypeUid.Length != 0) { |
| 288 | + CustomTargetTypeUid = other.CustomTargetTypeUid; |
| 289 | + } |
| 290 | + if (other.CustomTargetType.Length != 0) { |
| 291 | + CustomTargetType = other.CustomTargetType; |
| 292 | + } |
| 293 | + if (other.Type != global::Google.Cloud.Deploy.V1.Type.Unspecified) { |
| 294 | + Type = other.Type; |
| 295 | + } |
| 296 | + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 297 | + } |
| 298 | + |
| 299 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 300 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 301 | + public void MergeFrom(pb::CodedInputStream input) { |
| 302 | + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| 303 | + input.ReadRawMessage(this); |
| 304 | + #else |
| 305 | + uint tag; |
| 306 | + while ((tag = input.ReadTag()) != 0) { |
| 307 | + switch(tag) { |
| 308 | + default: |
| 309 | + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 310 | + break; |
| 311 | + case 10: { |
| 312 | + Message = input.ReadString(); |
| 313 | + break; |
| 314 | + } |
| 315 | + case 18: { |
| 316 | + CustomTargetType = input.ReadString(); |
| 317 | + break; |
| 318 | + } |
| 319 | + case 24: { |
| 320 | + Type = (global::Google.Cloud.Deploy.V1.Type) input.ReadEnum(); |
| 321 | + break; |
| 322 | + } |
| 323 | + case 34: { |
| 324 | + CustomTargetTypeUid = input.ReadString(); |
| 325 | + break; |
| 326 | + } |
| 327 | + } |
| 328 | + } |
| 329 | + #endif |
| 330 | + } |
| 331 | + |
| 332 | + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| 333 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 334 | + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 335 | + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| 336 | + uint tag; |
| 337 | + while ((tag = input.ReadTag()) != 0) { |
| 338 | + switch(tag) { |
| 339 | + default: |
| 340 | + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| 341 | + break; |
| 342 | + case 10: { |
| 343 | + Message = input.ReadString(); |
| 344 | + break; |
| 345 | + } |
| 346 | + case 18: { |
| 347 | + CustomTargetType = input.ReadString(); |
| 348 | + break; |
| 349 | + } |
| 350 | + case 24: { |
| 351 | + Type = (global::Google.Cloud.Deploy.V1.Type) input.ReadEnum(); |
| 352 | + break; |
| 353 | + } |
| 354 | + case 34: { |
| 355 | + CustomTargetTypeUid = input.ReadString(); |
| 356 | + break; |
| 357 | + } |
| 358 | + } |
| 359 | + } |
| 360 | + } |
| 361 | + #endif |
| 362 | + |
| 363 | + } |
| 364 | + |
| 365 | + #endregion |
| 366 | + |
| 367 | +} |
| 368 | + |
| 369 | +#endregion Designer generated code |
0 commit comments