// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: google/ads/googleads/v9/resources/mobile_device_constant.proto
// </auto-generated>
#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 Google.Ads.GoogleAds.V9.Resources {

  /// <summary>Holder for reflection information generated from google/ads/googleads/v9/resources/mobile_device_constant.proto</summary>
  public static partial class MobileDeviceConstantReflection {

    #region Descriptor
    /// <summary>File descriptor for google/ads/googleads/v9/resources/mobile_device_constant.proto</summary>
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

    static MobileDeviceConstantReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92OS9yZXNvdXJjZXMvbW9iaWxlX2Rl",
            "dmljZV9jb25zdGFudC5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjku",
            "cmVzb3VyY2VzGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92OS9lbnVtcy9tb2Jp",
            "bGVfZGV2aWNlX3R5cGUucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZp",
            "b3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aHGdvb2dsZS9h",
            "cGkvYW5ub3RhdGlvbnMucHJvdG8i0wMKFE1vYmlsZURldmljZUNvbnN0YW50",
            "EkwKDXJlc291cmNlX25hbWUYASABKAlCNeBBA/pBLwotZ29vZ2xlYWRzLmdv",
            "b2dsZWFwaXMuY29tL01vYmlsZURldmljZUNvbnN0YW50EhQKAmlkGAcgASgD",
            "QgPgQQNIAIgBARIWCgRuYW1lGAggASgJQgPgQQNIAYgBARIjChFtYW51ZmFj",
            "dHVyZXJfbmFtZRgJIAEoCUID4EEDSAKIAQESJwoVb3BlcmF0aW5nX3N5c3Rl",
            "bV9uYW1lGAogASgJQgPgQQNIA4gBARJXCgR0eXBlGAYgASgOMkQuZ29vZ2xl",
            "LmFkcy5nb29nbGVhZHMudjkuZW51bXMuTW9iaWxlRGV2aWNlVHlwZUVudW0u",
            "TW9iaWxlRGV2aWNlVHlwZUID4EEDOljqQVUKLWdvb2dsZWFkcy5nb29nbGVh",
            "cGlzLmNvbS9Nb2JpbGVEZXZpY2VDb25zdGFudBIkbW9iaWxlRGV2aWNlQ29u",
            "c3RhbnRzL3tjcml0ZXJpb25faWR9QgUKA19pZEIHCgVfbmFtZUIUChJfbWFu",
            "dWZhY3R1cmVyX25hbWVCGAoWX29wZXJhdGluZ19zeXN0ZW1fbmFtZUKGAgol",
            "Y29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnY5LnJlc291cmNlc0IZTW9iaWxl",
            "RGV2aWNlQ29uc3RhbnRQcm90b1ABWkpnb29nbGUuZ29sYW5nLm9yZy9nZW5w",
            "cm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjkvcmVzb3VyY2VzO3Jl",
            "c291cmNlc6ICA0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlY5LlJlc291",
            "cmNlc8oCIUdvb2dsZVxBZHNcR29vZ2xlQWRzXFY5XFJlc291cmNlc+oCJUdv",
            "b2dsZTo6QWRzOjpHb29nbGVBZHM6OlY5OjpSZXNvdXJjZXNiBnByb3RvMw=="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V9.Enums.MobileDeviceTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V9.Resources.MobileDeviceConstant), global::Google.Ads.GoogleAds.V9.Resources.MobileDeviceConstant.Parser, new[]{ "ResourceName", "Id", "Name", "ManufacturerName", "OperatingSystemName", "Type" }, new[]{ "Id", "Name", "ManufacturerName", "OperatingSystemName" }, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  /// <summary>
  /// A mobile device constant.
  /// </summary>
  public sealed partial class MobileDeviceConstant : pb::IMessage<MobileDeviceConstant>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<MobileDeviceConstant> _parser = new pb::MessageParser<MobileDeviceConstant>(() => new MobileDeviceConstant());
    private pb::UnknownFieldSet _unknownFields;
    private int _hasBits0;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<MobileDeviceConstant> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Google.Ads.GoogleAds.V9.Resources.MobileDeviceConstantReflection.Descriptor.MessageTypes[0]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public MobileDeviceConstant() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public MobileDeviceConstant(MobileDeviceConstant other) : this() {
      _hasBits0 = other._hasBits0;
      resourceName_ = other.resourceName_;
      id_ = other.id_;
      name_ = other.name_;
      manufacturerName_ = other.manufacturerName_;
      operatingSystemName_ = other.operatingSystemName_;
      type_ = other.type_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public MobileDeviceConstant Clone() {
      return new MobileDeviceConstant(this);
    }

    /// <summary>Field number for the "resource_name" field.</summary>
    public const int ResourceNameFieldNumber = 1;
    private string resourceName_ = "";
    /// <summary>
    /// Output only. The resource name of the mobile device constant.
    /// Mobile device constant resource names have the form:
    ///
    /// `mobileDeviceConstants/{criterion_id}`
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string ResourceName {
      get { return resourceName_; }
      set {
        resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "id" field.</summary>
    public const int IdFieldNumber = 7;
    private long id_;
    /// <summary>
    /// Output only. The ID of the mobile device constant.
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public long Id {
      get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } }
      set {
        _hasBits0 |= 1;
        id_ = value;
      }
    }
    /// <summary>Gets whether the "id" field is set</summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool HasId {
      get { return (_hasBits0 & 1) != 0; }
    }
    /// <summary>Clears the value of the "id" field</summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void ClearId() {
      _hasBits0 &= ~1;
    }

    /// <summary>Field number for the "name" field.</summary>
    public const int NameFieldNumber = 8;
    private string name_;
    /// <summary>
    /// Output only. The name of the mobile device.
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string Name {
      get { return name_ ?? ""; }
      set {
        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }
    /// <summary>Gets whether the "name" field is set</summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool HasName {
      get { return name_ != null; }
    }
    /// <summary>Clears the value of the "name" field</summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void ClearName() {
      name_ = null;
    }

    /// <summary>Field number for the "manufacturer_name" field.</summary>
    public const int ManufacturerNameFieldNumber = 9;
    private string manufacturerName_;
    /// <summary>
    /// Output only. The manufacturer of the mobile device.
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string ManufacturerName {
      get { return manufacturerName_ ?? ""; }
      set {
        manufacturerName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }
    /// <summary>Gets whether the "manufacturer_name" field is set</summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool HasManufacturerName {
      get { return manufacturerName_ != null; }
    }
    /// <summary>Clears the value of the "manufacturer_name" field</summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void ClearManufacturerName() {
      manufacturerName_ = null;
    }

    /// <summary>Field number for the "operating_system_name" field.</summary>
    public const int OperatingSystemNameFieldNumber = 10;
    private string operatingSystemName_;
    /// <summary>
    /// Output only. The operating system of the mobile device.
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string OperatingSystemName {
      get { return operatingSystemName_ ?? ""; }
      set {
        operatingSystemName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }
    /// <summary>Gets whether the "operating_system_name" field is set</summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool HasOperatingSystemName {
      get { return operatingSystemName_ != null; }
    }
    /// <summary>Clears the value of the "operating_system_name" field</summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void ClearOperatingSystemName() {
      operatingSystemName_ = null;
    }

    /// <summary>Field number for the "type" field.</summary>
    public const int TypeFieldNumber = 6;
    private global::Google.Ads.GoogleAds.V9.Enums.MobileDeviceTypeEnum.Types.MobileDeviceType type_ = global::Google.Ads.GoogleAds.V9.Enums.MobileDeviceTypeEnum.Types.MobileDeviceType.Unspecified;
    /// <summary>
    /// Output only. The type of mobile device.
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Google.Ads.GoogleAds.V9.Enums.MobileDeviceTypeEnum.Types.MobileDeviceType Type {
      get { return type_; }
      set {
        type_ = value;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override bool Equals(object other) {
      return Equals(other as MobileDeviceConstant);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(MobileDeviceConstant other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (ResourceName != other.ResourceName) return false;
      if (Id != other.Id) return false;
      if (Name != other.Name) return false;
      if (ManufacturerName != other.ManufacturerName) return false;
      if (OperatingSystemName != other.OperatingSystemName) return false;
      if (Type != other.Type) return false;
      return Equals(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override int GetHashCode() {
      int hash = 1;
      if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode();
      if (HasId) hash ^= Id.GetHashCode();
      if (HasName) hash ^= Name.GetHashCode();
      if (HasManufacturerName) hash ^= ManufacturerName.GetHashCode();
      if (HasOperatingSystemName) hash ^= OperatingSystemName.GetHashCode();
      if (Type != global::Google.Ads.GoogleAds.V9.Enums.MobileDeviceTypeEnum.Types.MobileDeviceType.Unspecified) hash ^= Type.GetHashCode();
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
      return hash;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override string ToString() {
      return pb::JsonFormatter.ToDiagnosticString(this);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void WriteTo(pb::CodedOutputStream output) {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      output.WriteRawMessage(this);
    #else
      if (ResourceName.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(ResourceName);
      }
      if (Type != global::Google.Ads.GoogleAds.V9.Enums.MobileDeviceTypeEnum.Types.MobileDeviceType.Unspecified) {
        output.WriteRawTag(48);
        output.WriteEnum((int) Type);
      }
      if (HasId) {
        output.WriteRawTag(56);
        output.WriteInt64(Id);
      }
      if (HasName) {
        output.WriteRawTag(66);
        output.WriteString(Name);
      }
      if (HasManufacturerName) {
        output.WriteRawTag(74);
        output.WriteString(ManufacturerName);
      }
      if (HasOperatingSystemName) {
        output.WriteRawTag(82);
        output.WriteString(OperatingSystemName);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
    #endif
    }

    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
      if (ResourceName.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(ResourceName);
      }
      if (Type != global::Google.Ads.GoogleAds.V9.Enums.MobileDeviceTypeEnum.Types.MobileDeviceType.Unspecified) {
        output.WriteRawTag(48);
        output.WriteEnum((int) Type);
      }
      if (HasId) {
        output.WriteRawTag(56);
        output.WriteInt64(Id);
      }
      if (HasName) {
        output.WriteRawTag(66);
        output.WriteString(Name);
      }
      if (HasManufacturerName) {
        output.WriteRawTag(74);
        output.WriteString(ManufacturerName);
      }
      if (HasOperatingSystemName) {
        output.WriteRawTag(82);
        output.WriteString(OperatingSystemName);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(ref output);
      }
    }
    #endif

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int CalculateSize() {
      int size = 0;
      if (ResourceName.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
      }
      if (HasId) {
        size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id);
      }
      if (HasName) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
      }
      if (HasManufacturerName) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(ManufacturerName);
      }
      if (HasOperatingSystemName) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(OperatingSystemName);
      }
      if (Type != global::Google.Ads.GoogleAds.V9.Enums.MobileDeviceTypeEnum.Types.MobileDeviceType.Unspecified) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(MobileDeviceConstant other) {
      if (other == null) {
        return;
      }
      if (other.ResourceName.Length != 0) {
        ResourceName = other.ResourceName;
      }
      if (other.HasId) {
        Id = other.Id;
      }
      if (other.HasName) {
        Name = other.Name;
      }
      if (other.HasManufacturerName) {
        ManufacturerName = other.ManufacturerName;
      }
      if (other.HasOperatingSystemName) {
        OperatingSystemName = other.OperatingSystemName;
      }
      if (other.Type != global::Google.Ads.GoogleAds.V9.Enums.MobileDeviceTypeEnum.Types.MobileDeviceType.Unspecified) {
        Type = other.Type;
      }
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(pb::CodedInputStream input) {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      input.ReadRawMessage(this);
    #else
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
            break;
          case 10: {
            ResourceName = input.ReadString();
            break;
          }
          case 48: {
            Type = (global::Google.Ads.GoogleAds.V9.Enums.MobileDeviceTypeEnum.Types.MobileDeviceType) input.ReadEnum();
            break;
          }
          case 56: {
            Id = input.ReadInt64();
            break;
          }
          case 66: {
            Name = input.ReadString();
            break;
          }
          case 74: {
            ManufacturerName = input.ReadString();
            break;
          }
          case 82: {
            OperatingSystemName = input.ReadString();
            break;
          }
        }
      }
    #endif
    }

    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
            break;
          case 10: {
            ResourceName = input.ReadString();
            break;
          }
          case 48: {
            Type = (global::Google.Ads.GoogleAds.V9.Enums.MobileDeviceTypeEnum.Types.MobileDeviceType) input.ReadEnum();
            break;
          }
          case 56: {
            Id = input.ReadInt64();
            break;
          }
          case 66: {
            Name = input.ReadString();
            break;
          }
          case 74: {
            ManufacturerName = input.ReadString();
            break;
          }
          case 82: {
            OperatingSystemName = input.ReadString();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code
