// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: common/v1/color.proto

package commonv1

import (
	_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

// Represents a color. Where (1, 1, 1, 1) is solid white, (1, 0, 0, 0.5) is half transparent red, and so on.
type Color struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Red           float32                `protobuf:"fixed32,1,opt,name=red,proto3" json:"red,omitempty"`     // Ranging from [0:1]
	Green         float32                `protobuf:"fixed32,2,opt,name=green,proto3" json:"green,omitempty"` // Ranging from [0:1]
	Blue          float32                `protobuf:"fixed32,3,opt,name=blue,proto3" json:"blue,omitempty"`   // Ranging from [0:1]
	Alpha         float32                `protobuf:"fixed32,4,opt,name=alpha,proto3" json:"alpha,omitempty"` // Ranging from [0:1] --> [transparent : opaque]
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Color) Reset() {
	*x = Color{}
	mi := &file_common_v1_color_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Color) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Color) ProtoMessage() {}

func (x *Color) ProtoReflect() protoreflect.Message {
	mi := &file_common_v1_color_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Color.ProtoReflect.Descriptor instead.
func (*Color) Descriptor() ([]byte, []int) {
	return file_common_v1_color_proto_rawDescGZIP(), []int{0}
}

func (x *Color) GetRed() float32 {
	if x != nil {
		return x.Red
	}
	return 0
}

func (x *Color) GetGreen() float32 {
	if x != nil {
		return x.Green
	}
	return 0
}

func (x *Color) GetBlue() float32 {
	if x != nil {
		return x.Blue
	}
	return 0
}

func (x *Color) GetAlpha() float32 {
	if x != nil {
		return x.Alpha
	}
	return 0
}

var File_common_v1_color_proto protoreflect.FileDescriptor

const file_common_v1_color_proto_rawDesc = "" +
	"\n" +
	"\x15common/v1/color.proto\x12\tcommon.v1\x1a\x1bbuf/validate/validate.proto\"j\n" +
	"\x05Color\x12!\n" +
	"\x03red\x18\x01 \x01(\x02B\x0f\xbaH\f\n" +
	"\n" +
	"\x1d\x00\x00\x80?-\x00\x00\x00\x00R\x03red\x12\x14\n" +
	"\x05green\x18\x02 \x01(\x02R\x05green\x12\x12\n" +
	"\x04blue\x18\x03 \x01(\x02R\x04blue\x12\x14\n" +
	"\x05alpha\x18\x04 \x01(\x02R\x05alphaB\xa2\x01\n" +
	"\rcom.common.v1B\n" +
	"ColorProtoP\x01Z7github.com/cobotar/protocol/messages/common/v1;commonv1\xa2\x02\x03CXX\xaa\x02\x12Messages.Common.V1\xca\x02\tCommon\\V1\xe2\x02\x15Common\\V1\\GPBMetadata\xea\x02\n" +
	"Common::V1b\x06proto3"

var (
	file_common_v1_color_proto_rawDescOnce sync.Once
	file_common_v1_color_proto_rawDescData []byte
)

func file_common_v1_color_proto_rawDescGZIP() []byte {
	file_common_v1_color_proto_rawDescOnce.Do(func() {
		file_common_v1_color_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_common_v1_color_proto_rawDesc), len(file_common_v1_color_proto_rawDesc)))
	})
	return file_common_v1_color_proto_rawDescData
}

var file_common_v1_color_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_common_v1_color_proto_goTypes = []any{
	(*Color)(nil), // 0: common.v1.Color
}
var file_common_v1_color_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_common_v1_color_proto_init() }
func file_common_v1_color_proto_init() {
	if File_common_v1_color_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_v1_color_proto_rawDesc), len(file_common_v1_color_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_common_v1_color_proto_goTypes,
		DependencyIndexes: file_common_v1_color_proto_depIdxs,
		MessageInfos:      file_common_v1_color_proto_msgTypes,
	}.Build()
	File_common_v1_color_proto = out.File
	file_common_v1_color_proto_goTypes = nil
	file_common_v1_color_proto_depIdxs = nil
}
