github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/admin/v3/metrics.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/v3/metrics.proto
     6  
     7  package envoy_admin_v3
     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  type SimpleMetric_Type int32
    30  
    31  const (
    32  	SimpleMetric_COUNTER SimpleMetric_Type = 0
    33  	SimpleMetric_GAUGE   SimpleMetric_Type = 1
    34  )
    35  
    36  // Enum value maps for SimpleMetric_Type.
    37  var (
    38  	SimpleMetric_Type_name = map[int32]string{
    39  		0: "COUNTER",
    40  		1: "GAUGE",
    41  	}
    42  	SimpleMetric_Type_value = map[string]int32{
    43  		"COUNTER": 0,
    44  		"GAUGE":   1,
    45  	}
    46  )
    47  
    48  func (x SimpleMetric_Type) Enum() *SimpleMetric_Type {
    49  	p := new(SimpleMetric_Type)
    50  	*p = x
    51  	return p
    52  }
    53  
    54  func (x SimpleMetric_Type) String() string {
    55  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    56  }
    57  
    58  func (SimpleMetric_Type) Descriptor() protoreflect.EnumDescriptor {
    59  	return file_envoy_admin_v3_metrics_proto_enumTypes[0].Descriptor()
    60  }
    61  
    62  func (SimpleMetric_Type) Type() protoreflect.EnumType {
    63  	return &file_envoy_admin_v3_metrics_proto_enumTypes[0]
    64  }
    65  
    66  func (x SimpleMetric_Type) Number() protoreflect.EnumNumber {
    67  	return protoreflect.EnumNumber(x)
    68  }
    69  
    70  // Deprecated: Use SimpleMetric_Type.Descriptor instead.
    71  func (SimpleMetric_Type) EnumDescriptor() ([]byte, []int) {
    72  	return file_envoy_admin_v3_metrics_proto_rawDescGZIP(), []int{0, 0}
    73  }
    74  
    75  // Proto representation of an Envoy Counter or Gauge value.
    76  type SimpleMetric struct {
    77  	state         protoimpl.MessageState
    78  	sizeCache     protoimpl.SizeCache
    79  	unknownFields protoimpl.UnknownFields
    80  
    81  	// Type of the metric represented.
    82  	Type SimpleMetric_Type `protobuf:"varint,1,opt,name=type,proto3,enum=envoy.admin.v3.SimpleMetric_Type" json:"type,omitempty"`
    83  	// Current metric value.
    84  	Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
    85  	// Name of the metric.
    86  	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
    87  }
    88  
    89  func (x *SimpleMetric) Reset() {
    90  	*x = SimpleMetric{}
    91  	if protoimpl.UnsafeEnabled {
    92  		mi := &file_envoy_admin_v3_metrics_proto_msgTypes[0]
    93  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    94  		ms.StoreMessageInfo(mi)
    95  	}
    96  }
    97  
    98  func (x *SimpleMetric) String() string {
    99  	return protoimpl.X.MessageStringOf(x)
   100  }
   101  
   102  func (*SimpleMetric) ProtoMessage() {}
   103  
   104  func (x *SimpleMetric) ProtoReflect() protoreflect.Message {
   105  	mi := &file_envoy_admin_v3_metrics_proto_msgTypes[0]
   106  	if protoimpl.UnsafeEnabled && x != nil {
   107  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   108  		if ms.LoadMessageInfo() == nil {
   109  			ms.StoreMessageInfo(mi)
   110  		}
   111  		return ms
   112  	}
   113  	return mi.MessageOf(x)
   114  }
   115  
   116  // Deprecated: Use SimpleMetric.ProtoReflect.Descriptor instead.
   117  func (*SimpleMetric) Descriptor() ([]byte, []int) {
   118  	return file_envoy_admin_v3_metrics_proto_rawDescGZIP(), []int{0}
   119  }
   120  
   121  func (x *SimpleMetric) GetType() SimpleMetric_Type {
   122  	if x != nil {
   123  		return x.Type
   124  	}
   125  	return SimpleMetric_COUNTER
   126  }
   127  
   128  func (x *SimpleMetric) GetValue() uint64 {
   129  	if x != nil {
   130  		return x.Value
   131  	}
   132  	return 0
   133  }
   134  
   135  func (x *SimpleMetric) GetName() string {
   136  	if x != nil {
   137  		return x.Name
   138  	}
   139  	return ""
   140  }
   141  
   142  var File_envoy_admin_v3_metrics_proto protoreflect.FileDescriptor
   143  
   144  var file_envoy_admin_v3_metrics_proto_rawDesc = []byte{
   145  	0x0a, 0x1c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x33,
   146  	0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e,
   147  	0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x1a, 0x1d,
   148  	0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   149  	0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75,
   150  	0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
   151  	0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   152  	0x22, 0xb8, 0x01, 0x0a, 0x0c, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69,
   153  	0x63, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
   154  	0x21, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x33,
   155  	0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x2e, 0x54, 0x79,
   156  	0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
   157  	0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12,
   158  	0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
   159  	0x6d, 0x65, 0x22, 0x1e, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f,
   160  	0x55, 0x4e, 0x54, 0x45, 0x52, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x41, 0x55, 0x47, 0x45,
   161  	0x10, 0x01, 0x3a, 0x27, 0x9a, 0xc5, 0x88, 0x1e, 0x22, 0x0a, 0x20, 0x65, 0x6e, 0x76, 0x6f, 0x79,
   162  	0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53,
   163  	0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x42, 0x36, 0x0a, 0x1c, 0x69,
   164  	0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76,
   165  	0x6f, 0x79, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x42, 0x0c, 0x4d, 0x65, 0x74,
   166  	0x72, 0x69, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06,
   167  	0x02, 0x10, 0x02, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   168  }
   169  
   170  var (
   171  	file_envoy_admin_v3_metrics_proto_rawDescOnce sync.Once
   172  	file_envoy_admin_v3_metrics_proto_rawDescData = file_envoy_admin_v3_metrics_proto_rawDesc
   173  )
   174  
   175  func file_envoy_admin_v3_metrics_proto_rawDescGZIP() []byte {
   176  	file_envoy_admin_v3_metrics_proto_rawDescOnce.Do(func() {
   177  		file_envoy_admin_v3_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_admin_v3_metrics_proto_rawDescData)
   178  	})
   179  	return file_envoy_admin_v3_metrics_proto_rawDescData
   180  }
   181  
   182  var file_envoy_admin_v3_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   183  var file_envoy_admin_v3_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   184  var file_envoy_admin_v3_metrics_proto_goTypes = []interface{}{
   185  	(SimpleMetric_Type)(0), // 0: envoy.admin.v3.SimpleMetric.Type
   186  	(*SimpleMetric)(nil),   // 1: envoy.admin.v3.SimpleMetric
   187  }
   188  var file_envoy_admin_v3_metrics_proto_depIdxs = []int32{
   189  	0, // 0: envoy.admin.v3.SimpleMetric.type:type_name -> envoy.admin.v3.SimpleMetric.Type
   190  	1, // [1:1] is the sub-list for method output_type
   191  	1, // [1:1] is the sub-list for method input_type
   192  	1, // [1:1] is the sub-list for extension type_name
   193  	1, // [1:1] is the sub-list for extension extendee
   194  	0, // [0:1] is the sub-list for field type_name
   195  }
   196  
   197  func init() { file_envoy_admin_v3_metrics_proto_init() }
   198  func file_envoy_admin_v3_metrics_proto_init() {
   199  	if File_envoy_admin_v3_metrics_proto != nil {
   200  		return
   201  	}
   202  	if !protoimpl.UnsafeEnabled {
   203  		file_envoy_admin_v3_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   204  			switch v := v.(*SimpleMetric); i {
   205  			case 0:
   206  				return &v.state
   207  			case 1:
   208  				return &v.sizeCache
   209  			case 2:
   210  				return &v.unknownFields
   211  			default:
   212  				return nil
   213  			}
   214  		}
   215  	}
   216  	type x struct{}
   217  	out := protoimpl.TypeBuilder{
   218  		File: protoimpl.DescBuilder{
   219  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   220  			RawDescriptor: file_envoy_admin_v3_metrics_proto_rawDesc,
   221  			NumEnums:      1,
   222  			NumMessages:   1,
   223  			NumExtensions: 0,
   224  			NumServices:   0,
   225  		},
   226  		GoTypes:           file_envoy_admin_v3_metrics_proto_goTypes,
   227  		DependencyIndexes: file_envoy_admin_v3_metrics_proto_depIdxs,
   228  		EnumInfos:         file_envoy_admin_v3_metrics_proto_enumTypes,
   229  		MessageInfos:      file_envoy_admin_v3_metrics_proto_msgTypes,
   230  	}.Build()
   231  	File_envoy_admin_v3_metrics_proto = out.File
   232  	file_envoy_admin_v3_metrics_proto_rawDesc = nil
   233  	file_envoy_admin_v3_metrics_proto_goTypes = nil
   234  	file_envoy_admin_v3_metrics_proto_depIdxs = nil
   235  }