|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
|
|
|
// source: opencensus/proto/agent/metrics/v1/metrics_service.proto
|
|
|
|
|
|
|
|
|
|
package v1 |
|
|
|
@ -11,8 +11,7 @@ import ( |
|
|
|
|
v12 "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1" |
|
|
|
|
proto "github.com/golang/protobuf/proto" |
|
|
|
|
grpc "google.golang.org/grpc" |
|
|
|
|
codes "google.golang.org/grpc/codes" |
|
|
|
|
status "google.golang.org/grpc/status" |
|
|
|
|
io "io" |
|
|
|
|
math "math" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -25,7 +24,7 @@ var _ = math.Inf |
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
|
// proto package needs to be updated.
|
|
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
|
|
|
|
|
|
type ExportMetricsServiceRequest struct { |
|
|
|
|
// This is required only in the first message on the stream or if the
|
|
|
|
@ -51,18 +50,26 @@ func (*ExportMetricsServiceRequest) ProtoMessage() {} |
|
|
|
|
func (*ExportMetricsServiceRequest) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_47e253a956287d04, []int{0} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ExportMetricsServiceRequest) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return xxx_messageInfo_ExportMetricsServiceRequest.Unmarshal(m, b) |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
} |
|
|
|
|
func (m *ExportMetricsServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
return xxx_messageInfo_ExportMetricsServiceRequest.Marshal(b, m, deterministic) |
|
|
|
|
if deterministic { |
|
|
|
|
return xxx_messageInfo_ExportMetricsServiceRequest.Marshal(b, m, deterministic) |
|
|
|
|
} else { |
|
|
|
|
b = b[:cap(b)] |
|
|
|
|
n, err := m.MarshalTo(b) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
return b[:n], nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
func (m *ExportMetricsServiceRequest) XXX_Merge(src proto.Message) { |
|
|
|
|
xxx_messageInfo_ExportMetricsServiceRequest.Merge(m, src) |
|
|
|
|
} |
|
|
|
|
func (m *ExportMetricsServiceRequest) XXX_Size() int { |
|
|
|
|
return xxx_messageInfo_ExportMetricsServiceRequest.Size(m) |
|
|
|
|
return m.Size() |
|
|
|
|
} |
|
|
|
|
func (m *ExportMetricsServiceRequest) XXX_DiscardUnknown() { |
|
|
|
|
xxx_messageInfo_ExportMetricsServiceRequest.DiscardUnknown(m) |
|
|
|
@ -103,18 +110,26 @@ func (*ExportMetricsServiceResponse) ProtoMessage() {} |
|
|
|
|
func (*ExportMetricsServiceResponse) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_47e253a956287d04, []int{1} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ExportMetricsServiceResponse) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return xxx_messageInfo_ExportMetricsServiceResponse.Unmarshal(m, b) |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
} |
|
|
|
|
func (m *ExportMetricsServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
return xxx_messageInfo_ExportMetricsServiceResponse.Marshal(b, m, deterministic) |
|
|
|
|
if deterministic { |
|
|
|
|
return xxx_messageInfo_ExportMetricsServiceResponse.Marshal(b, m, deterministic) |
|
|
|
|
} else { |
|
|
|
|
b = b[:cap(b)] |
|
|
|
|
n, err := m.MarshalTo(b) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
return b[:n], nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
func (m *ExportMetricsServiceResponse) XXX_Merge(src proto.Message) { |
|
|
|
|
xxx_messageInfo_ExportMetricsServiceResponse.Merge(m, src) |
|
|
|
|
} |
|
|
|
|
func (m *ExportMetricsServiceResponse) XXX_Size() int { |
|
|
|
|
return xxx_messageInfo_ExportMetricsServiceResponse.Size(m) |
|
|
|
|
return m.Size() |
|
|
|
|
} |
|
|
|
|
func (m *ExportMetricsServiceResponse) XXX_DiscardUnknown() { |
|
|
|
|
xxx_messageInfo_ExportMetricsServiceResponse.DiscardUnknown(m) |
|
|
|
@ -132,30 +147,31 @@ func init() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var fileDescriptor_47e253a956287d04 = []byte{ |
|
|
|
|
// 361 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x41, 0x4a, 0xc3, 0x40, |
|
|
|
|
0x14, 0x86, 0x9d, 0x56, 0xaa, 0x4c, 0xc1, 0x45, 0xdc, 0x94, 0x2a, 0xd2, 0x56, 0x91, 0x8a, 0x64, |
|
|
|
|
0x62, 0xea, 0x42, 0x10, 0x54, 0xac, 0xb8, 0x11, 0xd4, 0x12, 0xc1, 0x85, 0x1b, 0x69, 0xd3, 0x47, |
|
|
|
|
0xcc, 0x22, 0x33, 0x71, 0x66, 0x12, 0xbc, 0x85, 0x77, 0x70, 0xef, 0x8d, 0x3c, 0x81, 0xa7, 0x90, |
|
|
|
|
0xe4, 0x4d, 0x5a, 0x4a, 0x8c, 0x05, 0x77, 0x8f, 0xe4, 0xff, 0xfe, 0xf7, 0xff, 0x33, 0x43, 0x4f, |
|
|
|
|
0x44, 0x0c, 0xdc, 0x07, 0xae, 0x12, 0xe5, 0xc4, 0x52, 0x68, 0xe1, 0x8c, 0x03, 0xe0, 0xda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0xfd, 0x71, 0x78, 0xed, 0x8b, 0x7f, 0xf3, 0x18, 0xaf, 0xb7, |
|
|
|
|
0xd2, 0x27, 0x47, 0x64, 0xf8, 0x49, 0xe8, 0x5e, 0x28, 0x96, 0x7b, 0x0d, 0x37, 0x17, 0x6d, 0x46, |
|
|
|
|
0x99, 0x6a, 0x44, 0x9e, 0x6e, 0x82, 0x50, 0xbf, 0x24, 0x93, 0xec, 0x92, 0x1c, 0x34, 0xb0, 0x43, |
|
|
|
|
0xae, 0xb4, 0x4c, 0x22, 0xe0, 0x7a, 0xac, 0x43, 0xc1, 0x9d, 0xb9, 0xb7, 0x8d, 0x4f, 0x26, 0x00, |
|
|
|
|
0x6e, 0x07, 0xe5, 0xf7, 0xfe, 0x5d, 0xeb, 0xde, 0xc7, 0xc0, 0xaf, 0x30, 0x46, 0xbe, 0x80, 0x5d, |
|
|
|
|
0xe6, 0x31, 0xcc, 0x6a, 0xf6, 0xe8, 0x4e, 0x1a, 0xb9, 0xc5, 0xf1, 0x4f, 0x00, 0x00, 0x00, 0xff, |
|
|
|
|
0xff, 0x19, 0x28, 0xa4, 0x50, 0x3f, 0x03, 0x00, 0x00, |
|
|
|
|
// 382 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x31, 0x4b, 0xfb, 0x40, |
|
|
|
|
0x18, 0xc6, 0x7b, 0xed, 0x9f, 0xfe, 0xe5, 0x0a, 0x0e, 0x71, 0x29, 0x55, 0x42, 0x5b, 0x45, 0x2a, |
|
|
|
|
0x92, 0x8b, 0xa9, 0x83, 0x20, 0xa8, 0x58, 0x71, 0x11, 0xd4, 0x12, 0xc1, 0xc1, 0x45, 0xda, 0xf4, |
|
|
|
|
0x25, 0x66, 0xc8, 0x5d, 0xbc, 0xbb, 0x04, 0xbf, 0x85, 0xab, 0xb3, 0xdf, 0xc3, 0xdd, 0xd1, 0x0f, |
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, 0x5b, 0x3f, 0xa9, 0x93, 0x38, 0xc4, 0xd5, |
|
|
|
|
0xb3, 0x3b, 0xe1, 0xda, 0x26, 0x5e, 0xfb, 0xb9, 0x9d, 0x88, 0x18, 0x15, 0xd0, 0x7d, 0x46, 0x78, |
|
|
|
|
0x79, 0xf6, 0x97, 0xf1, 0x88, 0x70, 0x55, 0x31, 0xc6, 0x21, 0x59, 0x78, 0x8f, 0xe4, 0x97, 0xc3, |
|
|
|
|
0x6b, 0x1c, 0xfd, 0x99, 0x57, 0xf1, 0xda, 0xa5, 0x0e, 0xda, 0x41, 0xbd, 0x17, 0xf4, 0x3a, 0x36, |
|
|
|
|
0xd1, 0xdb, 0xd8, 0x44, 0x1f, 0x63, 0x13, 0x3d, 0x7d, 0x9a, 0x25, 0xbc, 0x11, 0xb0, 0xc5, 0xde, |
|
|
|
|
0xbd, 0x95, 0x59, 0xdb, 0x7e, 0xaa, 0xea, 0xa3, 0x9b, 0x33, 0x3f, 0x90, 0x77, 0xf1, 0x30, 0xbd, |
|
|
|
|
0x34, 0x5b, 0x19, 0x58, 0x01, 0x15, 0x92, 0xc7, 0x21, 0x50, 0x39, 0x90, 0x01, 0xa3, 0xf6, 0xd4, |
|
|
|
|
0xdb, 0x52, 0x4f, 0xc8, 0x07, 0x6a, 0xf9, 0xc5, 0xf7, 0xff, 0x55, 0x6e, 0x5d, 0x46, 0x40, 0x4f, |
|
|
|
|
0x54, 0x8c, 0x6c, 0x01, 0x39, 0xce, 0x62, 0xe8, 0xd5, 0xe4, 0xda, 0x19, 0x56, 0x33, 0x8b, 0xdd, |
|
|
|
|
0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x8d, 0xae, 0x9f, 0x4f, 0x03, 0x00, 0x00, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
@ -221,14 +237,6 @@ type MetricsServiceServer interface { |
|
|
|
|
Export(MetricsService_ExportServer) error |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// UnimplementedMetricsServiceServer can be embedded to have forward compatible implementations.
|
|
|
|
|
type UnimplementedMetricsServiceServer struct { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (*UnimplementedMetricsServiceServer) Export(srv MetricsService_ExportServer) error { |
|
|
|
|
return status.Errorf(codes.Unimplemented, "method Export not implemented") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer) { |
|
|
|
|
s.RegisterService(&_MetricsService_serviceDesc, srv) |
|
|
|
|
} |
|
|
|
@ -273,3 +281,462 @@ var _MetricsService_serviceDesc = grpc.ServiceDesc{ |
|
|
|
|
}, |
|
|
|
|
Metadata: "opencensus/proto/agent/metrics/v1/metrics_service.proto", |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ExportMetricsServiceRequest) Marshal() (dAtA []byte, err error) { |
|
|
|
|
size := m.Size() |
|
|
|
|
dAtA = make([]byte, size) |
|
|
|
|
n, err := m.MarshalTo(dAtA) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
return dAtA[:n], nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ExportMetricsServiceRequest) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
|
var i int |
|
|
|
|
_ = i |
|
|
|
|
var l int |
|
|
|
|
_ = l |
|
|
|
|
if m.Node != nil { |
|
|
|
|
dAtA[i] = 0xa |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintMetricsService(dAtA, i, uint64(m.Node.Size())) |
|
|
|
|
n1, err1 := m.Node.MarshalTo(dAtA[i:]) |
|
|
|
|
if err1 != nil { |
|
|
|
|
return 0, err1 |
|
|
|
|
} |
|
|
|
|
i += n1 |
|
|
|
|
} |
|
|
|
|
if len(m.Metrics) > 0 { |
|
|
|
|
for _, msg := range m.Metrics { |
|
|
|
|
dAtA[i] = 0x12 |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintMetricsService(dAtA, i, uint64(msg.Size())) |
|
|
|
|
n, err := msg.MarshalTo(dAtA[i:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return 0, err |
|
|
|
|
} |
|
|
|
|
i += n |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if m.Resource != nil { |
|
|
|
|
dAtA[i] = 0x1a |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintMetricsService(dAtA, i, uint64(m.Resource.Size())) |
|
|
|
|
n2, err2 := m.Resource.MarshalTo(dAtA[i:]) |
|
|
|
|
if err2 != nil { |
|
|
|
|
return 0, err2 |
|
|
|
|
} |
|
|
|
|
i += n2 |
|
|
|
|
} |
|
|
|
|
if m.XXX_unrecognized != nil { |
|
|
|
|
i += copy(dAtA[i:], m.XXX_unrecognized) |
|
|
|
|
} |
|
|
|
|
return i, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ExportMetricsServiceResponse) Marshal() (dAtA []byte, err error) { |
|
|
|
|
size := m.Size() |
|
|
|
|
dAtA = make([]byte, size) |
|
|
|
|
n, err := m.MarshalTo(dAtA) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
return dAtA[:n], nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ExportMetricsServiceResponse) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
|
var i int |
|
|
|
|
_ = i |
|
|
|
|
var l int |
|
|
|
|
_ = l |
|
|
|
|
if m.XXX_unrecognized != nil { |
|
|
|
|
i += copy(dAtA[i:], m.XXX_unrecognized) |
|
|
|
|
} |
|
|
|
|
return i, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func encodeVarintMetricsService(dAtA []byte, offset int, v uint64) int { |
|
|
|
|
for v >= 1<<7 { |
|
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80) |
|
|
|
|
v >>= 7 |
|
|
|
|
offset++ |
|
|
|
|
} |
|
|
|
|
dAtA[offset] = uint8(v) |
|
|
|
|
return offset + 1 |
|
|
|
|
} |
|
|
|
|
func (m *ExportMetricsServiceRequest) Size() (n int) { |
|
|
|
|
if m == nil { |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
var l int |
|
|
|
|
_ = l |
|
|
|
|
if m.Node != nil { |
|
|
|
|
l = m.Node.Size() |
|
|
|
|
n += 1 + l + sovMetricsService(uint64(l)) |
|
|
|
|
} |
|
|
|
|
if len(m.Metrics) > 0 { |
|
|
|
|
for _, e := range m.Metrics { |
|
|
|
|
l = e.Size() |
|
|
|
|
n += 1 + l + sovMetricsService(uint64(l)) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if m.Resource != nil { |
|
|
|
|
l = m.Resource.Size() |
|
|
|
|
n += 1 + l + sovMetricsService(uint64(l)) |
|
|
|
|
} |
|
|
|
|
if m.XXX_unrecognized != nil { |
|
|
|
|
n += len(m.XXX_unrecognized) |
|
|
|
|
} |
|
|
|
|
return n |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ExportMetricsServiceResponse) Size() (n int) { |
|
|
|
|
if m == nil { |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
var l int |
|
|
|
|
_ = l |
|
|
|
|
if m.XXX_unrecognized != nil { |
|
|
|
|
n += len(m.XXX_unrecognized) |
|
|
|
|
} |
|
|
|
|
return n |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func sovMetricsService(x uint64) (n int) { |
|
|
|
|
for { |
|
|
|
|
n++ |
|
|
|
|
x >>= 7 |
|
|
|
|
if x == 0 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return n |
|
|
|
|
} |
|
|
|
|
func sozMetricsService(x uint64) (n int) { |
|
|
|
|
return sovMetricsService(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
|
|
|
|
} |
|
|
|
|
func (m *ExportMetricsServiceRequest) Unmarshal(dAtA []byte) error { |
|
|
|
|
l := len(dAtA) |
|
|
|
|
iNdEx := 0 |
|
|
|
|
for iNdEx < l { |
|
|
|
|
preIndex := iNdEx |
|
|
|
|
var wire uint64 |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowMetricsService |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
wire |= uint64(b&0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
fieldNum := int32(wire >> 3) |
|
|
|
|
wireType := int(wire & 0x7) |
|
|
|
|
if wireType == 4 { |
|
|
|
|
return fmt.Errorf("proto: ExportMetricsServiceRequest: wiretype end group for non-group") |
|
|
|
|
} |
|
|
|
|
if fieldNum <= 0 { |
|
|
|
|
return fmt.Errorf("proto: ExportMetricsServiceRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
|
|
|
|
} |
|
|
|
|
switch fieldNum { |
|
|
|
|
case 1: |
|
|
|
|
if wireType != 2 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType) |
|
|
|
|
} |
|
|
|
|
var msglen int |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowMetricsService |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if msglen < 0 { |
|
|
|
|
return ErrInvalidLengthMetricsService |
|
|
|
|
} |
|
|
|
|
postIndex := iNdEx + msglen |
|
|
|
|
if postIndex < 0 { |
|
|
|
|
return ErrInvalidLengthMetricsService |
|
|
|
|
} |
|
|
|
|
if postIndex > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
if m.Node == nil { |
|
|
|
|
m.Node = &v1.Node{} |
|
|
|
|
} |
|
|
|
|
if err := m.Node.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
case 2: |
|
|
|
|
if wireType != 2 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) |
|
|
|
|
} |
|
|
|
|
var msglen int |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowMetricsService |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if msglen < 0 { |
|
|
|
|
return ErrInvalidLengthMetricsService |
|
|
|
|
} |
|
|
|
|
postIndex := iNdEx + msglen |
|
|
|
|
if postIndex < 0 { |
|
|
|
|
return ErrInvalidLengthMetricsService |
|
|
|
|
} |
|
|
|
|
if postIndex > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
m.Metrics = append(m.Metrics, &v11.Metric{}) |
|
|
|
|
if err := m.Metrics[len(m.Metrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
case 3: |
|
|
|
|
if wireType != 2 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) |
|
|
|
|
} |
|
|
|
|
var msglen int |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowMetricsService |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if msglen < 0 { |
|
|
|
|
return ErrInvalidLengthMetricsService |
|
|
|
|
} |
|
|
|
|
postIndex := iNdEx + msglen |
|
|
|
|
if postIndex < 0 { |
|
|
|
|
return ErrInvalidLengthMetricsService |
|
|
|
|
} |
|
|
|
|
if postIndex > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
if m.Resource == nil { |
|
|
|
|
m.Resource = &v12.Resource{} |
|
|
|
|
} |
|
|
|
|
if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
default: |
|
|
|
|
iNdEx = preIndex |
|
|
|
|
skippy, err := skipMetricsService(dAtA[iNdEx:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
if skippy < 0 { |
|
|
|
|
return ErrInvalidLengthMetricsService |
|
|
|
|
} |
|
|
|
|
if (iNdEx + skippy) < 0 { |
|
|
|
|
return ErrInvalidLengthMetricsService |
|
|
|
|
} |
|
|
|
|
if (iNdEx + skippy) > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
|
|
|
|
iNdEx += skippy |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if iNdEx > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
func (m *ExportMetricsServiceResponse) Unmarshal(dAtA []byte) error { |
|
|
|
|
l := len(dAtA) |
|
|
|
|
iNdEx := 0 |
|
|
|
|
for iNdEx < l { |
|
|
|
|
preIndex := iNdEx |
|
|
|
|
var wire uint64 |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowMetricsService |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
wire |= uint64(b&0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
fieldNum := int32(wire >> 3) |
|
|
|
|
wireType := int(wire & 0x7) |
|
|
|
|
if wireType == 4 { |
|
|
|
|
return fmt.Errorf("proto: ExportMetricsServiceResponse: wiretype end group for non-group") |
|
|
|
|
} |
|
|
|
|
if fieldNum <= 0 { |
|
|
|
|
return fmt.Errorf("proto: ExportMetricsServiceResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
|
|
|
|
} |
|
|
|
|
switch fieldNum { |
|
|
|
|
default: |
|
|
|
|
iNdEx = preIndex |
|
|
|
|
skippy, err := skipMetricsService(dAtA[iNdEx:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
if skippy < 0 { |
|
|
|
|
return ErrInvalidLengthMetricsService |
|
|
|
|
} |
|
|
|
|
if (iNdEx + skippy) < 0 { |
|
|
|
|
return ErrInvalidLengthMetricsService |
|
|
|
|
} |
|
|
|
|
if (iNdEx + skippy) > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
|
|
|
|
iNdEx += skippy |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if iNdEx > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
func skipMetricsService(dAtA []byte) (n int, err error) { |
|
|
|
|
l := len(dAtA) |
|
|
|
|
iNdEx := 0 |
|
|
|
|
for iNdEx < l { |
|
|
|
|
var wire uint64 |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return 0, ErrIntOverflowMetricsService |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return 0, io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
wireType := int(wire & 0x7) |
|
|
|
|
switch wireType { |
|
|
|
|
case 0: |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return 0, ErrIntOverflowMetricsService |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return 0, io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
iNdEx++ |
|
|
|
|
if dAtA[iNdEx-1] < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return iNdEx, nil |
|
|
|
|
case 1: |
|
|
|
|
iNdEx += 8 |
|
|
|
|
return iNdEx, nil |
|
|
|
|
case 2: |
|
|
|
|
var length int |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return 0, ErrIntOverflowMetricsService |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return 0, io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
length |= (int(b) & 0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if length < 0 { |
|
|
|
|
return 0, ErrInvalidLengthMetricsService |
|
|
|
|
} |
|
|
|
|
iNdEx += length |
|
|
|
|
if iNdEx < 0 { |
|
|
|
|
return 0, ErrInvalidLengthMetricsService |
|
|
|
|
} |
|
|
|
|
return iNdEx, nil |
|
|
|
|
case 3: |
|
|
|
|
for { |
|
|
|
|
var innerWire uint64 |
|
|
|
|
var start int = iNdEx |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return 0, ErrIntOverflowMetricsService |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return 0, io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
innerWire |= (uint64(b) & 0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
innerWireType := int(innerWire & 0x7) |
|
|
|
|
if innerWireType == 4 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
next, err := skipMetricsService(dAtA[start:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return 0, err |
|
|
|
|
} |
|
|
|
|
iNdEx = start + next |
|
|
|
|
if iNdEx < 0 { |
|
|
|
|
return 0, ErrInvalidLengthMetricsService |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return iNdEx, nil |
|
|
|
|
case 4: |
|
|
|
|
return iNdEx, nil |
|
|
|
|
case 5: |
|
|
|
|
iNdEx += 4 |
|
|
|
|
return iNdEx, nil |
|
|
|
|
default: |
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
panic("unreachable") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var ( |
|
|
|
|
ErrInvalidLengthMetricsService = fmt.Errorf("proto: negative length found during unmarshaling") |
|
|
|
|
ErrIntOverflowMetricsService = fmt.Errorf("proto: integer overflow") |
|
|
|
|
) |
|
|
|
|