...

Source file src/github.com/datawire/ambassador/v2/pkg/api/envoy/admin/v4alpha/metrics.pb.go

Documentation: github.com/datawire/ambassador/v2/pkg/api/envoy/admin/v4alpha

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.14.0
     5  // source: envoy/admin/v4alpha/metrics.proto
     6  
     7  package envoy_admin_v4alpha
     8  
     9  import (
    10  	_ "github.com/cncf/udpa/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_v4alpha_metrics_proto_enumTypes[0].Descriptor()
    60  }
    61  
    62  func (SimpleMetric_Type) Type() protoreflect.EnumType {
    63  	return &file_envoy_admin_v4alpha_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_v4alpha_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.v4alpha.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_v4alpha_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_v4alpha_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_v4alpha_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_v4alpha_metrics_proto protoreflect.FileDescriptor
   143  
   144  var file_envoy_admin_v4alpha_metrics_proto_rawDesc = []byte{
   145  	0x0a, 0x21, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x34,
   146  	0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72,
   147  	0x6f, 0x74, 0x6f, 0x12, 0x13, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e,
   148  	0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61,
   149  	0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75,
   150  	0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e,
   151  	0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
   152  	0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb8, 0x01, 0x0a, 0x0c, 0x53,
   153  	0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x12, 0x3a, 0x0a, 0x04, 0x74,
   154  	0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
   155  	0x79, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e,
   156  	0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x2e, 0x54, 0x79, 0x70,
   157  	0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
   158  	0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a,
   159  	0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
   160  	0x65, 0x22, 0x1e, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x55,
   161  	0x4e, 0x54, 0x45, 0x52, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x41, 0x55, 0x47, 0x45, 0x10,
   162  	0x01, 0x3a, 0x22, 0x9a, 0xc5, 0x88, 0x1e, 0x1d, 0x0a, 0x1b, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
   163  	0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d,
   164  	0x65, 0x74, 0x72, 0x69, 0x63, 0x42, 0x3b, 0x0a, 0x21, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
   165  	0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x64, 0x6d,
   166  	0x69, 0x6e, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0c, 0x4d, 0x65, 0x74, 0x72,
   167  	0x69, 0x63, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02,
   168  	0x10, 0x03, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   169  }
   170  
   171  var (
   172  	file_envoy_admin_v4alpha_metrics_proto_rawDescOnce sync.Once
   173  	file_envoy_admin_v4alpha_metrics_proto_rawDescData = file_envoy_admin_v4alpha_metrics_proto_rawDesc
   174  )
   175  
   176  func file_envoy_admin_v4alpha_metrics_proto_rawDescGZIP() []byte {
   177  	file_envoy_admin_v4alpha_metrics_proto_rawDescOnce.Do(func() {
   178  		file_envoy_admin_v4alpha_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_admin_v4alpha_metrics_proto_rawDescData)
   179  	})
   180  	return file_envoy_admin_v4alpha_metrics_proto_rawDescData
   181  }
   182  
   183  var file_envoy_admin_v4alpha_metrics_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   184  var file_envoy_admin_v4alpha_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   185  var file_envoy_admin_v4alpha_metrics_proto_goTypes = []interface{}{
   186  	(SimpleMetric_Type)(0), // 0: envoy.admin.v4alpha.SimpleMetric.Type
   187  	(*SimpleMetric)(nil),   // 1: envoy.admin.v4alpha.SimpleMetric
   188  }
   189  var file_envoy_admin_v4alpha_metrics_proto_depIdxs = []int32{
   190  	0, // 0: envoy.admin.v4alpha.SimpleMetric.type:type_name -> envoy.admin.v4alpha.SimpleMetric.Type
   191  	1, // [1:1] is the sub-list for method output_type
   192  	1, // [1:1] is the sub-list for method input_type
   193  	1, // [1:1] is the sub-list for extension type_name
   194  	1, // [1:1] is the sub-list for extension extendee
   195  	0, // [0:1] is the sub-list for field type_name
   196  }
   197  
   198  func init() { file_envoy_admin_v4alpha_metrics_proto_init() }
   199  func file_envoy_admin_v4alpha_metrics_proto_init() {
   200  	if File_envoy_admin_v4alpha_metrics_proto != nil {
   201  		return
   202  	}
   203  	if !protoimpl.UnsafeEnabled {
   204  		file_envoy_admin_v4alpha_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   205  			switch v := v.(*SimpleMetric); i {
   206  			case 0:
   207  				return &v.state
   208  			case 1:
   209  				return &v.sizeCache
   210  			case 2:
   211  				return &v.unknownFields
   212  			default:
   213  				return nil
   214  			}
   215  		}
   216  	}
   217  	type x struct{}
   218  	out := protoimpl.TypeBuilder{
   219  		File: protoimpl.DescBuilder{
   220  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   221  			RawDescriptor: file_envoy_admin_v4alpha_metrics_proto_rawDesc,
   222  			NumEnums:      1,
   223  			NumMessages:   1,
   224  			NumExtensions: 0,
   225  			NumServices:   0,
   226  		},
   227  		GoTypes:           file_envoy_admin_v4alpha_metrics_proto_goTypes,
   228  		DependencyIndexes: file_envoy_admin_v4alpha_metrics_proto_depIdxs,
   229  		EnumInfos:         file_envoy_admin_v4alpha_metrics_proto_enumTypes,
   230  		MessageInfos:      file_envoy_admin_v4alpha_metrics_proto_msgTypes,
   231  	}.Build()
   232  	File_envoy_admin_v4alpha_metrics_proto = out.File
   233  	file_envoy_admin_v4alpha_metrics_proto_rawDesc = nil
   234  	file_envoy_admin_v4alpha_metrics_proto_goTypes = nil
   235  	file_envoy_admin_v4alpha_metrics_proto_depIdxs = nil
   236  }
   237  

View as plain text