google.golang.org/grpc@v1.72.2/interop/stress/grpc_testing/metrics.pb.go (about)

     1  // Copyright 2015-2016 gRPC authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Contains the definitions for a metrics service and the type of metrics
    16  // exposed by the service.
    17  //
    18  // Currently, 'Gauge' (i.e a metric that represents the measured value of
    19  // something at an instant of time) is the only metric type supported by the
    20  // service.
    21  
    22  // Code generated by protoc-gen-go. DO NOT EDIT.
    23  // versions:
    24  // 	protoc-gen-go v1.36.5
    25  // 	protoc        v5.27.1
    26  // source: interop/stress/grpc_testing/metrics.proto
    27  
    28  package grpc_testing
    29  
    30  import (
    31  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    32  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    33  	reflect "reflect"
    34  	sync "sync"
    35  	unsafe "unsafe"
    36  )
    37  
    38  const (
    39  	// Verify that this generated code is sufficiently up-to-date.
    40  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    41  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    42  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    43  )
    44  
    45  // Response message containing the gauge name and value
    46  type GaugeResponse struct {
    47  	state protoimpl.MessageState `protogen:"open.v1"`
    48  	Name  string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    49  	// Types that are valid to be assigned to Value:
    50  	//
    51  	//	*GaugeResponse_LongValue
    52  	//	*GaugeResponse_DoubleValue
    53  	//	*GaugeResponse_StringValue
    54  	Value         isGaugeResponse_Value `protobuf_oneof:"value"`
    55  	unknownFields protoimpl.UnknownFields
    56  	sizeCache     protoimpl.SizeCache
    57  }
    58  
    59  func (x *GaugeResponse) Reset() {
    60  	*x = GaugeResponse{}
    61  	mi := &file_interop_stress_grpc_testing_metrics_proto_msgTypes[0]
    62  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    63  	ms.StoreMessageInfo(mi)
    64  }
    65  
    66  func (x *GaugeResponse) String() string {
    67  	return protoimpl.X.MessageStringOf(x)
    68  }
    69  
    70  func (*GaugeResponse) ProtoMessage() {}
    71  
    72  func (x *GaugeResponse) ProtoReflect() protoreflect.Message {
    73  	mi := &file_interop_stress_grpc_testing_metrics_proto_msgTypes[0]
    74  	if x != nil {
    75  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    76  		if ms.LoadMessageInfo() == nil {
    77  			ms.StoreMessageInfo(mi)
    78  		}
    79  		return ms
    80  	}
    81  	return mi.MessageOf(x)
    82  }
    83  
    84  // Deprecated: Use GaugeResponse.ProtoReflect.Descriptor instead.
    85  func (*GaugeResponse) Descriptor() ([]byte, []int) {
    86  	return file_interop_stress_grpc_testing_metrics_proto_rawDescGZIP(), []int{0}
    87  }
    88  
    89  func (x *GaugeResponse) GetName() string {
    90  	if x != nil {
    91  		return x.Name
    92  	}
    93  	return ""
    94  }
    95  
    96  func (x *GaugeResponse) GetValue() isGaugeResponse_Value {
    97  	if x != nil {
    98  		return x.Value
    99  	}
   100  	return nil
   101  }
   102  
   103  func (x *GaugeResponse) GetLongValue() int64 {
   104  	if x != nil {
   105  		if x, ok := x.Value.(*GaugeResponse_LongValue); ok {
   106  			return x.LongValue
   107  		}
   108  	}
   109  	return 0
   110  }
   111  
   112  func (x *GaugeResponse) GetDoubleValue() float64 {
   113  	if x != nil {
   114  		if x, ok := x.Value.(*GaugeResponse_DoubleValue); ok {
   115  			return x.DoubleValue
   116  		}
   117  	}
   118  	return 0
   119  }
   120  
   121  func (x *GaugeResponse) GetStringValue() string {
   122  	if x != nil {
   123  		if x, ok := x.Value.(*GaugeResponse_StringValue); ok {
   124  			return x.StringValue
   125  		}
   126  	}
   127  	return ""
   128  }
   129  
   130  type isGaugeResponse_Value interface {
   131  	isGaugeResponse_Value()
   132  }
   133  
   134  type GaugeResponse_LongValue struct {
   135  	LongValue int64 `protobuf:"varint,2,opt,name=long_value,json=longValue,proto3,oneof"`
   136  }
   137  
   138  type GaugeResponse_DoubleValue struct {
   139  	DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
   140  }
   141  
   142  type GaugeResponse_StringValue struct {
   143  	StringValue string `protobuf:"bytes,4,opt,name=string_value,json=stringValue,proto3,oneof"`
   144  }
   145  
   146  func (*GaugeResponse_LongValue) isGaugeResponse_Value() {}
   147  
   148  func (*GaugeResponse_DoubleValue) isGaugeResponse_Value() {}
   149  
   150  func (*GaugeResponse_StringValue) isGaugeResponse_Value() {}
   151  
   152  // Request message containing the gauge name
   153  type GaugeRequest struct {
   154  	state         protoimpl.MessageState `protogen:"open.v1"`
   155  	Name          string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   156  	unknownFields protoimpl.UnknownFields
   157  	sizeCache     protoimpl.SizeCache
   158  }
   159  
   160  func (x *GaugeRequest) Reset() {
   161  	*x = GaugeRequest{}
   162  	mi := &file_interop_stress_grpc_testing_metrics_proto_msgTypes[1]
   163  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   164  	ms.StoreMessageInfo(mi)
   165  }
   166  
   167  func (x *GaugeRequest) String() string {
   168  	return protoimpl.X.MessageStringOf(x)
   169  }
   170  
   171  func (*GaugeRequest) ProtoMessage() {}
   172  
   173  func (x *GaugeRequest) ProtoReflect() protoreflect.Message {
   174  	mi := &file_interop_stress_grpc_testing_metrics_proto_msgTypes[1]
   175  	if x != nil {
   176  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   177  		if ms.LoadMessageInfo() == nil {
   178  			ms.StoreMessageInfo(mi)
   179  		}
   180  		return ms
   181  	}
   182  	return mi.MessageOf(x)
   183  }
   184  
   185  // Deprecated: Use GaugeRequest.ProtoReflect.Descriptor instead.
   186  func (*GaugeRequest) Descriptor() ([]byte, []int) {
   187  	return file_interop_stress_grpc_testing_metrics_proto_rawDescGZIP(), []int{1}
   188  }
   189  
   190  func (x *GaugeRequest) GetName() string {
   191  	if x != nil {
   192  		return x.Name
   193  	}
   194  	return ""
   195  }
   196  
   197  type EmptyMessage struct {
   198  	state         protoimpl.MessageState `protogen:"open.v1"`
   199  	unknownFields protoimpl.UnknownFields
   200  	sizeCache     protoimpl.SizeCache
   201  }
   202  
   203  func (x *EmptyMessage) Reset() {
   204  	*x = EmptyMessage{}
   205  	mi := &file_interop_stress_grpc_testing_metrics_proto_msgTypes[2]
   206  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   207  	ms.StoreMessageInfo(mi)
   208  }
   209  
   210  func (x *EmptyMessage) String() string {
   211  	return protoimpl.X.MessageStringOf(x)
   212  }
   213  
   214  func (*EmptyMessage) ProtoMessage() {}
   215  
   216  func (x *EmptyMessage) ProtoReflect() protoreflect.Message {
   217  	mi := &file_interop_stress_grpc_testing_metrics_proto_msgTypes[2]
   218  	if x != nil {
   219  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   220  		if ms.LoadMessageInfo() == nil {
   221  			ms.StoreMessageInfo(mi)
   222  		}
   223  		return ms
   224  	}
   225  	return mi.MessageOf(x)
   226  }
   227  
   228  // Deprecated: Use EmptyMessage.ProtoReflect.Descriptor instead.
   229  func (*EmptyMessage) Descriptor() ([]byte, []int) {
   230  	return file_interop_stress_grpc_testing_metrics_proto_rawDescGZIP(), []int{2}
   231  }
   232  
   233  var File_interop_stress_grpc_testing_metrics_proto protoreflect.FileDescriptor
   234  
   235  var file_interop_stress_grpc_testing_metrics_proto_rawDesc = string([]byte{
   236  	0x0a, 0x29, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6f, 0x70, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x73, 0x73,
   237  	0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65,
   238  	0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70,
   239  	0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x97, 0x01, 0x0a, 0x0d, 0x47, 0x61,
   240  	0x75, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e,
   241  	0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
   242  	0x1f, 0x0a, 0x0a, 0x6c, 0x6f, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
   243  	0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65,
   244  	0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
   245  	0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65,
   246  	0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f,
   247  	0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73,
   248  	0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61,
   249  	0x6c, 0x75, 0x65, 0x22, 0x22, 0x0a, 0x0c, 0x47, 0x61, 0x75, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75,
   250  	0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
   251  	0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x0e, 0x0a, 0x0c, 0x45, 0x6d, 0x70, 0x74, 0x79,
   252  	0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0xa0, 0x01, 0x0a, 0x0e, 0x4d, 0x65, 0x74, 0x72,
   253  	0x69, 0x63, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x47, 0x65,
   254  	0x74, 0x41, 0x6c, 0x6c, 0x47, 0x61, 0x75, 0x67, 0x65, 0x73, 0x12, 0x1a, 0x2e, 0x67, 0x72, 0x70,
   255  	0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x4d,
   256  	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x1b, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65,
   257  	0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x47, 0x61, 0x75, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
   258  	0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x43, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x47, 0x61, 0x75, 0x67,
   259  	0x65, 0x12, 0x1a, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67,
   260  	0x2e, 0x47, 0x61, 0x75, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e,
   261  	0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x47, 0x61, 0x75,
   262  	0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x6f,
   263  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
   264  	0x67, 0x72, 0x70, 0x63, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6f, 0x70, 0x2f, 0x73, 0x74, 0x72,
   265  	0x65, 0x73, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67,
   266  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   267  })
   268  
   269  var (
   270  	file_interop_stress_grpc_testing_metrics_proto_rawDescOnce sync.Once
   271  	file_interop_stress_grpc_testing_metrics_proto_rawDescData []byte
   272  )
   273  
   274  func file_interop_stress_grpc_testing_metrics_proto_rawDescGZIP() []byte {
   275  	file_interop_stress_grpc_testing_metrics_proto_rawDescOnce.Do(func() {
   276  		file_interop_stress_grpc_testing_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_interop_stress_grpc_testing_metrics_proto_rawDesc), len(file_interop_stress_grpc_testing_metrics_proto_rawDesc)))
   277  	})
   278  	return file_interop_stress_grpc_testing_metrics_proto_rawDescData
   279  }
   280  
   281  var file_interop_stress_grpc_testing_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   282  var file_interop_stress_grpc_testing_metrics_proto_goTypes = []any{
   283  	(*GaugeResponse)(nil), // 0: grpc.testing.GaugeResponse
   284  	(*GaugeRequest)(nil),  // 1: grpc.testing.GaugeRequest
   285  	(*EmptyMessage)(nil),  // 2: grpc.testing.EmptyMessage
   286  }
   287  var file_interop_stress_grpc_testing_metrics_proto_depIdxs = []int32{
   288  	2, // 0: grpc.testing.MetricsService.GetAllGauges:input_type -> grpc.testing.EmptyMessage
   289  	1, // 1: grpc.testing.MetricsService.GetGauge:input_type -> grpc.testing.GaugeRequest
   290  	0, // 2: grpc.testing.MetricsService.GetAllGauges:output_type -> grpc.testing.GaugeResponse
   291  	0, // 3: grpc.testing.MetricsService.GetGauge:output_type -> grpc.testing.GaugeResponse
   292  	2, // [2:4] is the sub-list for method output_type
   293  	0, // [0:2] is the sub-list for method input_type
   294  	0, // [0:0] is the sub-list for extension type_name
   295  	0, // [0:0] is the sub-list for extension extendee
   296  	0, // [0:0] is the sub-list for field type_name
   297  }
   298  
   299  func init() { file_interop_stress_grpc_testing_metrics_proto_init() }
   300  func file_interop_stress_grpc_testing_metrics_proto_init() {
   301  	if File_interop_stress_grpc_testing_metrics_proto != nil {
   302  		return
   303  	}
   304  	file_interop_stress_grpc_testing_metrics_proto_msgTypes[0].OneofWrappers = []any{
   305  		(*GaugeResponse_LongValue)(nil),
   306  		(*GaugeResponse_DoubleValue)(nil),
   307  		(*GaugeResponse_StringValue)(nil),
   308  	}
   309  	type x struct{}
   310  	out := protoimpl.TypeBuilder{
   311  		File: protoimpl.DescBuilder{
   312  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   313  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_interop_stress_grpc_testing_metrics_proto_rawDesc), len(file_interop_stress_grpc_testing_metrics_proto_rawDesc)),
   314  			NumEnums:      0,
   315  			NumMessages:   3,
   316  			NumExtensions: 0,
   317  			NumServices:   1,
   318  		},
   319  		GoTypes:           file_interop_stress_grpc_testing_metrics_proto_goTypes,
   320  		DependencyIndexes: file_interop_stress_grpc_testing_metrics_proto_depIdxs,
   321  		MessageInfos:      file_interop_stress_grpc_testing_metrics_proto_msgTypes,
   322  	}.Build()
   323  	File_interop_stress_grpc_testing_metrics_proto = out.File
   324  	file_interop_stress_grpc_testing_metrics_proto_goTypes = nil
   325  	file_interop_stress_grpc_testing_metrics_proto_depIdxs = nil
   326  }