// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.7
// 	protoc        v6.31.1
// source: src/main/java/com/google/devtools/build/lib/packages/metrics/package_load_metrics.proto

package metrics

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	durationpb "google.golang.org/protobuf/types/known/durationpb"
	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 PackageLoadMetrics struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	Name               *string                `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	LoadDuration       *durationpb.Duration   `protobuf:"bytes,2,opt,name=load_duration,json=loadDuration" json:"load_duration,omitempty"`
	NumTargets         *uint64                `protobuf:"varint,3,opt,name=num_targets,json=numTargets" json:"num_targets,omitempty"`
	ComputationSteps   *uint64                `protobuf:"varint,4,opt,name=computation_steps,json=computationSteps" json:"computation_steps,omitempty"`
	NumTransitiveLoads *uint64                `protobuf:"varint,5,opt,name=num_transitive_loads,json=numTransitiveLoads" json:"num_transitive_loads,omitempty"`
	PackageOverhead    *uint64                `protobuf:"varint,6,opt,name=package_overhead,json=packageOverhead" json:"package_overhead,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*PackageLoadMetrics) ProtoMessage() {}

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

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

func (x *PackageLoadMetrics) GetLoadDuration() *durationpb.Duration {
	if x != nil {
		return x.LoadDuration
	}
	return nil
}

func (x *PackageLoadMetrics) GetNumTargets() uint64 {
	if x != nil && x.NumTargets != nil {
		return *x.NumTargets
	}
	return 0
}

func (x *PackageLoadMetrics) GetComputationSteps() uint64 {
	if x != nil && x.ComputationSteps != nil {
		return *x.ComputationSteps
	}
	return 0
}

func (x *PackageLoadMetrics) GetNumTransitiveLoads() uint64 {
	if x != nil && x.NumTransitiveLoads != nil {
		return *x.NumTransitiveLoads
	}
	return 0
}

func (x *PackageLoadMetrics) GetPackageOverhead() uint64 {
	if x != nil && x.PackageOverhead != nil {
		return *x.PackageOverhead
	}
	return 0
}

var File_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto protoreflect.FileDescriptor

const file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_rawDesc = "" +
	"\n" +
	"Wsrc/main/java/com/google/devtools/build/lib/packages/metrics/package_load_metrics.proto\x12#devtools.build.lib.packages.metrics\x1a\x1egoogle/protobuf/duration.proto\"\x93\x02\n" +
	"\x12PackageLoadMetrics\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12>\n" +
	"\rload_duration\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\floadDuration\x12\x1f\n" +
	"\vnum_targets\x18\x03 \x01(\x04R\n" +
	"numTargets\x12+\n" +
	"\x11computation_steps\x18\x04 \x01(\x04R\x10computationSteps\x120\n" +
	"\x14num_transitive_loads\x18\x05 \x01(\x04R\x12numTransitiveLoads\x12)\n" +
	"\x10package_overhead\x18\x06 \x01(\x04R\x0fpackageOverheadB2\n" +
	".com.google.devtools.build.lib.packages.metricsP\x01"

var (
	file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_rawDescOnce sync.Once
	file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_rawDescData []byte
)

func file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_rawDescGZIP() []byte {
	file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_rawDescOnce.Do(func() {
		file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_rawDesc), len(file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_rawDesc)))
	})
	return file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_rawDescData
}

var file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_goTypes = []any{
	(*PackageLoadMetrics)(nil),  // 0: devtools.build.lib.packages.metrics.PackageLoadMetrics
	(*durationpb.Duration)(nil), // 1: google.protobuf.Duration
}
var file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_depIdxs = []int32{
	1, // 0: devtools.build.lib.packages.metrics.PackageLoadMetrics.load_duration:type_name -> google.protobuf.Duration
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] 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_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_init()
}
func file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_init() {
	if File_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_rawDesc), len(file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_goTypes,
		DependencyIndexes: file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_depIdxs,
		MessageInfos:      file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_msgTypes,
	}.Build()
	File_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto = out.File
	file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_goTypes = nil
	file_src_main_java_com_google_devtools_build_lib_packages_metrics_package_load_metrics_proto_depIdxs = nil
}
