...

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

Documentation: github.com/datawire/ambassador/v2/pkg/api/envoy/config/metrics/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/config/metrics/v4alpha/metrics_service.proto
     6  
     7  package envoy_config_metrics_v4alpha
     8  
     9  import (
    10  	_ "github.com/cncf/udpa/go/udpa/annotations"
    11  	v4alpha "github.com/datawire/ambassador/v2/pkg/api/envoy/config/core/v4alpha"
    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  // Metrics Service is configured as a built-in *envoy.stat_sinks.metrics_service* :ref:`StatsSink
    33  // <envoy_api_msg_config.metrics.v4alpha.StatsSink>`. This opaque configuration will be used to create
    34  // Metrics Service.
    35  // [#extension: envoy.stat_sinks.metrics_service]
    36  type MetricsServiceConfig struct {
    37  	state         protoimpl.MessageState
    38  	sizeCache     protoimpl.SizeCache
    39  	unknownFields protoimpl.UnknownFields
    40  
    41  	// The upstream gRPC cluster that hosts the metrics service.
    42  	GrpcService *v4alpha.GrpcService `protobuf:"bytes,1,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"`
    43  	// API version for metric service transport protocol. This describes the metric service gRPC
    44  	// endpoint and version of messages used on the wire.
    45  	TransportApiVersion v4alpha.ApiVersion `protobuf:"varint,3,opt,name=transport_api_version,json=transportApiVersion,proto3,enum=envoy.config.core.v4alpha.ApiVersion" json:"transport_api_version,omitempty"`
    46  	// If true, counters are reported as the delta between flushing intervals. Otherwise, the current
    47  	// counter value is reported. Defaults to false.
    48  	// Eventually (https://github.com/envoyproxy/envoy/issues/10968) if this value is not set, the
    49  	// sink will take updates from the :ref:`MetricsResponse <envoy_api_msg_service.metrics.v4alpha.StreamMetricsResponse>`.
    50  	ReportCountersAsDeltas *wrappers.BoolValue `protobuf:"bytes,2,opt,name=report_counters_as_deltas,json=reportCountersAsDeltas,proto3" json:"report_counters_as_deltas,omitempty"`
    51  }
    52  
    53  func (x *MetricsServiceConfig) Reset() {
    54  	*x = MetricsServiceConfig{}
    55  	if protoimpl.UnsafeEnabled {
    56  		mi := &file_envoy_config_metrics_v4alpha_metrics_service_proto_msgTypes[0]
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		ms.StoreMessageInfo(mi)
    59  	}
    60  }
    61  
    62  func (x *MetricsServiceConfig) String() string {
    63  	return protoimpl.X.MessageStringOf(x)
    64  }
    65  
    66  func (*MetricsServiceConfig) ProtoMessage() {}
    67  
    68  func (x *MetricsServiceConfig) ProtoReflect() protoreflect.Message {
    69  	mi := &file_envoy_config_metrics_v4alpha_metrics_service_proto_msgTypes[0]
    70  	if protoimpl.UnsafeEnabled && x != nil {
    71  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    72  		if ms.LoadMessageInfo() == nil {
    73  			ms.StoreMessageInfo(mi)
    74  		}
    75  		return ms
    76  	}
    77  	return mi.MessageOf(x)
    78  }
    79  
    80  // Deprecated: Use MetricsServiceConfig.ProtoReflect.Descriptor instead.
    81  func (*MetricsServiceConfig) Descriptor() ([]byte, []int) {
    82  	return file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescGZIP(), []int{0}
    83  }
    84  
    85  func (x *MetricsServiceConfig) GetGrpcService() *v4alpha.GrpcService {
    86  	if x != nil {
    87  		return x.GrpcService
    88  	}
    89  	return nil
    90  }
    91  
    92  func (x *MetricsServiceConfig) GetTransportApiVersion() v4alpha.ApiVersion {
    93  	if x != nil {
    94  		return x.TransportApiVersion
    95  	}
    96  	return v4alpha.ApiVersion_hidden_envoy_deprecated_AUTO
    97  }
    98  
    99  func (x *MetricsServiceConfig) GetReportCountersAsDeltas() *wrappers.BoolValue {
   100  	if x != nil {
   101  		return x.ReportCountersAsDeltas
   102  	}
   103  	return nil
   104  }
   105  
   106  var File_envoy_config_metrics_v4alpha_metrics_service_proto protoreflect.FileDescriptor
   107  
   108  var file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDesc = []byte{
   109  	0x0a, 0x32, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x6d,
   110  	0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x6d,
   111  	0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70,
   112  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66,
   113  	0x69, 0x67, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x76, 0x34, 0x61, 0x6c, 0x70,
   114  	0x68, 0x61, 0x1a, 0x2d, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   115  	0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, 0x6f,
   116  	0x6e, 0x66, 0x69, 0x67, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   117  	0x6f, 0x1a, 0x2c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f,
   118  	0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x67, 0x72, 0x70,
   119  	0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   120  	0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
   121  	0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   122  	0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   123  	0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21,
   124  	0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   125  	0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   126  	0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69,
   127  	0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x02, 0x0a, 0x14, 0x4d,
   128  	0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e,
   129  	0x66, 0x69, 0x67, 0x12, 0x53, 0x0a, 0x0c, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76,
   130  	0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
   131  	0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x34,
   132  	0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x47, 0x72, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
   133  	0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0b, 0x67, 0x72, 0x70,
   134  	0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x63, 0x0a, 0x15, 0x74, 0x72, 0x61, 0x6e,
   135  	0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
   136  	0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
   137  	0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x34, 0x61, 0x6c,
   138  	0x70, 0x68, 0x61, 0x2e, 0x41, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x08,
   139  	0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
   140  	0x6f, 0x72, 0x74, 0x41, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x55, 0x0a,
   141  	0x19, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73,
   142  	0x5f, 0x61, 0x73, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
   143  	0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   144  	0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x16, 0x72, 0x65,
   145  	0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x41, 0x73, 0x44, 0x65,
   146  	0x6c, 0x74, 0x61, 0x73, 0x3a, 0x33, 0x9a, 0xc5, 0x88, 0x1e, 0x2e, 0x0a, 0x2c, 0x65, 0x6e, 0x76,
   147  	0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63,
   148  	0x73, 0x2e, 0x76, 0x33, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x53, 0x65, 0x72, 0x76,
   149  	0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x4b, 0x0a, 0x2a, 0x69, 0x6f, 0x2e,
   150  	0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79,
   151  	0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e,
   152  	0x76, 0x34, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x13, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73,
   153  	0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xba, 0x80,
   154  	0xc8, 0xd1, 0x06, 0x02, 0x10, 0x03, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   155  }
   156  
   157  var (
   158  	file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescOnce sync.Once
   159  	file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescData = file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDesc
   160  )
   161  
   162  func file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescGZIP() []byte {
   163  	file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescOnce.Do(func() {
   164  		file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescData)
   165  	})
   166  	return file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDescData
   167  }
   168  
   169  var file_envoy_config_metrics_v4alpha_metrics_service_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   170  var file_envoy_config_metrics_v4alpha_metrics_service_proto_goTypes = []interface{}{
   171  	(*MetricsServiceConfig)(nil), // 0: envoy.config.metrics.v4alpha.MetricsServiceConfig
   172  	(*v4alpha.GrpcService)(nil),  // 1: envoy.config.core.v4alpha.GrpcService
   173  	(v4alpha.ApiVersion)(0),      // 2: envoy.config.core.v4alpha.ApiVersion
   174  	(*wrappers.BoolValue)(nil),   // 3: google.protobuf.BoolValue
   175  }
   176  var file_envoy_config_metrics_v4alpha_metrics_service_proto_depIdxs = []int32{
   177  	1, // 0: envoy.config.metrics.v4alpha.MetricsServiceConfig.grpc_service:type_name -> envoy.config.core.v4alpha.GrpcService
   178  	2, // 1: envoy.config.metrics.v4alpha.MetricsServiceConfig.transport_api_version:type_name -> envoy.config.core.v4alpha.ApiVersion
   179  	3, // 2: envoy.config.metrics.v4alpha.MetricsServiceConfig.report_counters_as_deltas:type_name -> google.protobuf.BoolValue
   180  	3, // [3:3] is the sub-list for method output_type
   181  	3, // [3:3] is the sub-list for method input_type
   182  	3, // [3:3] is the sub-list for extension type_name
   183  	3, // [3:3] is the sub-list for extension extendee
   184  	0, // [0:3] is the sub-list for field type_name
   185  }
   186  
   187  func init() { file_envoy_config_metrics_v4alpha_metrics_service_proto_init() }
   188  func file_envoy_config_metrics_v4alpha_metrics_service_proto_init() {
   189  	if File_envoy_config_metrics_v4alpha_metrics_service_proto != nil {
   190  		return
   191  	}
   192  	if !protoimpl.UnsafeEnabled {
   193  		file_envoy_config_metrics_v4alpha_metrics_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   194  			switch v := v.(*MetricsServiceConfig); i {
   195  			case 0:
   196  				return &v.state
   197  			case 1:
   198  				return &v.sizeCache
   199  			case 2:
   200  				return &v.unknownFields
   201  			default:
   202  				return nil
   203  			}
   204  		}
   205  	}
   206  	type x struct{}
   207  	out := protoimpl.TypeBuilder{
   208  		File: protoimpl.DescBuilder{
   209  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   210  			RawDescriptor: file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDesc,
   211  			NumEnums:      0,
   212  			NumMessages:   1,
   213  			NumExtensions: 0,
   214  			NumServices:   0,
   215  		},
   216  		GoTypes:           file_envoy_config_metrics_v4alpha_metrics_service_proto_goTypes,
   217  		DependencyIndexes: file_envoy_config_metrics_v4alpha_metrics_service_proto_depIdxs,
   218  		MessageInfos:      file_envoy_config_metrics_v4alpha_metrics_service_proto_msgTypes,
   219  	}.Build()
   220  	File_envoy_config_metrics_v4alpha_metrics_service_proto = out.File
   221  	file_envoy_config_metrics_v4alpha_metrics_service_proto_rawDesc = nil
   222  	file_envoy_config_metrics_v4alpha_metrics_service_proto_goTypes = nil
   223  	file_envoy_config_metrics_v4alpha_metrics_service_proto_depIdxs = nil
   224  }
   225  

View as plain text