...

Source file src/github.com/emissary-ingress/emissary/v3/pkg/api/envoy/admin/v2alpha/mutex_stats.pb.go

Documentation: github.com/emissary-ingress/emissary/v3/pkg/api/envoy/admin/v2alpha

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

View as plain text