github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/admin/v2alpha/mutex_stats.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.16.0 5 // source: envoy/admin/v2alpha/mutex_stats.proto 6 7 package envoy_admin_v2alpha 8 9 import ( 10 _ "github.com/cncf/xds/go/udpa/annotations" 11 proto "github.com/golang/protobuf/proto" 12 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 reflect "reflect" 15 sync "sync" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 // This is a compile-time assertion that a sufficiently up-to-date version 26 // of the legacy proto package is being used. 27 const _ = proto.ProtoPackageIsVersion4 28 29 // Proto representation of the statistics collected upon absl::Mutex contention, if Envoy is run 30 // under :option:`--enable-mutex-tracing`. For more information, see the `absl::Mutex` 31 // [docs](https://abseil.io/about/design/mutex#extra-features). 32 // 33 // *NB*: The wait cycles below are measured by `absl::base_internal::CycleClock`, and may not 34 // correspond to core clock frequency. For more information, see the `CycleClock` 35 // [docs](https://github.com/abseil/abseil-cpp/blob/master/absl/base/internal/cycleclock.h). 36 type MutexStats struct { 37 state protoimpl.MessageState 38 sizeCache protoimpl.SizeCache 39 unknownFields protoimpl.UnknownFields 40 41 // The number of individual mutex contentions which have occurred since startup. 42 NumContentions uint64 `protobuf:"varint,1,opt,name=num_contentions,json=numContentions,proto3" json:"num_contentions,omitempty"` 43 // The length of the current contention wait cycle. 44 CurrentWaitCycles uint64 `protobuf:"varint,2,opt,name=current_wait_cycles,json=currentWaitCycles,proto3" json:"current_wait_cycles,omitempty"` 45 // The lifetime total of all contention wait cycles. 46 LifetimeWaitCycles uint64 `protobuf:"varint,3,opt,name=lifetime_wait_cycles,json=lifetimeWaitCycles,proto3" json:"lifetime_wait_cycles,omitempty"` 47 } 48 49 func (x *MutexStats) Reset() { 50 *x = MutexStats{} 51 if protoimpl.UnsafeEnabled { 52 mi := &file_envoy_admin_v2alpha_mutex_stats_proto_msgTypes[0] 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 ms.StoreMessageInfo(mi) 55 } 56 } 57 58 func (x *MutexStats) String() string { 59 return protoimpl.X.MessageStringOf(x) 60 } 61 62 func (*MutexStats) ProtoMessage() {} 63 64 func (x *MutexStats) ProtoReflect() protoreflect.Message { 65 mi := &file_envoy_admin_v2alpha_mutex_stats_proto_msgTypes[0] 66 if protoimpl.UnsafeEnabled && x != nil { 67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 68 if ms.LoadMessageInfo() == nil { 69 ms.StoreMessageInfo(mi) 70 } 71 return ms 72 } 73 return mi.MessageOf(x) 74 } 75 76 // Deprecated: Use MutexStats.ProtoReflect.Descriptor instead. 77 func (*MutexStats) Descriptor() ([]byte, []int) { 78 return file_envoy_admin_v2alpha_mutex_stats_proto_rawDescGZIP(), []int{0} 79 } 80 81 func (x *MutexStats) GetNumContentions() uint64 { 82 if x != nil { 83 return x.NumContentions 84 } 85 return 0 86 } 87 88 func (x *MutexStats) GetCurrentWaitCycles() uint64 { 89 if x != nil { 90 return x.CurrentWaitCycles 91 } 92 return 0 93 } 94 95 func (x *MutexStats) GetLifetimeWaitCycles() uint64 { 96 if x != nil { 97 return x.LifetimeWaitCycles 98 } 99 return 0 100 } 101 102 var File_envoy_admin_v2alpha_mutex_stats_proto protoreflect.FileDescriptor 103 104 var file_envoy_admin_v2alpha_mutex_stats_proto_rawDesc = []byte{ 105 0x0a, 0x25, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x32, 106 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x6d, 0x75, 0x74, 0x65, 0x78, 0x5f, 0x73, 0x74, 0x61, 0x74, 107 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 108 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1d, 0x75, 0x64, 109 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 110 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x0a, 111 0x4d, 0x75, 0x74, 0x65, 0x78, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x6e, 0x75, 112 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 113 0x01, 0x28, 0x04, 0x52, 0x0e, 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x69, 114 0x6f, 0x6e, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x77, 115 0x61, 0x69, 0x74, 0x5f, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 116 0x52, 0x11, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x57, 0x61, 0x69, 0x74, 0x43, 0x79, 0x63, 117 0x6c, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x6c, 0x69, 0x66, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 118 0x77, 0x61, 0x69, 0x74, 0x5f, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 119 0x04, 0x52, 0x12, 0x6c, 0x69, 0x66, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x57, 0x61, 0x69, 0x74, 0x43, 120 0x79, 0x63, 0x6c, 0x65, 0x73, 0x42, 0x3e, 0x0a, 0x21, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 121 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x64, 0x6d, 122 0x69, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0f, 0x4d, 0x75, 0x74, 0x65, 123 0x78, 0x53, 0x74, 0x61, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 124 0xd1, 0x06, 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 125 } 126 127 var ( 128 file_envoy_admin_v2alpha_mutex_stats_proto_rawDescOnce sync.Once 129 file_envoy_admin_v2alpha_mutex_stats_proto_rawDescData = file_envoy_admin_v2alpha_mutex_stats_proto_rawDesc 130 ) 131 132 func file_envoy_admin_v2alpha_mutex_stats_proto_rawDescGZIP() []byte { 133 file_envoy_admin_v2alpha_mutex_stats_proto_rawDescOnce.Do(func() { 134 file_envoy_admin_v2alpha_mutex_stats_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_admin_v2alpha_mutex_stats_proto_rawDescData) 135 }) 136 return file_envoy_admin_v2alpha_mutex_stats_proto_rawDescData 137 } 138 139 var file_envoy_admin_v2alpha_mutex_stats_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 140 var file_envoy_admin_v2alpha_mutex_stats_proto_goTypes = []interface{}{ 141 (*MutexStats)(nil), // 0: envoy.admin.v2alpha.MutexStats 142 } 143 var file_envoy_admin_v2alpha_mutex_stats_proto_depIdxs = []int32{ 144 0, // [0:0] is the sub-list for method output_type 145 0, // [0:0] is the sub-list for method input_type 146 0, // [0:0] is the sub-list for extension type_name 147 0, // [0:0] is the sub-list for extension extendee 148 0, // [0:0] is the sub-list for field type_name 149 } 150 151 func init() { file_envoy_admin_v2alpha_mutex_stats_proto_init() } 152 func file_envoy_admin_v2alpha_mutex_stats_proto_init() { 153 if File_envoy_admin_v2alpha_mutex_stats_proto != nil { 154 return 155 } 156 if !protoimpl.UnsafeEnabled { 157 file_envoy_admin_v2alpha_mutex_stats_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 158 switch v := v.(*MutexStats); i { 159 case 0: 160 return &v.state 161 case 1: 162 return &v.sizeCache 163 case 2: 164 return &v.unknownFields 165 default: 166 return nil 167 } 168 } 169 } 170 type x struct{} 171 out := protoimpl.TypeBuilder{ 172 File: protoimpl.DescBuilder{ 173 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 174 RawDescriptor: file_envoy_admin_v2alpha_mutex_stats_proto_rawDesc, 175 NumEnums: 0, 176 NumMessages: 1, 177 NumExtensions: 0, 178 NumServices: 0, 179 }, 180 GoTypes: file_envoy_admin_v2alpha_mutex_stats_proto_goTypes, 181 DependencyIndexes: file_envoy_admin_v2alpha_mutex_stats_proto_depIdxs, 182 MessageInfos: file_envoy_admin_v2alpha_mutex_stats_proto_msgTypes, 183 }.Build() 184 File_envoy_admin_v2alpha_mutex_stats_proto = out.File 185 file_envoy_admin_v2alpha_mutex_stats_proto_rawDesc = nil 186 file_envoy_admin_v2alpha_mutex_stats_proto_goTypes = nil 187 file_envoy_admin_v2alpha_mutex_stats_proto_depIdxs = nil 188 }