// @generated by protoc-gen-es v2.10.2 with parameter "target=ts,import_extension=ts"
// @generated from file common/v1/color.proto (package common.v1, syntax proto3)
/* eslint-disable */

import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
import { file_buf_validate_validate } from "../../buf/validate/validate_pb.ts";
import type { Message } from "@bufbuild/protobuf";

/**
 * Describes the file common/v1/color.proto.
 */
export const file_common_v1_color: GenFile = /*@__PURE__*/
  fileDesc("ChVjb21tb24vdjEvY29sb3IucHJvdG8SCWNvbW1vbi52MSJRCgVDb2xvchIcCgNyZWQYASABKAJCD7pIDAoKHQAAgD8tAAAAABINCgVncmVlbhgCIAEoAhIMCgRibHVlGAMgASgCEg0KBWFscGhhGAQgASgCQqIBCg1jb20uY29tbW9uLnYxQgpDb2xvclByb3RvUAFaN2dpdGh1Yi5jb20vY29ib3Rhci9wcm90b2NvbC9tZXNzYWdlcy9jb21tb24vdjE7Y29tbW9udjGiAgNDWFiqAhJNZXNzYWdlcy5Db21tb24uVjHKAglDb21tb25cVjHiAhVDb21tb25cVjFcR1BCTWV0YWRhdGHqAgpDb21tb246OlYxYgZwcm90bzM", [file_buf_validate_validate]);

/**
 * Represents a color. Where (1, 1, 1, 1) is solid white, (1, 0, 0, 0.5) is half transparent red, and so on.
 *
 * @generated from message common.v1.Color
 */
export type Color = Message<"common.v1.Color"> & {
  /**
   * Ranging from [0:1]
   *
   * @generated from field: float red = 1;
   */
  red: number;

  /**
   * Ranging from [0:1]
   *
   * @generated from field: float green = 2;
   */
  green: number;

  /**
   * Ranging from [0:1]
   *
   * @generated from field: float blue = 3;
   */
  blue: number;

  /**
   * Ranging from [0:1] --> [transparent : opaque]
   *
   * @generated from field: float alpha = 4;
   */
  alpha: number;
};

/**
 * Describes the message common.v1.Color.
 * Use `create(ColorSchema)` to create a new message.
 */
export const ColorSchema: GenMessage<Color> = /*@__PURE__*/
  messageDesc(file_common_v1_color, 0);

