// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/logging/v1/log_group.proto

package logging

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	durationpb "google.golang.org/protobuf/types/known/durationpb"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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)
)

// Possible log group statuses.
type LogGroup_Status int32

const (
	// Unknown status.
	//
	// Should never occur.
	LogGroup_STATUS_UNSPECIFIED LogGroup_Status = 0
	// Log group is creating.
	LogGroup_CREATING LogGroup_Status = 1
	// Log group is ready to accept messages,
	LogGroup_ACTIVE LogGroup_Status = 2
	// Log group is being deleted.
	//
	// No messages will be accepted.
	LogGroup_DELETING LogGroup_Status = 3
	// Log group is in failed state.
	LogGroup_ERROR LogGroup_Status = 4
)

// Enum value maps for LogGroup_Status.
var (
	LogGroup_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "CREATING",
		2: "ACTIVE",
		3: "DELETING",
		4: "ERROR",
	}
	LogGroup_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"CREATING":           1,
		"ACTIVE":             2,
		"DELETING":           3,
		"ERROR":              4,
	}
)

func (x LogGroup_Status) Enum() *LogGroup_Status {
	p := new(LogGroup_Status)
	*p = x
	return p
}

func (x LogGroup_Status) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (LogGroup_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_logging_v1_log_group_proto_enumTypes[0].Descriptor()
}

func (LogGroup_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_logging_v1_log_group_proto_enumTypes[0]
}

func (x LogGroup_Status) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use LogGroup_Status.Descriptor instead.
func (LogGroup_Status) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_logging_v1_log_group_proto_rawDescGZIP(), []int{0, 0}
}

type LogGroup struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Log group ID.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Log group folder ID.
	FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Log group cloud ID.
	CloudId string `protobuf:"bytes,3,opt,name=cloud_id,json=cloudId,proto3" json:"cloud_id,omitempty"`
	// Log group creation time.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Log group name.
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// Log group description.
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// Log group labels.
	Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Status of the log group.
	Status LogGroup_Status `protobuf:"varint,8,opt,name=status,proto3,enum=yandex.cloud.logging.v1.LogGroup_Status" json:"status,omitempty"`
	// Log group entry retention period.
	//
	// Entries will be present in group during this period.
	RetentionPeriod *durationpb.Duration `protobuf:"bytes,9,opt,name=retention_period,json=retentionPeriod,proto3" json:"retention_period,omitempty"`
	// Data stream name
	DataStream    string `protobuf:"bytes,10,opt,name=data_stream,json=dataStream,proto3" json:"data_stream,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*LogGroup) ProtoMessage() {}

func (x *LogGroup) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_logging_v1_log_group_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 LogGroup.ProtoReflect.Descriptor instead.
func (*LogGroup) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_logging_v1_log_group_proto_rawDescGZIP(), []int{0}
}

func (x *LogGroup) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *LogGroup) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

func (x *LogGroup) GetCloudId() string {
	if x != nil {
		return x.CloudId
	}
	return ""
}

func (x *LogGroup) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *LogGroup) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *LogGroup) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *LogGroup) GetLabels() map[string]string {
	if x != nil {
		return x.Labels
	}
	return nil
}

func (x *LogGroup) GetStatus() LogGroup_Status {
	if x != nil {
		return x.Status
	}
	return LogGroup_STATUS_UNSPECIFIED
}

func (x *LogGroup) GetRetentionPeriod() *durationpb.Duration {
	if x != nil {
		return x.RetentionPeriod
	}
	return nil
}

func (x *LogGroup) GetDataStream() string {
	if x != nil {
		return x.DataStream
	}
	return ""
}

var File_yandex_cloud_logging_v1_log_group_proto protoreflect.FileDescriptor

const file_yandex_cloud_logging_v1_log_group_proto_rawDesc = "" +
	"\n" +
	"'yandex/cloud/logging/v1/log_group.proto\x12\x17yandex.cloud.logging.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc3\x04\n" +
	"\bLogGroup\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
	"\tfolder_id\x18\x02 \x01(\tR\bfolderId\x12\x19\n" +
	"\bcloud_id\x18\x03 \x01(\tR\acloudId\x129\n" +
	"\n" +
	"created_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x12\n" +
	"\x04name\x18\x05 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x06 \x01(\tR\vdescription\x12E\n" +
	"\x06labels\x18\a \x03(\v2-.yandex.cloud.logging.v1.LogGroup.LabelsEntryR\x06labels\x12@\n" +
	"\x06status\x18\b \x01(\x0e2(.yandex.cloud.logging.v1.LogGroup.StatusR\x06status\x12D\n" +
	"\x10retention_period\x18\t \x01(\v2\x19.google.protobuf.DurationR\x0fretentionPeriod\x12\x1f\n" +
	"\vdata_stream\x18\n" +
	" \x01(\tR\n" +
	"dataStream\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"S\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\f\n" +
	"\bCREATING\x10\x01\x12\n" +
	"\n" +
	"\x06ACTIVE\x10\x02\x12\f\n" +
	"\bDELETING\x10\x03\x12\t\n" +
	"\x05ERROR\x10\x04Bb\n" +
	"\x1byandex.cloud.api.logging.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/logging/v1;loggingb\x06proto3"

var (
	file_yandex_cloud_logging_v1_log_group_proto_rawDescOnce sync.Once
	file_yandex_cloud_logging_v1_log_group_proto_rawDescData []byte
)

func file_yandex_cloud_logging_v1_log_group_proto_rawDescGZIP() []byte {
	file_yandex_cloud_logging_v1_log_group_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_logging_v1_log_group_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_logging_v1_log_group_proto_rawDesc), len(file_yandex_cloud_logging_v1_log_group_proto_rawDesc)))
	})
	return file_yandex_cloud_logging_v1_log_group_proto_rawDescData
}

var file_yandex_cloud_logging_v1_log_group_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_logging_v1_log_group_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_logging_v1_log_group_proto_goTypes = []any{
	(LogGroup_Status)(0),          // 0: yandex.cloud.logging.v1.LogGroup.Status
	(*LogGroup)(nil),              // 1: yandex.cloud.logging.v1.LogGroup
	nil,                           // 2: yandex.cloud.logging.v1.LogGroup.LabelsEntry
	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
	(*durationpb.Duration)(nil),   // 4: google.protobuf.Duration
}
var file_yandex_cloud_logging_v1_log_group_proto_depIdxs = []int32{
	3, // 0: yandex.cloud.logging.v1.LogGroup.created_at:type_name -> google.protobuf.Timestamp
	2, // 1: yandex.cloud.logging.v1.LogGroup.labels:type_name -> yandex.cloud.logging.v1.LogGroup.LabelsEntry
	0, // 2: yandex.cloud.logging.v1.LogGroup.status:type_name -> yandex.cloud.logging.v1.LogGroup.Status
	4, // 3: yandex.cloud.logging.v1.LogGroup.retention_period:type_name -> google.protobuf.Duration
	4, // [4:4] is the sub-list for method output_type
	4, // [4:4] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() { file_yandex_cloud_logging_v1_log_group_proto_init() }
func file_yandex_cloud_logging_v1_log_group_proto_init() {
	if File_yandex_cloud_logging_v1_log_group_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_logging_v1_log_group_proto_rawDesc), len(file_yandex_cloud_logging_v1_log_group_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_logging_v1_log_group_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_logging_v1_log_group_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_logging_v1_log_group_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_logging_v1_log_group_proto_msgTypes,
	}.Build()
	File_yandex_cloud_logging_v1_log_group_proto = out.File
	file_yandex_cloud_logging_v1_log_group_proto_goTypes = nil
	file_yandex_cloud_logging_v1_log_group_proto_depIdxs = nil
}
