| // Copyright 2021 The ChromiumOS Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.27.1 |
| // protoc v3.17.1 |
| // source: chromiumos/greenness.proto |
| |
| package chromiumos |
| |
| import ( |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| reflect "reflect" |
| sync "sync" |
| ) |
| |
| 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) |
| ) |
| |
| // Specifies context for greenness score if needed. |
| type AggregateGreenness_Greenness_Context int32 |
| |
| const ( |
| AggregateGreenness_Greenness_UNSPECIFIED AggregateGreenness_Greenness_Context = 0 |
| // The target/builder was not relevant. |
| AggregateGreenness_Greenness_IRRELEVANT AggregateGreenness_Greenness_Context = 1 |
| ) |
| |
| // Enum value maps for AggregateGreenness_Greenness_Context. |
| var ( |
| AggregateGreenness_Greenness_Context_name = map[int32]string{ |
| 0: "UNSPECIFIED", |
| 1: "IRRELEVANT", |
| } |
| AggregateGreenness_Greenness_Context_value = map[string]int32{ |
| "UNSPECIFIED": 0, |
| "IRRELEVANT": 1, |
| } |
| ) |
| |
| func (x AggregateGreenness_Greenness_Context) Enum() *AggregateGreenness_Greenness_Context { |
| p := new(AggregateGreenness_Greenness_Context) |
| *p = x |
| return p |
| } |
| |
| func (x AggregateGreenness_Greenness_Context) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (AggregateGreenness_Greenness_Context) Descriptor() protoreflect.EnumDescriptor { |
| return file_chromiumos_greenness_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (AggregateGreenness_Greenness_Context) Type() protoreflect.EnumType { |
| return &file_chromiumos_greenness_proto_enumTypes[0] |
| } |
| |
| func (x AggregateGreenness_Greenness_Context) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use AggregateGreenness_Greenness_Context.Descriptor instead. |
| func (AggregateGreenness_Greenness_Context) EnumDescriptor() ([]byte, []int) { |
| return file_chromiumos_greenness_proto_rawDescGZIP(), []int{0, 0, 0} |
| } |
| |
| // AggregateGreenness is the expression of greenness of source and infra |
| // at a given point in time. |
| // b:305071352 - target specific fields will be deprecated. |
| type AggregateGreenness struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Aggregate indication of greenness for all targets/builders in this run. |
| AggregateMetric int64 `protobuf:"varint,1,opt,name=aggregate_metric,json=aggregateMetric,proto3" json:"aggregate_metric,omitempty"` |
| // List of greenness to target granularity. Will be deprecated soon. |
| TargetGreenness []*AggregateGreenness_Greenness `protobuf:"bytes,2,rep,name=target_greenness,json=targetGreenness,proto3" json:"target_greenness,omitempty"` |
| // Aggregate indication of build-only greenness for all targets/builders in this run. |
| AggregateBuildMetric int64 `protobuf:"varint,3,opt,name=aggregate_build_metric,json=aggregateBuildMetric,proto3" json:"aggregate_build_metric,omitempty"` |
| // List of greenness to builder granularity. |
| BuilderGreenness []*AggregateGreenness_Greenness `protobuf:"bytes,4,rep,name=builder_greenness,json=builderGreenness,proto3" json:"builder_greenness,omitempty"` |
| } |
| |
| func (x *AggregateGreenness) Reset() { |
| *x = AggregateGreenness{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_chromiumos_greenness_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *AggregateGreenness) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*AggregateGreenness) ProtoMessage() {} |
| |
| func (x *AggregateGreenness) ProtoReflect() protoreflect.Message { |
| mi := &file_chromiumos_greenness_proto_msgTypes[0] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use AggregateGreenness.ProtoReflect.Descriptor instead. |
| func (*AggregateGreenness) Descriptor() ([]byte, []int) { |
| return file_chromiumos_greenness_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *AggregateGreenness) GetAggregateMetric() int64 { |
| if x != nil { |
| return x.AggregateMetric |
| } |
| return 0 |
| } |
| |
| func (x *AggregateGreenness) GetTargetGreenness() []*AggregateGreenness_Greenness { |
| if x != nil { |
| return x.TargetGreenness |
| } |
| return nil |
| } |
| |
| func (x *AggregateGreenness) GetAggregateBuildMetric() int64 { |
| if x != nil { |
| return x.AggregateBuildMetric |
| } |
| return 0 |
| } |
| |
| func (x *AggregateGreenness) GetBuilderGreenness() []*AggregateGreenness_Greenness { |
| if x != nil { |
| return x.BuilderGreenness |
| } |
| return nil |
| } |
| |
| // Greenness specific to a target/builder. |
| type AggregateGreenness_Greenness struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The name of the target. Will be deprecated soon. |
| Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` |
| // Indication of greenness for the target/builder in this run. |
| Metric int64 `protobuf:"varint,2,opt,name=metric,proto3" json:"metric,omitempty"` |
| Context AggregateGreenness_Greenness_Context `protobuf:"varint,3,opt,name=context,proto3,enum=chromiumos.AggregateGreenness_Greenness_Context" json:"context,omitempty"` |
| // Indication of build-only greenness for the target/builder in this run. |
| BuildMetric int64 `protobuf:"varint,4,opt,name=build_metric,json=buildMetric,proto3" json:"build_metric,omitempty"` |
| // The name of the builder. Ex: 'brya-kernelnext', etc. |
| Builder string `protobuf:"bytes,5,opt,name=builder,proto3" json:"builder,omitempty"` |
| } |
| |
| func (x *AggregateGreenness_Greenness) Reset() { |
| *x = AggregateGreenness_Greenness{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_chromiumos_greenness_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *AggregateGreenness_Greenness) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*AggregateGreenness_Greenness) ProtoMessage() {} |
| |
| func (x *AggregateGreenness_Greenness) ProtoReflect() protoreflect.Message { |
| mi := &file_chromiumos_greenness_proto_msgTypes[1] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use AggregateGreenness_Greenness.ProtoReflect.Descriptor instead. |
| func (*AggregateGreenness_Greenness) Descriptor() ([]byte, []int) { |
| return file_chromiumos_greenness_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| func (x *AggregateGreenness_Greenness) GetTarget() string { |
| if x != nil { |
| return x.Target |
| } |
| return "" |
| } |
| |
| func (x *AggregateGreenness_Greenness) GetMetric() int64 { |
| if x != nil { |
| return x.Metric |
| } |
| return 0 |
| } |
| |
| func (x *AggregateGreenness_Greenness) GetContext() AggregateGreenness_Greenness_Context { |
| if x != nil { |
| return x.Context |
| } |
| return AggregateGreenness_Greenness_UNSPECIFIED |
| } |
| |
| func (x *AggregateGreenness_Greenness) GetBuildMetric() int64 { |
| if x != nil { |
| return x.BuildMetric |
| } |
| return 0 |
| } |
| |
| func (x *AggregateGreenness_Greenness) GetBuilder() string { |
| if x != nil { |
| return x.Builder |
| } |
| return "" |
| } |
| |
| var File_chromiumos_greenness_proto protoreflect.FileDescriptor |
| |
| var file_chromiumos_greenness_proto_rawDesc = []byte{ |
| 0x0a, 0x1a, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x67, 0x72, 0x65, |
| 0x65, 0x6e, 0x6e, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x63, 0x68, |
| 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x22, 0x94, 0x04, 0x0a, 0x12, 0x41, 0x67, 0x67, |
| 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x6e, 0x65, 0x73, 0x73, 0x12, |
| 0x29, 0x0a, 0x10, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x65, 0x74, |
| 0x72, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x61, 0x67, 0x67, 0x72, 0x65, |
| 0x67, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x53, 0x0a, 0x10, 0x74, 0x61, |
| 0x72, 0x67, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x65, 0x65, 0x6e, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x02, |
| 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, |
| 0x73, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x47, 0x72, 0x65, 0x65, 0x6e, |
| 0x6e, 0x65, 0x73, 0x73, 0x2e, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x6e, 0x65, 0x73, 0x73, 0x52, 0x0f, |
| 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x6e, 0x65, 0x73, 0x73, 0x12, |
| 0x34, 0x0a, 0x16, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x75, 0x69, |
| 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, |
| 0x14, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4d, |
| 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x55, 0x0a, 0x11, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, |
| 0x5f, 0x67, 0x72, 0x65, 0x65, 0x6e, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, |
| 0x32, 0x28, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x67, |
| 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x6e, 0x65, 0x73, 0x73, |
| 0x2e, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x6e, 0x65, 0x73, 0x73, 0x52, 0x10, 0x62, 0x75, 0x69, 0x6c, |
| 0x64, 0x65, 0x72, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x6e, 0x65, 0x73, 0x73, 0x1a, 0xf0, 0x01, 0x0a, |
| 0x09, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x6e, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, |
| 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, |
| 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, |
| 0x28, 0x03, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x4a, 0x0a, 0x07, 0x63, 0x6f, |
| 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x63, 0x68, |
| 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, |
| 0x74, 0x65, 0x47, 0x72, 0x65, 0x65, 0x6e, 0x6e, 0x65, 0x73, 0x73, 0x2e, 0x47, 0x72, 0x65, 0x65, |
| 0x6e, 0x6e, 0x65, 0x73, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x07, 0x63, |
| 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, |
| 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x75, |
| 0x69, 0x6c, 0x64, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x75, 0x69, |
| 0x6c, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x75, 0x69, 0x6c, |
| 0x64, 0x65, 0x72, 0x22, 0x2a, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x0f, |
| 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, |
| 0x0e, 0x0a, 0x0a, 0x49, 0x52, 0x52, 0x45, 0x4c, 0x45, 0x56, 0x41, 0x4e, 0x54, 0x10, 0x01, 0x42, |
| 0x59, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x68, |
| 0x72, 0x6f, 0x6d, 0x65, 0x2e, 0x63, 0x72, 0x6f, 0x73, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2e, 0x70, |
| 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, |
| 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, |
| 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, |
| 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, |
| 0x6f, 0x33, |
| } |
| |
| var ( |
| file_chromiumos_greenness_proto_rawDescOnce sync.Once |
| file_chromiumos_greenness_proto_rawDescData = file_chromiumos_greenness_proto_rawDesc |
| ) |
| |
| func file_chromiumos_greenness_proto_rawDescGZIP() []byte { |
| file_chromiumos_greenness_proto_rawDescOnce.Do(func() { |
| file_chromiumos_greenness_proto_rawDescData = protoimpl.X.CompressGZIP(file_chromiumos_greenness_proto_rawDescData) |
| }) |
| return file_chromiumos_greenness_proto_rawDescData |
| } |
| |
| var file_chromiumos_greenness_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| var file_chromiumos_greenness_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| var file_chromiumos_greenness_proto_goTypes = []interface{}{ |
| (AggregateGreenness_Greenness_Context)(0), // 0: chromiumos.AggregateGreenness.Greenness.Context |
| (*AggregateGreenness)(nil), // 1: chromiumos.AggregateGreenness |
| (*AggregateGreenness_Greenness)(nil), // 2: chromiumos.AggregateGreenness.Greenness |
| } |
| var file_chromiumos_greenness_proto_depIdxs = []int32{ |
| 2, // 0: chromiumos.AggregateGreenness.target_greenness:type_name -> chromiumos.AggregateGreenness.Greenness |
| 2, // 1: chromiumos.AggregateGreenness.builder_greenness:type_name -> chromiumos.AggregateGreenness.Greenness |
| 0, // 2: chromiumos.AggregateGreenness.Greenness.context:type_name -> chromiumos.AggregateGreenness.Greenness.Context |
| 3, // [3:3] is the sub-list for method output_type |
| 3, // [3:3] is the sub-list for method input_type |
| 3, // [3:3] is the sub-list for extension type_name |
| 3, // [3:3] is the sub-list for extension extendee |
| 0, // [0:3] is the sub-list for field type_name |
| } |
| |
| func init() { file_chromiumos_greenness_proto_init() } |
| func file_chromiumos_greenness_proto_init() { |
| if File_chromiumos_greenness_proto != nil { |
| return |
| } |
| if !protoimpl.UnsafeEnabled { |
| file_chromiumos_greenness_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*AggregateGreenness); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_chromiumos_greenness_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*AggregateGreenness_Greenness); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: file_chromiumos_greenness_proto_rawDesc, |
| NumEnums: 1, |
| NumMessages: 2, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_chromiumos_greenness_proto_goTypes, |
| DependencyIndexes: file_chromiumos_greenness_proto_depIdxs, |
| EnumInfos: file_chromiumos_greenness_proto_enumTypes, |
| MessageInfos: file_chromiumos_greenness_proto_msgTypes, |
| }.Build() |
| File_chromiumos_greenness_proto = out.File |
| file_chromiumos_greenness_proto_rawDesc = nil |
| file_chromiumos_greenness_proto_goTypes = nil |
| file_chromiumos_greenness_proto_depIdxs = nil |
| } |