| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.9
- // protoc v6.32.1
- // source: protos/model/window.proto
- package pb
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- 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)
- )
- // Window defines a unit of time by a resolution and a start time
- type Window struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // resolution in "1h" or "1d" format
- Resolution string `protobuf:"bytes,1,opt,name=resolution,proto3" json:"resolution,omitempty"`
- // the start time of the window described
- Start *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Window) Reset() {
- *x = Window{}
- mi := &file_protos_model_window_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Window) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Window) ProtoMessage() {}
- func (x *Window) ProtoReflect() protoreflect.Message {
- mi := &file_protos_model_window_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 Window.ProtoReflect.Descriptor instead.
- func (*Window) Descriptor() ([]byte, []int) {
- return file_protos_model_window_proto_rawDescGZIP(), []int{0}
- }
- func (x *Window) GetResolution() string {
- if x != nil {
- return x.Resolution
- }
- return ""
- }
- func (x *Window) GetStart() *timestamppb.Timestamp {
- if x != nil {
- return x.Start
- }
- return nil
- }
- var File_protos_model_window_proto protoreflect.FileDescriptor
- const file_protos_model_window_proto_rawDesc = "" +
- "\n" +
- "\x19protos/model/window.proto\x12\x05model\x1a\x1fgoogle/protobuf/timestamp.proto\"Z\n" +
- "\x06Window\x12\x1e\n" +
- "\n" +
- "resolution\x18\x01 \x01(\tR\n" +
- "resolution\x120\n" +
- "\x05start\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x05startB0Z.github.com/opencost/opencost/core/pkg/model/pbb\x06proto3"
- var (
- file_protos_model_window_proto_rawDescOnce sync.Once
- file_protos_model_window_proto_rawDescData []byte
- )
- func file_protos_model_window_proto_rawDescGZIP() []byte {
- file_protos_model_window_proto_rawDescOnce.Do(func() {
- file_protos_model_window_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_protos_model_window_proto_rawDesc), len(file_protos_model_window_proto_rawDesc)))
- })
- return file_protos_model_window_proto_rawDescData
- }
- var file_protos_model_window_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
- var file_protos_model_window_proto_goTypes = []any{
- (*Window)(nil), // 0: model.Window
- (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
- }
- var file_protos_model_window_proto_depIdxs = []int32{
- 1, // 0: model.Window.start:type_name -> google.protobuf.Timestamp
- 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_protos_model_window_proto_init() }
- func file_protos_model_window_proto_init() {
- if File_protos_model_window_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_protos_model_window_proto_rawDesc), len(file_protos_model_window_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 1,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_protos_model_window_proto_goTypes,
- DependencyIndexes: file_protos_model_window_proto_depIdxs,
- MessageInfos: file_protos_model_window_proto_msgTypes,
- }.Build()
- File_protos_model_window_proto = out.File
- file_protos_model_window_proto_goTypes = nil
- file_protos_model_window_proto_depIdxs = nil
- }
|