// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.8
// 	protoc        v6.32.0
// source: protos/telemetry.proto

package proto

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

type SendResponse_SendResponseType int32

const (
	SendResponse_SUCCESS       SendResponse_SendResponseType = 0
	SendResponse_NETWORK_ERROR SendResponse_SendResponseType = 1
	SendResponse_UNKNOWN_ERROR SendResponse_SendResponseType = 2
)

// Enum value maps for SendResponse_SendResponseType.
var (
	SendResponse_SendResponseType_name = map[int32]string{
		0: "SUCCESS",
		1: "NETWORK_ERROR",
		2: "UNKNOWN_ERROR",
	}
	SendResponse_SendResponseType_value = map[string]int32{
		"SUCCESS":       0,
		"NETWORK_ERROR": 1,
		"UNKNOWN_ERROR": 2,
	}
)

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

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

func (SendResponse_SendResponseType) Descriptor() protoreflect.EnumDescriptor {
	return file_protos_telemetry_proto_enumTypes[0].Descriptor()
}

func (SendResponse_SendResponseType) Type() protoreflect.EnumType {
	return &file_protos_telemetry_proto_enumTypes[0]
}

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

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

type CollectResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Metrics       string                 `protobuf:"bytes,1,opt,name=metrics,proto3" json:"metrics,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*CollectResponse) ProtoMessage() {}

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

func (x *CollectResponse) GetMetrics() string {
	if x != nil {
		return x.Metrics
	}
	return ""
}

type SendResponse struct {
	state         protoimpl.MessageState        `protogen:"open.v1"`
	Type          SendResponse_SendResponseType `protobuf:"varint,1,opt,name=type,proto3,enum=telemetry.SendResponse_SendResponseType" json:"type,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *SendResponse) Reset() {
	*x = SendResponse{}
	mi := &file_protos_telemetry_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*SendResponse) ProtoMessage() {}

func (x *SendResponse) ProtoReflect() protoreflect.Message {
	mi := &file_protos_telemetry_proto_msgTypes[1]
	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 SendResponse.ProtoReflect.Descriptor instead.
func (*SendResponse) Descriptor() ([]byte, []int) {
	return file_protos_telemetry_proto_rawDescGZIP(), []int{1}
}

func (x *SendResponse) GetType() SendResponse_SendResponseType {
	if x != nil {
		return x.Type
	}
	return SendResponse_SUCCESS
}

var File_protos_telemetry_proto protoreflect.FileDescriptor

const file_protos_telemetry_proto_rawDesc = "" +
	"\n" +
	"\x16protos/telemetry.proto\x12\ttelemetry\x1a\x1bgoogle/protobuf/empty.proto\"+\n" +
	"\x0fCollectResponse\x12\x18\n" +
	"\ametrics\x18\x01 \x01(\tR\ametrics\"\x93\x01\n" +
	"\fSendResponse\x12<\n" +
	"\x04type\x18\x01 \x01(\x0e2(.telemetry.SendResponse.SendResponseTypeR\x04type\"E\n" +
	"\x10SendResponseType\x12\v\n" +
	"\aSUCCESS\x10\x00\x12\x11\n" +
	"\rNETWORK_ERROR\x10\x01\x12\x11\n" +
	"\rUNKNOWN_ERROR\x10\x022\xd4\x01\n" +
	"\x10TelemetryService\x12=\n" +
	"\aCollect\x12\x16.google.protobuf.Empty\x1a\x1a.telemetry.CollectResponse\x12A\n" +
	"\x0eCollectAndSend\x12\x16.google.protobuf.Empty\x1a\x17.telemetry.SendResponse\x12>\n" +
	"\vSendDecline\x12\x16.google.protobuf.Empty\x1a\x17.telemetry.SendResponseB;Z9github.com/canonical/ubuntu-desktop-provision/provd/protob\x06proto3"

var (
	file_protos_telemetry_proto_rawDescOnce sync.Once
	file_protos_telemetry_proto_rawDescData []byte
)

func file_protos_telemetry_proto_rawDescGZIP() []byte {
	file_protos_telemetry_proto_rawDescOnce.Do(func() {
		file_protos_telemetry_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_protos_telemetry_proto_rawDesc), len(file_protos_telemetry_proto_rawDesc)))
	})
	return file_protos_telemetry_proto_rawDescData
}

var file_protos_telemetry_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_protos_telemetry_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_protos_telemetry_proto_goTypes = []any{
	(SendResponse_SendResponseType)(0), // 0: telemetry.SendResponse.SendResponseType
	(*CollectResponse)(nil),            // 1: telemetry.CollectResponse
	(*SendResponse)(nil),               // 2: telemetry.SendResponse
	(*emptypb.Empty)(nil),              // 3: google.protobuf.Empty
}
var file_protos_telemetry_proto_depIdxs = []int32{
	0, // 0: telemetry.SendResponse.type:type_name -> telemetry.SendResponse.SendResponseType
	3, // 1: telemetry.TelemetryService.Collect:input_type -> google.protobuf.Empty
	3, // 2: telemetry.TelemetryService.CollectAndSend:input_type -> google.protobuf.Empty
	3, // 3: telemetry.TelemetryService.SendDecline:input_type -> google.protobuf.Empty
	1, // 4: telemetry.TelemetryService.Collect:output_type -> telemetry.CollectResponse
	2, // 5: telemetry.TelemetryService.CollectAndSend:output_type -> telemetry.SendResponse
	2, // 6: telemetry.TelemetryService.SendDecline:output_type -> telemetry.SendResponse
	4, // [4:7] is the sub-list for method output_type
	1, // [1:4] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_protos_telemetry_proto_init() }
func file_protos_telemetry_proto_init() {
	if File_protos_telemetry_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_protos_telemetry_proto_rawDesc), len(file_protos_telemetry_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_protos_telemetry_proto_goTypes,
		DependencyIndexes: file_protos_telemetry_proto_depIdxs,
		EnumInfos:         file_protos_telemetry_proto_enumTypes,
		MessageInfos:      file_protos_telemetry_proto_msgTypes,
	}.Build()
	File_protos_telemetry_proto = out.File
	file_protos_telemetry_proto_goTypes = nil
	file_protos_telemetry_proto_depIdxs = nil
}
