github.com/thanos-io/thanos@v0.32.5/pkg/targets/targetspb/rpc.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: targets/targetspb/rpc.proto
     3  
     4  package targetspb
     5  
     6  import (
     7  	context "context"
     8  	encoding_binary "encoding/binary"
     9  	fmt "fmt"
    10  
    11  	_ "github.com/gogo/protobuf/gogoproto"
    12  	proto "github.com/gogo/protobuf/proto"
    13  	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
    14  	grpc "google.golang.org/grpc"
    15  	codes "google.golang.org/grpc/codes"
    16  	status "google.golang.org/grpc/status"
    17  
    18  	io "io"
    19  	math "math"
    20  	math_bits "math/bits"
    21  	time "time"
    22  
    23  	labelpb "github.com/thanos-io/thanos/pkg/store/labelpb"
    24  	storepb "github.com/thanos-io/thanos/pkg/store/storepb"
    25  )
    26  
    27  // Reference imports to suppress errors if they are not otherwise used.
    28  var _ = proto.Marshal
    29  var _ = fmt.Errorf
    30  var _ = math.Inf
    31  var _ = time.Kitchen
    32  
    33  // This is a compile-time assertion to ensure that this generated file
    34  // is compatible with the proto package it is being compiled against.
    35  // A compilation error at this line likely means your copy of the
    36  // proto package needs to be updated.
    37  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    38  
    39  type TargetHealth int32
    40  
    41  const (
    42  	TargetHealth_DOWN TargetHealth = 0
    43  	TargetHealth_UP   TargetHealth = 1
    44  )
    45  
    46  var TargetHealth_name = map[int32]string{
    47  	0: "DOWN",
    48  	1: "UP",
    49  }
    50  
    51  var TargetHealth_value = map[string]int32{
    52  	"DOWN": 0,
    53  	"UP":   1,
    54  }
    55  
    56  func (x TargetHealth) String() string {
    57  	return proto.EnumName(TargetHealth_name, int32(x))
    58  }
    59  
    60  func (TargetHealth) EnumDescriptor() ([]byte, []int) {
    61  	return fileDescriptor_b5cdaee03579e907, []int{0}
    62  }
    63  
    64  type TargetsRequest_State int32
    65  
    66  const (
    67  	TargetsRequest_ANY TargetsRequest_State = 0
    68  	/// This will make sure strings.ToLower(.String()) will match 'active' and 'dropped' values for
    69  	/// Prometheus HTTP API.
    70  	TargetsRequest_ACTIVE  TargetsRequest_State = 1
    71  	TargetsRequest_DROPPED TargetsRequest_State = 2
    72  )
    73  
    74  var TargetsRequest_State_name = map[int32]string{
    75  	0: "ANY",
    76  	1: "ACTIVE",
    77  	2: "DROPPED",
    78  }
    79  
    80  var TargetsRequest_State_value = map[string]int32{
    81  	"ANY":     0,
    82  	"ACTIVE":  1,
    83  	"DROPPED": 2,
    84  }
    85  
    86  func (x TargetsRequest_State) String() string {
    87  	return proto.EnumName(TargetsRequest_State_name, int32(x))
    88  }
    89  
    90  func (TargetsRequest_State) EnumDescriptor() ([]byte, []int) {
    91  	return fileDescriptor_b5cdaee03579e907, []int{0, 0}
    92  }
    93  
    94  type TargetsRequest struct {
    95  	State                   TargetsRequest_State            `protobuf:"varint,1,opt,name=state,proto3,enum=thanos.TargetsRequest_State" json:"state,omitempty"`
    96  	PartialResponseStrategy storepb.PartialResponseStrategy `protobuf:"varint,2,opt,name=partial_response_strategy,json=partialResponseStrategy,proto3,enum=thanos.PartialResponseStrategy" json:"partial_response_strategy,omitempty"`
    97  }
    98  
    99  func (m *TargetsRequest) Reset()         { *m = TargetsRequest{} }
   100  func (m *TargetsRequest) String() string { return proto.CompactTextString(m) }
   101  func (*TargetsRequest) ProtoMessage()    {}
   102  func (*TargetsRequest) Descriptor() ([]byte, []int) {
   103  	return fileDescriptor_b5cdaee03579e907, []int{0}
   104  }
   105  func (m *TargetsRequest) XXX_Unmarshal(b []byte) error {
   106  	return m.Unmarshal(b)
   107  }
   108  func (m *TargetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   109  	if deterministic {
   110  		return xxx_messageInfo_TargetsRequest.Marshal(b, m, deterministic)
   111  	} else {
   112  		b = b[:cap(b)]
   113  		n, err := m.MarshalToSizedBuffer(b)
   114  		if err != nil {
   115  			return nil, err
   116  		}
   117  		return b[:n], nil
   118  	}
   119  }
   120  func (m *TargetsRequest) XXX_Merge(src proto.Message) {
   121  	xxx_messageInfo_TargetsRequest.Merge(m, src)
   122  }
   123  func (m *TargetsRequest) XXX_Size() int {
   124  	return m.Size()
   125  }
   126  func (m *TargetsRequest) XXX_DiscardUnknown() {
   127  	xxx_messageInfo_TargetsRequest.DiscardUnknown(m)
   128  }
   129  
   130  var xxx_messageInfo_TargetsRequest proto.InternalMessageInfo
   131  
   132  type TargetsResponse struct {
   133  	// Types that are valid to be assigned to Result:
   134  	//	*TargetsResponse_Targets
   135  	//	*TargetsResponse_Warning
   136  	Result isTargetsResponse_Result `protobuf_oneof:"result"`
   137  }
   138  
   139  func (m *TargetsResponse) Reset()         { *m = TargetsResponse{} }
   140  func (m *TargetsResponse) String() string { return proto.CompactTextString(m) }
   141  func (*TargetsResponse) ProtoMessage()    {}
   142  func (*TargetsResponse) Descriptor() ([]byte, []int) {
   143  	return fileDescriptor_b5cdaee03579e907, []int{1}
   144  }
   145  func (m *TargetsResponse) XXX_Unmarshal(b []byte) error {
   146  	return m.Unmarshal(b)
   147  }
   148  func (m *TargetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   149  	if deterministic {
   150  		return xxx_messageInfo_TargetsResponse.Marshal(b, m, deterministic)
   151  	} else {
   152  		b = b[:cap(b)]
   153  		n, err := m.MarshalToSizedBuffer(b)
   154  		if err != nil {
   155  			return nil, err
   156  		}
   157  		return b[:n], nil
   158  	}
   159  }
   160  func (m *TargetsResponse) XXX_Merge(src proto.Message) {
   161  	xxx_messageInfo_TargetsResponse.Merge(m, src)
   162  }
   163  func (m *TargetsResponse) XXX_Size() int {
   164  	return m.Size()
   165  }
   166  func (m *TargetsResponse) XXX_DiscardUnknown() {
   167  	xxx_messageInfo_TargetsResponse.DiscardUnknown(m)
   168  }
   169  
   170  var xxx_messageInfo_TargetsResponse proto.InternalMessageInfo
   171  
   172  type isTargetsResponse_Result interface {
   173  	isTargetsResponse_Result()
   174  	MarshalTo([]byte) (int, error)
   175  	Size() int
   176  }
   177  
   178  type TargetsResponse_Targets struct {
   179  	Targets *TargetDiscovery `protobuf:"bytes,1,opt,name=targets,proto3,oneof" json:"targets,omitempty"`
   180  }
   181  type TargetsResponse_Warning struct {
   182  	Warning string `protobuf:"bytes,2,opt,name=warning,proto3,oneof" json:"warning,omitempty"`
   183  }
   184  
   185  func (*TargetsResponse_Targets) isTargetsResponse_Result() {}
   186  func (*TargetsResponse_Warning) isTargetsResponse_Result() {}
   187  
   188  func (m *TargetsResponse) GetResult() isTargetsResponse_Result {
   189  	if m != nil {
   190  		return m.Result
   191  	}
   192  	return nil
   193  }
   194  
   195  func (m *TargetsResponse) GetTargets() *TargetDiscovery {
   196  	if x, ok := m.GetResult().(*TargetsResponse_Targets); ok {
   197  		return x.Targets
   198  	}
   199  	return nil
   200  }
   201  
   202  func (m *TargetsResponse) GetWarning() string {
   203  	if x, ok := m.GetResult().(*TargetsResponse_Warning); ok {
   204  		return x.Warning
   205  	}
   206  	return ""
   207  }
   208  
   209  // XXX_OneofWrappers is for the internal use of the proto package.
   210  func (*TargetsResponse) XXX_OneofWrappers() []interface{} {
   211  	return []interface{}{
   212  		(*TargetsResponse_Targets)(nil),
   213  		(*TargetsResponse_Warning)(nil),
   214  	}
   215  }
   216  
   217  type TargetDiscovery struct {
   218  	ActiveTargets  []*ActiveTarget  `protobuf:"bytes,1,rep,name=activeTargets,proto3" json:"activeTargets"`
   219  	DroppedTargets []*DroppedTarget `protobuf:"bytes,2,rep,name=droppedTargets,proto3" json:"droppedTargets"`
   220  }
   221  
   222  func (m *TargetDiscovery) Reset()         { *m = TargetDiscovery{} }
   223  func (m *TargetDiscovery) String() string { return proto.CompactTextString(m) }
   224  func (*TargetDiscovery) ProtoMessage()    {}
   225  func (*TargetDiscovery) Descriptor() ([]byte, []int) {
   226  	return fileDescriptor_b5cdaee03579e907, []int{2}
   227  }
   228  func (m *TargetDiscovery) XXX_Unmarshal(b []byte) error {
   229  	return m.Unmarshal(b)
   230  }
   231  func (m *TargetDiscovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   232  	if deterministic {
   233  		return xxx_messageInfo_TargetDiscovery.Marshal(b, m, deterministic)
   234  	} else {
   235  		b = b[:cap(b)]
   236  		n, err := m.MarshalToSizedBuffer(b)
   237  		if err != nil {
   238  			return nil, err
   239  		}
   240  		return b[:n], nil
   241  	}
   242  }
   243  func (m *TargetDiscovery) XXX_Merge(src proto.Message) {
   244  	xxx_messageInfo_TargetDiscovery.Merge(m, src)
   245  }
   246  func (m *TargetDiscovery) XXX_Size() int {
   247  	return m.Size()
   248  }
   249  func (m *TargetDiscovery) XXX_DiscardUnknown() {
   250  	xxx_messageInfo_TargetDiscovery.DiscardUnknown(m)
   251  }
   252  
   253  var xxx_messageInfo_TargetDiscovery proto.InternalMessageInfo
   254  
   255  type ActiveTarget struct {
   256  	DiscoveredLabels   labelpb.ZLabelSet `protobuf:"bytes,1,opt,name=discoveredLabels,proto3" json:"discoveredLabels"`
   257  	Labels             labelpb.ZLabelSet `protobuf:"bytes,2,opt,name=labels,proto3" json:"labels"`
   258  	ScrapePool         string            `protobuf:"bytes,3,opt,name=scrapePool,proto3" json:"scrapePool"`
   259  	ScrapeUrl          string            `protobuf:"bytes,4,opt,name=scrapeUrl,proto3" json:"scrapeUrl"`
   260  	GlobalUrl          string            `protobuf:"bytes,5,opt,name=globalUrl,proto3" json:"globalUrl"`
   261  	LastError          string            `protobuf:"bytes,6,opt,name=lastError,proto3" json:"lastError"`
   262  	LastScrape         time.Time         `protobuf:"bytes,7,opt,name=lastScrape,proto3,stdtime" json:"lastScrape"`
   263  	LastScrapeDuration float64           `protobuf:"fixed64,8,opt,name=lastScrapeDuration,proto3" json:"lastScrapeDuration"`
   264  	Health             TargetHealth      `protobuf:"varint,9,opt,name=health,proto3,enum=thanos.TargetHealth" json:"health"`
   265  }
   266  
   267  func (m *ActiveTarget) Reset()         { *m = ActiveTarget{} }
   268  func (m *ActiveTarget) String() string { return proto.CompactTextString(m) }
   269  func (*ActiveTarget) ProtoMessage()    {}
   270  func (*ActiveTarget) Descriptor() ([]byte, []int) {
   271  	return fileDescriptor_b5cdaee03579e907, []int{3}
   272  }
   273  func (m *ActiveTarget) XXX_Unmarshal(b []byte) error {
   274  	return m.Unmarshal(b)
   275  }
   276  func (m *ActiveTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   277  	if deterministic {
   278  		return xxx_messageInfo_ActiveTarget.Marshal(b, m, deterministic)
   279  	} else {
   280  		b = b[:cap(b)]
   281  		n, err := m.MarshalToSizedBuffer(b)
   282  		if err != nil {
   283  			return nil, err
   284  		}
   285  		return b[:n], nil
   286  	}
   287  }
   288  func (m *ActiveTarget) XXX_Merge(src proto.Message) {
   289  	xxx_messageInfo_ActiveTarget.Merge(m, src)
   290  }
   291  func (m *ActiveTarget) XXX_Size() int {
   292  	return m.Size()
   293  }
   294  func (m *ActiveTarget) XXX_DiscardUnknown() {
   295  	xxx_messageInfo_ActiveTarget.DiscardUnknown(m)
   296  }
   297  
   298  var xxx_messageInfo_ActiveTarget proto.InternalMessageInfo
   299  
   300  type DroppedTarget struct {
   301  	DiscoveredLabels labelpb.ZLabelSet `protobuf:"bytes,1,opt,name=discoveredLabels,proto3" json:"discoveredLabels"`
   302  }
   303  
   304  func (m *DroppedTarget) Reset()         { *m = DroppedTarget{} }
   305  func (m *DroppedTarget) String() string { return proto.CompactTextString(m) }
   306  func (*DroppedTarget) ProtoMessage()    {}
   307  func (*DroppedTarget) Descriptor() ([]byte, []int) {
   308  	return fileDescriptor_b5cdaee03579e907, []int{4}
   309  }
   310  func (m *DroppedTarget) XXX_Unmarshal(b []byte) error {
   311  	return m.Unmarshal(b)
   312  }
   313  func (m *DroppedTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   314  	if deterministic {
   315  		return xxx_messageInfo_DroppedTarget.Marshal(b, m, deterministic)
   316  	} else {
   317  		b = b[:cap(b)]
   318  		n, err := m.MarshalToSizedBuffer(b)
   319  		if err != nil {
   320  			return nil, err
   321  		}
   322  		return b[:n], nil
   323  	}
   324  }
   325  func (m *DroppedTarget) XXX_Merge(src proto.Message) {
   326  	xxx_messageInfo_DroppedTarget.Merge(m, src)
   327  }
   328  func (m *DroppedTarget) XXX_Size() int {
   329  	return m.Size()
   330  }
   331  func (m *DroppedTarget) XXX_DiscardUnknown() {
   332  	xxx_messageInfo_DroppedTarget.DiscardUnknown(m)
   333  }
   334  
   335  var xxx_messageInfo_DroppedTarget proto.InternalMessageInfo
   336  
   337  func init() {
   338  	proto.RegisterEnum("thanos.TargetHealth", TargetHealth_name, TargetHealth_value)
   339  	proto.RegisterEnum("thanos.TargetsRequest_State", TargetsRequest_State_name, TargetsRequest_State_value)
   340  	proto.RegisterType((*TargetsRequest)(nil), "thanos.TargetsRequest")
   341  	proto.RegisterType((*TargetsResponse)(nil), "thanos.TargetsResponse")
   342  	proto.RegisterType((*TargetDiscovery)(nil), "thanos.TargetDiscovery")
   343  	proto.RegisterType((*ActiveTarget)(nil), "thanos.ActiveTarget")
   344  	proto.RegisterType((*DroppedTarget)(nil), "thanos.DroppedTarget")
   345  }
   346  
   347  func init() { proto.RegisterFile("targets/targetspb/rpc.proto", fileDescriptor_b5cdaee03579e907) }
   348  
   349  var fileDescriptor_b5cdaee03579e907 = []byte{
   350  	// 694 bytes of a gzipped FileDescriptorProto
   351  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0x41, 0x4f, 0xdb, 0x4a,
   352  	0x10, 0xb6, 0x03, 0x38, 0x64, 0x80, 0xbc, 0xb0, 0xe2, 0x81, 0xc9, 0x7b, 0x8a, 0x51, 0x2e, 0x8f,
   353  	0xd7, 0x4a, 0x4e, 0x15, 0x2e, 0xad, 0xd4, 0x0b, 0x6e, 0x68, 0xa9, 0xd4, 0x42, 0xba, 0x09, 0x45,
   354  	0xa5, 0x07, 0xb4, 0x49, 0xb6, 0x4e, 0x24, 0x93, 0x75, 0x77, 0x37, 0x54, 0xfc, 0x0b, 0xfe, 0x49,
   355  	0x0f, 0xfd, 0x13, 0x1c, 0x7a, 0xe0, 0xd8, 0x93, 0xdb, 0xc2, 0x2d, 0xbf, 0xa2, 0xf2, 0xda, 0x8e,
   356  	0x1d, 0x48, 0x8f, 0xbd, 0x78, 0x67, 0xbe, 0xf9, 0xe6, 0x9b, 0x59, 0xef, 0xce, 0xc2, 0x3f, 0x92,
   357  	0x70, 0x97, 0x4a, 0x51, 0x8b, 0x57, 0xbf, 0x53, 0xe3, 0x7e, 0xd7, 0xf6, 0x39, 0x93, 0x0c, 0x19,
   358  	0xb2, 0x4f, 0x86, 0x4c, 0x94, 0x37, 0x85, 0x64, 0x9c, 0xd6, 0xd4, 0xd7, 0xef, 0xd4, 0xe4, 0x85,
   359  	0x4f, 0x45, 0x44, 0x29, 0xaf, 0xb9, 0xcc, 0x65, 0xca, 0xac, 0x85, 0x56, 0x8c, 0xc6, 0x09, 0x1e,
   360  	0xe9, 0x50, 0xef, 0x4e, 0x82, 0xe5, 0x32, 0xe6, 0x7a, 0xb4, 0xa6, 0xbc, 0xce, 0xe8, 0x43, 0x4d,
   361  	0x0e, 0xce, 0xa8, 0x90, 0xe4, 0xcc, 0x8f, 0x08, 0xd5, 0xaf, 0x3a, 0x14, 0xdb, 0x51, 0x33, 0x98,
   362  	0x7e, 0x1c, 0x51, 0x21, 0x51, 0x1d, 0x16, 0x84, 0x24, 0x92, 0x9a, 0xfa, 0x96, 0xbe, 0x5d, 0xac,
   363  	0xff, 0x6b, 0x47, 0x7d, 0xd9, 0xd3, 0x34, 0xbb, 0x15, 0x72, 0x70, 0x44, 0x45, 0xef, 0x61, 0xd3,
   364  	0x27, 0x5c, 0x0e, 0x88, 0x77, 0xca, 0xa9, 0xf0, 0xd9, 0x50, 0xd0, 0x53, 0x21, 0x39, 0x91, 0xd4,
   365  	0xbd, 0x30, 0x73, 0x4a, 0xc7, 0x4a, 0x74, 0x9a, 0x11, 0x11, 0xc7, 0xbc, 0x56, 0x4c, 0xc3, 0x1b,
   366  	0xfe, 0xec, 0x40, 0xf5, 0x7f, 0x58, 0x50, 0xc5, 0x50, 0x1e, 0xe6, 0x76, 0x0f, 0xde, 0x95, 0x34,
   367  	0x04, 0x60, 0xec, 0x3e, 0x6b, 0xbf, 0x7c, 0xbb, 0x57, 0xd2, 0xd1, 0x12, 0xe4, 0x1b, 0xf8, 0xb0,
   368  	0xd9, 0xdc, 0x6b, 0x94, 0x72, 0x55, 0x0f, 0xfe, 0x9a, 0xb4, 0x19, 0xa9, 0xa0, 0x1d, 0xc8, 0xc7,
   369  	0x7f, 0x5b, 0x6d, 0x68, 0xa9, 0xbe, 0x31, 0xbd, 0xa1, 0xc6, 0x40, 0x74, 0xd9, 0x39, 0xe5, 0x17,
   370  	0xfb, 0x1a, 0x4e, 0x98, 0xa8, 0x0c, 0xf9, 0x4f, 0x84, 0x0f, 0x07, 0x43, 0x57, 0x75, 0x5f, 0x08,
   371  	0x63, 0x31, 0xe0, 0x2c, 0x82, 0xc1, 0xa9, 0x18, 0x79, 0xb2, 0xfa, 0x45, 0x4f, 0xca, 0x4d, 0x44,
   372  	0xd0, 0x6b, 0x58, 0x21, 0x5d, 0x39, 0x38, 0xa7, 0xed, 0x49, 0xd1, 0xb9, 0xed, 0xa5, 0xfa, 0x5a,
   373  	0x52, 0x74, 0x37, 0x13, 0x74, 0x56, 0xc7, 0x81, 0x35, 0x4d, 0xc7, 0xd3, 0x2e, 0x7a, 0x03, 0xc5,
   374  	0x1e, 0x67, 0xbe, 0x4f, 0x7b, 0x89, 0x5e, 0x4e, 0xe9, 0xfd, 0x9d, 0xe8, 0x35, 0xb2, 0x51, 0x07,
   375  	0x8d, 0x03, 0xeb, 0x4e, 0x02, 0xbe, 0xe3, 0x57, 0x3f, 0xcf, 0xc3, 0x72, 0xb6, 0x0b, 0x74, 0x0c,
   376  	0xa5, 0x5e, 0xdc, 0x3f, 0xed, 0xbd, 0x0a, 0x6f, 0x51, 0xf2, 0xab, 0x56, 0x93, 0x2a, 0x27, 0x0a,
   377  	0x6e, 0x51, 0xe9, 0x98, 0x57, 0x81, 0xa5, 0x8d, 0x03, 0xeb, 0x5e, 0x0a, 0xbe, 0x87, 0xa0, 0x27,
   378  	0x60, 0x78, 0x91, 0x5c, 0xee, 0x77, 0x72, 0xc5, 0x58, 0x2e, 0x26, 0xe2, 0x78, 0x45, 0x36, 0x80,
   379  	0xe8, 0x72, 0xe2, 0xd3, 0x26, 0x63, 0x9e, 0x39, 0x17, 0x9e, 0x81, 0x53, 0x1c, 0x07, 0x56, 0x06,
   380  	0xc5, 0x19, 0x1b, 0x3d, 0x84, 0x42, 0xe4, 0x1d, 0x71, 0xcf, 0x9c, 0x57, 0xf4, 0x95, 0x71, 0x60,
   381  	0xa5, 0x20, 0x4e, 0xcd, 0x90, 0xec, 0x7a, 0xac, 0x43, 0xbc, 0x90, 0xbc, 0x90, 0x92, 0x27, 0x20,
   382  	0x4e, 0xcd, 0x90, 0xec, 0x11, 0x21, 0xf7, 0x38, 0x67, 0xdc, 0x34, 0x52, 0xf2, 0x04, 0xc4, 0xa9,
   383  	0x89, 0x30, 0x40, 0xe8, 0xb4, 0x54, 0x29, 0x33, 0xaf, 0x76, 0x5d, 0xb6, 0xa3, 0x21, 0xb4, 0x93,
   384  	0x21, 0xb4, 0xdb, 0xc9, 0x10, 0x3a, 0xeb, 0xf1, 0xf6, 0x33, 0x59, 0x97, 0xdf, 0x2d, 0x1d, 0x67,
   385  	0x7c, 0xf4, 0x1c, 0x50, 0xea, 0x35, 0x46, 0x9c, 0xc8, 0x01, 0x1b, 0x9a, 0x8b, 0x5b, 0xfa, 0xb6,
   386  	0xee, 0xac, 0x8f, 0x03, 0x6b, 0x46, 0x14, 0xcf, 0xc0, 0xd0, 0x63, 0x30, 0xfa, 0x94, 0x78, 0xb2,
   387  	0x6f, 0x16, 0xd4, 0x40, 0xae, 0x4d, 0xcf, 0xc1, 0xbe, 0x8a, 0x39, 0x10, 0x1e, 0x46, 0xc4, 0xc3,
   388  	0xf1, 0x5a, 0xed, 0xc3, 0xca, 0xd4, 0x35, 0xfb, 0x63, 0x37, 0xe6, 0xc1, 0x16, 0x2c, 0x67, 0xbb,
   389  	0x41, 0x8b, 0x30, 0xdf, 0x38, 0x3c, 0x3e, 0x28, 0x69, 0xc8, 0x80, 0xdc, 0x51, 0xb3, 0xa4, 0xd7,
   390  	0x5f, 0x40, 0x3e, 0x99, 0x8d, 0xa7, 0xa9, 0xb9, 0x3e, 0xfb, 0x91, 0x2a, 0x6f, 0xdc, 0xc3, 0xa3,
   391  	0x57, 0xe1, 0x91, 0xee, 0xfc, 0x77, 0xf5, 0xb3, 0xa2, 0x5d, 0xdd, 0x54, 0xf4, 0xeb, 0x9b, 0x8a,
   392  	0xfe, 0xe3, 0xa6, 0xa2, 0x5f, 0xde, 0x56, 0xb4, 0xeb, 0xdb, 0x8a, 0xf6, 0xed, 0xb6, 0xa2, 0x9d,
   393  	0x14, 0x26, 0x2f, 0x74, 0xc7, 0x50, 0xe7, 0xb6, 0xf3, 0x2b, 0x00, 0x00, 0xff, 0xff, 0xf2, 0x61,
   394  	0x2b, 0xab, 0xbd, 0x05, 0x00, 0x00,
   395  }
   396  
   397  // Reference imports to suppress errors if they are not otherwise used.
   398  var _ context.Context
   399  var _ grpc.ClientConn
   400  
   401  // This is a compile-time assertion to ensure that this generated file
   402  // is compatible with the grpc package it is being compiled against.
   403  const _ = grpc.SupportPackageIsVersion4
   404  
   405  // TargetsClient is the client API for Targets service.
   406  //
   407  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   408  type TargetsClient interface {
   409  	/// Targets has info for all targets.
   410  	/// Returned targets are expected to include external labels.
   411  	Targets(ctx context.Context, in *TargetsRequest, opts ...grpc.CallOption) (Targets_TargetsClient, error)
   412  }
   413  
   414  type targetsClient struct {
   415  	cc *grpc.ClientConn
   416  }
   417  
   418  func NewTargetsClient(cc *grpc.ClientConn) TargetsClient {
   419  	return &targetsClient{cc}
   420  }
   421  
   422  func (c *targetsClient) Targets(ctx context.Context, in *TargetsRequest, opts ...grpc.CallOption) (Targets_TargetsClient, error) {
   423  	stream, err := c.cc.NewStream(ctx, &_Targets_serviceDesc.Streams[0], "/thanos.Targets/Targets", opts...)
   424  	if err != nil {
   425  		return nil, err
   426  	}
   427  	x := &targetsTargetsClient{stream}
   428  	if err := x.ClientStream.SendMsg(in); err != nil {
   429  		return nil, err
   430  	}
   431  	if err := x.ClientStream.CloseSend(); err != nil {
   432  		return nil, err
   433  	}
   434  	return x, nil
   435  }
   436  
   437  type Targets_TargetsClient interface {
   438  	Recv() (*TargetsResponse, error)
   439  	grpc.ClientStream
   440  }
   441  
   442  type targetsTargetsClient struct {
   443  	grpc.ClientStream
   444  }
   445  
   446  func (x *targetsTargetsClient) Recv() (*TargetsResponse, error) {
   447  	m := new(TargetsResponse)
   448  	if err := x.ClientStream.RecvMsg(m); err != nil {
   449  		return nil, err
   450  	}
   451  	return m, nil
   452  }
   453  
   454  // TargetsServer is the server API for Targets service.
   455  type TargetsServer interface {
   456  	/// Targets has info for all targets.
   457  	/// Returned targets are expected to include external labels.
   458  	Targets(*TargetsRequest, Targets_TargetsServer) error
   459  }
   460  
   461  // UnimplementedTargetsServer can be embedded to have forward compatible implementations.
   462  type UnimplementedTargetsServer struct {
   463  }
   464  
   465  func (*UnimplementedTargetsServer) Targets(req *TargetsRequest, srv Targets_TargetsServer) error {
   466  	return status.Errorf(codes.Unimplemented, "method Targets not implemented")
   467  }
   468  
   469  func RegisterTargetsServer(s *grpc.Server, srv TargetsServer) {
   470  	s.RegisterService(&_Targets_serviceDesc, srv)
   471  }
   472  
   473  func _Targets_Targets_Handler(srv interface{}, stream grpc.ServerStream) error {
   474  	m := new(TargetsRequest)
   475  	if err := stream.RecvMsg(m); err != nil {
   476  		return err
   477  	}
   478  	return srv.(TargetsServer).Targets(m, &targetsTargetsServer{stream})
   479  }
   480  
   481  type Targets_TargetsServer interface {
   482  	Send(*TargetsResponse) error
   483  	grpc.ServerStream
   484  }
   485  
   486  type targetsTargetsServer struct {
   487  	grpc.ServerStream
   488  }
   489  
   490  func (x *targetsTargetsServer) Send(m *TargetsResponse) error {
   491  	return x.ServerStream.SendMsg(m)
   492  }
   493  
   494  var _Targets_serviceDesc = grpc.ServiceDesc{
   495  	ServiceName: "thanos.Targets",
   496  	HandlerType: (*TargetsServer)(nil),
   497  	Methods:     []grpc.MethodDesc{},
   498  	Streams: []grpc.StreamDesc{
   499  		{
   500  			StreamName:    "Targets",
   501  			Handler:       _Targets_Targets_Handler,
   502  			ServerStreams: true,
   503  		},
   504  	},
   505  	Metadata: "targets/targetspb/rpc.proto",
   506  }
   507  
   508  func (m *TargetsRequest) Marshal() (dAtA []byte, err error) {
   509  	size := m.Size()
   510  	dAtA = make([]byte, size)
   511  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   512  	if err != nil {
   513  		return nil, err
   514  	}
   515  	return dAtA[:n], nil
   516  }
   517  
   518  func (m *TargetsRequest) MarshalTo(dAtA []byte) (int, error) {
   519  	size := m.Size()
   520  	return m.MarshalToSizedBuffer(dAtA[:size])
   521  }
   522  
   523  func (m *TargetsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   524  	i := len(dAtA)
   525  	_ = i
   526  	var l int
   527  	_ = l
   528  	if m.PartialResponseStrategy != 0 {
   529  		i = encodeVarintRpc(dAtA, i, uint64(m.PartialResponseStrategy))
   530  		i--
   531  		dAtA[i] = 0x10
   532  	}
   533  	if m.State != 0 {
   534  		i = encodeVarintRpc(dAtA, i, uint64(m.State))
   535  		i--
   536  		dAtA[i] = 0x8
   537  	}
   538  	return len(dAtA) - i, nil
   539  }
   540  
   541  func (m *TargetsResponse) Marshal() (dAtA []byte, err error) {
   542  	size := m.Size()
   543  	dAtA = make([]byte, size)
   544  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   545  	if err != nil {
   546  		return nil, err
   547  	}
   548  	return dAtA[:n], nil
   549  }
   550  
   551  func (m *TargetsResponse) MarshalTo(dAtA []byte) (int, error) {
   552  	size := m.Size()
   553  	return m.MarshalToSizedBuffer(dAtA[:size])
   554  }
   555  
   556  func (m *TargetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   557  	i := len(dAtA)
   558  	_ = i
   559  	var l int
   560  	_ = l
   561  	if m.Result != nil {
   562  		{
   563  			size := m.Result.Size()
   564  			i -= size
   565  			if _, err := m.Result.MarshalTo(dAtA[i:]); err != nil {
   566  				return 0, err
   567  			}
   568  		}
   569  	}
   570  	return len(dAtA) - i, nil
   571  }
   572  
   573  func (m *TargetsResponse_Targets) MarshalTo(dAtA []byte) (int, error) {
   574  	size := m.Size()
   575  	return m.MarshalToSizedBuffer(dAtA[:size])
   576  }
   577  
   578  func (m *TargetsResponse_Targets) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   579  	i := len(dAtA)
   580  	if m.Targets != nil {
   581  		{
   582  			size, err := m.Targets.MarshalToSizedBuffer(dAtA[:i])
   583  			if err != nil {
   584  				return 0, err
   585  			}
   586  			i -= size
   587  			i = encodeVarintRpc(dAtA, i, uint64(size))
   588  		}
   589  		i--
   590  		dAtA[i] = 0xa
   591  	}
   592  	return len(dAtA) - i, nil
   593  }
   594  func (m *TargetsResponse_Warning) MarshalTo(dAtA []byte) (int, error) {
   595  	size := m.Size()
   596  	return m.MarshalToSizedBuffer(dAtA[:size])
   597  }
   598  
   599  func (m *TargetsResponse_Warning) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   600  	i := len(dAtA)
   601  	i -= len(m.Warning)
   602  	copy(dAtA[i:], m.Warning)
   603  	i = encodeVarintRpc(dAtA, i, uint64(len(m.Warning)))
   604  	i--
   605  	dAtA[i] = 0x12
   606  	return len(dAtA) - i, nil
   607  }
   608  func (m *TargetDiscovery) Marshal() (dAtA []byte, err error) {
   609  	size := m.Size()
   610  	dAtA = make([]byte, size)
   611  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   612  	if err != nil {
   613  		return nil, err
   614  	}
   615  	return dAtA[:n], nil
   616  }
   617  
   618  func (m *TargetDiscovery) MarshalTo(dAtA []byte) (int, error) {
   619  	size := m.Size()
   620  	return m.MarshalToSizedBuffer(dAtA[:size])
   621  }
   622  
   623  func (m *TargetDiscovery) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   624  	i := len(dAtA)
   625  	_ = i
   626  	var l int
   627  	_ = l
   628  	if len(m.DroppedTargets) > 0 {
   629  		for iNdEx := len(m.DroppedTargets) - 1; iNdEx >= 0; iNdEx-- {
   630  			{
   631  				size, err := m.DroppedTargets[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   632  				if err != nil {
   633  					return 0, err
   634  				}
   635  				i -= size
   636  				i = encodeVarintRpc(dAtA, i, uint64(size))
   637  			}
   638  			i--
   639  			dAtA[i] = 0x12
   640  		}
   641  	}
   642  	if len(m.ActiveTargets) > 0 {
   643  		for iNdEx := len(m.ActiveTargets) - 1; iNdEx >= 0; iNdEx-- {
   644  			{
   645  				size, err := m.ActiveTargets[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   646  				if err != nil {
   647  					return 0, err
   648  				}
   649  				i -= size
   650  				i = encodeVarintRpc(dAtA, i, uint64(size))
   651  			}
   652  			i--
   653  			dAtA[i] = 0xa
   654  		}
   655  	}
   656  	return len(dAtA) - i, nil
   657  }
   658  
   659  func (m *ActiveTarget) Marshal() (dAtA []byte, err error) {
   660  	size := m.Size()
   661  	dAtA = make([]byte, size)
   662  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   663  	if err != nil {
   664  		return nil, err
   665  	}
   666  	return dAtA[:n], nil
   667  }
   668  
   669  func (m *ActiveTarget) MarshalTo(dAtA []byte) (int, error) {
   670  	size := m.Size()
   671  	return m.MarshalToSizedBuffer(dAtA[:size])
   672  }
   673  
   674  func (m *ActiveTarget) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   675  	i := len(dAtA)
   676  	_ = i
   677  	var l int
   678  	_ = l
   679  	if m.Health != 0 {
   680  		i = encodeVarintRpc(dAtA, i, uint64(m.Health))
   681  		i--
   682  		dAtA[i] = 0x48
   683  	}
   684  	if m.LastScrapeDuration != 0 {
   685  		i -= 8
   686  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.LastScrapeDuration))))
   687  		i--
   688  		dAtA[i] = 0x41
   689  	}
   690  	n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.LastScrape, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.LastScrape):])
   691  	if err2 != nil {
   692  		return 0, err2
   693  	}
   694  	i -= n2
   695  	i = encodeVarintRpc(dAtA, i, uint64(n2))
   696  	i--
   697  	dAtA[i] = 0x3a
   698  	if len(m.LastError) > 0 {
   699  		i -= len(m.LastError)
   700  		copy(dAtA[i:], m.LastError)
   701  		i = encodeVarintRpc(dAtA, i, uint64(len(m.LastError)))
   702  		i--
   703  		dAtA[i] = 0x32
   704  	}
   705  	if len(m.GlobalUrl) > 0 {
   706  		i -= len(m.GlobalUrl)
   707  		copy(dAtA[i:], m.GlobalUrl)
   708  		i = encodeVarintRpc(dAtA, i, uint64(len(m.GlobalUrl)))
   709  		i--
   710  		dAtA[i] = 0x2a
   711  	}
   712  	if len(m.ScrapeUrl) > 0 {
   713  		i -= len(m.ScrapeUrl)
   714  		copy(dAtA[i:], m.ScrapeUrl)
   715  		i = encodeVarintRpc(dAtA, i, uint64(len(m.ScrapeUrl)))
   716  		i--
   717  		dAtA[i] = 0x22
   718  	}
   719  	if len(m.ScrapePool) > 0 {
   720  		i -= len(m.ScrapePool)
   721  		copy(dAtA[i:], m.ScrapePool)
   722  		i = encodeVarintRpc(dAtA, i, uint64(len(m.ScrapePool)))
   723  		i--
   724  		dAtA[i] = 0x1a
   725  	}
   726  	{
   727  		size, err := m.Labels.MarshalToSizedBuffer(dAtA[:i])
   728  		if err != nil {
   729  			return 0, err
   730  		}
   731  		i -= size
   732  		i = encodeVarintRpc(dAtA, i, uint64(size))
   733  	}
   734  	i--
   735  	dAtA[i] = 0x12
   736  	{
   737  		size, err := m.DiscoveredLabels.MarshalToSizedBuffer(dAtA[:i])
   738  		if err != nil {
   739  			return 0, err
   740  		}
   741  		i -= size
   742  		i = encodeVarintRpc(dAtA, i, uint64(size))
   743  	}
   744  	i--
   745  	dAtA[i] = 0xa
   746  	return len(dAtA) - i, nil
   747  }
   748  
   749  func (m *DroppedTarget) Marshal() (dAtA []byte, err error) {
   750  	size := m.Size()
   751  	dAtA = make([]byte, size)
   752  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   753  	if err != nil {
   754  		return nil, err
   755  	}
   756  	return dAtA[:n], nil
   757  }
   758  
   759  func (m *DroppedTarget) MarshalTo(dAtA []byte) (int, error) {
   760  	size := m.Size()
   761  	return m.MarshalToSizedBuffer(dAtA[:size])
   762  }
   763  
   764  func (m *DroppedTarget) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   765  	i := len(dAtA)
   766  	_ = i
   767  	var l int
   768  	_ = l
   769  	{
   770  		size, err := m.DiscoveredLabels.MarshalToSizedBuffer(dAtA[:i])
   771  		if err != nil {
   772  			return 0, err
   773  		}
   774  		i -= size
   775  		i = encodeVarintRpc(dAtA, i, uint64(size))
   776  	}
   777  	i--
   778  	dAtA[i] = 0xa
   779  	return len(dAtA) - i, nil
   780  }
   781  
   782  func encodeVarintRpc(dAtA []byte, offset int, v uint64) int {
   783  	offset -= sovRpc(v)
   784  	base := offset
   785  	for v >= 1<<7 {
   786  		dAtA[offset] = uint8(v&0x7f | 0x80)
   787  		v >>= 7
   788  		offset++
   789  	}
   790  	dAtA[offset] = uint8(v)
   791  	return base
   792  }
   793  func (m *TargetsRequest) Size() (n int) {
   794  	if m == nil {
   795  		return 0
   796  	}
   797  	var l int
   798  	_ = l
   799  	if m.State != 0 {
   800  		n += 1 + sovRpc(uint64(m.State))
   801  	}
   802  	if m.PartialResponseStrategy != 0 {
   803  		n += 1 + sovRpc(uint64(m.PartialResponseStrategy))
   804  	}
   805  	return n
   806  }
   807  
   808  func (m *TargetsResponse) Size() (n int) {
   809  	if m == nil {
   810  		return 0
   811  	}
   812  	var l int
   813  	_ = l
   814  	if m.Result != nil {
   815  		n += m.Result.Size()
   816  	}
   817  	return n
   818  }
   819  
   820  func (m *TargetsResponse_Targets) Size() (n int) {
   821  	if m == nil {
   822  		return 0
   823  	}
   824  	var l int
   825  	_ = l
   826  	if m.Targets != nil {
   827  		l = m.Targets.Size()
   828  		n += 1 + l + sovRpc(uint64(l))
   829  	}
   830  	return n
   831  }
   832  func (m *TargetsResponse_Warning) Size() (n int) {
   833  	if m == nil {
   834  		return 0
   835  	}
   836  	var l int
   837  	_ = l
   838  	l = len(m.Warning)
   839  	n += 1 + l + sovRpc(uint64(l))
   840  	return n
   841  }
   842  func (m *TargetDiscovery) Size() (n int) {
   843  	if m == nil {
   844  		return 0
   845  	}
   846  	var l int
   847  	_ = l
   848  	if len(m.ActiveTargets) > 0 {
   849  		for _, e := range m.ActiveTargets {
   850  			l = e.Size()
   851  			n += 1 + l + sovRpc(uint64(l))
   852  		}
   853  	}
   854  	if len(m.DroppedTargets) > 0 {
   855  		for _, e := range m.DroppedTargets {
   856  			l = e.Size()
   857  			n += 1 + l + sovRpc(uint64(l))
   858  		}
   859  	}
   860  	return n
   861  }
   862  
   863  func (m *ActiveTarget) Size() (n int) {
   864  	if m == nil {
   865  		return 0
   866  	}
   867  	var l int
   868  	_ = l
   869  	l = m.DiscoveredLabels.Size()
   870  	n += 1 + l + sovRpc(uint64(l))
   871  	l = m.Labels.Size()
   872  	n += 1 + l + sovRpc(uint64(l))
   873  	l = len(m.ScrapePool)
   874  	if l > 0 {
   875  		n += 1 + l + sovRpc(uint64(l))
   876  	}
   877  	l = len(m.ScrapeUrl)
   878  	if l > 0 {
   879  		n += 1 + l + sovRpc(uint64(l))
   880  	}
   881  	l = len(m.GlobalUrl)
   882  	if l > 0 {
   883  		n += 1 + l + sovRpc(uint64(l))
   884  	}
   885  	l = len(m.LastError)
   886  	if l > 0 {
   887  		n += 1 + l + sovRpc(uint64(l))
   888  	}
   889  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.LastScrape)
   890  	n += 1 + l + sovRpc(uint64(l))
   891  	if m.LastScrapeDuration != 0 {
   892  		n += 9
   893  	}
   894  	if m.Health != 0 {
   895  		n += 1 + sovRpc(uint64(m.Health))
   896  	}
   897  	return n
   898  }
   899  
   900  func (m *DroppedTarget) Size() (n int) {
   901  	if m == nil {
   902  		return 0
   903  	}
   904  	var l int
   905  	_ = l
   906  	l = m.DiscoveredLabels.Size()
   907  	n += 1 + l + sovRpc(uint64(l))
   908  	return n
   909  }
   910  
   911  func sovRpc(x uint64) (n int) {
   912  	return (math_bits.Len64(x|1) + 6) / 7
   913  }
   914  func sozRpc(x uint64) (n int) {
   915  	return sovRpc(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   916  }
   917  func (m *TargetsRequest) Unmarshal(dAtA []byte) error {
   918  	l := len(dAtA)
   919  	iNdEx := 0
   920  	for iNdEx < l {
   921  		preIndex := iNdEx
   922  		var wire uint64
   923  		for shift := uint(0); ; shift += 7 {
   924  			if shift >= 64 {
   925  				return ErrIntOverflowRpc
   926  			}
   927  			if iNdEx >= l {
   928  				return io.ErrUnexpectedEOF
   929  			}
   930  			b := dAtA[iNdEx]
   931  			iNdEx++
   932  			wire |= uint64(b&0x7F) << shift
   933  			if b < 0x80 {
   934  				break
   935  			}
   936  		}
   937  		fieldNum := int32(wire >> 3)
   938  		wireType := int(wire & 0x7)
   939  		if wireType == 4 {
   940  			return fmt.Errorf("proto: TargetsRequest: wiretype end group for non-group")
   941  		}
   942  		if fieldNum <= 0 {
   943  			return fmt.Errorf("proto: TargetsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   944  		}
   945  		switch fieldNum {
   946  		case 1:
   947  			if wireType != 0 {
   948  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
   949  			}
   950  			m.State = 0
   951  			for shift := uint(0); ; shift += 7 {
   952  				if shift >= 64 {
   953  					return ErrIntOverflowRpc
   954  				}
   955  				if iNdEx >= l {
   956  					return io.ErrUnexpectedEOF
   957  				}
   958  				b := dAtA[iNdEx]
   959  				iNdEx++
   960  				m.State |= TargetsRequest_State(b&0x7F) << shift
   961  				if b < 0x80 {
   962  					break
   963  				}
   964  			}
   965  		case 2:
   966  			if wireType != 0 {
   967  				return fmt.Errorf("proto: wrong wireType = %d for field PartialResponseStrategy", wireType)
   968  			}
   969  			m.PartialResponseStrategy = 0
   970  			for shift := uint(0); ; shift += 7 {
   971  				if shift >= 64 {
   972  					return ErrIntOverflowRpc
   973  				}
   974  				if iNdEx >= l {
   975  					return io.ErrUnexpectedEOF
   976  				}
   977  				b := dAtA[iNdEx]
   978  				iNdEx++
   979  				m.PartialResponseStrategy |= storepb.PartialResponseStrategy(b&0x7F) << shift
   980  				if b < 0x80 {
   981  					break
   982  				}
   983  			}
   984  		default:
   985  			iNdEx = preIndex
   986  			skippy, err := skipRpc(dAtA[iNdEx:])
   987  			if err != nil {
   988  				return err
   989  			}
   990  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   991  				return ErrInvalidLengthRpc
   992  			}
   993  			if (iNdEx + skippy) > l {
   994  				return io.ErrUnexpectedEOF
   995  			}
   996  			iNdEx += skippy
   997  		}
   998  	}
   999  
  1000  	if iNdEx > l {
  1001  		return io.ErrUnexpectedEOF
  1002  	}
  1003  	return nil
  1004  }
  1005  func (m *TargetsResponse) Unmarshal(dAtA []byte) error {
  1006  	l := len(dAtA)
  1007  	iNdEx := 0
  1008  	for iNdEx < l {
  1009  		preIndex := iNdEx
  1010  		var wire uint64
  1011  		for shift := uint(0); ; shift += 7 {
  1012  			if shift >= 64 {
  1013  				return ErrIntOverflowRpc
  1014  			}
  1015  			if iNdEx >= l {
  1016  				return io.ErrUnexpectedEOF
  1017  			}
  1018  			b := dAtA[iNdEx]
  1019  			iNdEx++
  1020  			wire |= uint64(b&0x7F) << shift
  1021  			if b < 0x80 {
  1022  				break
  1023  			}
  1024  		}
  1025  		fieldNum := int32(wire >> 3)
  1026  		wireType := int(wire & 0x7)
  1027  		if wireType == 4 {
  1028  			return fmt.Errorf("proto: TargetsResponse: wiretype end group for non-group")
  1029  		}
  1030  		if fieldNum <= 0 {
  1031  			return fmt.Errorf("proto: TargetsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1032  		}
  1033  		switch fieldNum {
  1034  		case 1:
  1035  			if wireType != 2 {
  1036  				return fmt.Errorf("proto: wrong wireType = %d for field Targets", wireType)
  1037  			}
  1038  			var msglen int
  1039  			for shift := uint(0); ; shift += 7 {
  1040  				if shift >= 64 {
  1041  					return ErrIntOverflowRpc
  1042  				}
  1043  				if iNdEx >= l {
  1044  					return io.ErrUnexpectedEOF
  1045  				}
  1046  				b := dAtA[iNdEx]
  1047  				iNdEx++
  1048  				msglen |= int(b&0x7F) << shift
  1049  				if b < 0x80 {
  1050  					break
  1051  				}
  1052  			}
  1053  			if msglen < 0 {
  1054  				return ErrInvalidLengthRpc
  1055  			}
  1056  			postIndex := iNdEx + msglen
  1057  			if postIndex < 0 {
  1058  				return ErrInvalidLengthRpc
  1059  			}
  1060  			if postIndex > l {
  1061  				return io.ErrUnexpectedEOF
  1062  			}
  1063  			v := &TargetDiscovery{}
  1064  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1065  				return err
  1066  			}
  1067  			m.Result = &TargetsResponse_Targets{v}
  1068  			iNdEx = postIndex
  1069  		case 2:
  1070  			if wireType != 2 {
  1071  				return fmt.Errorf("proto: wrong wireType = %d for field Warning", wireType)
  1072  			}
  1073  			var stringLen uint64
  1074  			for shift := uint(0); ; shift += 7 {
  1075  				if shift >= 64 {
  1076  					return ErrIntOverflowRpc
  1077  				}
  1078  				if iNdEx >= l {
  1079  					return io.ErrUnexpectedEOF
  1080  				}
  1081  				b := dAtA[iNdEx]
  1082  				iNdEx++
  1083  				stringLen |= uint64(b&0x7F) << shift
  1084  				if b < 0x80 {
  1085  					break
  1086  				}
  1087  			}
  1088  			intStringLen := int(stringLen)
  1089  			if intStringLen < 0 {
  1090  				return ErrInvalidLengthRpc
  1091  			}
  1092  			postIndex := iNdEx + intStringLen
  1093  			if postIndex < 0 {
  1094  				return ErrInvalidLengthRpc
  1095  			}
  1096  			if postIndex > l {
  1097  				return io.ErrUnexpectedEOF
  1098  			}
  1099  			m.Result = &TargetsResponse_Warning{string(dAtA[iNdEx:postIndex])}
  1100  			iNdEx = postIndex
  1101  		default:
  1102  			iNdEx = preIndex
  1103  			skippy, err := skipRpc(dAtA[iNdEx:])
  1104  			if err != nil {
  1105  				return err
  1106  			}
  1107  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1108  				return ErrInvalidLengthRpc
  1109  			}
  1110  			if (iNdEx + skippy) > l {
  1111  				return io.ErrUnexpectedEOF
  1112  			}
  1113  			iNdEx += skippy
  1114  		}
  1115  	}
  1116  
  1117  	if iNdEx > l {
  1118  		return io.ErrUnexpectedEOF
  1119  	}
  1120  	return nil
  1121  }
  1122  func (m *TargetDiscovery) Unmarshal(dAtA []byte) error {
  1123  	l := len(dAtA)
  1124  	iNdEx := 0
  1125  	for iNdEx < l {
  1126  		preIndex := iNdEx
  1127  		var wire uint64
  1128  		for shift := uint(0); ; shift += 7 {
  1129  			if shift >= 64 {
  1130  				return ErrIntOverflowRpc
  1131  			}
  1132  			if iNdEx >= l {
  1133  				return io.ErrUnexpectedEOF
  1134  			}
  1135  			b := dAtA[iNdEx]
  1136  			iNdEx++
  1137  			wire |= uint64(b&0x7F) << shift
  1138  			if b < 0x80 {
  1139  				break
  1140  			}
  1141  		}
  1142  		fieldNum := int32(wire >> 3)
  1143  		wireType := int(wire & 0x7)
  1144  		if wireType == 4 {
  1145  			return fmt.Errorf("proto: TargetDiscovery: wiretype end group for non-group")
  1146  		}
  1147  		if fieldNum <= 0 {
  1148  			return fmt.Errorf("proto: TargetDiscovery: illegal tag %d (wire type %d)", fieldNum, wire)
  1149  		}
  1150  		switch fieldNum {
  1151  		case 1:
  1152  			if wireType != 2 {
  1153  				return fmt.Errorf("proto: wrong wireType = %d for field ActiveTargets", wireType)
  1154  			}
  1155  			var msglen int
  1156  			for shift := uint(0); ; shift += 7 {
  1157  				if shift >= 64 {
  1158  					return ErrIntOverflowRpc
  1159  				}
  1160  				if iNdEx >= l {
  1161  					return io.ErrUnexpectedEOF
  1162  				}
  1163  				b := dAtA[iNdEx]
  1164  				iNdEx++
  1165  				msglen |= int(b&0x7F) << shift
  1166  				if b < 0x80 {
  1167  					break
  1168  				}
  1169  			}
  1170  			if msglen < 0 {
  1171  				return ErrInvalidLengthRpc
  1172  			}
  1173  			postIndex := iNdEx + msglen
  1174  			if postIndex < 0 {
  1175  				return ErrInvalidLengthRpc
  1176  			}
  1177  			if postIndex > l {
  1178  				return io.ErrUnexpectedEOF
  1179  			}
  1180  			m.ActiveTargets = append(m.ActiveTargets, &ActiveTarget{})
  1181  			if err := m.ActiveTargets[len(m.ActiveTargets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1182  				return err
  1183  			}
  1184  			iNdEx = postIndex
  1185  		case 2:
  1186  			if wireType != 2 {
  1187  				return fmt.Errorf("proto: wrong wireType = %d for field DroppedTargets", wireType)
  1188  			}
  1189  			var msglen int
  1190  			for shift := uint(0); ; shift += 7 {
  1191  				if shift >= 64 {
  1192  					return ErrIntOverflowRpc
  1193  				}
  1194  				if iNdEx >= l {
  1195  					return io.ErrUnexpectedEOF
  1196  				}
  1197  				b := dAtA[iNdEx]
  1198  				iNdEx++
  1199  				msglen |= int(b&0x7F) << shift
  1200  				if b < 0x80 {
  1201  					break
  1202  				}
  1203  			}
  1204  			if msglen < 0 {
  1205  				return ErrInvalidLengthRpc
  1206  			}
  1207  			postIndex := iNdEx + msglen
  1208  			if postIndex < 0 {
  1209  				return ErrInvalidLengthRpc
  1210  			}
  1211  			if postIndex > l {
  1212  				return io.ErrUnexpectedEOF
  1213  			}
  1214  			m.DroppedTargets = append(m.DroppedTargets, &DroppedTarget{})
  1215  			if err := m.DroppedTargets[len(m.DroppedTargets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1216  				return err
  1217  			}
  1218  			iNdEx = postIndex
  1219  		default:
  1220  			iNdEx = preIndex
  1221  			skippy, err := skipRpc(dAtA[iNdEx:])
  1222  			if err != nil {
  1223  				return err
  1224  			}
  1225  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1226  				return ErrInvalidLengthRpc
  1227  			}
  1228  			if (iNdEx + skippy) > l {
  1229  				return io.ErrUnexpectedEOF
  1230  			}
  1231  			iNdEx += skippy
  1232  		}
  1233  	}
  1234  
  1235  	if iNdEx > l {
  1236  		return io.ErrUnexpectedEOF
  1237  	}
  1238  	return nil
  1239  }
  1240  func (m *ActiveTarget) Unmarshal(dAtA []byte) error {
  1241  	l := len(dAtA)
  1242  	iNdEx := 0
  1243  	for iNdEx < l {
  1244  		preIndex := iNdEx
  1245  		var wire uint64
  1246  		for shift := uint(0); ; shift += 7 {
  1247  			if shift >= 64 {
  1248  				return ErrIntOverflowRpc
  1249  			}
  1250  			if iNdEx >= l {
  1251  				return io.ErrUnexpectedEOF
  1252  			}
  1253  			b := dAtA[iNdEx]
  1254  			iNdEx++
  1255  			wire |= uint64(b&0x7F) << shift
  1256  			if b < 0x80 {
  1257  				break
  1258  			}
  1259  		}
  1260  		fieldNum := int32(wire >> 3)
  1261  		wireType := int(wire & 0x7)
  1262  		if wireType == 4 {
  1263  			return fmt.Errorf("proto: ActiveTarget: wiretype end group for non-group")
  1264  		}
  1265  		if fieldNum <= 0 {
  1266  			return fmt.Errorf("proto: ActiveTarget: illegal tag %d (wire type %d)", fieldNum, wire)
  1267  		}
  1268  		switch fieldNum {
  1269  		case 1:
  1270  			if wireType != 2 {
  1271  				return fmt.Errorf("proto: wrong wireType = %d for field DiscoveredLabels", wireType)
  1272  			}
  1273  			var msglen int
  1274  			for shift := uint(0); ; shift += 7 {
  1275  				if shift >= 64 {
  1276  					return ErrIntOverflowRpc
  1277  				}
  1278  				if iNdEx >= l {
  1279  					return io.ErrUnexpectedEOF
  1280  				}
  1281  				b := dAtA[iNdEx]
  1282  				iNdEx++
  1283  				msglen |= int(b&0x7F) << shift
  1284  				if b < 0x80 {
  1285  					break
  1286  				}
  1287  			}
  1288  			if msglen < 0 {
  1289  				return ErrInvalidLengthRpc
  1290  			}
  1291  			postIndex := iNdEx + msglen
  1292  			if postIndex < 0 {
  1293  				return ErrInvalidLengthRpc
  1294  			}
  1295  			if postIndex > l {
  1296  				return io.ErrUnexpectedEOF
  1297  			}
  1298  			if err := m.DiscoveredLabels.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1299  				return err
  1300  			}
  1301  			iNdEx = postIndex
  1302  		case 2:
  1303  			if wireType != 2 {
  1304  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  1305  			}
  1306  			var msglen int
  1307  			for shift := uint(0); ; shift += 7 {
  1308  				if shift >= 64 {
  1309  					return ErrIntOverflowRpc
  1310  				}
  1311  				if iNdEx >= l {
  1312  					return io.ErrUnexpectedEOF
  1313  				}
  1314  				b := dAtA[iNdEx]
  1315  				iNdEx++
  1316  				msglen |= int(b&0x7F) << shift
  1317  				if b < 0x80 {
  1318  					break
  1319  				}
  1320  			}
  1321  			if msglen < 0 {
  1322  				return ErrInvalidLengthRpc
  1323  			}
  1324  			postIndex := iNdEx + msglen
  1325  			if postIndex < 0 {
  1326  				return ErrInvalidLengthRpc
  1327  			}
  1328  			if postIndex > l {
  1329  				return io.ErrUnexpectedEOF
  1330  			}
  1331  			if err := m.Labels.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1332  				return err
  1333  			}
  1334  			iNdEx = postIndex
  1335  		case 3:
  1336  			if wireType != 2 {
  1337  				return fmt.Errorf("proto: wrong wireType = %d for field ScrapePool", wireType)
  1338  			}
  1339  			var stringLen uint64
  1340  			for shift := uint(0); ; shift += 7 {
  1341  				if shift >= 64 {
  1342  					return ErrIntOverflowRpc
  1343  				}
  1344  				if iNdEx >= l {
  1345  					return io.ErrUnexpectedEOF
  1346  				}
  1347  				b := dAtA[iNdEx]
  1348  				iNdEx++
  1349  				stringLen |= uint64(b&0x7F) << shift
  1350  				if b < 0x80 {
  1351  					break
  1352  				}
  1353  			}
  1354  			intStringLen := int(stringLen)
  1355  			if intStringLen < 0 {
  1356  				return ErrInvalidLengthRpc
  1357  			}
  1358  			postIndex := iNdEx + intStringLen
  1359  			if postIndex < 0 {
  1360  				return ErrInvalidLengthRpc
  1361  			}
  1362  			if postIndex > l {
  1363  				return io.ErrUnexpectedEOF
  1364  			}
  1365  			m.ScrapePool = string(dAtA[iNdEx:postIndex])
  1366  			iNdEx = postIndex
  1367  		case 4:
  1368  			if wireType != 2 {
  1369  				return fmt.Errorf("proto: wrong wireType = %d for field ScrapeUrl", wireType)
  1370  			}
  1371  			var stringLen uint64
  1372  			for shift := uint(0); ; shift += 7 {
  1373  				if shift >= 64 {
  1374  					return ErrIntOverflowRpc
  1375  				}
  1376  				if iNdEx >= l {
  1377  					return io.ErrUnexpectedEOF
  1378  				}
  1379  				b := dAtA[iNdEx]
  1380  				iNdEx++
  1381  				stringLen |= uint64(b&0x7F) << shift
  1382  				if b < 0x80 {
  1383  					break
  1384  				}
  1385  			}
  1386  			intStringLen := int(stringLen)
  1387  			if intStringLen < 0 {
  1388  				return ErrInvalidLengthRpc
  1389  			}
  1390  			postIndex := iNdEx + intStringLen
  1391  			if postIndex < 0 {
  1392  				return ErrInvalidLengthRpc
  1393  			}
  1394  			if postIndex > l {
  1395  				return io.ErrUnexpectedEOF
  1396  			}
  1397  			m.ScrapeUrl = string(dAtA[iNdEx:postIndex])
  1398  			iNdEx = postIndex
  1399  		case 5:
  1400  			if wireType != 2 {
  1401  				return fmt.Errorf("proto: wrong wireType = %d for field GlobalUrl", wireType)
  1402  			}
  1403  			var stringLen uint64
  1404  			for shift := uint(0); ; shift += 7 {
  1405  				if shift >= 64 {
  1406  					return ErrIntOverflowRpc
  1407  				}
  1408  				if iNdEx >= l {
  1409  					return io.ErrUnexpectedEOF
  1410  				}
  1411  				b := dAtA[iNdEx]
  1412  				iNdEx++
  1413  				stringLen |= uint64(b&0x7F) << shift
  1414  				if b < 0x80 {
  1415  					break
  1416  				}
  1417  			}
  1418  			intStringLen := int(stringLen)
  1419  			if intStringLen < 0 {
  1420  				return ErrInvalidLengthRpc
  1421  			}
  1422  			postIndex := iNdEx + intStringLen
  1423  			if postIndex < 0 {
  1424  				return ErrInvalidLengthRpc
  1425  			}
  1426  			if postIndex > l {
  1427  				return io.ErrUnexpectedEOF
  1428  			}
  1429  			m.GlobalUrl = string(dAtA[iNdEx:postIndex])
  1430  			iNdEx = postIndex
  1431  		case 6:
  1432  			if wireType != 2 {
  1433  				return fmt.Errorf("proto: wrong wireType = %d for field LastError", wireType)
  1434  			}
  1435  			var stringLen uint64
  1436  			for shift := uint(0); ; shift += 7 {
  1437  				if shift >= 64 {
  1438  					return ErrIntOverflowRpc
  1439  				}
  1440  				if iNdEx >= l {
  1441  					return io.ErrUnexpectedEOF
  1442  				}
  1443  				b := dAtA[iNdEx]
  1444  				iNdEx++
  1445  				stringLen |= uint64(b&0x7F) << shift
  1446  				if b < 0x80 {
  1447  					break
  1448  				}
  1449  			}
  1450  			intStringLen := int(stringLen)
  1451  			if intStringLen < 0 {
  1452  				return ErrInvalidLengthRpc
  1453  			}
  1454  			postIndex := iNdEx + intStringLen
  1455  			if postIndex < 0 {
  1456  				return ErrInvalidLengthRpc
  1457  			}
  1458  			if postIndex > l {
  1459  				return io.ErrUnexpectedEOF
  1460  			}
  1461  			m.LastError = string(dAtA[iNdEx:postIndex])
  1462  			iNdEx = postIndex
  1463  		case 7:
  1464  			if wireType != 2 {
  1465  				return fmt.Errorf("proto: wrong wireType = %d for field LastScrape", wireType)
  1466  			}
  1467  			var msglen int
  1468  			for shift := uint(0); ; shift += 7 {
  1469  				if shift >= 64 {
  1470  					return ErrIntOverflowRpc
  1471  				}
  1472  				if iNdEx >= l {
  1473  					return io.ErrUnexpectedEOF
  1474  				}
  1475  				b := dAtA[iNdEx]
  1476  				iNdEx++
  1477  				msglen |= int(b&0x7F) << shift
  1478  				if b < 0x80 {
  1479  					break
  1480  				}
  1481  			}
  1482  			if msglen < 0 {
  1483  				return ErrInvalidLengthRpc
  1484  			}
  1485  			postIndex := iNdEx + msglen
  1486  			if postIndex < 0 {
  1487  				return ErrInvalidLengthRpc
  1488  			}
  1489  			if postIndex > l {
  1490  				return io.ErrUnexpectedEOF
  1491  			}
  1492  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.LastScrape, dAtA[iNdEx:postIndex]); err != nil {
  1493  				return err
  1494  			}
  1495  			iNdEx = postIndex
  1496  		case 8:
  1497  			if wireType != 1 {
  1498  				return fmt.Errorf("proto: wrong wireType = %d for field LastScrapeDuration", wireType)
  1499  			}
  1500  			var v uint64
  1501  			if (iNdEx + 8) > l {
  1502  				return io.ErrUnexpectedEOF
  1503  			}
  1504  			v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  1505  			iNdEx += 8
  1506  			m.LastScrapeDuration = float64(math.Float64frombits(v))
  1507  		case 9:
  1508  			if wireType != 0 {
  1509  				return fmt.Errorf("proto: wrong wireType = %d for field Health", wireType)
  1510  			}
  1511  			m.Health = 0
  1512  			for shift := uint(0); ; shift += 7 {
  1513  				if shift >= 64 {
  1514  					return ErrIntOverflowRpc
  1515  				}
  1516  				if iNdEx >= l {
  1517  					return io.ErrUnexpectedEOF
  1518  				}
  1519  				b := dAtA[iNdEx]
  1520  				iNdEx++
  1521  				m.Health |= TargetHealth(b&0x7F) << shift
  1522  				if b < 0x80 {
  1523  					break
  1524  				}
  1525  			}
  1526  		default:
  1527  			iNdEx = preIndex
  1528  			skippy, err := skipRpc(dAtA[iNdEx:])
  1529  			if err != nil {
  1530  				return err
  1531  			}
  1532  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1533  				return ErrInvalidLengthRpc
  1534  			}
  1535  			if (iNdEx + skippy) > l {
  1536  				return io.ErrUnexpectedEOF
  1537  			}
  1538  			iNdEx += skippy
  1539  		}
  1540  	}
  1541  
  1542  	if iNdEx > l {
  1543  		return io.ErrUnexpectedEOF
  1544  	}
  1545  	return nil
  1546  }
  1547  func (m *DroppedTarget) Unmarshal(dAtA []byte) error {
  1548  	l := len(dAtA)
  1549  	iNdEx := 0
  1550  	for iNdEx < l {
  1551  		preIndex := iNdEx
  1552  		var wire uint64
  1553  		for shift := uint(0); ; shift += 7 {
  1554  			if shift >= 64 {
  1555  				return ErrIntOverflowRpc
  1556  			}
  1557  			if iNdEx >= l {
  1558  				return io.ErrUnexpectedEOF
  1559  			}
  1560  			b := dAtA[iNdEx]
  1561  			iNdEx++
  1562  			wire |= uint64(b&0x7F) << shift
  1563  			if b < 0x80 {
  1564  				break
  1565  			}
  1566  		}
  1567  		fieldNum := int32(wire >> 3)
  1568  		wireType := int(wire & 0x7)
  1569  		if wireType == 4 {
  1570  			return fmt.Errorf("proto: DroppedTarget: wiretype end group for non-group")
  1571  		}
  1572  		if fieldNum <= 0 {
  1573  			return fmt.Errorf("proto: DroppedTarget: illegal tag %d (wire type %d)", fieldNum, wire)
  1574  		}
  1575  		switch fieldNum {
  1576  		case 1:
  1577  			if wireType != 2 {
  1578  				return fmt.Errorf("proto: wrong wireType = %d for field DiscoveredLabels", wireType)
  1579  			}
  1580  			var msglen int
  1581  			for shift := uint(0); ; shift += 7 {
  1582  				if shift >= 64 {
  1583  					return ErrIntOverflowRpc
  1584  				}
  1585  				if iNdEx >= l {
  1586  					return io.ErrUnexpectedEOF
  1587  				}
  1588  				b := dAtA[iNdEx]
  1589  				iNdEx++
  1590  				msglen |= int(b&0x7F) << shift
  1591  				if b < 0x80 {
  1592  					break
  1593  				}
  1594  			}
  1595  			if msglen < 0 {
  1596  				return ErrInvalidLengthRpc
  1597  			}
  1598  			postIndex := iNdEx + msglen
  1599  			if postIndex < 0 {
  1600  				return ErrInvalidLengthRpc
  1601  			}
  1602  			if postIndex > l {
  1603  				return io.ErrUnexpectedEOF
  1604  			}
  1605  			if err := m.DiscoveredLabels.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1606  				return err
  1607  			}
  1608  			iNdEx = postIndex
  1609  		default:
  1610  			iNdEx = preIndex
  1611  			skippy, err := skipRpc(dAtA[iNdEx:])
  1612  			if err != nil {
  1613  				return err
  1614  			}
  1615  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1616  				return ErrInvalidLengthRpc
  1617  			}
  1618  			if (iNdEx + skippy) > l {
  1619  				return io.ErrUnexpectedEOF
  1620  			}
  1621  			iNdEx += skippy
  1622  		}
  1623  	}
  1624  
  1625  	if iNdEx > l {
  1626  		return io.ErrUnexpectedEOF
  1627  	}
  1628  	return nil
  1629  }
  1630  func skipRpc(dAtA []byte) (n int, err error) {
  1631  	l := len(dAtA)
  1632  	iNdEx := 0
  1633  	depth := 0
  1634  	for iNdEx < l {
  1635  		var wire uint64
  1636  		for shift := uint(0); ; shift += 7 {
  1637  			if shift >= 64 {
  1638  				return 0, ErrIntOverflowRpc
  1639  			}
  1640  			if iNdEx >= l {
  1641  				return 0, io.ErrUnexpectedEOF
  1642  			}
  1643  			b := dAtA[iNdEx]
  1644  			iNdEx++
  1645  			wire |= (uint64(b) & 0x7F) << shift
  1646  			if b < 0x80 {
  1647  				break
  1648  			}
  1649  		}
  1650  		wireType := int(wire & 0x7)
  1651  		switch wireType {
  1652  		case 0:
  1653  			for shift := uint(0); ; shift += 7 {
  1654  				if shift >= 64 {
  1655  					return 0, ErrIntOverflowRpc
  1656  				}
  1657  				if iNdEx >= l {
  1658  					return 0, io.ErrUnexpectedEOF
  1659  				}
  1660  				iNdEx++
  1661  				if dAtA[iNdEx-1] < 0x80 {
  1662  					break
  1663  				}
  1664  			}
  1665  		case 1:
  1666  			iNdEx += 8
  1667  		case 2:
  1668  			var length int
  1669  			for shift := uint(0); ; shift += 7 {
  1670  				if shift >= 64 {
  1671  					return 0, ErrIntOverflowRpc
  1672  				}
  1673  				if iNdEx >= l {
  1674  					return 0, io.ErrUnexpectedEOF
  1675  				}
  1676  				b := dAtA[iNdEx]
  1677  				iNdEx++
  1678  				length |= (int(b) & 0x7F) << shift
  1679  				if b < 0x80 {
  1680  					break
  1681  				}
  1682  			}
  1683  			if length < 0 {
  1684  				return 0, ErrInvalidLengthRpc
  1685  			}
  1686  			iNdEx += length
  1687  		case 3:
  1688  			depth++
  1689  		case 4:
  1690  			if depth == 0 {
  1691  				return 0, ErrUnexpectedEndOfGroupRpc
  1692  			}
  1693  			depth--
  1694  		case 5:
  1695  			iNdEx += 4
  1696  		default:
  1697  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1698  		}
  1699  		if iNdEx < 0 {
  1700  			return 0, ErrInvalidLengthRpc
  1701  		}
  1702  		if depth == 0 {
  1703  			return iNdEx, nil
  1704  		}
  1705  	}
  1706  	return 0, io.ErrUnexpectedEOF
  1707  }
  1708  
  1709  var (
  1710  	ErrInvalidLengthRpc        = fmt.Errorf("proto: negative length found during unmarshaling")
  1711  	ErrIntOverflowRpc          = fmt.Errorf("proto: integer overflow")
  1712  	ErrUnexpectedEndOfGroupRpc = fmt.Errorf("proto: unexpected end of group")
  1713  )