gitee.com/zhaochuninhefei/gmgo@v0.0.31-0.20240209061119-069254a02979/go-control-plane/envoy/extensions/stat_sinks/graphite_statsd/v3/graphite_statsd.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/extensions/stat_sinks/graphite_statsd/v3/graphite_statsd.proto
     6  
     7  package envoy_extensions_stat_sinks_graphite_statsd_v3
     8  
     9  import (
    10  	_ "github.com/cncf/xds/go/udpa/annotations"
    11  	v3 "gitee.com/zhaochuninhefei/gmgo/go-control-plane/envoy/config/core/v3"
    12  	_ "github.com/envoyproxy/protoc-gen-validate/validate"
    13  	proto "github.com/golang/protobuf/proto"
    14  	wrappers "github.com/golang/protobuf/ptypes/wrappers"
    15  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    16  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    17  	reflect "reflect"
    18  	sync "sync"
    19  )
    20  
    21  const (
    22  	// Verify that this generated code is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    24  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    25  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    26  )
    27  
    28  // This is a compile-time assertion that a sufficiently up-to-date version
    29  // of the legacy proto package is being used.
    30  const _ = proto.ProtoPackageIsVersion4
    31  
    32  type GraphiteStatsdSink struct {
    33  	state         protoimpl.MessageState
    34  	sizeCache     protoimpl.SizeCache
    35  	unknownFields protoimpl.UnknownFields
    36  
    37  	// Types that are assignable to StatsdSpecifier:
    38  	//	*GraphiteStatsdSink_Address
    39  	StatsdSpecifier isGraphiteStatsdSink_StatsdSpecifier `protobuf_oneof:"statsd_specifier"`
    40  	// Optional custom metric name prefix. See :ref:`StatsdSink's prefix field
    41  	// <envoy_v3_api_field_config.metrics.v3.StatsdSink.prefix>` for more details.
    42  	Prefix string `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"`
    43  	// Optional max datagram size to use when sending UDP messages. By default Envoy
    44  	// will emit one metric per datagram. By specifying a max-size larger than a single
    45  	// metric, Envoy will emit multiple, new-line separated metrics. The max datagram
    46  	// size should not exceed your network's MTU.
    47  	//
    48  	// Note that this value may not be respected if smaller than a single metric.
    49  	MaxBytesPerDatagram *wrappers.UInt64Value `protobuf:"bytes,4,opt,name=max_bytes_per_datagram,json=maxBytesPerDatagram,proto3" json:"max_bytes_per_datagram,omitempty"`
    50  }
    51  
    52  func (x *GraphiteStatsdSink) Reset() {
    53  	*x = GraphiteStatsdSink{}
    54  	if protoimpl.UnsafeEnabled {
    55  		mi := &file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_msgTypes[0]
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		ms.StoreMessageInfo(mi)
    58  	}
    59  }
    60  
    61  func (x *GraphiteStatsdSink) String() string {
    62  	return protoimpl.X.MessageStringOf(x)
    63  }
    64  
    65  func (*GraphiteStatsdSink) ProtoMessage() {}
    66  
    67  func (x *GraphiteStatsdSink) ProtoReflect() protoreflect.Message {
    68  	mi := &file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_msgTypes[0]
    69  	if protoimpl.UnsafeEnabled && x != nil {
    70  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    71  		if ms.LoadMessageInfo() == nil {
    72  			ms.StoreMessageInfo(mi)
    73  		}
    74  		return ms
    75  	}
    76  	return mi.MessageOf(x)
    77  }
    78  
    79  // Deprecated: Use GraphiteStatsdSink.ProtoReflect.Descriptor instead.
    80  func (*GraphiteStatsdSink) Descriptor() ([]byte, []int) {
    81  	return file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_rawDescGZIP(), []int{0}
    82  }
    83  
    84  func (m *GraphiteStatsdSink) GetStatsdSpecifier() isGraphiteStatsdSink_StatsdSpecifier {
    85  	if m != nil {
    86  		return m.StatsdSpecifier
    87  	}
    88  	return nil
    89  }
    90  
    91  func (x *GraphiteStatsdSink) GetAddress() *v3.Address {
    92  	if x, ok := x.GetStatsdSpecifier().(*GraphiteStatsdSink_Address); ok {
    93  		return x.Address
    94  	}
    95  	return nil
    96  }
    97  
    98  func (x *GraphiteStatsdSink) GetPrefix() string {
    99  	if x != nil {
   100  		return x.Prefix
   101  	}
   102  	return ""
   103  }
   104  
   105  func (x *GraphiteStatsdSink) GetMaxBytesPerDatagram() *wrappers.UInt64Value {
   106  	if x != nil {
   107  		return x.MaxBytesPerDatagram
   108  	}
   109  	return nil
   110  }
   111  
   112  type isGraphiteStatsdSink_StatsdSpecifier interface {
   113  	isGraphiteStatsdSink_StatsdSpecifier()
   114  }
   115  
   116  type GraphiteStatsdSink_Address struct {
   117  	// The UDP address of a running Graphite-compliant listener. If specified,
   118  	// statistics will be flushed to this address.
   119  	Address *v3.Address `protobuf:"bytes,1,opt,name=address,proto3,oneof"`
   120  }
   121  
   122  func (*GraphiteStatsdSink_Address) isGraphiteStatsdSink_StatsdSpecifier() {}
   123  
   124  var File_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto protoreflect.FileDescriptor
   125  
   126  var file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_rawDesc = []byte{
   127  	0x0a, 0x44, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
   128  	0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x73, 0x69, 0x6e, 0x6b, 0x73, 0x2f, 0x67, 0x72,
   129  	0x61, 0x70, 0x68, 0x69, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x64, 0x2f, 0x76, 0x33,
   130  	0x2f, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x64,
   131  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78,
   132  	0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x73, 0x69,
   133  	0x6e, 0x6b, 0x73, 0x2e, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61,
   134  	0x74, 0x73, 0x64, 0x2e, 0x76, 0x33, 0x1a, 0x22, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f,
   135  	0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x61, 0x64, 0x64,
   136  	0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67,
   137  	0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70,
   138  	0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61,
   139  	0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61,
   140  	0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64,
   141  	0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f,
   142  	0x74, 0x6f, 0x22, 0xdc, 0x01, 0x0a, 0x12, 0x47, 0x72, 0x61, 0x70, 0x68, 0x69, 0x74, 0x65, 0x53,
   143  	0x74, 0x61, 0x74, 0x73, 0x64, 0x53, 0x69, 0x6e, 0x6b, 0x12, 0x39, 0x0a, 0x07, 0x61, 0x64, 0x64,
   144  	0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, 0x6e, 0x76,
   145  	0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76,
   146  	0x33, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x07, 0x61, 0x64, 0x64,
   147  	0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x03,
   148  	0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x5a, 0x0a, 0x16,
   149  	0x6d, 0x61, 0x78, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x64, 0x61,
   150  	0x74, 0x61, 0x67, 0x72, 0x61, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67,
   151  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55,
   152  	0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x32,
   153  	0x02, 0x20, 0x00, 0x52, 0x13, 0x6d, 0x61, 0x78, 0x42, 0x79, 0x74, 0x65, 0x73, 0x50, 0x65, 0x72,
   154  	0x44, 0x61, 0x74, 0x61, 0x67, 0x72, 0x61, 0x6d, 0x42, 0x17, 0x0a, 0x10, 0x73, 0x74, 0x61, 0x74,
   155  	0x73, 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x03, 0xf8, 0x42,
   156  	0x01, 0x42, 0x5d, 0x0a, 0x3c, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f,
   157  	0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
   158  	0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x5f, 0x73, 0x69, 0x6e, 0x6b, 0x73, 0x2e, 0x67,
   159  	0x72, 0x61, 0x70, 0x68, 0x69, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x64, 0x2e, 0x76,
   160  	0x33, 0x42, 0x13, 0x47, 0x72, 0x61, 0x70, 0x68, 0x69, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73,
   161  	0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02,
   162  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   163  }
   164  
   165  var (
   166  	file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_rawDescOnce sync.Once
   167  	file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_rawDescData = file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_rawDesc
   168  )
   169  
   170  func file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_rawDescGZIP() []byte {
   171  	file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_rawDescOnce.Do(func() {
   172  		file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_rawDescData)
   173  	})
   174  	return file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_rawDescData
   175  }
   176  
   177  var file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   178  var file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_goTypes = []interface{}{
   179  	(*GraphiteStatsdSink)(nil),   // 0: envoy.extensions.stat_sinks.graphite_statsd.v3.GraphiteStatsdSink
   180  	(*v3.Address)(nil),           // 1: envoy.config.core.v3.Address
   181  	(*wrappers.UInt64Value)(nil), // 2: google.protobuf.UInt64Value
   182  }
   183  var file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_depIdxs = []int32{
   184  	1, // 0: envoy.extensions.stat_sinks.graphite_statsd.v3.GraphiteStatsdSink.address:type_name -> envoy.config.core.v3.Address
   185  	2, // 1: envoy.extensions.stat_sinks.graphite_statsd.v3.GraphiteStatsdSink.max_bytes_per_datagram:type_name -> google.protobuf.UInt64Value
   186  	2, // [2:2] is the sub-list for method output_type
   187  	2, // [2:2] is the sub-list for method input_type
   188  	2, // [2:2] is the sub-list for extension type_name
   189  	2, // [2:2] is the sub-list for extension extendee
   190  	0, // [0:2] is the sub-list for field type_name
   191  }
   192  
   193  func init() { file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_init() }
   194  func file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_init() {
   195  	if File_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto != nil {
   196  		return
   197  	}
   198  	if !protoimpl.UnsafeEnabled {
   199  		file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   200  			switch v := v.(*GraphiteStatsdSink); i {
   201  			case 0:
   202  				return &v.state
   203  			case 1:
   204  				return &v.sizeCache
   205  			case 2:
   206  				return &v.unknownFields
   207  			default:
   208  				return nil
   209  			}
   210  		}
   211  	}
   212  	file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_msgTypes[0].OneofWrappers = []interface{}{
   213  		(*GraphiteStatsdSink_Address)(nil),
   214  	}
   215  	type x struct{}
   216  	out := protoimpl.TypeBuilder{
   217  		File: protoimpl.DescBuilder{
   218  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   219  			RawDescriptor: file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_rawDesc,
   220  			NumEnums:      0,
   221  			NumMessages:   1,
   222  			NumExtensions: 0,
   223  			NumServices:   0,
   224  		},
   225  		GoTypes:           file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_goTypes,
   226  		DependencyIndexes: file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_depIdxs,
   227  		MessageInfos:      file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_msgTypes,
   228  	}.Build()
   229  	File_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto = out.File
   230  	file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_rawDesc = nil
   231  	file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_goTypes = nil
   232  	file_envoy_extensions_stat_sinks_graphite_statsd_v3_graphite_statsd_proto_depIdxs = nil
   233  }