text:
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.Cloud.ResourceManager.V3 {

  /// Holder for reflection information generated from google/cloud/resourcemanager/v3/organizations.proto
  public static partial class OrganizationsReflection {

    #region Descriptor
    /// File descriptor for google/cloud/resourcemanager/v3/organizations.proto
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

    static OrganizationsReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "CjNnb29nbGUvY2xvdWQvcmVzb3VyY2VtYW5hZ2VyL3YzL29yZ2FuaXphdGlv",
            "bnMucHJvdG8SH2dvb2dsZS5jbG91ZC5yZXNvdXJjZW1hbmFnZXIudjMaHGdv",
            "b2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50",
            "LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29n",
            "bGUvYXBpL3Jlc291cmNlLnByb3RvGh5nb29nbGUvaWFtL3YxL2lhbV9wb2xp",
            "Y3kucHJvdG8aGmdvb2dsZS9pYW0vdjEvcG9saWN5LnByb3RvGiNnb29nbGUv",
            "bG9uZ3J1bm5pbmcvb3BlcmF0aW9ucy5wcm90bxofZ29vZ2xlL3Byb3RvYnVm",
            "L3RpbWVzdGFtcC5wcm90byKDBAoMT3JnYW5pemF0aW9uEhEKBG5hbWUYASAB",
            "KAlCA+BBAxIZCgxkaXNwbGF5X25hbWUYAiABKAlCA+BBAxIkChVkaXJlY3Rv",
            "cnlfY3VzdG9tZXJfaWQYAyABKAlCA+BBBUgAEkcKBXN0YXRlGAQgASgOMjMu",
            "Z29vZ2xlLmNsb3VkLnJlc291cmNlbWFuYWdlci52My5Pcmdhbml6YXRpb24u",
            "U3RhdGVCA+BBAxI0CgtjcmVhdGVfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90",
            "b2J1Zi5UaW1lc3RhbXBCA+BBAxI0Cgt1cGRhdGVfdGltZRgGIAEoCzIaLmdv",
            "b2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxI0CgtkZWxldGVfdGltZRgH",
            "IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxIRCgRldGFn",
            "GAggASgJQgPgQQMiQAoFU3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQABIK",
            "CgZBQ1RJVkUQARIUChBERUxFVEVfUkVRVUVTVEVEEAI6VupBUwowY2xvdWRy",
            "ZXNvdXJjZW1hbmFnZXIuZ29vZ2xlYXBpcy5jb20vT3JnYW5pemF0aW9uEhxv",
            "cmdhbml6YXRpb25zL3tvcmdhbml6YXRpb259UgEBQgcKBW93bmVyImAKFkdl",
            "dE9yZ2FuaXphdGlvblJlcXVlc3QSRgoEbmFtZRgBIAEoCUI44EEC+kEyCjBj",
            "bG91ZHJlc291cmNlbWFuYWdlci5nb29nbGVhcGlzLmNvbS9Pcmdhbml6YXRp",
            "b24iYQoaU2VhcmNoT3JnYW5pemF0aW9uc1JlcXVlc3QSFgoJcGFnZV9zaXpl",
            "GAEgASgFQgPgQQESFwoKcGFnZV90b2tlbhgCIAEoCUID4EEBEhIKBXF1ZXJ5",
            "GAMgASgJQgPgQQEifAobU2VhcmNoT3JnYW5pemF0aW9uc1Jlc3BvbnNlEkQK",
            "DW9yZ2FuaXphdGlvbnMYASADKAsyLS5nb29nbGUuY2xvdWQucmVzb3VyY2Vt",
            "YW5hZ2VyLnYzLk9yZ2FuaXphdGlvbhIXCg9uZXh0X3BhZ2VfdG9rZW4YAiAB",
            "KAkiHAoaRGVsZXRlT3JnYW5pemF0aW9uTWV0YWRhdGEiHgocVW5kZWxldGVP",
            "cmdhbml6YXRpb25NZXRhZGF0YTLlBwoNT3JnYW5pemF0aW9ucxKkAQoPR2V0",
            "T3JnYW5pemF0aW9uEjcuZ29vZ2xlLmNsb3VkLnJlc291cmNlbWFuYWdlci52",
            "My5HZXRPcmdhbml6YXRpb25SZXF1ZXN0Gi0uZ29vZ2xlLmNsb3VkLnJlc291",
            "cmNlbWFuYWdlci52My5Pcmdhbml6YXRpb24iKYLT5JMCHBIaL3YzL3tuYW1l",
            "PW9yZ2FuaXphdGlvbnMvKn3aQQRuYW1lEroBChNTZWFyY2hPcmdhbml6YXRp",
            "b25zEjsuZ29vZ2xlLmNsb3VkLnJlc291cmNlbWFuYWdlci52My5TZWFyY2hP",
            "cmdhbml6YXRpb25zUmVxdWVzdBo8Lmdvb2dsZS5jbG91ZC5yZXNvdXJjZW1h",
            "bmFnZXIudjMuU2VhcmNoT3JnYW5pemF0aW9uc1Jlc3BvbnNlIiiC0+STAhoS",
            "GC92My9vcmdhbml6YXRpb25zOnNlYXJjaNpBBXF1ZXJ5EowBCgxHZXRJYW1Q",
            "b2xpY3kSIi5nb29nbGUuaWFtLnYxLkdldElhbVBvbGljeVJlcXVlc3QaFS5n",
            "b29nbGUuaWFtLnYxLlBvbGljeSJBgtPkkwIwIisvdjMve3Jlc291cmNlPW9y",
            "Z2FuaXphdGlvbnMvKn06Z2V0SWFtUG9saWN5OgEq2kEIcmVzb3VyY2USjAEK",
            "DFNldElhbVBvbGljeRIiLmdvb2dsZS5pYW0udjEuU2V0SWFtUG9saWN5UmVx",
            "dWVzdBoVLmdvb2dsZS5pYW0udjEuUG9saWN5IkGC0+STAjAiKy92My97cmVz",
            "b3VyY2U9b3JnYW5pemF0aW9ucy8qfTpzZXRJYW1Qb2xpY3k6ASraQQhyZXNv",
            "dXJjZRK+AQoSVGVzdElhbVBlcm1pc3Npb25zEiguZ29vZ2xlLmlhbS52MS5U",
            "ZXN0SWFtUGVybWlzc2lvbnNSZXF1ZXN0GikuZ29vZ2xlLmlhbS52MS5UZXN0",
            "SWFtUGVybWlzc2lvbnNSZXNwb25zZSJTgtPkkwI2IjEvdjMve3Jlc291cmNl",
            "PW9yZ2FuaXphdGlvbnMvKn06dGVzdElhbVBlcm1pc3Npb25zOgEq2kEUcmVz",
            "b3VyY2UscGVybWlzc2lvbnMakAHKQSNjbG91ZHJlc291cmNlbWFuYWdlci5n",
            "b29nbGVhcGlzLmNvbdJBZ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1",
            "dGgvY2xvdWQtcGxhdGZvcm0saHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20v",
            "YXV0aC9jbG91ZC1wbGF0Zm9ybS5yZWFkLW9ubHlC9AEKI2NvbS5nb29nbGUu",
            "Y2xvdWQucmVzb3VyY2VtYW5hZ2VyLnYzQhJPcmdhbml6YXRpb25zUHJvdG9Q",
            "AVpOZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9jbG91",
            "ZC9yZXNvdXJjZW1hbmFnZXIvdjM7cmVzb3VyY2VtYW5hZ2VyqgIfR29vZ2xl",
            "LkNsb3VkLlJlc291cmNlTWFuYWdlci5WM8oCH0dvb2dsZVxDbG91ZFxSZXNv",
            "dXJjZU1hbmFnZXJcVjPqAiJHb29nbGU6OkNsb3VkOjpSZXNvdXJjZU1hbmFn",
            "ZXI6OlYzYgZwcm90bzM="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.Iam.V1.IamPolicyReflection.Descriptor, global::Google.Cloud.Iam.V1.PolicyReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ResourceManager.V3.Organization), global::Google.Cloud.ResourceManager.V3.Organization.Parser, new[]{ "Name", "DisplayName", "DirectoryCustomerId", "State", "CreateTime", "UpdateTime", "DeleteTime", "Etag" }, new[]{ "Owner" }, new[]{ typeof(global::Google.Cloud.ResourceManager.V3.Organization.Types.State) }, null, null),
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ResourceManager.V3.GetOrganizationRequest), global::Google.Cloud.ResourceManager.V3.GetOrganizationRequest.Parser, new[]{ "Name" }, null, null, null, null),
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ResourceManager.V3.SearchOrganizationsRequest), global::Google.Cloud.ResourceManager.V3.SearchOrganizationsRequest.Parser, new[]{ "PageSize", "PageToken", "Query" }, null, null, null, null),
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ResourceManager.V3.SearchOrganizationsResponse), global::Google.Cloud.ResourceManager.V3.SearchOrganizationsResponse.Parser, new[]{ "Organizations", "NextPageToken" }, null, null, null, null),
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ResourceManager.V3.DeleteOrganizationMetadata), global::Google.Cloud.ResourceManager.V3.DeleteOrganizationMetadata.Parser, null, null, null, null, null),
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.ResourceManager.V3.UndeleteOrganizationMetadata), global::Google.Cloud.ResourceManager.V3.UndeleteOrganizationMetadata.Parser, null, null, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  ///
  /// The root node in the resource hierarchy to which a particular entity's
  /// (a company, for example) resources belong.
  ///
  public sealed partial class Organization : pb::IMessage<Organization>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<Organization> _parser = new pb::MessageParser<Organization>(() => new Organization());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<Organization> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Google.Cloud.ResourceManager.V3.OrganizationsReflection.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 Organization() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public Organization(Organization other) : this() {
      name_ = other.name_;
      displayName_ = other.displayName_;
      state_ = other.state_;
      createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null;
      updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null;
      deleteTime_ = other.deleteTime_ != null ? other.deleteTime_.Clone() : null;
      etag_ = other.etag_;
      switch (other.OwnerCase) {
        case OwnerOneofCase.DirectoryCustomerId:
          DirectoryCustomerId = other.DirectoryCustomerId;
          break;
      }

      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// Field number for the "name" field.
    public const int NameFieldNumber = 1;
    private string name_ = "";
    ///
    /// Output only. The resource name of the organization. This is the
    /// organization's relative path in the API. Its format is
    /// "organizations/[organization_id]". For example, "organizations/1234".
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string Name {
      get { return name_; }
      set {
        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// Field number for the "display_name" field.
    public const int DisplayNameFieldNumber = 2;
    private string displayName_ = "";
    ///
    /// Output only. A human-readable string that refers to the organization in the
    /// Google Cloud Console. This string is set by the server and cannot be
    /// changed. The string will be set to the primary domain (for example,
    /// "google.com") of the Google Workspace customer that owns the organization.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string DisplayName {
      get { return displayName_; }
      set {
        displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// Field number for the "directory_customer_id" field.
    public const int DirectoryCustomerIdFieldNumber = 3;
    ///
    /// Immutable. The G Suite / Workspace customer id used in the Directory API.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string DirectoryCustomerId {
      get { return ownerCase_ == OwnerOneofCase.DirectoryCustomerId ? (string) owner_ : ""; }
      set {
        owner_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
        ownerCase_ = OwnerOneofCase.DirectoryCustomerId;
      }
    }

    /// Field number for the "state" field.
    public const int StateFieldNumber = 4;
    private global::Google.Cloud.ResourceManager.V3.Organization.Types.State state_ = global::Google.Cloud.ResourceManager.V3.Organization.Types.State.Unspecified;
    ///
    /// Output only. The organization's current lifecycle state.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Google.Cloud.ResourceManager.V3.Organization.Types.State State {
      get { return state_; }
      set {
        state_ = value;
      }
    }

    /// Field number for the "create_time" field.
    public const int CreateTimeFieldNumber = 5;
    private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_;
    ///
    /// Output only. Timestamp when the Organization was created.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime {
      get { return createTime_; }
      set {
        createTime_ = value;
      }
    }

    /// Field number for the "update_time" field.
    public const int UpdateTimeFieldNumber = 6;
    private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_;
    ///
    /// Output only. Timestamp when the Organization was last modified.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime {
      get { return updateTime_; }
      set {
        updateTime_ = value;
      }
    }

    /// Field number for the "delete_time" field.
    public const int DeleteTimeFieldNumber = 7;
    private global::Google.Protobuf.WellKnownTypes.Timestamp deleteTime_;
    ///
    /// Output only. Timestamp when the Organization was requested for deletion.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Google.Protobuf.WellKnownTypes.Timestamp DeleteTime {
      get { return deleteTime_; }
      set {
        deleteTime_ = value;
      }
    }

    /// Field number for the "etag" field.
    public const int EtagFieldNumber = 8;
    private string etag_ = "";
    ///
    /// Output only. A checksum computed by the server based on the current value of the
    /// Organization resource. This may be sent on update and delete requests to
    /// ensure the client has an up-to-date value before proceeding.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string Etag {
      get { return etag_; }
      set {
        etag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    private object owner_;
    /// Enum of possible cases for the "owner" oneof.
    public enum OwnerOneofCase {
      None = 0,
      DirectoryCustomerId = 3,
    }
    private OwnerOneofCase ownerCase_ = OwnerOneofCase.None;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public OwnerOneofCase OwnerCase {
      get { return ownerCase_; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void ClearOwner() {
      ownerCase_ = OwnerOneofCase.None;
      owner_ = null;
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(Organization other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (Name != other.Name) return false;
      if (DisplayName != other.DisplayName) return false;
      if (DirectoryCustomerId != other.DirectoryCustomerId) return false;
      if (State != other.State) return false;
      if (!object.Equals(CreateTime, other.CreateTime)) return false;
      if (!object.Equals(UpdateTime, other.UpdateTime)) return false;
      if (!object.Equals(DeleteTime, other.DeleteTime)) return false;
      if (Etag != other.Etag) return false;
      if (OwnerCase != other.OwnerCase) 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 (Name.Length != 0) hash ^= Name.GetHashCode();
      if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode();
      if (ownerCase_ == OwnerOneofCase.DirectoryCustomerId) hash ^= DirectoryCustomerId.GetHashCode();
      if (State != global::Google.Cloud.ResourceManager.V3.Organization.Types.State.Unspecified) hash ^= State.GetHashCode();
      if (createTime_ != null) hash ^= CreateTime.GetHashCode();
      if (updateTime_ != null) hash ^= UpdateTime.GetHashCode();
      if (deleteTime_ != null) hash ^= DeleteTime.GetHashCode();
      if (Etag.Length != 0) hash ^= Etag.GetHashCode();
      hash ^= (int) ownerCase_;
      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 (Name.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(Name);
      }
      if (DisplayName.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(DisplayName);
      }
      if (ownerCase_ == OwnerOneofCase.DirectoryCustomerId) {
        output.WriteRawTag(26);
        output.WriteString(DirectoryCustomerId);
      }
      if (State != global::Google.Cloud.ResourceManager.V3.Organization.Types.State.Unspecified) {
        output.WriteRawTag(32);
        output.WriteEnum((int) State);
      }
      if (createTime_ != null) {
        output.WriteRawTag(42);
        output.WriteMessage(CreateTime);
      }
      if (updateTime_ != null) {
        output.WriteRawTag(50);
        output.WriteMessage(UpdateTime);
      }
      if (deleteTime_ != null) {
        output.WriteRawTag(58);
        output.WriteMessage(DeleteTime);
      }
      if (Etag.Length != 0) {
        output.WriteRawTag(66);
        output.WriteString(Etag);
      }
      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 (Name.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(Name);
      }
      if (DisplayName.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(DisplayName);
      }
      if (ownerCase_ == OwnerOneofCase.DirectoryCustomerId) {
        output.WriteRawTag(26);
        output.WriteString(DirectoryCustomerId);
      }
      if (State != global::Google.Cloud.ResourceManager.V3.Organization.Types.State.Unspecified) {
        output.WriteRawTag(32);
        output.WriteEnum((int) State);
      }
      if (createTime_ != null) {
        output.WriteRawTag(42);
        output.WriteMessage(CreateTime);
      }
      if (updateTime_ != null) {
        output.WriteRawTag(50);
        output.WriteMessage(UpdateTime);
      }
      if (deleteTime_ != null) {
        output.WriteRawTag(58);
        output.WriteMessage(DeleteTime);
      }
      if (Etag.Length != 0) {
        output.WriteRawTag(66);
        output.WriteString(Etag);
      }
      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 (Name.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
      }
      if (DisplayName.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName);
      }
      if (ownerCase_ == OwnerOneofCase.DirectoryCustomerId) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(DirectoryCustomerId);
      }
      if (State != global::Google.Cloud.ResourceManager.V3.Organization.Types.State.Unspecified) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State);
      }
      if (createTime_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime);
      }
      if (updateTime_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime);
      }
      if (deleteTime_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeleteTime);
      }
      if (Etag.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Etag);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(Organization other) {
      if (other == null) {
        return;
      }
      if (other.Name.Length != 0) {
        Name = other.Name;
      }
      if (other.DisplayName.Length != 0) {
        DisplayName = other.DisplayName;
      }
      if (other.State != global::Google.Cloud.ResourceManager.V3.Organization.Types.State.Unspecified) {
        State = other.State;
      }
      if (other.createTime_ != null) {
        if (createTime_ == null) {
          CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
        }
        CreateTime.MergeFrom(other.CreateTime);
      }
      if (other.updateTime_ != null) {
        if (updateTime_ == null) {
          UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
        }
        UpdateTime.MergeFrom(other.UpdateTime);
      }
      if (other.deleteTime_ != null) {
        if (deleteTime_ == null) {
          DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
        }
        DeleteTime.MergeFrom(other.DeleteTime);
      }
      if (other.Etag.Length != 0) {
        Etag = other.Etag;
      }
      switch (other.OwnerCase) {
        case OwnerOneofCase.DirectoryCustomerId:
          DirectoryCustomerId = other.DirectoryCustomerId;
          break;
      }

      _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: {
            Name = input.ReadString();
            break;
          }
          case 18: {
            DisplayName = input.ReadString();
            break;
          }
          case 26: {
            DirectoryCustomerId = input.ReadString();
            break;
          }
          case 32: {
            State = (global::Google.Cloud.ResourceManager.V3.Organization.Types.State) input.ReadEnum();
            break;
          }
          case 42: {
            if (createTime_ == null) {
              CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
            }
            input.ReadMessage(CreateTime);
            break;
          }
          case 50: {
            if (updateTime_ == null) {
              UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
            }
            input.ReadMessage(UpdateTime);
            break;
          }
          case 58: {
            if (deleteTime_ == null) {
              DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
            }
            input.ReadMessage(DeleteTime);
            break;
          }
          case 66: {
            Etag = 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: {
            Name = input.ReadString();
            break;
          }
          case 18: {
            DisplayName = input.ReadString();
            break;
          }
          case 26: {
            DirectoryCustomerId = input.ReadString();
            break;
          }
          case 32: {
            State = (global::Google.Cloud.ResourceManager.V3.Organization.Types.State) input.ReadEnum();
            break;
          }
          case 42: {
            if (createTime_ == null) {
              CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
            }
            input.ReadMessage(CreateTime);
            break;
          }
          case 50: {
            if (updateTime_ == null) {
              UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
            }
            input.ReadMessage(UpdateTime);
            break;
          }
          case 58: {
            if (deleteTime_ == null) {
              DeleteTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
            }
            input.ReadMessage(DeleteTime);
            break;
          }
          case 66: {
            Etag = input.ReadString();
            break;
          }
        }
      }
    }
    #endif

    #region Nested types
    /// Container for nested types declared in the Organization message type.
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static partial class Types {
      ///
      /// Organization lifecycle states.
      ///
      public enum State {
        ///
        /// Unspecified state.  This is only useful for distinguishing unset values.
        ///
        [pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0,
        ///
        /// The normal and active state.
        ///
        [pbr::OriginalName("ACTIVE")] Active = 1,
        ///
        /// The organization has been marked for deletion by the user.
        ///
        [pbr::OriginalName("DELETE_REQUESTED")] DeleteRequested = 2,
      }

    }
    #endregion

  }

  ///
  /// The request sent to the `GetOrganization` method. The `name` field is
  /// required. `organization_id` is no longer accepted.
  ///
  public sealed partial class GetOrganizationRequest : pb::IMessage<GetOrganizationRequest>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<GetOrganizationRequest> _parser = new pb::MessageParser<GetOrganizationRequest>(() => new GetOrganizationRequest());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<GetOrganizationRequest> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Google.Cloud.ResourceManager.V3.OrganizationsReflection.Descriptor.MessageTypes[1]; }
    }

    [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 GetOrganizationRequest() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public GetOrganizationRequest(GetOrganizationRequest other) : this() {
      name_ = other.name_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// Field number for the "name" field.
    public const int NameFieldNumber = 1;
    private string name_ = "";
    ///
    /// Required. The resource name of the Organization to fetch. This is the organization's
    /// relative path in the API, formatted as "organizations/[organizationId]".
    /// For example, "organizations/1234".
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string Name {
      get { return name_; }
      set {
        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(GetOrganizationRequest other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (Name != other.Name) 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 (Name.Length != 0) hash ^= Name.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 (Name.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(Name);
      }
      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 (Name.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(Name);
      }
      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 (Name.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(GetOrganizationRequest other) {
      if (other == null) {
        return;
      }
      if (other.Name.Length != 0) {
        Name = other.Name;
      }
      _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: {
            Name = 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: {
            Name = input.ReadString();
            break;
          }
        }
      }
    }
    #endif

  }

  ///
  /// The request sent to the `SearchOrganizations` method.
  ///
  public sealed partial class SearchOrganizationsRequest : pb::IMessage<SearchOrganizationsRequest>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<SearchOrganizationsRequest> _parser = new pb::MessageParser<SearchOrganizationsRequest>(() => new SearchOrganizationsRequest());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<SearchOrganizationsRequest> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Google.Cloud.ResourceManager.V3.OrganizationsReflection.Descriptor.MessageTypes[2]; }
    }

    [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 SearchOrganizationsRequest() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public SearchOrganizationsRequest(SearchOrganizationsRequest other) : this() {
      pageSize_ = other.pageSize_;
      pageToken_ = other.pageToken_;
      query_ = other.query_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// Field number for the "page_size" field.
    public const int PageSizeFieldNumber = 1;
    private int pageSize_;
    ///
    /// Optional. The maximum number of organizations to return in the response.
    /// If unspecified, server picks an appropriate default.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int PageSize {
      get { return pageSize_; }
      set {
        pageSize_ = value;
      }
    }

    /// Field number for the "page_token" field.
    public const int PageTokenFieldNumber = 2;
    private string pageToken_ = "";
    ///
    /// Optional. A pagination token returned from a previous call to `SearchOrganizations`
    /// that indicates from where listing should continue.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string PageToken {
      get { return pageToken_; }
      set {
        pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// Field number for the "query" field.
    public const int QueryFieldNumber = 3;
    private string query_ = "";
    ///
    /// Optional. An optional query string used to filter the Organizations to return in
    /// the response. Query rules are case-insensitive.
    ///
    /// ```
    /// | Field            | Description                                |
    /// |------------------|--------------------------------------------|
    /// | directoryCustomerId, owner.directoryCustomerId | Filters by directory
    /// customer id. |
    /// | domain           | Filters by domain.                         |
    /// ```
    ///
    /// Organizations may be queried by `directoryCustomerId` or by
    /// `domain`, where the domain is a G Suite domain, for example:
    ///
    /// * Query `directorycustomerid:123456789` returns Organization
    /// resources with `owner.directory_customer_id` equal to `123456789`.
    /// * Query `domain:google.com` returns Organization resources corresponding
    /// to the domain `google.com`.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string Query {
      get { return query_; }
      set {
        query_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(SearchOrganizationsRequest other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (PageSize != other.PageSize) return false;
      if (PageToken != other.PageToken) return false;
      if (Query != other.Query) 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 (PageSize != 0) hash ^= PageSize.GetHashCode();
      if (PageToken.Length != 0) hash ^= PageToken.GetHashCode();
      if (Query.Length != 0) hash ^= Query.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 (PageSize != 0) {
        output.WriteRawTag(8);
        output.WriteInt32(PageSize);
      }
      if (PageToken.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(PageToken);
      }
      if (Query.Length != 0) {
        output.WriteRawTag(26);
        output.WriteString(Query);
      }
      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 (PageSize != 0) {
        output.WriteRawTag(8);
        output.WriteInt32(PageSize);
      }
      if (PageToken.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(PageToken);
      }
      if (Query.Length != 0) {
        output.WriteRawTag(26);
        output.WriteString(Query);
      }
      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 (PageSize != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize);
      }
      if (PageToken.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken);
      }
      if (Query.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Query);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(SearchOrganizationsRequest other) {
      if (other == null) {
        return;
      }
      if (other.PageSize != 0) {
        PageSize = other.PageSize;
      }
      if (other.PageToken.Length != 0) {
        PageToken = other.PageToken;
      }
      if (other.Query.Length != 0) {
        Query = other.Query;
      }
      _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 8: {
            PageSize = input.ReadInt32();
            break;
          }
          case 18: {
            PageToken = input.ReadString();
            break;
          }
          case 26: {
            Query = 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 8: {
            PageSize = input.ReadInt32();
            break;
          }
          case 18: {
            PageToken = input.ReadString();
            break;
          }
          case 26: {
            Query = input.ReadString();
            break;
          }
        }
      }
    }
    #endif

  }

  ///
  /// The response returned from the `SearchOrganizations` method.
  ///
  public sealed partial class SearchOrganizationsResponse : pb::IMessage<SearchOrganizationsResponse>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<SearchOrganizationsResponse> _parser = new pb::MessageParser<SearchOrganizationsResponse>(() => new SearchOrganizationsResponse());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<SearchOrganizationsResponse> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Google.Cloud.ResourceManager.V3.OrganizationsReflection.Descriptor.MessageTypes[3]; }
    }

    [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 SearchOrganizationsResponse() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public SearchOrganizationsResponse(SearchOrganizationsResponse other) : this() {
      organizations_ = other.organizations_.Clone();
      nextPageToken_ = other.nextPageToken_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

    /// Field number for the "organizations" field.
    public const int OrganizationsFieldNumber = 1;
    private static readonly pb::FieldCodec<global::Google.Cloud.ResourceManager.V3.Organization> _repeated_organizations_codec
        = pb::FieldCodec.ForMessage(10, global::Google.Cloud.ResourceManager.V3.Organization.Parser);
    private readonly pbc::RepeatedField<global::Google.Cloud.ResourceManager.V3.Organization> organizations_ = new pbc::RepeatedField<global::Google.Cloud.ResourceManager.V3.Organization>();
    ///
    /// The list of Organizations that matched the search query, possibly
    /// paginated.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public pbc::RepeatedField<global::Google.Cloud.ResourceManager.V3.Organization> Organizations {
      get { return organizations_; }
    }

    /// Field number for the "next_page_token" field.
    public const int NextPageTokenFieldNumber = 2;
    private string nextPageToken_ = "";
    ///
    /// A pagination token to be used to retrieve the next page of results. If the
    /// result is too large to fit within the page size specified in the request,
    /// this field will be set with a token that can be used to fetch the next page
    /// of results. If this field is empty, it indicates that this response
    /// contains the last page of results.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string NextPageToken {
      get { return nextPageToken_; }
      set {
        nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(SearchOrganizationsResponse other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if(!organizations_.Equals(other.organizations_)) return false;
      if (NextPageToken != other.NextPageToken) 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;
      hash ^= organizations_.GetHashCode();
      if (NextPageToken.Length != 0) hash ^= NextPageToken.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
      organizations_.WriteTo(output, _repeated_organizations_codec);
      if (NextPageToken.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(NextPageToken);
      }
      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) {
      organizations_.WriteTo(ref output, _repeated_organizations_codec);
      if (NextPageToken.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(NextPageToken);
      }
      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;
      size += organizations_.CalculateSize(_repeated_organizations_codec);
      if (NextPageToken.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(SearchOrganizationsResponse other) {
      if (other == null) {
        return;
      }
      organizations_.Add(other.organizations_);
      if (other.NextPageToken.Length != 0) {
        NextPageToken = other.NextPageToken;
      }
      _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: {
            organizations_.AddEntriesFrom(input, _repeated_organizations_codec);
            break;
          }
          case 18: {
            NextPageToken = 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: {
            organizations_.AddEntriesFrom(ref input, _repeated_organizations_codec);
            break;
          }
          case 18: {
            NextPageToken = input.ReadString();
            break;
          }
        }
      }
    }
    #endif

  }

  ///
  /// A status object which is used as the `metadata` field for the operation
  /// returned by DeleteOrganization.
  ///
  public sealed partial class DeleteOrganizationMetadata : pb::IMessage<DeleteOrganizationMetadata>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<DeleteOrganizationMetadata> _parser = new pb::MessageParser<DeleteOrganizationMetadata>(() => new DeleteOrganizationMetadata());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<DeleteOrganizationMetadata> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Google.Cloud.ResourceManager.V3.OrganizationsReflection.Descriptor.MessageTypes[4]; }
    }

    [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 DeleteOrganizationMetadata() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public DeleteOrganizationMetadata(DeleteOrganizationMetadata other) : this() {
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(DeleteOrganizationMetadata other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      return Equals(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override int GetHashCode() {
      int hash = 1;
      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 (_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 (_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 (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(DeleteOrganizationMetadata other) {
      if (other == null) {
        return;
      }
      _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;
        }
      }
    #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;
        }
      }
    }
    #endif

  }

  ///
  /// A status object which is used as the `metadata` field for the Operation
  /// returned by UndeleteOrganization.
  ///
  public sealed partial class UndeleteOrganizationMetadata : pb::IMessage<UndeleteOrganizationMetadata>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<UndeleteOrganizationMetadata> _parser = new pb::MessageParser<UndeleteOrganizationMetadata>(() => new UndeleteOrganizationMetadata());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<UndeleteOrganizationMetadata> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Google.Cloud.ResourceManager.V3.OrganizationsReflection.Descriptor.MessageTypes[5]; }
    }

    [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 UndeleteOrganizationMetadata() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public UndeleteOrganizationMetadata(UndeleteOrganizationMetadata other) : this() {
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

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

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

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(UndeleteOrganizationMetadata other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      return Equals(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override int GetHashCode() {
      int hash = 1;
      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 (_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 (_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 (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(UndeleteOrganizationMetadata other) {
      if (other == null) {
        return;
      }
      _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;
        }
      }
    #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;
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code


text:
/*
Ludum Dare 29
Tustin2121 & MaverickLoneshark

ヽ༼ຈل͜ຈ༽ノ RIOT ヽ༼ຈل͜ຈ༽ノ
*/

html {
	overflow-y : scroll;
}

html, body {
	margin: 0px;
	padding: 0px;
	height: 100%;
	/*background-color:#00287D;*/
	background-image: url("../img/bg.png");
	background-repeat: repeat-x;
	color: white;
}

#title {
	position: relative;
	top: 300px;
	width: 600px;
	/*height: 400px;*/
	margin: 0 auto;
	text-align: center;
	z-index: 100; /* We can put this back after we get it to fade out */

	/* Btw, select-none is apparently non-standard... */
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#game-over {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: inherit;
	background-color: #ff000080;
}

#game-over-text {
	position: relative;
	top: 300px;
	text-align: center;
}

#outerWrapper {
	height: 100%;
	background-position: center;
	background-image: url("../img/play-limit.png");
	background-repeat: repeat-y;
}

#wrapper {
	width: 1024px; height: 100%;
	margin: 0 auto;
}

/* HUD */
.right-hud {
	display: none;
	position: fixed;
	bottom: 0; right: 0;
	width: 300px; height: 100px;
	background-color: red;

	z-index: 90;
}

.left-hud {
	position: fixed;
	bottom: 0; left: 0;
	width: 400px; height: 124px;

	background-image: url("../img/hud-left.png");
	background-position: 0px -276px;
	z-index: 90;
}

.mid-hud {
	position: fixed;
	bottom: -5px; left: 0; right: 0;
	margin: 0 auto;
	width: 550px; height: 36px;
	z-index: 90;

	border-radius: 10px;
	border:5px ridge #3B3B3B;
	background-color: #A6A6A6;
	color: white;
}

/* The sky is a canvas for your dreams! */
#sky {
	position: absolute;
	top: 0px;
}

#sky canvas {
	/*outline-width:0px;*/
	position: absolute;
	/*border: 1px white dotted;*/
	padding:0px;
	margin:0px;
}

/* Buildings are the way of the future! */
#buildings {
	position: absolute;
	top: 0;
	width: 1024px; height: 100%;

	/*background-image: url("../img/test-grid.png");*/
	background-repeat: repeat;

	z-index: 40;
}

/* Non-Building: Dirt */
.dirt {
	position: absolute;
	background-image: url("../img/dirt.png");
	background-repeat: no-repeat;
	width: 32px; height: 32px;
	z-index: -1;
}
.dirt.r0 { background-position-x: 0px; }
.dirt.r1 { background-position-x: -32px; }
.dirt.r2 { background-position-x: -64px; }
.dirt.r3 { background-position-x: -96px; }
.dirt.r4 { background-position-x: -128px; }
.dirt.r5 { background-position-x: -160px; }
.dirt.r6 { background-position-x: -192px; }
.dirt.r7 { background-position-x: -224px; }

.dirt.whole { background-position-y: 0px; }
.dirt.right { background-position-y: -128px; }
.dirt.left  { background-position-y: -160px; }

/* Building: City */
.building-city {
	position: absolute;
	background-image: url("../img/city.png");
	background-repeat: no-repeat;
	width: 128px; height: 64px;
}
.building-city.dmg0 {
	background-position: 0px 0px;
}
.building-city.dmg1 {
	background-position: 0px -64px;
}
.building-city.dmg2 {
	background-position: 0px -128px;
}
.building-city.dmg3 {
	background-position: 0px -192px;
}

/* Building: Outpost */
.building-outpost {
	position: absolute;
	background-image: url("../img/outpost.png");
	background-repeat: no-repeat;
	width: 64px; height: 64px;
	animation: OutpostSwivel 1s steps(6) infinite alternate both;
	-webkit-animation: OutpostSwivel 1s steps(6) infinite alternate both;
}
.building-outpost.dmg0 {
	background-position-y: 0px;
	animation: OutpostSwivel 1s steps(6) infinite alternate both;
	-webkit-animation: OutpostSwivel 1s steps(6) infinite alternate both;
}
.building-outpost.dmg1 {
	background-position-y: -64px;
	animation: OutpostSwivel 1s steps(6) infinite alternate both;
	-webkit-animation: OutpostSwivel 1s steps(6) infinite alternate both;
}
.building-outpost.dmg2 {
	background-position-y: -128px;
	animation: paused;
	-webkit-animation: paused;
}
.building-outpost.dmg3 {
	background-position-y: -192px;
	animation: paused;
	-webkit-animation: paused;
}

@keyframes OutpostSwivel {
	from {background-position-x: -0px; }
	to   {background-position-x: -384px; }
}

@-webkit-keyframes OutpostSwivel {
	from {background-position-x: -0px; }
	to   {background-position-x: -384px; }
}

redpajama_set_name: RedPajamaGithub


text:
#pragma once

#include <vector>
#include <QtCore/QString>

#include "SIMPLib/Common/SIMPLibSetGetMacros.h"
#include "SIMPLib/DataArrays/IDataArray.h"
#include "SIMPLib/DataContainers/DataContainer.h"
#include "SIMPLib/Filtering/AbstractFilter.h"
#include "SIMPLib/SIMPLib.h"

#include "OrientationLib/LaueOps/LaueOps.h"
#include "OrientationLib/LaueOps/CubicOps.h"
#include "OrientationLib/LaueOps/HexagonalOps.h"
#include "OrientationLib/LaueOps/OrthoRhombicOps.h"

#include "TransformationPhase/TransformationPhaseDLLExport.h"

/**
 * @class FindCSLBoundaries FindCSLBoundaries.h /TransformationPhase/FindCSLBoundaries.h
 * @brief
 * @author Joseph C. Tucker
 * @date July 28, 2014
 * @version 5.1
 */
class TransformationPhase_EXPORT FindCSLBoundaries : public AbstractFilter
{
    Q_OBJECT
    PYB11_CREATE_BINDINGS(FindCSLBoundaries SUPERCLASS AbstractFilter)
    PYB11_PROPERTY(float CSL READ getCSL WRITE setCSL)
    PYB11_PROPERTY(float AxisTolerance READ getAxisTolerance WRITE setAxisTolerance)
    PYB11_PROPERTY(float AngleTolerance READ getAngleTolerance WRITE setAngleTolerance)
    PYB11_PROPERTY(DataArrayPath AvgQuatsArrayPath READ getAvgQuatsArrayPath WRITE setAvgQuatsArrayPath)
    PYB11_PROPERTY(DataArrayPath FeaturePhasesArrayPath READ getFeaturePhasesArrayPath WRITE setFeaturePhasesArrayPath)
    PYB11_PROPERTY(DataArrayPath CrystalStructuresArrayPath READ getCrystalStructuresArrayPath WRITE setCrystalStructuresArrayPath)
    PYB11_PROPERTY(DataArrayPath SurfaceMeshFaceLabelsArrayPath READ getSurfaceMeshFaceLabelsArrayPath WRITE setSurfaceMeshFaceLabelsArrayPath)
    PYB11_PROPERTY(DataArrayPath SurfaceMeshFaceNormalsArrayPath READ getSurfaceMeshFaceNormalsArrayPath WRITE setSurfaceMeshFaceNormalsArrayPath)
    PYB11_PROPERTY(QString SurfaceMeshCSLBoundaryArrayName READ getSurfaceMeshCSLBoundaryArrayName WRITE setSurfaceMeshCSLBoundaryArrayName)
    PYB11_PROPERTY(QString SurfaceMeshCSLBoundaryIncoherenceArrayName READ getSurfaceMeshCSLBoundaryIncoherenceArrayName WRITE setSurfaceMeshCSLBoundaryIncoherenceArrayName)
  public:
    SIMPL_SHARED_POINTERS(FindCSLBoundaries)
    SIMPL_FILTER_NEW_MACRO(FindCSLBoundaries)
    SIMPL_TYPE_MACRO_SUPER_OVERRIDE(FindCSLBoundaries, AbstractFilter)

    ~FindCSLBoundaries() override;

    SIMPL_FILTER_PARAMETER(float, CSL)
    Q_PROPERTY(float CSL READ getCSL WRITE setCSL)
    SIMPL_FILTER_PARAMETER(float, AxisTolerance)
    Q_PROPERTY(float AxisTolerance READ getAxisTolerance WRITE setAxisTolerance)
    SIMPL_FILTER_PARAMETER(float, AngleTolerance)
    Q_PROPERTY(float AngleTolerance READ getAngleTolerance WRITE setAngleTolerance)

    SIMPL_FILTER_PARAMETER(DataArrayPath, AvgQuatsArrayPath)
    Q_PROPERTY(DataArrayPath AvgQuatsArrayPath READ getAvgQuatsArrayPath WRITE setAvgQuatsArrayPath)

    SIMPL_FILTER_PARAMETER(DataArrayPath, FeaturePhasesArrayPath)
    Q_PROPERTY(DataArrayPath FeaturePhasesArrayPath READ getFeaturePhasesArrayPath WRITE setFeaturePhasesArrayPath)

    SIMPL_FILTER_PARAMETER(DataArrayPath, CrystalStructuresArrayPath)
    Q_PROPERTY(DataArrayPath CrystalStructuresArrayPath READ getCrystalStructuresArrayPath WRITE setCrystalStructuresArrayPath)

    SIMPL_FILTER_PARAMETER(DataArrayPath, SurfaceMeshFaceLabelsArrayPath)
    Q_PROPERTY(DataArrayPath SurfaceMeshFaceLabelsArrayPath READ getSurfaceMeshFaceLabelsArrayPath WRITE setSurfaceMeshFaceLabelsArrayPath)

    SIMPL_FILTER_PARAMETER(DataArrayPath, SurfaceMeshFaceNormalsArrayPath)
    Q_PROPERTY(DataArrayPath SurfaceMeshFaceNormalsArrayPath READ getSurfaceMeshFaceNormalsArrayPath WRITE setSurfaceMeshFaceNormalsArrayPath)

    SIMPL_FILTER_PARAMETER(QString, SurfaceMeshCSLBoundaryArrayName)
    Q_PROPERTY(QString SurfaceMeshCSLBoundaryArrayName READ getSurfaceMeshCSLBoundaryArrayName WRITE setSurfaceMeshCSLBoundaryArrayName)

    SIMPL_FILTER_PARAMETER(QString, SurfaceMeshCSLBoundaryIncoherenceArrayName)
    Q_PROPERTY(QString SurfaceMeshCSLBoundaryIncoherenceArrayName READ getSurfaceMeshCSLBoundaryIncoherenceArrayName WRITE setSurfaceMeshCSLBoundaryIncoherenceArrayName)

    /**
     * @brief getCompiledLibraryName Reimplemented from @see AbstractFilter class
     */
    const QString getCompiledLibraryName() const override;

    /**
     * @brief getBrandingString Returns the branding string for the filter, which is a tag
     * used to denote the filter's association with specific plugins
     * @return Branding string
    */
    const QString getBrandingString() const override;

    /**
     * @brief getFilterVersion Returns a version string for this filter. Default
     * value is an empty string.
     * @return
     */
    const QString getFilterVersion() const override;

    /**
     * @brief newFilterInstance Reimplemented from @see AbstractFilter class
     */
    AbstractFilter::Pointer newFilterInstance(bool copyFilterParameters) const override;

    /**
     * @brief getGroupName Reimplemented from @see AbstractFilter class
     */
    const QString getGroupName() const override;

    /**
     * @brief getSubGroupName Reimplemented from @see AbstractFilter class
     */
    const QString getSubGroupName() const override;

    /**
     * @brief getUuid Return the unique identifier for this filter.
     * @return A QUuid object.
     */
    const QUuid getUuid() override;

    /**
     * @brief getHumanLabel Reimplemented from @see AbstractFilter class
     */
    const QString getHumanLabel() const override;

    /**
     * @brief setupFilterParameters Reimplemented from @see AbstractFilter class
     */
    void setupFilterParameters() override;

    /**
     * @brief readFilterParameters Reimplemented from @see AbstractFilter class
     */
    void readFilterParameters(AbstractFilterParametersReader* reader, int index) override;

    /**
     * @brief execute Reimplemented from @see AbstractFilter class
     */
    void execute() override;

    /**
    * @brief preflight Reimplemented from @see AbstractFilter class
    */
    void preflight() override;

  signals:
    void updateFilterParameters(AbstractFilter* filter);
    void parametersChanged();
    void preflightAboutToExecute();
    void preflightExecuted();

  protected:
    FindCSLBoundaries();

  private:
    QVector<LaueOps::Pointer> m_OrientationOps;
    CubicOps::Pointer m_CubicOps;
    HexagonalOps::Pointer m_HexOps;
    OrthoRhombicOps::Pointer m_OrthoOps;

    DEFINE_DATAARRAY_VARIABLE(float, AvgQuats)
    DEFINE_DATAARRAY_VARIABLE(int32_t, FeaturePhases)
    DEFINE_DATAARRAY_VARIABLE(unsigned int, CrystalStructures)
    DEFINE_DATAARRAY_VARIABLE(int32_t, SurfaceMeshFaceLabels)
    DEFINE_DATAARRAY_VARIABLE(double, SurfaceMeshFaceNormals)
    DEFINE_DATAARRAY_VARIABLE(bool, SurfaceMeshCSLBoundary)
    DEFINE_DATAARRAY_VARIABLE(float, SurfaceMeshCSLBoundaryIncoherence)

    void dataCheckVoxel();
    void dataCheckSurfaceMesh();

  public:
    FindCSLBoundaries(const FindCSLBoundaries&) = delete; // Copy Constructor Not Implemented
    FindCSLBoundaries(FindCSLBoundaries&&) = delete;      // Move Constructor Not Implemented
    FindCSLBoundaries& operator=(const FindCSLBoundaries&) = delete; // Copy Assignment Not Implemented
    FindCSLBoundaries& operator=(FindCSLBoundaries&&) = delete;      // Move Assignment Not Implemented
};


text:
<component name="libraryTable">
  <library name="Gradle: org.springframework.security:spring-security-config:4.1.1.RELEASE">
    <CLASSES>
      <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-config/4.1.1.RELEASE/3616b49db81527d69d2bf3d9ad6b0fa899d1080d/spring-security-config-4.1.1.RELEASE.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-config/4.1.1.RELEASE/ab09792d0f493aeb23fef729760cd6210c6ea02a/spring-security-config-4.1.1.RELEASE-sources.jar!/" />
    </SOURCES>
  </library>
</component>


text:
require 'rails_helper'

RSpec.describe UserPolicy do
  subject { UserPolicy }

  let(:user){ create(:user) }

  shared_examples_for "update permissions" do
    it "should deny access if user is nil" do
      is_expected.not_to permit(nil, user)
    end

    it "should deny access if user is not updating himself" do
      is_expected.not_to permit(User.new, user)
    end

    it "should permit access if user is updating himself" do
      is_expected.to permit(user, user)
    end

    it "should permit access if user is admin" do
      admin = build(:user, admin: true)
      is_expected.to permit(admin, user)
    end
  end

  permissions(:show?) do
    it{ is_expected.to permit(nil, user) }
  end

  permissions(:update?){ it_should_behave_like "update permissions" }

  permissions(:destroy?){ it_should_behave_like "update permissions" }

  permissions(:credits?){ it_should_behave_like "update permissions" }

  permissions(:update_password?){ it_should_behave_like "update permissions" }

  permissions(:unsubscribe_notifications?){ it_should_behave_like "update permissions" }
end


text:
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({name: 'celsiusToFahrenheit'})
export class CelsiusToFahrenheitPipe implements PipeTransform {
  transform(value: number): number {
    return isNaN(value)?undefined:value*9/5+32;
  }
}


text:
<component name="ProjectDictionaryState">
  <dictionary name="fabio">
    <words>
      <w>gingerr</w>
    </words>
  </dictionary>
</component>


text:
namespace gpu {
namespace {

// Stores a set of offsets, initially 0 to |element_count_|. Allows callers to
// take and return offsets from the set. Internally stores the offsets as a set
// of ranges. This means that in the worst case (every other offset taken), the
// set will use |element_count_| uints, but should typically use fewer.
class FreeOffsetSet {
 public:
  // Creates a new set, containing 0 to |element_count|.
  explicit FreeOffsetSet(uint32_t element_count);

  FreeOffsetSet(const FreeOffsetSet&) = delete;
  FreeOffsetSet& operator=(const FreeOffsetSet&) = delete;

  // Returns true if the set contains at least one element.
  bool HasFreeOffset() const;

  // Returns true if any element from the set has been taken.
  bool HasUsedOffset() const;

  // Takes a free offset from the set. Should only be called if HasFreeOffset().
  uint32_t TakeFreeOffset();

  // Returns an offset to the set.
  void ReturnFreeOffset(uint32_t offset);

 private:
  struct FreeRange {
    uint32_t start;
    uint32_t end;
  };
  struct CompareFreeRanges {
    bool operator()(const FreeRange& a, const FreeRange& b) const {
      return a.start < b.start;
    }
  };

  const uint32_t element_count_;
  base::flat_set<FreeRange, CompareFreeRanges> free_ranges_;
};

FreeOffsetSet::FreeOffsetSet(uint32_t element_count)
    : element_count_(element_count) {
  free_ranges_.insert({0, element_count_});
}

bool FreeOffsetSet::HasFreeOffset() const {
  return !free_ranges_.empty();
}

bool FreeOffsetSet::HasUsedOffset() const {
  if (free_ranges_.size() != 1 || free_ranges_.begin()->start != 0 ||
      free_ranges_.begin()->end != element_count_)
    return true;

  return false;
}

uint32_t FreeOffsetSet::TakeFreeOffset() {
  DCHECK(HasFreeOffset());

  auto it = free_ranges_.begin();
  uint32_t offset_to_return = it->start;

  FreeRange new_range{it->start + 1, it->end};
  free_ranges_.erase(it);
  if (new_range.start != new_range.end)
    free_ranges_.insert(new_range);

  return offset_to_return;
}

void FreeOffsetSet::ReturnFreeOffset(uint32_t offset) {
  FreeRange new_range{offset, offset + 1};

  // Find the FreeRange directly before/after our new range.
  auto next_range = free_ranges_.lower_bound(new_range);
  auto prev_range = free_ranges_.end();
  if (next_range != free_ranges_.begin()) {
    prev_range = std::prev(next_range);
  }

  // Collapse ranges if possible.
  if (prev_range != free_ranges_.end() && prev_range->end == new_range.start) {
    new_range.start = prev_range->start;
    // Erase invalidates the next_range iterator, so re-acquire it.
    next_range = free_ranges_.erase(prev_range);
  }

  if (next_range != free_ranges_.end() && next_range->start == new_range.end) {
    new_range.end = next_range->end;
    free_ranges_.erase(next_range);
  }

  free_ranges_.insert(new_range);
}

// Returns the size of the allocation which ClientDiscardableManager will
// sub-allocate from. This should be at least as big as the minimum shared
// memory allocation size.
size_t AllocationSize() {
#if BUILDFLAG(IS_NACL)
  // base::SysInfo isn't available under NaCl.
  size_t system_allocation_size = getpagesize();
#else
  size_t system_allocation_size = base::SysInfo::VMAllocationGranularity();
#endif

  // If the allocation is small (less than 2K), round it up to at least 2K.
  return std::max(size_t{2048}, system_allocation_size);
}

ClientDiscardableHandle::Id GetNextHandleId() {
  static base::AtomicSequenceNumber g_next_handle_id;

  // AtomicSequenceNumber is 0-based, add 1 to have a 1-based ID where 0 is
  // invalid.
  return ClientDiscardableHandle::Id::FromUnsafeValue(
      g_next_handle_id.GetNext() + 1);
}

}  // namespace

struct ClientDiscardableManager::Allocation {
  Allocation(uint32_t element_count) : free_offsets(element_count) {}

  scoped_refptr<Buffer> buffer;
  int32_t shm_id = 0;
  FreeOffsetSet free_offsets;
};

ClientDiscardableManager::ClientDiscardableManager()
    : allocation_size_(AllocationSize()) {}
ClientDiscardableManager::~ClientDiscardableManager() = default;

ClientDiscardableHandle::Id ClientDiscardableManager::CreateHandle(
    CommandBuffer* command_buffer) {
  scoped_refptr<Buffer> buffer;
  int32_t shm_id;
  uint32_t offset = 0;
  if (!FindAllocation(command_buffer, &buffer, &shm_id, &offset)) {
    // This can fail if we've lost context, return an invalid Id.
    return ClientDiscardableHandle::Id();
  }

  uint32_t byte_offset = base::checked_cast<uint32_t>(offset * element_size_);
  ClientDiscardableHandle handle(std::move(buffer), byte_offset, shm_id);
  ClientDiscardableHandle::Id handle_id = GetNextHandleId();
  handles_.emplace(handle_id, handle);

  return handle_id;
}

bool ClientDiscardableManager::LockHandle(
    ClientDiscardableHandle::Id handle_id) {
  auto found = handles_.find(handle_id);
  if (found == handles_.end())
    return false;
  return found->second.Lock();
}

void ClientDiscardableManager::FreeHandle(
    ClientDiscardableHandle::Id handle_id) {
  auto found = handles_.find(handle_id);
  if (found == handles_.end())
    return;
  pending_handles_.push(found->second);
  handles_.erase(found);
}

bool ClientDiscardableManager::HandleIsValid(
    ClientDiscardableHandle::Id handle_id) const {
  return handles_.find(handle_id) != handles_.end();
}

ClientDiscardableHandle ClientDiscardableManager::GetHandle(
    ClientDiscardableHandle::Id handle_id) {
  auto found = handles_.find(handle_id);
  if (found == handles_.end())
    return ClientDiscardableHandle();
  return found->second;
}

bool ClientDiscardableManager::HandleIsDeleted(
    ClientDiscardableHandle::Id handle_id) {
  auto found = handles_.find(handle_id);
  if (found == handles_.end())
    return true;

  if (found->second.CanBeReUsed()) {
    handles_.erase(found);
    return true;
  }

  return false;
}

bool ClientDiscardableManager::HandleIsDeletedForTracing(
    ClientDiscardableHandle::Id handle_id) const {
  auto found = handles_.find(handle_id);
  if (found == handles_.end())
    return true;
  return found->second.IsDeletedForTracing();
}

bool ClientDiscardableManager::FindAllocation(CommandBuffer* command_buffer,
                                              scoped_refptr<Buffer>* buffer,
                                              int32_t* shm_id,
                                              uint32_t* offset) {
  CheckPending(command_buffer);

  if (FindExistingAllocation(command_buffer, buffer, shm_id, offset))
    return true;

  // We couldn't find an existing free entry and are about to allocate more
  // space. Check whether any handles have been deleted on the service side.
  if (CheckDeleted(command_buffer)) {
    // We deleted at least one entry, try to find an allocaiton. If the entry
    // we deleted was the last one in an allocation, it's possbile that we
    // *still* won't have allocaitons, so this isn't guaranteed to succeed.
    if (FindExistingAllocation(command_buffer, buffer, shm_id, offset))
      return true;
  }

  // Allocate more space.
  auto allocation = std::make_unique<Allocation>(elements_per_allocation_);
  allocation->buffer = command_buffer->CreateTransferBuffer(
      base::checked_cast<uint32_t>(allocation_size_), &allocation->shm_id);
  if (!allocation->buffer)
    return false;

  *offset = allocation->free_offsets.TakeFreeOffset();
  *shm_id = allocation->shm_id;
  *buffer = allocation->buffer;
  allocations_.push_back(std::move(allocation));
  return true;
}

bool ClientDiscardableManager::FindExistingAllocation(
    CommandBuffer* command_buffer,
    scoped_refptr<Buffer>* buffer,
    int32_t* shm_id,
    uint32_t* offset) {
  for (auto& allocation : allocations_) {
    if (!allocation->free_offsets.HasFreeOffset())
      continue;

    *offset = allocation->free_offsets.TakeFreeOffset();
    *shm_id = allocation->shm_id;
    *buffer = allocation->buffer;
    return true;
  }

  return false;
}

void ClientDiscardableManager::ReturnAllocation(
    CommandBuffer* command_buffer,
    const ClientDiscardableHandle& handle) {
  for (auto it = allocations_.begin(); it != allocations_.end(); ++it) {
    Allocation* allocation = it->get();
    if (allocation->shm_id != handle.shm_id())
      continue;

    allocation->free_offsets.ReturnFreeOffset(
        static_cast<uint32_t>(handle.byte_offset() / element_size_));

    if (!allocation->free_offsets.HasUsedOffset()) {
      command_buffer->DestroyTransferBuffer(allocation->shm_id);
      allocations_.erase(it);
      return;
    }
  }
}

void ClientDiscardableManager::CheckPending(CommandBuffer* command_buffer) {
  while (pending_handles_.size() > 0 &&
         pending_handles_.front().CanBeReUsed()) {
    ReturnAllocation(command_buffer, pending_handles_.front());
    pending_handles_.pop();
  }
}

bool ClientDiscardableManager::CheckDeleted(CommandBuffer* command_buffer) {
  bool freed_entry = false;
  for (auto it = handles_.begin(); it != handles_.end();) {
    if (it->second.CanBeReUsed()) {
      ReturnAllocation(command_buffer, it->second);
      it = handles_.erase(it);
      freed_entry = true;
    } else {
      ++it;
    }
  }
  return freed_entry;
}

}  // namespace gpu


text:
typedef struct i8042_ps2 i8042_ps2_t;
typedef struct i8042_ps2_device i8042_ps2_device_t;
typedef struct i8042_ps2_device_driver i8042_ps2_device_driver_t;

// Types of devices supported
typedef enum {
	kI8042DeviceNone = -1,
	kI8042DeviceKeyboard = 1,
	kI8042DeviceMouse,
	kI8042DeviceUnknown
} i8042_device_type_t;

// Device state
typedef enum {
	kI8042StateFailed = -2,
	kI8042StateNone = -1,
	kI8042StateWaitingForResetAck,
	kI8042StateWaitingForPOST,
	kI8042StateWaitingDisableScanningAck,
	kI8042StateWaitingIdentifyAck,
	kI8042StateWaitingIdentifyResponse,
	kI8042StateWaitingEnableScanningAck,

	kI8042StateReady // ready for device drivers to accept data
} i8042_device_state_t;

// Device struct
struct i8042_ps2_device {
	uint8_t port;
	bool isUsable;
	bool connected;

	i8042_device_type_t type;
	i8042_device_state_t state;

	// used for driver purposes
	device_t device;

	// Identify response
	uint8_t identify[2];
	uint8_t identify_bytes_read;

	// Send queue
	uint8_t sendqueue[I8042_SENDQUEUE_SIZE];
	uint8_t sendqueue_writeoff;
	uint8_t sendqueue_readoff;
	uint8_t sendqueue_bytes_waiting;
};

// Driver struct
struct i8042_ps2 {
	i8042_ps2_device_t devices[2];
	device_t *bus_device;

	// Whether the controller has one or two ports
	bool isDualPort;
};

// Struct returned by a PS2 kbd/mouse driver indicating callbacks
struct i8042_ps2_device_driver {
	void (*byte_from_device)(uint8_t);
};

// Used to send a byte to a specified device
void i8042_send(i8042_ps2_device_t *, uint8_t);


text:
<?php
// http://tagging.pui.ch/post/37027745720/tags-database-schemas
class SQLiteDatabaseSql {

    public static function CreateSkillTable() {
        $sql = <<<'EOT'
CREATE TABLE IF NOT EXISTS skill
(
    id INTEGER PRIMARY KEY,
    skill_number INTEGER,
    version TEXT,
    name TEXT,
    school TEXT,
    type TEXT,
    cost TEXT,
    str_def TEXT,
    use TEXT,
    distance TEXT,
    rarity TEXT,
    skill_text TEXT,
    air TEXT,
    velocity TEXT,
    homing TEXT,
    recovery TEXT,
    notes TEXT
)
EOT;
        return $sql;
    }

    public static function CreateArsenalTable() {
        $sql = <<<'EOT'
CREATE TABLE IF NOT EXISTS arsenal
(
    id INTEGER PRIMARY KEY,
    name TEXT,
    description TEXT,
    config TEXT,
    author TEXT,
    created_date TEXT,
    case_size INTEGER
)
EOT;
        return $sql;
    }

    public static function CreateSchoolTable() {
        $sql = <<<'EOT'
CREATE  TABLE IF NOT EXISTS  "school"
(
    "id" INTEGER PRIMARY KEY NOT NULL UNIQUE,
    "name" TEXT NOT NULL
);

INSERT INTO "school" ("id","name")
SELECT 0, 'Psycho'
WHERE NOT EXISTS(SELECT 1 FROM "school" WHERE "id" = 0 AND "name" = 'Psycho');

INSERT INTO "school" ("id","name")
SELECT 1, 'Optical'
WHERE NOT EXISTS(SELECT 1 FROM "school" WHERE "id" = 1 AND "name" = 'Optical');

INSERT INTO "school" ("id","name")
SELECT 2, 'Nature'
WHERE NOT EXISTS(SELECT 1 FROM "school" WHERE "id" = 2 AND "name" = 'Nature');

INSERT INTO "school" ("id","name")
SELECT 3, 'Ki'
WHERE NOT EXISTS(SELECT 1 FROM "school" WHERE "id" = 3 AND "name" = 'Ki');

INSERT INTO "school" ("id","name")
SELECT 4, 'Faith'
WHERE NOT EXISTS(SELECT 1 FROM "school" WHERE "id" = 4 AND "name" = 'Faith');
EOT;
        return $sql;
    }

    public static function CreateArsenalSchoolTable() {
        $sql = <<<'EOT'
CREATE TABLE IF NOT EXISTS "arsenal_school"
(
    "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE,
    "arsenal_id" INTEGER,
    "school_id" INTEGER
);
EOT;
        return $sql;
    }

    public static function CreateTagTable() {
        $sql = <<<'EOT'
CREATE TABLE IF NOT EXISTS "tag"
(
    "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE,
    "name" TEXT
);
EOT;
        return $sql;
    }

    public static function CreateArsenalTagTable() {
        $sql = <<<'EOT'
CREATE TABLE IF NOT EXISTS "arsenal_tag"
(
    "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE,
    "arsenal_id" INTEGER,
    "tag_id" INTEGER
);
EOT;
        return $sql;
    }
}


text:
package com.groupon.lex.metrics.lib;

import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import lombok.Value;

/**
 *
 * @author ariane
 */
@Value
public final class HostnamePort {
    private final String hostname;
    private final int port;

    public static HostnamePort valueOf(String param) {
        return valueOf(param, 0);
    }

    public static HostnamePort valueOf(String param, int defaultPort) {
        final String hostname;
        final int port;
        final int colonPos = param.lastIndexOf(':');
        if (colonPos == -1) {
            hostname = param;
            port = defaultPort;
        } else {
            final String prefix = param.substring(0, colonPos);
            final String suffix = param.substring(colonPos + 1);
            boolean parseFailed = false;
            int suffixInt = -1;
            try {
                suffixInt = Integer.parseInt(suffix);
            } catch (NumberFormatException ex) {
                parseFailed = true;
            }
            if (parseFailed) {
                hostname = param;
                port = defaultPort;
            } else {
                hostname = prefix;
                port = suffixInt;
            }
        }
        return new HostnamePort(hostname, port);
    }

    public InetSocketAddress getAddress() {
        return new InetSocketAddress(getHostname(), getPort());
    }

    public List<InetSocketAddress> getAddressList() throws UnknownHostException {
        InetAddress[] addresses = InetAddress.getAllByName(getHostname());
        return Arrays.stream(addresses).map((java.net.InetAddress addr) -> new InetSocketAddress(addr, getPort())).collect(Collectors.toList());
    }
}


text:
SYNONYM

#### According to
Index Fungorum

#### Published in
null

#### Original name
Megalodochium indica R. Begum & Rizwana

### Remarks
null


text:
Ext.define('Ux.locale.override.st.field.Field', {
    override : 'Ext.field.Field',

    requires : [
        'Ux.locale.override.st.Component'
    ],

    constructor : function() {
        this.callSuper(arguments);
    },

    setLocale : function(locale) {
        var me                 = this,
            locales            = me.locales || me.getInitialConfig().locales,
            label              = locales.label,
            placeholder        = locales.placeHolder,
            manager            = me.locale,
            defaultPlaceholder = '',
            defaultLabel       = '';

        if (label) {
            if (Ext.isObject(label)) {
                defaultLabel = label.defaultLabel;
                label        = label.key;
            }

            label = manager.get(label, defaultLabel);

            if (Ext.isString(label)) {
                me.setLabel(label);
            }
        }

        if (placeholder) {
            if (Ext.isObject(placeholder)) {
                defaultPlaceholder = label.defaultPlaceholder;
                placeholder        = placeholder.key;
            }

            placeholder = manager.get(placeholder, defaultPlaceholder);

            if (Ext.isString(placeholder)) {
                me.setPlaceHolder(placeholder);
            }
        }

        me.callParent(arguments);
    }
});


text:
package org.cidrz.webapp.dynasite.utils.sort;

import java.io.Serializable;
import java.util.Comparator;

import org.cidrz.webapp.dynasite.valueobject.DateVisitOrderable;

/**
 * Sorts FlowOrderComparator objects. Other object types will default to natural order (see java.lang.Comparable).
 */
public class DateVisitOrderComparator implements Comparator, Serializable {
    public int compare(Object o1, Object o2) {
        if ((o1 instanceof DateVisitOrderable) && (o2 instanceof DateVisitOrderable)) {
        	DateVisitOrderable do1, do2;
            do1 = (DateVisitOrderable) o1;
            do2 = (DateVisitOrderable) o2;
            if (do1.getDateVisit() == null) {
            	 return -1;
            }
            if (do2.getDateVisit() == null) {
            	return -1;
            }
            if (do1.getDateVisit().getTime() > do2.getDateVisit().getTime()) {
                return 1;
            } else if (do1.getDateVisit().getTime() < do2.getDateVisit().getTime()) {
                return -1;
            }
        }
        return 0;
    }

}


text:
package com.firebase.ui.auth.ui.email;

import android.view.View;
import android.widget.ImageView;

class ImageFocusTransparencyChanger implements View.OnFocusChangeListener {
    private final ImageView mTogglePasswordImage;
    private final float mSlightlyVisible;
    private final float mVisible;

    public ImageFocusTransparencyChanger(
            ImageView togglePasswordImage,
            float visible,
            float slightlyVisible) {
        mTogglePasswordImage = togglePasswordImage;
        mVisible = visible;
        mSlightlyVisible = slightlyVisible;
        mTogglePasswordImage.setAlpha(mSlightlyVisible);
    }

    @Override
    public void onFocusChange(View v, boolean hasFocus) {
        if (hasFocus) {
            mTogglePasswordImage.setAlpha(mVisible);
        } else {
            mTogglePasswordImage.setAlpha(mSlightlyVisible);
        }
    }
}