Notes added by 'git notes append'
This commit is contained in:
parent
37674b2130
commit
c70070e0e5
|
@ -2168,3 +2168,351 @@ func (v *Experiments) Unmarshal(data []byte) error {
|
|||
}
|
||||
|
||||
// `autogen:experiment.pb.go`
|
||||
|
||||
// Code modified by go.wit.com/apps/autogenpb DO NOT EDIT.
|
||||
//
|
||||
// user defined Mutex locks were auto added
|
||||
//
|
||||
// autogenpb version & build time: v0.0.50 2025-02-07_10:22:09_UTC
|
||||
// autogenpb auto generates Sort(), Unique() and Marshal() functions
|
||||
// go install go.wit.com/apps/autogenpb@latest
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.35.2-devel
|
||||
// protoc v3.21.12
|
||||
// source: experiment.proto
|
||||
|
||||
package virtbuf // autogenpb changed the package name
|
||||
|
||||
import (
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
anypb "google.golang.org/protobuf/types/known/anypb"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
)
|
||||
|
||||
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 WhatsThis struct {
|
||||
sync.RWMutex // auto-added by go.wit.com/apps/autogenpb
|
||||
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// is it possible to have custom formatting in JSON and TEXT marshal/unmarshal ?
|
||||
Humantest *WhatInfo `protobuf:"bytes,1,opt,name=humantest,proto3" json:"humantest,omitempty"`
|
||||
End *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` // end time
|
||||
OrigVal *anypb.Any `protobuf:"bytes,3,opt,name=orig_val,json=origVal,proto3" json:"orig_val,omitempty"` // original value
|
||||
NewVal *anypb.Any `protobuf:"bytes,4,opt,name=new_val,json=newVal,proto3" json:"new_val,omitempty"` // new value
|
||||
}
|
||||
|
||||
func (x *WhatsThis) Reset() {
|
||||
*x = WhatsThis{}
|
||||
mi := &file_experiment_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *WhatsThis) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*WhatsThis) ProtoMessage() {}
|
||||
|
||||
func (x *WhatsThis) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_experiment_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 WhatsThis.ProtoReflect.Descriptor instead.
|
||||
func (*WhatsThis) Descriptor() ([]byte, []int) {
|
||||
return file_experiment_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *WhatsThis) GetHumantest() *WhatInfo {
|
||||
if x != nil {
|
||||
return x.Humantest
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *WhatsThis) GetEnd() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.End
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *WhatsThis) GetOrigVal() *anypb.Any {
|
||||
if x != nil {
|
||||
return x.OrigVal
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *WhatsThis) GetNewVal() *anypb.Any {
|
||||
if x != nil {
|
||||
return x.NewVal
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// this is for exerimenting
|
||||
type WhatInfo struct {
|
||||
sync.RWMutex // auto-added by go.wit.com/apps/autogenpb
|
||||
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Capacity int64 `protobuf:"varint,1,opt,name=capacity,proto3" json:"capacity,omitempty"` // Stores the storage capacity in bytes.
|
||||
}
|
||||
|
||||
func (x *WhatInfo) Reset() {
|
||||
*x = WhatInfo{}
|
||||
mi := &file_experiment_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *WhatInfo) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*WhatInfo) ProtoMessage() {}
|
||||
|
||||
func (x *WhatInfo) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_experiment_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 WhatInfo.ProtoReflect.Descriptor instead.
|
||||
func (*WhatInfo) Descriptor() ([]byte, []int) {
|
||||
return file_experiment_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *WhatInfo) GetCapacity() int64 {
|
||||
if x != nil {
|
||||
return x.Capacity
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type Experiment struct {
|
||||
sync.RWMutex // auto-added by go.wit.com/apps/autogenpb
|
||||
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *Experiment) Reset() {
|
||||
*x = Experiment{}
|
||||
mi := &file_experiment_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Experiment) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Experiment) ProtoMessage() {}
|
||||
|
||||
func (x *Experiment) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_experiment_proto_msgTypes[2]
|
||||
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 Experiment.ProtoReflect.Descriptor instead.
|
||||
func (*Experiment) Descriptor() ([]byte, []int) {
|
||||
return file_experiment_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
type Experiments struct {
|
||||
sync.RWMutex // auto-added by go.wit.com/apps/autogenpb
|
||||
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:aadb95db-d798-4647-8c59-cce82e8f1ed6`
|
||||
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v0.0.1`
|
||||
Experiments []*Experiment `protobuf:"bytes,3,rep,name=Experiments,proto3" json:"Experiments,omitempty"` // THIS MUST BE Experiment and then Experiments
|
||||
}
|
||||
|
||||
func (x *Experiments) Reset() {
|
||||
*x = Experiments{}
|
||||
mi := &file_experiment_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Experiments) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Experiments) ProtoMessage() {}
|
||||
|
||||
func (x *Experiments) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_experiment_proto_msgTypes[3]
|
||||
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 Experiments.ProtoReflect.Descriptor instead.
|
||||
func (*Experiments) Descriptor() ([]byte, []int) {
|
||||
return file_experiment_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *Experiments) GetUuid() string {
|
||||
if x != nil {
|
||||
return x.Uuid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Experiments) GetVersion() string {
|
||||
if x != nil {
|
||||
return x.Version
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Experiments) GetExperiments() []*Experiment {
|
||||
if x != nil {
|
||||
return x.Experiments
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_experiment_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_experiment_proto_rawDesc = []byte{
|
||||
0x0a, 0x10, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x12, 0x07, 0x76, 0x69, 0x72, 0x74, 0x62, 0x75, 0x66, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
|
||||
0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d,
|
||||
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f,
|
||||
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e,
|
||||
0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xca, 0x01, 0x0a, 0x09, 0x57, 0x68, 0x61, 0x74,
|
||||
0x73, 0x54, 0x68, 0x69, 0x73, 0x12, 0x2f, 0x0a, 0x09, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x74, 0x65,
|
||||
0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, 0x69, 0x72, 0x74, 0x62,
|
||||
0x75, 0x66, 0x2e, 0x57, 0x68, 0x61, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x68, 0x75, 0x6d,
|
||||
0x61, 0x6e, 0x74, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
|
||||
0x03, 0x65, 0x6e, 0x64, 0x12, 0x2f, 0x0a, 0x08, 0x6f, 0x72, 0x69, 0x67, 0x5f, 0x76, 0x61, 0x6c,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x6f, 0x72,
|
||||
0x69, 0x67, 0x56, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x07, 0x6e, 0x65, 0x77, 0x5f, 0x76, 0x61, 0x6c,
|
||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x06, 0x6e, 0x65,
|
||||
0x77, 0x56, 0x61, 0x6c, 0x22, 0x26, 0x0a, 0x08, 0x57, 0x68, 0x61, 0x74, 0x49, 0x6e, 0x66, 0x6f,
|
||||
0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x03, 0x52, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x22, 0x0c, 0x0a, 0x0a,
|
||||
0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x72, 0x0a, 0x0b, 0x45, 0x78,
|
||||
0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69,
|
||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a,
|
||||
0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
||||
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x0b, 0x45, 0x78, 0x70, 0x65, 0x72,
|
||||
0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x76,
|
||||
0x69, 0x72, 0x74, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e,
|
||||
0x74, 0x52, 0x0b, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_experiment_proto_rawDescOnce sync.Once
|
||||
file_experiment_proto_rawDescData = file_experiment_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_experiment_proto_rawDescGZIP() []byte {
|
||||
file_experiment_proto_rawDescOnce.Do(func() {
|
||||
file_experiment_proto_rawDescData = protoimpl.X.CompressGZIP(file_experiment_proto_rawDescData)
|
||||
})
|
||||
return file_experiment_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_experiment_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_experiment_proto_goTypes = []any{
|
||||
(*WhatsThis)(nil), // 0: virtbuf.WhatsThis
|
||||
(*WhatInfo)(nil), // 1: virtbuf.WhatInfo
|
||||
(*Experiment)(nil), // 2: virtbuf.Experiment
|
||||
(*Experiments)(nil), // 3: virtbuf.Experiments
|
||||
(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
|
||||
(*anypb.Any)(nil), // 5: google.protobuf.Any
|
||||
}
|
||||
var file_experiment_proto_depIdxs = []int32{
|
||||
1, // 0: virtbuf.WhatsThis.humantest:type_name -> virtbuf.WhatInfo
|
||||
4, // 1: virtbuf.WhatsThis.end:type_name -> google.protobuf.Timestamp
|
||||
5, // 2: virtbuf.WhatsThis.orig_val:type_name -> google.protobuf.Any
|
||||
5, // 3: virtbuf.WhatsThis.new_val:type_name -> google.protobuf.Any
|
||||
2, // 4: virtbuf.Experiments.Experiments:type_name -> virtbuf.Experiment
|
||||
5, // [5:5] is the sub-list for method output_type
|
||||
5, // [5:5] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
5, // [5:5] is the sub-list for extension extendee
|
||||
0, // [0:5] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_experiment_proto_init() }
|
||||
func file_experiment_proto_init() {
|
||||
if File_experiment_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_experiment_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_experiment_proto_goTypes,
|
||||
DependencyIndexes: file_experiment_proto_depIdxs,
|
||||
MessageInfos: file_experiment_proto_msgTypes,
|
||||
}.Build()
|
||||
File_experiment_proto = out.File
|
||||
file_experiment_proto_rawDesc = nil
|
||||
file_experiment_proto_goTypes = nil
|
||||
file_experiment_proto_depIdxs = nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue