| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | // Code generated by protoc-gen-gogo. DO NOT EDIT.
 | 
					
						
							|  |  |  | // source: remote.proto
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | package prompb | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | import ( | 
					
						
							|  |  |  | 	fmt "fmt" | 
					
						
							|  |  |  | 	io "io" | 
					
						
							|  |  |  | 	math "math" | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	math_bits "math/bits" | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 	_ "github.com/gogo/protobuf/gogoproto" | 
					
						
							|  |  |  | 	proto "github.com/gogo/protobuf/proto" | 
					
						
							|  |  |  | ) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // Reference imports to suppress errors if they are not otherwise used.
 | 
					
						
							|  |  |  | var _ = proto.Marshal | 
					
						
							|  |  |  | var _ = fmt.Errorf | 
					
						
							|  |  |  | var _ = math.Inf | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // This is a compile-time assertion to ensure that this generated file
 | 
					
						
							|  |  |  | // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type WriteRequest struct { | 
					
						
							| 
									
										
										
										
											2019-01-16 03:13:39 +08:00
										 |  |  | 	Timeseries           []TimeSeries `protobuf:"bytes,1,rep,name=timeseries,proto3" json:"timeseries"` | 
					
						
							|  |  |  | 	XXX_NoUnkeyedLiteral struct{}     `json:"-"` | 
					
						
							|  |  |  | 	XXX_unrecognized     []byte       `json:"-"` | 
					
						
							|  |  |  | 	XXX_sizecache        int32        `json:"-"` | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | func (m *WriteRequest) Reset()         { *m = WriteRequest{} } | 
					
						
							|  |  |  | func (m *WriteRequest) String() string { return proto.CompactTextString(m) } | 
					
						
							|  |  |  | func (*WriteRequest) ProtoMessage()    {} | 
					
						
							|  |  |  | func (*WriteRequest) Descriptor() ([]byte, []int) { | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 	return fileDescriptor_eefc82927d57d89b, []int{0} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | } | 
					
						
							|  |  |  | func (m *WriteRequest) XXX_Unmarshal(b []byte) error { | 
					
						
							|  |  |  | 	return m.Unmarshal(b) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | 
					
						
							|  |  |  | 	if deterministic { | 
					
						
							|  |  |  | 		return xxx_messageInfo_WriteRequest.Marshal(b, m, deterministic) | 
					
						
							|  |  |  | 	} else { | 
					
						
							|  |  |  | 		b = b[:cap(b)] | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 		n, err := m.MarshalToSizedBuffer(b) | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 		if err != nil { | 
					
						
							|  |  |  | 			return nil, err | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		return b[:n], nil | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | func (m *WriteRequest) XXX_Merge(src proto.Message) { | 
					
						
							|  |  |  | 	xxx_messageInfo_WriteRequest.Merge(m, src) | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | } | 
					
						
							|  |  |  | func (m *WriteRequest) XXX_Size() int { | 
					
						
							|  |  |  | 	return m.Size() | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *WriteRequest) XXX_DiscardUnknown() { | 
					
						
							|  |  |  | 	xxx_messageInfo_WriteRequest.DiscardUnknown(m) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var xxx_messageInfo_WriteRequest proto.InternalMessageInfo | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-16 03:13:39 +08:00
										 |  |  | func (m *WriteRequest) GetTimeseries() []TimeSeries { | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	if m != nil { | 
					
						
							|  |  |  | 		return m.Timeseries | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type ReadRequest struct { | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	Queries              []*Query `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries,omitempty"` | 
					
						
							|  |  |  | 	XXX_NoUnkeyedLiteral struct{} `json:"-"` | 
					
						
							|  |  |  | 	XXX_unrecognized     []byte   `json:"-"` | 
					
						
							|  |  |  | 	XXX_sizecache        int32    `json:"-"` | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | func (m *ReadRequest) Reset()         { *m = ReadRequest{} } | 
					
						
							|  |  |  | func (m *ReadRequest) String() string { return proto.CompactTextString(m) } | 
					
						
							|  |  |  | func (*ReadRequest) ProtoMessage()    {} | 
					
						
							|  |  |  | func (*ReadRequest) Descriptor() ([]byte, []int) { | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 	return fileDescriptor_eefc82927d57d89b, []int{1} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | } | 
					
						
							|  |  |  | func (m *ReadRequest) XXX_Unmarshal(b []byte) error { | 
					
						
							|  |  |  | 	return m.Unmarshal(b) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | 
					
						
							|  |  |  | 	if deterministic { | 
					
						
							|  |  |  | 		return xxx_messageInfo_ReadRequest.Marshal(b, m, deterministic) | 
					
						
							|  |  |  | 	} else { | 
					
						
							|  |  |  | 		b = b[:cap(b)] | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 		n, err := m.MarshalToSizedBuffer(b) | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 		if err != nil { | 
					
						
							|  |  |  | 			return nil, err | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		return b[:n], nil | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | func (m *ReadRequest) XXX_Merge(src proto.Message) { | 
					
						
							|  |  |  | 	xxx_messageInfo_ReadRequest.Merge(m, src) | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | } | 
					
						
							|  |  |  | func (m *ReadRequest) XXX_Size() int { | 
					
						
							|  |  |  | 	return m.Size() | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *ReadRequest) XXX_DiscardUnknown() { | 
					
						
							|  |  |  | 	xxx_messageInfo_ReadRequest.DiscardUnknown(m) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var xxx_messageInfo_ReadRequest proto.InternalMessageInfo | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | func (m *ReadRequest) GetQueries() []*Query { | 
					
						
							|  |  |  | 	if m != nil { | 
					
						
							|  |  |  | 		return m.Queries | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type ReadResponse struct { | 
					
						
							|  |  |  | 	// In same order as the request's queries.
 | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	Results              []*QueryResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` | 
					
						
							|  |  |  | 	XXX_NoUnkeyedLiteral struct{}       `json:"-"` | 
					
						
							|  |  |  | 	XXX_unrecognized     []byte         `json:"-"` | 
					
						
							|  |  |  | 	XXX_sizecache        int32          `json:"-"` | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *ReadResponse) Reset()         { *m = ReadResponse{} } | 
					
						
							|  |  |  | func (m *ReadResponse) String() string { return proto.CompactTextString(m) } | 
					
						
							|  |  |  | func (*ReadResponse) ProtoMessage()    {} | 
					
						
							|  |  |  | func (*ReadResponse) Descriptor() ([]byte, []int) { | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 	return fileDescriptor_eefc82927d57d89b, []int{2} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | } | 
					
						
							|  |  |  | func (m *ReadResponse) XXX_Unmarshal(b []byte) error { | 
					
						
							|  |  |  | 	return m.Unmarshal(b) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | 
					
						
							|  |  |  | 	if deterministic { | 
					
						
							|  |  |  | 		return xxx_messageInfo_ReadResponse.Marshal(b, m, deterministic) | 
					
						
							|  |  |  | 	} else { | 
					
						
							|  |  |  | 		b = b[:cap(b)] | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 		n, err := m.MarshalToSizedBuffer(b) | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 		if err != nil { | 
					
						
							|  |  |  | 			return nil, err | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		return b[:n], nil | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | func (m *ReadResponse) XXX_Merge(src proto.Message) { | 
					
						
							|  |  |  | 	xxx_messageInfo_ReadResponse.Merge(m, src) | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | } | 
					
						
							|  |  |  | func (m *ReadResponse) XXX_Size() int { | 
					
						
							|  |  |  | 	return m.Size() | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *ReadResponse) XXX_DiscardUnknown() { | 
					
						
							|  |  |  | 	xxx_messageInfo_ReadResponse.DiscardUnknown(m) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | var xxx_messageInfo_ReadResponse proto.InternalMessageInfo | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | func (m *ReadResponse) GetResults() []*QueryResult { | 
					
						
							|  |  |  | 	if m != nil { | 
					
						
							|  |  |  | 		return m.Results | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type Query struct { | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	StartTimestampMs     int64           `protobuf:"varint,1,opt,name=start_timestamp_ms,json=startTimestampMs,proto3" json:"start_timestamp_ms,omitempty"` | 
					
						
							|  |  |  | 	EndTimestampMs       int64           `protobuf:"varint,2,opt,name=end_timestamp_ms,json=endTimestampMs,proto3" json:"end_timestamp_ms,omitempty"` | 
					
						
							|  |  |  | 	Matchers             []*LabelMatcher `protobuf:"bytes,3,rep,name=matchers,proto3" json:"matchers,omitempty"` | 
					
						
							|  |  |  | 	Hints                *ReadHints      `protobuf:"bytes,4,opt,name=hints,proto3" json:"hints,omitempty"` | 
					
						
							|  |  |  | 	XXX_NoUnkeyedLiteral struct{}        `json:"-"` | 
					
						
							|  |  |  | 	XXX_unrecognized     []byte          `json:"-"` | 
					
						
							|  |  |  | 	XXX_sizecache        int32           `json:"-"` | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | func (m *Query) Reset()         { *m = Query{} } | 
					
						
							|  |  |  | func (m *Query) String() string { return proto.CompactTextString(m) } | 
					
						
							|  |  |  | func (*Query) ProtoMessage()    {} | 
					
						
							|  |  |  | func (*Query) Descriptor() ([]byte, []int) { | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 	return fileDescriptor_eefc82927d57d89b, []int{3} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | } | 
					
						
							|  |  |  | func (m *Query) XXX_Unmarshal(b []byte) error { | 
					
						
							|  |  |  | 	return m.Unmarshal(b) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | 
					
						
							|  |  |  | 	if deterministic { | 
					
						
							|  |  |  | 		return xxx_messageInfo_Query.Marshal(b, m, deterministic) | 
					
						
							|  |  |  | 	} else { | 
					
						
							|  |  |  | 		b = b[:cap(b)] | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 		n, err := m.MarshalToSizedBuffer(b) | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 		if err != nil { | 
					
						
							|  |  |  | 			return nil, err | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		return b[:n], nil | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | func (m *Query) XXX_Merge(src proto.Message) { | 
					
						
							|  |  |  | 	xxx_messageInfo_Query.Merge(m, src) | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | } | 
					
						
							|  |  |  | func (m *Query) XXX_Size() int { | 
					
						
							|  |  |  | 	return m.Size() | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *Query) XXX_DiscardUnknown() { | 
					
						
							|  |  |  | 	xxx_messageInfo_Query.DiscardUnknown(m) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var xxx_messageInfo_Query proto.InternalMessageInfo | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | func (m *Query) GetStartTimestampMs() int64 { | 
					
						
							|  |  |  | 	if m != nil { | 
					
						
							|  |  |  | 		return m.StartTimestampMs | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return 0 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *Query) GetEndTimestampMs() int64 { | 
					
						
							|  |  |  | 	if m != nil { | 
					
						
							|  |  |  | 		return m.EndTimestampMs | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return 0 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *Query) GetMatchers() []*LabelMatcher { | 
					
						
							|  |  |  | 	if m != nil { | 
					
						
							|  |  |  | 		return m.Matchers | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-08 16:48:13 +08:00
										 |  |  | func (m *Query) GetHints() *ReadHints { | 
					
						
							|  |  |  | 	if m != nil { | 
					
						
							|  |  |  | 		return m.Hints | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | type QueryResult struct { | 
					
						
							| 
									
										
										
										
											2018-01-17 20:31:30 +08:00
										 |  |  | 	// Samples within a time series must be ordered by time.
 | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	Timeseries           []*TimeSeries `protobuf:"bytes,1,rep,name=timeseries,proto3" json:"timeseries,omitempty"` | 
					
						
							|  |  |  | 	XXX_NoUnkeyedLiteral struct{}      `json:"-"` | 
					
						
							|  |  |  | 	XXX_unrecognized     []byte        `json:"-"` | 
					
						
							|  |  |  | 	XXX_sizecache        int32         `json:"-"` | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *QueryResult) Reset()         { *m = QueryResult{} } | 
					
						
							|  |  |  | func (m *QueryResult) String() string { return proto.CompactTextString(m) } | 
					
						
							|  |  |  | func (*QueryResult) ProtoMessage()    {} | 
					
						
							|  |  |  | func (*QueryResult) Descriptor() ([]byte, []int) { | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 	return fileDescriptor_eefc82927d57d89b, []int{4} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | } | 
					
						
							|  |  |  | func (m *QueryResult) XXX_Unmarshal(b []byte) error { | 
					
						
							|  |  |  | 	return m.Unmarshal(b) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *QueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | 
					
						
							|  |  |  | 	if deterministic { | 
					
						
							|  |  |  | 		return xxx_messageInfo_QueryResult.Marshal(b, m, deterministic) | 
					
						
							|  |  |  | 	} else { | 
					
						
							|  |  |  | 		b = b[:cap(b)] | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 		n, err := m.MarshalToSizedBuffer(b) | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 		if err != nil { | 
					
						
							|  |  |  | 			return nil, err | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		return b[:n], nil | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | func (m *QueryResult) XXX_Merge(src proto.Message) { | 
					
						
							|  |  |  | 	xxx_messageInfo_QueryResult.Merge(m, src) | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | } | 
					
						
							|  |  |  | func (m *QueryResult) XXX_Size() int { | 
					
						
							|  |  |  | 	return m.Size() | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *QueryResult) XXX_DiscardUnknown() { | 
					
						
							|  |  |  | 	xxx_messageInfo_QueryResult.DiscardUnknown(m) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | var xxx_messageInfo_QueryResult proto.InternalMessageInfo | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | func (m *QueryResult) GetTimeseries() []*TimeSeries { | 
					
						
							|  |  |  | 	if m != nil { | 
					
						
							|  |  |  | 		return m.Timeseries | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func init() { | 
					
						
							| 
									
										
										
										
											2017-08-01 18:12:34 +08:00
										 |  |  | 	proto.RegisterType((*WriteRequest)(nil), "prometheus.WriteRequest") | 
					
						
							|  |  |  | 	proto.RegisterType((*ReadRequest)(nil), "prometheus.ReadRequest") | 
					
						
							|  |  |  | 	proto.RegisterType((*ReadResponse)(nil), "prometheus.ReadResponse") | 
					
						
							|  |  |  | 	proto.RegisterType((*Query)(nil), "prometheus.Query") | 
					
						
							|  |  |  | 	proto.RegisterType((*QueryResult)(nil), "prometheus.QueryResult") | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | func init() { proto.RegisterFile("remote.proto", fileDescriptor_eefc82927d57d89b) } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var fileDescriptor_eefc82927d57d89b = []byte{ | 
					
						
							|  |  |  | 	// 333 bytes of a gzipped FileDescriptorProto
 | 
					
						
							|  |  |  | 	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xbf, 0x4a, 0x2b, 0x41, | 
					
						
							|  |  |  | 	0x14, 0xc6, 0xef, 0xdc, 0xfc, 0xbb, 0x9c, 0x0d, 0x97, 0xdc, 0x21, 0x57, 0x97, 0x14, 0x31, 0x6c, | 
					
						
							|  |  |  | 	0xb5, 0x10, 0x89, 0x18, 0xc5, 0x42, 0x6c, 0x0c, 0x08, 0x16, 0x49, 0xe1, 0x18, 0x10, 0x6c, 0xc2, | 
					
						
							|  |  |  | 	0xc6, 0x1c, 0x92, 0x85, 0xcc, 0xce, 0x66, 0xe6, 0x6c, 0x91, 0xd7, 0xb3, 0x4a, 0xe9, 0x13, 0x88, | 
					
						
							|  |  |  | 	0xe4, 0x49, 0x64, 0x67, 0x59, 0x1d, 0xb1, 0xb1, 0x1b, 0xe6, 0xf7, 0xfb, 0x3e, 0xce, 0xe1, 0x40, | 
					
						
							|  |  |  | 	0x53, 0xa3, 0x54, 0x84, 0x83, 0x54, 0x2b, 0x52, 0x1c, 0x52, 0xad, 0x24, 0xd2, 0x0a, 0x33, 0xd3, | 
					
						
							|  |  |  | 	0xf1, 0x68, 0x9b, 0xa2, 0x29, 0x40, 0xa7, 0xbd, 0x54, 0x4b, 0x65, 0x9f, 0x27, 0xf9, 0xab, 0xf8, | 
					
						
							|  |  |  | 	0x0d, 0xc6, 0xd0, 0x7c, 0xd0, 0x31, 0xa1, 0xc0, 0x4d, 0x86, 0x86, 0xf8, 0x15, 0x00, 0xc5, 0x12, | 
					
						
							|  |  |  | 	0x0d, 0xea, 0x18, 0x8d, 0xcf, 0x7a, 0x95, 0xd0, 0x1b, 0x1e, 0x0c, 0x3e, 0x3b, 0x07, 0xd3, 0x58, | 
					
						
							|  |  |  | 	0xe2, 0xbd, 0xa5, 0xa3, 0xea, 0xee, 0xf5, 0xe8, 0x97, 0x70, 0xfc, 0xe0, 0x12, 0x3c, 0x81, 0xd1, | 
					
						
							|  |  |  | 	0xa2, 0x2c, 0xeb, 0x43, 0x63, 0x93, 0xb9, 0x4d, 0xff, 0xdc, 0xa6, 0xbb, 0x0c, 0xf5, 0x56, 0x94, | 
					
						
							|  |  |  | 	0x46, 0x70, 0x0d, 0xcd, 0x22, 0x6b, 0x52, 0x95, 0x18, 0xe4, 0xa7, 0xd0, 0xd0, 0x68, 0xb2, 0x35, | 
					
						
							|  |  |  | 	0x95, 0xe1, 0xc3, 0xef, 0x61, 0xcb, 0x45, 0xe9, 0x05, 0xcf, 0x0c, 0x6a, 0x16, 0xf0, 0x63, 0xe0, | 
					
						
							|  |  |  | 	0x86, 0x22, 0x4d, 0x33, 0x3b, 0x1c, 0x45, 0x32, 0x9d, 0xc9, 0xbc, 0x87, 0x85, 0x15, 0xd1, 0xb2, | 
					
						
							|  |  |  | 	0x64, 0x5a, 0x82, 0x89, 0xe1, 0x21, 0xb4, 0x30, 0x59, 0x7c, 0x75, 0x7f, 0x5b, 0xf7, 0x2f, 0x26, | 
					
						
							|  |  |  | 	0x0b, 0xd7, 0x3c, 0x87, 0x3f, 0x32, 0xa2, 0xa7, 0x15, 0x6a, 0xe3, 0x57, 0xec, 0x54, 0xbe, 0x3b, | 
					
						
							|  |  |  | 	0xd5, 0x38, 0x9a, 0xe3, 0x7a, 0x52, 0x08, 0xe2, 0xc3, 0xe4, 0x7d, 0xa8, 0xad, 0xe2, 0x84, 0x8c, | 
					
						
							|  |  |  | 	0x5f, 0xed, 0xb1, 0xd0, 0x1b, 0xfe, 0x77, 0x23, 0xf9, 0xce, 0xb7, 0x39, 0x14, 0x85, 0x13, 0xdc, | 
					
						
							|  |  |  | 	0x80, 0xe7, 0x2c, 0xc7, 0x2f, 0x7e, 0x7e, 0x10, 0xf7, 0x14, 0xa3, 0xf6, 0x6e, 0xdf, 0x65, 0x2f, | 
					
						
							|  |  |  | 	0xfb, 0x2e, 0x7b, 0xdb, 0x77, 0xd9, 0x63, 0x3d, 0x0f, 0xa4, 0xf3, 0x79, 0xdd, 0x5e, 0xfd, 0xec, | 
					
						
							|  |  |  | 	0x3d, 0x00, 0x00, 0xff, 0xff, 0x9e, 0xb6, 0x05, 0x1c, 0x34, 0x02, 0x00, 0x00, | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | func (m *WriteRequest) Marshal() (dAtA []byte, err error) { | 
					
						
							|  |  |  | 	size := m.Size() | 
					
						
							|  |  |  | 	dAtA = make([]byte, size) | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	if err != nil { | 
					
						
							|  |  |  | 		return nil, err | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return dAtA[:n], nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *WriteRequest) MarshalTo(dAtA []byte) (int, error) { | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	size := m.Size() | 
					
						
							|  |  |  | 	return m.MarshalToSizedBuffer(dAtA[:size]) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *WriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { | 
					
						
							|  |  |  | 	i := len(dAtA) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	_ = i | 
					
						
							|  |  |  | 	var l int | 
					
						
							|  |  |  | 	_ = l | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	if m.XXX_unrecognized != nil { | 
					
						
							|  |  |  | 		i -= len(m.XXX_unrecognized) | 
					
						
							|  |  |  | 		copy(dAtA[i:], m.XXX_unrecognized) | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	if len(m.Timeseries) > 0 { | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 		for iNdEx := len(m.Timeseries) - 1; iNdEx >= 0; iNdEx-- { | 
					
						
							|  |  |  | 			{ | 
					
						
							|  |  |  | 				size, err := m.Timeseries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) | 
					
						
							|  |  |  | 				if err != nil { | 
					
						
							|  |  |  | 					return 0, err | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				i -= size | 
					
						
							|  |  |  | 				i = encodeVarintRemote(dAtA, i, uint64(size)) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 			i-- | 
					
						
							|  |  |  | 			dAtA[i] = 0xa | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	return len(dAtA) - i, nil | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *ReadRequest) Marshal() (dAtA []byte, err error) { | 
					
						
							|  |  |  | 	size := m.Size() | 
					
						
							|  |  |  | 	dAtA = make([]byte, size) | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	if err != nil { | 
					
						
							|  |  |  | 		return nil, err | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return dAtA[:n], nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *ReadRequest) MarshalTo(dAtA []byte) (int, error) { | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	size := m.Size() | 
					
						
							|  |  |  | 	return m.MarshalToSizedBuffer(dAtA[:size]) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *ReadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { | 
					
						
							|  |  |  | 	i := len(dAtA) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	_ = i | 
					
						
							|  |  |  | 	var l int | 
					
						
							|  |  |  | 	_ = l | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	if m.XXX_unrecognized != nil { | 
					
						
							|  |  |  | 		i -= len(m.XXX_unrecognized) | 
					
						
							|  |  |  | 		copy(dAtA[i:], m.XXX_unrecognized) | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	if len(m.Queries) > 0 { | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 		for iNdEx := len(m.Queries) - 1; iNdEx >= 0; iNdEx-- { | 
					
						
							|  |  |  | 			{ | 
					
						
							|  |  |  | 				size, err := m.Queries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) | 
					
						
							|  |  |  | 				if err != nil { | 
					
						
							|  |  |  | 					return 0, err | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				i -= size | 
					
						
							|  |  |  | 				i = encodeVarintRemote(dAtA, i, uint64(size)) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 			i-- | 
					
						
							|  |  |  | 			dAtA[i] = 0xa | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	return len(dAtA) - i, nil | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *ReadResponse) Marshal() (dAtA []byte, err error) { | 
					
						
							|  |  |  | 	size := m.Size() | 
					
						
							|  |  |  | 	dAtA = make([]byte, size) | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	if err != nil { | 
					
						
							|  |  |  | 		return nil, err | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return dAtA[:n], nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *ReadResponse) MarshalTo(dAtA []byte) (int, error) { | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	size := m.Size() | 
					
						
							|  |  |  | 	return m.MarshalToSizedBuffer(dAtA[:size]) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *ReadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { | 
					
						
							|  |  |  | 	i := len(dAtA) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	_ = i | 
					
						
							|  |  |  | 	var l int | 
					
						
							|  |  |  | 	_ = l | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	if m.XXX_unrecognized != nil { | 
					
						
							|  |  |  | 		i -= len(m.XXX_unrecognized) | 
					
						
							|  |  |  | 		copy(dAtA[i:], m.XXX_unrecognized) | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	if len(m.Results) > 0 { | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 		for iNdEx := len(m.Results) - 1; iNdEx >= 0; iNdEx-- { | 
					
						
							|  |  |  | 			{ | 
					
						
							|  |  |  | 				size, err := m.Results[iNdEx].MarshalToSizedBuffer(dAtA[:i]) | 
					
						
							|  |  |  | 				if err != nil { | 
					
						
							|  |  |  | 					return 0, err | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				i -= size | 
					
						
							|  |  |  | 				i = encodeVarintRemote(dAtA, i, uint64(size)) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 			i-- | 
					
						
							|  |  |  | 			dAtA[i] = 0xa | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	return len(dAtA) - i, nil | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *Query) Marshal() (dAtA []byte, err error) { | 
					
						
							|  |  |  | 	size := m.Size() | 
					
						
							|  |  |  | 	dAtA = make([]byte, size) | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	if err != nil { | 
					
						
							|  |  |  | 		return nil, err | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return dAtA[:n], nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *Query) MarshalTo(dAtA []byte) (int, error) { | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	size := m.Size() | 
					
						
							|  |  |  | 	return m.MarshalToSizedBuffer(dAtA[:size]) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *Query) MarshalToSizedBuffer(dAtA []byte) (int, error) { | 
					
						
							|  |  |  | 	i := len(dAtA) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	_ = i | 
					
						
							|  |  |  | 	var l int | 
					
						
							|  |  |  | 	_ = l | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	if m.XXX_unrecognized != nil { | 
					
						
							|  |  |  | 		i -= len(m.XXX_unrecognized) | 
					
						
							|  |  |  | 		copy(dAtA[i:], m.XXX_unrecognized) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	if m.Hints != nil { | 
					
						
							|  |  |  | 		{ | 
					
						
							|  |  |  | 			size, err := m.Hints.MarshalToSizedBuffer(dAtA[:i]) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if err != nil { | 
					
						
							|  |  |  | 				return 0, err | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 			i -= size | 
					
						
							|  |  |  | 			i = encodeVarintRemote(dAtA, i, uint64(size)) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 		} | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 		i-- | 
					
						
							| 
									
										
										
										
											2018-05-08 16:48:13 +08:00
										 |  |  | 		dAtA[i] = 0x22 | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	} | 
					
						
							|  |  |  | 	if len(m.Matchers) > 0 { | 
					
						
							|  |  |  | 		for iNdEx := len(m.Matchers) - 1; iNdEx >= 0; iNdEx-- { | 
					
						
							|  |  |  | 			{ | 
					
						
							|  |  |  | 				size, err := m.Matchers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) | 
					
						
							|  |  |  | 				if err != nil { | 
					
						
							|  |  |  | 					return 0, err | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				i -= size | 
					
						
							|  |  |  | 				i = encodeVarintRemote(dAtA, i, uint64(size)) | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			i-- | 
					
						
							|  |  |  | 			dAtA[i] = 0x1a | 
					
						
							| 
									
										
										
										
											2018-05-08 16:48:13 +08:00
										 |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	if m.EndTimestampMs != 0 { | 
					
						
							|  |  |  | 		i = encodeVarintRemote(dAtA, i, uint64(m.EndTimestampMs)) | 
					
						
							|  |  |  | 		i-- | 
					
						
							|  |  |  | 		dAtA[i] = 0x10 | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	if m.StartTimestampMs != 0 { | 
					
						
							|  |  |  | 		i = encodeVarintRemote(dAtA, i, uint64(m.StartTimestampMs)) | 
					
						
							|  |  |  | 		i-- | 
					
						
							|  |  |  | 		dAtA[i] = 0x8 | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	return len(dAtA) - i, nil | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *QueryResult) Marshal() (dAtA []byte, err error) { | 
					
						
							|  |  |  | 	size := m.Size() | 
					
						
							|  |  |  | 	dAtA = make([]byte, size) | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	n, err := m.MarshalToSizedBuffer(dAtA[:size]) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	if err != nil { | 
					
						
							|  |  |  | 		return nil, err | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return dAtA[:n], nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *QueryResult) MarshalTo(dAtA []byte) (int, error) { | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	size := m.Size() | 
					
						
							|  |  |  | 	return m.MarshalToSizedBuffer(dAtA[:size]) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *QueryResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { | 
					
						
							|  |  |  | 	i := len(dAtA) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	_ = i | 
					
						
							|  |  |  | 	var l int | 
					
						
							|  |  |  | 	_ = l | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	if m.XXX_unrecognized != nil { | 
					
						
							|  |  |  | 		i -= len(m.XXX_unrecognized) | 
					
						
							|  |  |  | 		copy(dAtA[i:], m.XXX_unrecognized) | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	if len(m.Timeseries) > 0 { | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 		for iNdEx := len(m.Timeseries) - 1; iNdEx >= 0; iNdEx-- { | 
					
						
							|  |  |  | 			{ | 
					
						
							|  |  |  | 				size, err := m.Timeseries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) | 
					
						
							|  |  |  | 				if err != nil { | 
					
						
							|  |  |  | 					return 0, err | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				i -= size | 
					
						
							|  |  |  | 				i = encodeVarintRemote(dAtA, i, uint64(size)) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 			i-- | 
					
						
							|  |  |  | 			dAtA[i] = 0xa | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	return len(dAtA) - i, nil | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func encodeVarintRemote(dAtA []byte, offset int, v uint64) int { | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	offset -= sovRemote(v) | 
					
						
							|  |  |  | 	base := offset | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	for v >= 1<<7 { | 
					
						
							|  |  |  | 		dAtA[offset] = uint8(v&0x7f | 0x80) | 
					
						
							|  |  |  | 		v >>= 7 | 
					
						
							|  |  |  | 		offset++ | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	dAtA[offset] = uint8(v) | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	return base | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | } | 
					
						
							|  |  |  | func (m *WriteRequest) Size() (n int) { | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	if m == nil { | 
					
						
							|  |  |  | 		return 0 | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	var l int | 
					
						
							|  |  |  | 	_ = l | 
					
						
							|  |  |  | 	if len(m.Timeseries) > 0 { | 
					
						
							|  |  |  | 		for _, e := range m.Timeseries { | 
					
						
							|  |  |  | 			l = e.Size() | 
					
						
							|  |  |  | 			n += 1 + l + sovRemote(uint64(l)) | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	if m.XXX_unrecognized != nil { | 
					
						
							|  |  |  | 		n += len(m.XXX_unrecognized) | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	return n | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *ReadRequest) Size() (n int) { | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	if m == nil { | 
					
						
							|  |  |  | 		return 0 | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	var l int | 
					
						
							|  |  |  | 	_ = l | 
					
						
							|  |  |  | 	if len(m.Queries) > 0 { | 
					
						
							|  |  |  | 		for _, e := range m.Queries { | 
					
						
							|  |  |  | 			l = e.Size() | 
					
						
							|  |  |  | 			n += 1 + l + sovRemote(uint64(l)) | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	if m.XXX_unrecognized != nil { | 
					
						
							|  |  |  | 		n += len(m.XXX_unrecognized) | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	return n | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *ReadResponse) Size() (n int) { | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	if m == nil { | 
					
						
							|  |  |  | 		return 0 | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	var l int | 
					
						
							|  |  |  | 	_ = l | 
					
						
							|  |  |  | 	if len(m.Results) > 0 { | 
					
						
							|  |  |  | 		for _, e := range m.Results { | 
					
						
							|  |  |  | 			l = e.Size() | 
					
						
							|  |  |  | 			n += 1 + l + sovRemote(uint64(l)) | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	if m.XXX_unrecognized != nil { | 
					
						
							|  |  |  | 		n += len(m.XXX_unrecognized) | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	return n | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *Query) Size() (n int) { | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	if m == nil { | 
					
						
							|  |  |  | 		return 0 | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	var l int | 
					
						
							|  |  |  | 	_ = l | 
					
						
							|  |  |  | 	if m.StartTimestampMs != 0 { | 
					
						
							|  |  |  | 		n += 1 + sovRemote(uint64(m.StartTimestampMs)) | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	if m.EndTimestampMs != 0 { | 
					
						
							|  |  |  | 		n += 1 + sovRemote(uint64(m.EndTimestampMs)) | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	if len(m.Matchers) > 0 { | 
					
						
							|  |  |  | 		for _, e := range m.Matchers { | 
					
						
							|  |  |  | 			l = e.Size() | 
					
						
							|  |  |  | 			n += 1 + l + sovRemote(uint64(l)) | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2018-05-08 16:48:13 +08:00
										 |  |  | 	if m.Hints != nil { | 
					
						
							|  |  |  | 		l = m.Hints.Size() | 
					
						
							|  |  |  | 		n += 1 + l + sovRemote(uint64(l)) | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	if m.XXX_unrecognized != nil { | 
					
						
							|  |  |  | 		n += len(m.XXX_unrecognized) | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	return n | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func (m *QueryResult) Size() (n int) { | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	if m == nil { | 
					
						
							|  |  |  | 		return 0 | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	var l int | 
					
						
							|  |  |  | 	_ = l | 
					
						
							|  |  |  | 	if len(m.Timeseries) > 0 { | 
					
						
							|  |  |  | 		for _, e := range m.Timeseries { | 
					
						
							|  |  |  | 			l = e.Size() | 
					
						
							|  |  |  | 			n += 1 + l + sovRemote(uint64(l)) | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 	if m.XXX_unrecognized != nil { | 
					
						
							|  |  |  | 		n += len(m.XXX_unrecognized) | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 	return n | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func sovRemote(x uint64) (n int) { | 
					
						
							| 
									
										
										
										
											2019-08-14 17:00:39 +08:00
										 |  |  | 	return (math_bits.Len64(x|1) + 6) / 7 | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | } | 
					
						
							|  |  |  | func sozRemote(x uint64) (n int) { | 
					
						
							|  |  |  | 	return sovRemote(uint64((x << 1) ^ uint64((int64(x) >> 63)))) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *WriteRequest) 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 ErrIntOverflowRemote | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if iNdEx >= l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			b := dAtA[iNdEx] | 
					
						
							|  |  |  | 			iNdEx++ | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			wire |= uint64(b&0x7F) << shift | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if b < 0x80 { | 
					
						
							|  |  |  | 				break | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		fieldNum := int32(wire >> 3) | 
					
						
							|  |  |  | 		wireType := int(wire & 0x7) | 
					
						
							|  |  |  | 		if wireType == 4 { | 
					
						
							|  |  |  | 			return fmt.Errorf("proto: WriteRequest: wiretype end group for non-group") | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		if fieldNum <= 0 { | 
					
						
							|  |  |  | 			return fmt.Errorf("proto: WriteRequest: illegal tag %d (wire type %d)", fieldNum, wire) | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		switch fieldNum { | 
					
						
							|  |  |  | 		case 1: | 
					
						
							|  |  |  | 			if wireType != 2 { | 
					
						
							|  |  |  | 				return fmt.Errorf("proto: wrong wireType = %d for field Timeseries", wireType) | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			var msglen int | 
					
						
							|  |  |  | 			for shift := uint(0); ; shift += 7 { | 
					
						
							|  |  |  | 				if shift >= 64 { | 
					
						
							|  |  |  | 					return ErrIntOverflowRemote | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				if iNdEx >= l { | 
					
						
							|  |  |  | 					return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				b := dAtA[iNdEx] | 
					
						
							|  |  |  | 				iNdEx++ | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 				msglen |= int(b&0x7F) << shift | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 				if b < 0x80 { | 
					
						
							|  |  |  | 					break | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if msglen < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			postIndex := iNdEx + msglen | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			if postIndex < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if postIndex > l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-01-16 03:13:39 +08:00
										 |  |  | 			m.Timeseries = append(m.Timeseries, TimeSeries{}) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if err := m.Timeseries[len(m.Timeseries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { | 
					
						
							|  |  |  | 				return err | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			iNdEx = postIndex | 
					
						
							|  |  |  | 		default: | 
					
						
							|  |  |  | 			iNdEx = preIndex | 
					
						
							|  |  |  | 			skippy, err := skipRemote(dAtA[iNdEx:]) | 
					
						
							|  |  |  | 			if err != nil { | 
					
						
							|  |  |  | 				return err | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if skippy < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			if (iNdEx + skippy) < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if (iNdEx + skippy) > l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			iNdEx += skippy | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	if iNdEx > l { | 
					
						
							|  |  |  | 		return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *ReadRequest) 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 ErrIntOverflowRemote | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if iNdEx >= l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			b := dAtA[iNdEx] | 
					
						
							|  |  |  | 			iNdEx++ | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			wire |= uint64(b&0x7F) << shift | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if b < 0x80 { | 
					
						
							|  |  |  | 				break | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		fieldNum := int32(wire >> 3) | 
					
						
							|  |  |  | 		wireType := int(wire & 0x7) | 
					
						
							|  |  |  | 		if wireType == 4 { | 
					
						
							|  |  |  | 			return fmt.Errorf("proto: ReadRequest: wiretype end group for non-group") | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		if fieldNum <= 0 { | 
					
						
							|  |  |  | 			return fmt.Errorf("proto: ReadRequest: illegal tag %d (wire type %d)", fieldNum, wire) | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		switch fieldNum { | 
					
						
							|  |  |  | 		case 1: | 
					
						
							|  |  |  | 			if wireType != 2 { | 
					
						
							|  |  |  | 				return fmt.Errorf("proto: wrong wireType = %d for field Queries", wireType) | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			var msglen int | 
					
						
							|  |  |  | 			for shift := uint(0); ; shift += 7 { | 
					
						
							|  |  |  | 				if shift >= 64 { | 
					
						
							|  |  |  | 					return ErrIntOverflowRemote | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				if iNdEx >= l { | 
					
						
							|  |  |  | 					return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				b := dAtA[iNdEx] | 
					
						
							|  |  |  | 				iNdEx++ | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 				msglen |= int(b&0x7F) << shift | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 				if b < 0x80 { | 
					
						
							|  |  |  | 					break | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if msglen < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			postIndex := iNdEx + msglen | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			if postIndex < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if postIndex > l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			m.Queries = append(m.Queries, &Query{}) | 
					
						
							|  |  |  | 			if err := m.Queries[len(m.Queries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { | 
					
						
							|  |  |  | 				return err | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			iNdEx = postIndex | 
					
						
							|  |  |  | 		default: | 
					
						
							|  |  |  | 			iNdEx = preIndex | 
					
						
							|  |  |  | 			skippy, err := skipRemote(dAtA[iNdEx:]) | 
					
						
							|  |  |  | 			if err != nil { | 
					
						
							|  |  |  | 				return err | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if skippy < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			if (iNdEx + skippy) < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if (iNdEx + skippy) > l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			iNdEx += skippy | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	if iNdEx > l { | 
					
						
							|  |  |  | 		return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *ReadResponse) 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 ErrIntOverflowRemote | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if iNdEx >= l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			b := dAtA[iNdEx] | 
					
						
							|  |  |  | 			iNdEx++ | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			wire |= uint64(b&0x7F) << shift | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if b < 0x80 { | 
					
						
							|  |  |  | 				break | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		fieldNum := int32(wire >> 3) | 
					
						
							|  |  |  | 		wireType := int(wire & 0x7) | 
					
						
							|  |  |  | 		if wireType == 4 { | 
					
						
							|  |  |  | 			return fmt.Errorf("proto: ReadResponse: wiretype end group for non-group") | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		if fieldNum <= 0 { | 
					
						
							|  |  |  | 			return fmt.Errorf("proto: ReadResponse: illegal tag %d (wire type %d)", fieldNum, wire) | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		switch fieldNum { | 
					
						
							|  |  |  | 		case 1: | 
					
						
							|  |  |  | 			if wireType != 2 { | 
					
						
							|  |  |  | 				return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			var msglen int | 
					
						
							|  |  |  | 			for shift := uint(0); ; shift += 7 { | 
					
						
							|  |  |  | 				if shift >= 64 { | 
					
						
							|  |  |  | 					return ErrIntOverflowRemote | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				if iNdEx >= l { | 
					
						
							|  |  |  | 					return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				b := dAtA[iNdEx] | 
					
						
							|  |  |  | 				iNdEx++ | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 				msglen |= int(b&0x7F) << shift | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 				if b < 0x80 { | 
					
						
							|  |  |  | 					break | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if msglen < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			postIndex := iNdEx + msglen | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			if postIndex < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if postIndex > l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			m.Results = append(m.Results, &QueryResult{}) | 
					
						
							|  |  |  | 			if err := m.Results[len(m.Results)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { | 
					
						
							|  |  |  | 				return err | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			iNdEx = postIndex | 
					
						
							|  |  |  | 		default: | 
					
						
							|  |  |  | 			iNdEx = preIndex | 
					
						
							|  |  |  | 			skippy, err := skipRemote(dAtA[iNdEx:]) | 
					
						
							|  |  |  | 			if err != nil { | 
					
						
							|  |  |  | 				return err | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if skippy < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			if (iNdEx + skippy) < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if (iNdEx + skippy) > l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			iNdEx += skippy | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	if iNdEx > l { | 
					
						
							|  |  |  | 		return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *Query) 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 ErrIntOverflowRemote | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if iNdEx >= l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			b := dAtA[iNdEx] | 
					
						
							|  |  |  | 			iNdEx++ | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			wire |= uint64(b&0x7F) << shift | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if b < 0x80 { | 
					
						
							|  |  |  | 				break | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		fieldNum := int32(wire >> 3) | 
					
						
							|  |  |  | 		wireType := int(wire & 0x7) | 
					
						
							|  |  |  | 		if wireType == 4 { | 
					
						
							|  |  |  | 			return fmt.Errorf("proto: Query: wiretype end group for non-group") | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		if fieldNum <= 0 { | 
					
						
							|  |  |  | 			return fmt.Errorf("proto: Query: illegal tag %d (wire type %d)", fieldNum, wire) | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		switch fieldNum { | 
					
						
							|  |  |  | 		case 1: | 
					
						
							|  |  |  | 			if wireType != 0 { | 
					
						
							|  |  |  | 				return fmt.Errorf("proto: wrong wireType = %d for field StartTimestampMs", wireType) | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			m.StartTimestampMs = 0 | 
					
						
							|  |  |  | 			for shift := uint(0); ; shift += 7 { | 
					
						
							|  |  |  | 				if shift >= 64 { | 
					
						
							|  |  |  | 					return ErrIntOverflowRemote | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				if iNdEx >= l { | 
					
						
							|  |  |  | 					return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				b := dAtA[iNdEx] | 
					
						
							|  |  |  | 				iNdEx++ | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 				m.StartTimestampMs |= int64(b&0x7F) << shift | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 				if b < 0x80 { | 
					
						
							|  |  |  | 					break | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		case 2: | 
					
						
							|  |  |  | 			if wireType != 0 { | 
					
						
							|  |  |  | 				return fmt.Errorf("proto: wrong wireType = %d for field EndTimestampMs", wireType) | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			m.EndTimestampMs = 0 | 
					
						
							|  |  |  | 			for shift := uint(0); ; shift += 7 { | 
					
						
							|  |  |  | 				if shift >= 64 { | 
					
						
							|  |  |  | 					return ErrIntOverflowRemote | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				if iNdEx >= l { | 
					
						
							|  |  |  | 					return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				b := dAtA[iNdEx] | 
					
						
							|  |  |  | 				iNdEx++ | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 				m.EndTimestampMs |= int64(b&0x7F) << shift | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 				if b < 0x80 { | 
					
						
							|  |  |  | 					break | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		case 3: | 
					
						
							|  |  |  | 			if wireType != 2 { | 
					
						
							|  |  |  | 				return fmt.Errorf("proto: wrong wireType = %d for field Matchers", wireType) | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			var msglen int | 
					
						
							|  |  |  | 			for shift := uint(0); ; shift += 7 { | 
					
						
							|  |  |  | 				if shift >= 64 { | 
					
						
							|  |  |  | 					return ErrIntOverflowRemote | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				if iNdEx >= l { | 
					
						
							|  |  |  | 					return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				b := dAtA[iNdEx] | 
					
						
							|  |  |  | 				iNdEx++ | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 				msglen |= int(b&0x7F) << shift | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 				if b < 0x80 { | 
					
						
							|  |  |  | 					break | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if msglen < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			postIndex := iNdEx + msglen | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			if postIndex < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if postIndex > l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			m.Matchers = append(m.Matchers, &LabelMatcher{}) | 
					
						
							|  |  |  | 			if err := m.Matchers[len(m.Matchers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { | 
					
						
							|  |  |  | 				return err | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			iNdEx = postIndex | 
					
						
							| 
									
										
										
										
											2018-05-08 16:48:13 +08:00
										 |  |  | 		case 4: | 
					
						
							|  |  |  | 			if wireType != 2 { | 
					
						
							|  |  |  | 				return fmt.Errorf("proto: wrong wireType = %d for field Hints", wireType) | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			var msglen int | 
					
						
							|  |  |  | 			for shift := uint(0); ; shift += 7 { | 
					
						
							|  |  |  | 				if shift >= 64 { | 
					
						
							|  |  |  | 					return ErrIntOverflowRemote | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				if iNdEx >= l { | 
					
						
							|  |  |  | 					return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				b := dAtA[iNdEx] | 
					
						
							|  |  |  | 				iNdEx++ | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 				msglen |= int(b&0x7F) << shift | 
					
						
							| 
									
										
										
										
											2018-05-08 16:48:13 +08:00
										 |  |  | 				if b < 0x80 { | 
					
						
							|  |  |  | 					break | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if msglen < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			postIndex := iNdEx + msglen | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			if postIndex < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2018-05-08 16:48:13 +08:00
										 |  |  | 			if postIndex > l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if m.Hints == nil { | 
					
						
							|  |  |  | 				m.Hints = &ReadHints{} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if err := m.Hints.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { | 
					
						
							|  |  |  | 				return err | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			iNdEx = postIndex | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 		default: | 
					
						
							|  |  |  | 			iNdEx = preIndex | 
					
						
							|  |  |  | 			skippy, err := skipRemote(dAtA[iNdEx:]) | 
					
						
							|  |  |  | 			if err != nil { | 
					
						
							|  |  |  | 				return err | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if skippy < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			if (iNdEx + skippy) < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if (iNdEx + skippy) > l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			iNdEx += skippy | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	if iNdEx > l { | 
					
						
							|  |  |  | 		return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func (m *QueryResult) 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 ErrIntOverflowRemote | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if iNdEx >= l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			b := dAtA[iNdEx] | 
					
						
							|  |  |  | 			iNdEx++ | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			wire |= uint64(b&0x7F) << shift | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if b < 0x80 { | 
					
						
							|  |  |  | 				break | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		fieldNum := int32(wire >> 3) | 
					
						
							|  |  |  | 		wireType := int(wire & 0x7) | 
					
						
							|  |  |  | 		if wireType == 4 { | 
					
						
							|  |  |  | 			return fmt.Errorf("proto: QueryResult: wiretype end group for non-group") | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		if fieldNum <= 0 { | 
					
						
							|  |  |  | 			return fmt.Errorf("proto: QueryResult: illegal tag %d (wire type %d)", fieldNum, wire) | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		switch fieldNum { | 
					
						
							|  |  |  | 		case 1: | 
					
						
							|  |  |  | 			if wireType != 2 { | 
					
						
							|  |  |  | 				return fmt.Errorf("proto: wrong wireType = %d for field Timeseries", wireType) | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			var msglen int | 
					
						
							|  |  |  | 			for shift := uint(0); ; shift += 7 { | 
					
						
							|  |  |  | 				if shift >= 64 { | 
					
						
							|  |  |  | 					return ErrIntOverflowRemote | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				if iNdEx >= l { | 
					
						
							|  |  |  | 					return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				b := dAtA[iNdEx] | 
					
						
							|  |  |  | 				iNdEx++ | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 				msglen |= int(b&0x7F) << shift | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 				if b < 0x80 { | 
					
						
							|  |  |  | 					break | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if msglen < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			postIndex := iNdEx + msglen | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			if postIndex < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if postIndex > l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			m.Timeseries = append(m.Timeseries, &TimeSeries{}) | 
					
						
							|  |  |  | 			if err := m.Timeseries[len(m.Timeseries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { | 
					
						
							|  |  |  | 				return err | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			iNdEx = postIndex | 
					
						
							|  |  |  | 		default: | 
					
						
							|  |  |  | 			iNdEx = preIndex | 
					
						
							|  |  |  | 			skippy, err := skipRemote(dAtA[iNdEx:]) | 
					
						
							|  |  |  | 			if err != nil { | 
					
						
							|  |  |  | 				return err | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			if skippy < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			if (iNdEx + skippy) < 0 { | 
					
						
							|  |  |  | 				return ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			if (iNdEx + skippy) > l { | 
					
						
							|  |  |  | 				return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-01-15 22:32:05 +08:00
										 |  |  | 			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			iNdEx += skippy | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	if iNdEx > l { | 
					
						
							|  |  |  | 		return io.ErrUnexpectedEOF | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	return nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | func skipRemote(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, ErrIntOverflowRemote | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 			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, ErrIntOverflowRemote | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				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, ErrIntOverflowRemote | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				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, ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 			iNdEx += length | 
					
						
							|  |  |  | 			if iNdEx < 0 { | 
					
						
							|  |  |  | 				return 0, ErrInvalidLengthRemote | 
					
						
							|  |  |  | 			} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			return iNdEx, nil | 
					
						
							|  |  |  | 		case 3: | 
					
						
							|  |  |  | 			for { | 
					
						
							|  |  |  | 				var innerWire uint64 | 
					
						
							|  |  |  | 				var start int = iNdEx | 
					
						
							|  |  |  | 				for shift := uint(0); ; shift += 7 { | 
					
						
							|  |  |  | 					if shift >= 64 { | 
					
						
							|  |  |  | 						return 0, ErrIntOverflowRemote | 
					
						
							|  |  |  | 					} | 
					
						
							|  |  |  | 					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 := skipRemote(dAtA[start:]) | 
					
						
							|  |  |  | 				if err != nil { | 
					
						
							|  |  |  | 					return 0, err | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				iNdEx = start + next | 
					
						
							| 
									
										
										
										
											2019-04-04 17:55:32 +08:00
										 |  |  | 				if iNdEx < 0 { | 
					
						
							|  |  |  | 					return 0, ErrInvalidLengthRemote | 
					
						
							|  |  |  | 				} | 
					
						
							| 
									
										
										
										
											2017-07-13 05:06:35 +08:00
										 |  |  | 			} | 
					
						
							|  |  |  | 			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 ( | 
					
						
							|  |  |  | 	ErrInvalidLengthRemote = fmt.Errorf("proto: negative length found during unmarshaling") | 
					
						
							|  |  |  | 	ErrIntOverflowRemote   = fmt.Errorf("proto: integer overflow") | 
					
						
							|  |  |  | ) |