github.com/muhammadn/cortex@v1.9.1-0.20220510110439-46bb7000d03d/tools/blocksconvert/scheduler.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: scheduler.proto
     3  
     4  package blocksconvert
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	grpc "google.golang.org/grpc"
    12  	codes "google.golang.org/grpc/codes"
    13  	status "google.golang.org/grpc/status"
    14  	io "io"
    15  	math "math"
    16  	math_bits "math/bits"
    17  	reflect "reflect"
    18  	strings "strings"
    19  )
    20  
    21  // Reference imports to suppress errors if they are not otherwise used.
    22  var _ = proto.Marshal
    23  var _ = fmt.Errorf
    24  var _ = math.Inf
    25  
    26  // This is a compile-time assertion to ensure that this generated file
    27  // is compatible with the proto package it is being compiled against.
    28  // A compilation error at this line likely means your copy of the
    29  // proto package needs to be updated.
    30  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    31  
    32  type NextPlanRequest struct {
    33  	// Name of service requesting the plan.
    34  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    35  }
    36  
    37  func (m *NextPlanRequest) Reset()      { *m = NextPlanRequest{} }
    38  func (*NextPlanRequest) ProtoMessage() {}
    39  func (*NextPlanRequest) Descriptor() ([]byte, []int) {
    40  	return fileDescriptor_2b3fc28395a6d9c5, []int{0}
    41  }
    42  func (m *NextPlanRequest) XXX_Unmarshal(b []byte) error {
    43  	return m.Unmarshal(b)
    44  }
    45  func (m *NextPlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    46  	if deterministic {
    47  		return xxx_messageInfo_NextPlanRequest.Marshal(b, m, deterministic)
    48  	} else {
    49  		b = b[:cap(b)]
    50  		n, err := m.MarshalToSizedBuffer(b)
    51  		if err != nil {
    52  			return nil, err
    53  		}
    54  		return b[:n], nil
    55  	}
    56  }
    57  func (m *NextPlanRequest) XXX_Merge(src proto.Message) {
    58  	xxx_messageInfo_NextPlanRequest.Merge(m, src)
    59  }
    60  func (m *NextPlanRequest) XXX_Size() int {
    61  	return m.Size()
    62  }
    63  func (m *NextPlanRequest) XXX_DiscardUnknown() {
    64  	xxx_messageInfo_NextPlanRequest.DiscardUnknown(m)
    65  }
    66  
    67  var xxx_messageInfo_NextPlanRequest proto.InternalMessageInfo
    68  
    69  func (m *NextPlanRequest) GetName() string {
    70  	if m != nil {
    71  		return m.Name
    72  	}
    73  	return ""
    74  }
    75  
    76  type NextPlanResponse struct {
    77  	PlanFile     string `protobuf:"bytes,1,opt,name=planFile,proto3" json:"planFile,omitempty"`
    78  	ProgressFile string `protobuf:"bytes,2,opt,name=progressFile,proto3" json:"progressFile,omitempty"`
    79  }
    80  
    81  func (m *NextPlanResponse) Reset()      { *m = NextPlanResponse{} }
    82  func (*NextPlanResponse) ProtoMessage() {}
    83  func (*NextPlanResponse) Descriptor() ([]byte, []int) {
    84  	return fileDescriptor_2b3fc28395a6d9c5, []int{1}
    85  }
    86  func (m *NextPlanResponse) XXX_Unmarshal(b []byte) error {
    87  	return m.Unmarshal(b)
    88  }
    89  func (m *NextPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    90  	if deterministic {
    91  		return xxx_messageInfo_NextPlanResponse.Marshal(b, m, deterministic)
    92  	} else {
    93  		b = b[:cap(b)]
    94  		n, err := m.MarshalToSizedBuffer(b)
    95  		if err != nil {
    96  			return nil, err
    97  		}
    98  		return b[:n], nil
    99  	}
   100  }
   101  func (m *NextPlanResponse) XXX_Merge(src proto.Message) {
   102  	xxx_messageInfo_NextPlanResponse.Merge(m, src)
   103  }
   104  func (m *NextPlanResponse) XXX_Size() int {
   105  	return m.Size()
   106  }
   107  func (m *NextPlanResponse) XXX_DiscardUnknown() {
   108  	xxx_messageInfo_NextPlanResponse.DiscardUnknown(m)
   109  }
   110  
   111  var xxx_messageInfo_NextPlanResponse proto.InternalMessageInfo
   112  
   113  func (m *NextPlanResponse) GetPlanFile() string {
   114  	if m != nil {
   115  		return m.PlanFile
   116  	}
   117  	return ""
   118  }
   119  
   120  func (m *NextPlanResponse) GetProgressFile() string {
   121  	if m != nil {
   122  		return m.ProgressFile
   123  	}
   124  	return ""
   125  }
   126  
   127  func init() {
   128  	proto.RegisterType((*NextPlanRequest)(nil), "blocksconvert.NextPlanRequest")
   129  	proto.RegisterType((*NextPlanResponse)(nil), "blocksconvert.NextPlanResponse")
   130  }
   131  
   132  func init() { proto.RegisterFile("scheduler.proto", fileDescriptor_2b3fc28395a6d9c5) }
   133  
   134  var fileDescriptor_2b3fc28395a6d9c5 = []byte{
   135  	// 264 bytes of a gzipped FileDescriptorProto
   136  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2f, 0x4e, 0xce, 0x48,
   137  	0x4d, 0x29, 0xcd, 0x49, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x4d, 0xca, 0xc9,
   138  	0x4f, 0xce, 0x2e, 0x4e, 0xce, 0xcf, 0x2b, 0x4b, 0x2d, 0x2a, 0x91, 0xd2, 0x4d, 0xcf, 0x2c, 0xc9,
   139  	0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0x4f, 0xcf, 0xd7, 0x07, 0xab, 0x4a, 0x2a,
   140  	0x4d, 0x03, 0xf3, 0xc0, 0x1c, 0x30, 0x0b, 0xa2, 0x5b, 0x49, 0x95, 0x8b, 0xdf, 0x2f, 0xb5, 0xa2,
   141  	0x24, 0x20, 0x27, 0x31, 0x2f, 0x28, 0xb5, 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x88, 0x8b, 0x25,
   142  	0x2f, 0x31, 0x37, 0x55, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, 0x56, 0x0a, 0xe2, 0x12,
   143  	0x40, 0x28, 0x2b, 0x2e, 0xc8, 0xcf, 0x2b, 0x4e, 0x15, 0x92, 0xe2, 0xe2, 0x28, 0xc8, 0x49, 0xcc,
   144  	0x73, 0xcb, 0xcc, 0x81, 0xa9, 0x85, 0xf3, 0x85, 0x94, 0xb8, 0x78, 0x0a, 0x8a, 0xf2, 0xd3, 0x8b,
   145  	0x52, 0x8b, 0x8b, 0xc1, 0xf2, 0x4c, 0x60, 0x79, 0x14, 0x31, 0xa3, 0x28, 0x2e, 0xce, 0x60, 0x98,
   146  	0x5f, 0x84, 0x7c, 0xb9, 0x38, 0x60, 0x16, 0x08, 0xc9, 0xe9, 0xa1, 0x78, 0x49, 0x0f, 0xcd, 0x81,
   147  	0x52, 0xf2, 0x38, 0xe5, 0x21, 0x2e, 0x53, 0x62, 0x70, 0x72, 0xbe, 0xf0, 0x50, 0x8e, 0xe1, 0xc6,
   148  	0x43, 0x39, 0x86, 0x0f, 0x0f, 0xe5, 0x18, 0x1b, 0x1e, 0xc9, 0x31, 0xae, 0x78, 0x24, 0xc7, 0x78,
   149  	0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0xbe, 0x78, 0x24, 0xc7,
   150  	0xf0, 0xe1, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c,
   151  	0xc7, 0x10, 0x85, 0x1a, 0x94, 0x49, 0x6c, 0xe0, 0x20, 0x32, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff,
   152  	0xf7, 0x7b, 0xa4, 0x64, 0x73, 0x01, 0x00, 0x00,
   153  }
   154  
   155  func (this *NextPlanRequest) Equal(that interface{}) bool {
   156  	if that == nil {
   157  		return this == nil
   158  	}
   159  
   160  	that1, ok := that.(*NextPlanRequest)
   161  	if !ok {
   162  		that2, ok := that.(NextPlanRequest)
   163  		if ok {
   164  			that1 = &that2
   165  		} else {
   166  			return false
   167  		}
   168  	}
   169  	if that1 == nil {
   170  		return this == nil
   171  	} else if this == nil {
   172  		return false
   173  	}
   174  	if this.Name != that1.Name {
   175  		return false
   176  	}
   177  	return true
   178  }
   179  func (this *NextPlanResponse) Equal(that interface{}) bool {
   180  	if that == nil {
   181  		return this == nil
   182  	}
   183  
   184  	that1, ok := that.(*NextPlanResponse)
   185  	if !ok {
   186  		that2, ok := that.(NextPlanResponse)
   187  		if ok {
   188  			that1 = &that2
   189  		} else {
   190  			return false
   191  		}
   192  	}
   193  	if that1 == nil {
   194  		return this == nil
   195  	} else if this == nil {
   196  		return false
   197  	}
   198  	if this.PlanFile != that1.PlanFile {
   199  		return false
   200  	}
   201  	if this.ProgressFile != that1.ProgressFile {
   202  		return false
   203  	}
   204  	return true
   205  }
   206  func (this *NextPlanRequest) GoString() string {
   207  	if this == nil {
   208  		return "nil"
   209  	}
   210  	s := make([]string, 0, 5)
   211  	s = append(s, "&blocksconvert.NextPlanRequest{")
   212  	s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
   213  	s = append(s, "}")
   214  	return strings.Join(s, "")
   215  }
   216  func (this *NextPlanResponse) GoString() string {
   217  	if this == nil {
   218  		return "nil"
   219  	}
   220  	s := make([]string, 0, 6)
   221  	s = append(s, "&blocksconvert.NextPlanResponse{")
   222  	s = append(s, "PlanFile: "+fmt.Sprintf("%#v", this.PlanFile)+",\n")
   223  	s = append(s, "ProgressFile: "+fmt.Sprintf("%#v", this.ProgressFile)+",\n")
   224  	s = append(s, "}")
   225  	return strings.Join(s, "")
   226  }
   227  func valueToGoStringScheduler(v interface{}, typ string) string {
   228  	rv := reflect.ValueOf(v)
   229  	if rv.IsNil() {
   230  		return "nil"
   231  	}
   232  	pv := reflect.Indirect(rv).Interface()
   233  	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
   234  }
   235  
   236  // Reference imports to suppress errors if they are not otherwise used.
   237  var _ context.Context
   238  var _ grpc.ClientConn
   239  
   240  // This is a compile-time assertion to ensure that this generated file
   241  // is compatible with the grpc package it is being compiled against.
   242  const _ = grpc.SupportPackageIsVersion4
   243  
   244  // SchedulerClient is the client API for Scheduler service.
   245  //
   246  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   247  type SchedulerClient interface {
   248  	// Returns next plan that builder should work on.
   249  	NextPlan(ctx context.Context, in *NextPlanRequest, opts ...grpc.CallOption) (*NextPlanResponse, error)
   250  }
   251  
   252  type schedulerClient struct {
   253  	cc *grpc.ClientConn
   254  }
   255  
   256  func NewSchedulerClient(cc *grpc.ClientConn) SchedulerClient {
   257  	return &schedulerClient{cc}
   258  }
   259  
   260  func (c *schedulerClient) NextPlan(ctx context.Context, in *NextPlanRequest, opts ...grpc.CallOption) (*NextPlanResponse, error) {
   261  	out := new(NextPlanResponse)
   262  	err := c.cc.Invoke(ctx, "/blocksconvert.Scheduler/NextPlan", in, out, opts...)
   263  	if err != nil {
   264  		return nil, err
   265  	}
   266  	return out, nil
   267  }
   268  
   269  // SchedulerServer is the server API for Scheduler service.
   270  type SchedulerServer interface {
   271  	// Returns next plan that builder should work on.
   272  	NextPlan(context.Context, *NextPlanRequest) (*NextPlanResponse, error)
   273  }
   274  
   275  // UnimplementedSchedulerServer can be embedded to have forward compatible implementations.
   276  type UnimplementedSchedulerServer struct {
   277  }
   278  
   279  func (*UnimplementedSchedulerServer) NextPlan(ctx context.Context, req *NextPlanRequest) (*NextPlanResponse, error) {
   280  	return nil, status.Errorf(codes.Unimplemented, "method NextPlan not implemented")
   281  }
   282  
   283  func RegisterSchedulerServer(s *grpc.Server, srv SchedulerServer) {
   284  	s.RegisterService(&_Scheduler_serviceDesc, srv)
   285  }
   286  
   287  func _Scheduler_NextPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   288  	in := new(NextPlanRequest)
   289  	if err := dec(in); err != nil {
   290  		return nil, err
   291  	}
   292  	if interceptor == nil {
   293  		return srv.(SchedulerServer).NextPlan(ctx, in)
   294  	}
   295  	info := &grpc.UnaryServerInfo{
   296  		Server:     srv,
   297  		FullMethod: "/blocksconvert.Scheduler/NextPlan",
   298  	}
   299  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   300  		return srv.(SchedulerServer).NextPlan(ctx, req.(*NextPlanRequest))
   301  	}
   302  	return interceptor(ctx, in, info, handler)
   303  }
   304  
   305  var _Scheduler_serviceDesc = grpc.ServiceDesc{
   306  	ServiceName: "blocksconvert.Scheduler",
   307  	HandlerType: (*SchedulerServer)(nil),
   308  	Methods: []grpc.MethodDesc{
   309  		{
   310  			MethodName: "NextPlan",
   311  			Handler:    _Scheduler_NextPlan_Handler,
   312  		},
   313  	},
   314  	Streams:  []grpc.StreamDesc{},
   315  	Metadata: "scheduler.proto",
   316  }
   317  
   318  func (m *NextPlanRequest) Marshal() (dAtA []byte, err error) {
   319  	size := m.Size()
   320  	dAtA = make([]byte, size)
   321  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   322  	if err != nil {
   323  		return nil, err
   324  	}
   325  	return dAtA[:n], nil
   326  }
   327  
   328  func (m *NextPlanRequest) MarshalTo(dAtA []byte) (int, error) {
   329  	size := m.Size()
   330  	return m.MarshalToSizedBuffer(dAtA[:size])
   331  }
   332  
   333  func (m *NextPlanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   334  	i := len(dAtA)
   335  	_ = i
   336  	var l int
   337  	_ = l
   338  	if len(m.Name) > 0 {
   339  		i -= len(m.Name)
   340  		copy(dAtA[i:], m.Name)
   341  		i = encodeVarintScheduler(dAtA, i, uint64(len(m.Name)))
   342  		i--
   343  		dAtA[i] = 0xa
   344  	}
   345  	return len(dAtA) - i, nil
   346  }
   347  
   348  func (m *NextPlanResponse) Marshal() (dAtA []byte, err error) {
   349  	size := m.Size()
   350  	dAtA = make([]byte, size)
   351  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   352  	if err != nil {
   353  		return nil, err
   354  	}
   355  	return dAtA[:n], nil
   356  }
   357  
   358  func (m *NextPlanResponse) MarshalTo(dAtA []byte) (int, error) {
   359  	size := m.Size()
   360  	return m.MarshalToSizedBuffer(dAtA[:size])
   361  }
   362  
   363  func (m *NextPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   364  	i := len(dAtA)
   365  	_ = i
   366  	var l int
   367  	_ = l
   368  	if len(m.ProgressFile) > 0 {
   369  		i -= len(m.ProgressFile)
   370  		copy(dAtA[i:], m.ProgressFile)
   371  		i = encodeVarintScheduler(dAtA, i, uint64(len(m.ProgressFile)))
   372  		i--
   373  		dAtA[i] = 0x12
   374  	}
   375  	if len(m.PlanFile) > 0 {
   376  		i -= len(m.PlanFile)
   377  		copy(dAtA[i:], m.PlanFile)
   378  		i = encodeVarintScheduler(dAtA, i, uint64(len(m.PlanFile)))
   379  		i--
   380  		dAtA[i] = 0xa
   381  	}
   382  	return len(dAtA) - i, nil
   383  }
   384  
   385  func encodeVarintScheduler(dAtA []byte, offset int, v uint64) int {
   386  	offset -= sovScheduler(v)
   387  	base := offset
   388  	for v >= 1<<7 {
   389  		dAtA[offset] = uint8(v&0x7f | 0x80)
   390  		v >>= 7
   391  		offset++
   392  	}
   393  	dAtA[offset] = uint8(v)
   394  	return base
   395  }
   396  func (m *NextPlanRequest) Size() (n int) {
   397  	if m == nil {
   398  		return 0
   399  	}
   400  	var l int
   401  	_ = l
   402  	l = len(m.Name)
   403  	if l > 0 {
   404  		n += 1 + l + sovScheduler(uint64(l))
   405  	}
   406  	return n
   407  }
   408  
   409  func (m *NextPlanResponse) Size() (n int) {
   410  	if m == nil {
   411  		return 0
   412  	}
   413  	var l int
   414  	_ = l
   415  	l = len(m.PlanFile)
   416  	if l > 0 {
   417  		n += 1 + l + sovScheduler(uint64(l))
   418  	}
   419  	l = len(m.ProgressFile)
   420  	if l > 0 {
   421  		n += 1 + l + sovScheduler(uint64(l))
   422  	}
   423  	return n
   424  }
   425  
   426  func sovScheduler(x uint64) (n int) {
   427  	return (math_bits.Len64(x|1) + 6) / 7
   428  }
   429  func sozScheduler(x uint64) (n int) {
   430  	return sovScheduler(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   431  }
   432  func (this *NextPlanRequest) String() string {
   433  	if this == nil {
   434  		return "nil"
   435  	}
   436  	s := strings.Join([]string{`&NextPlanRequest{`,
   437  		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
   438  		`}`,
   439  	}, "")
   440  	return s
   441  }
   442  func (this *NextPlanResponse) String() string {
   443  	if this == nil {
   444  		return "nil"
   445  	}
   446  	s := strings.Join([]string{`&NextPlanResponse{`,
   447  		`PlanFile:` + fmt.Sprintf("%v", this.PlanFile) + `,`,
   448  		`ProgressFile:` + fmt.Sprintf("%v", this.ProgressFile) + `,`,
   449  		`}`,
   450  	}, "")
   451  	return s
   452  }
   453  func valueToStringScheduler(v interface{}) string {
   454  	rv := reflect.ValueOf(v)
   455  	if rv.IsNil() {
   456  		return "nil"
   457  	}
   458  	pv := reflect.Indirect(rv).Interface()
   459  	return fmt.Sprintf("*%v", pv)
   460  }
   461  func (m *NextPlanRequest) Unmarshal(dAtA []byte) error {
   462  	l := len(dAtA)
   463  	iNdEx := 0
   464  	for iNdEx < l {
   465  		preIndex := iNdEx
   466  		var wire uint64
   467  		for shift := uint(0); ; shift += 7 {
   468  			if shift >= 64 {
   469  				return ErrIntOverflowScheduler
   470  			}
   471  			if iNdEx >= l {
   472  				return io.ErrUnexpectedEOF
   473  			}
   474  			b := dAtA[iNdEx]
   475  			iNdEx++
   476  			wire |= uint64(b&0x7F) << shift
   477  			if b < 0x80 {
   478  				break
   479  			}
   480  		}
   481  		fieldNum := int32(wire >> 3)
   482  		wireType := int(wire & 0x7)
   483  		if wireType == 4 {
   484  			return fmt.Errorf("proto: NextPlanRequest: wiretype end group for non-group")
   485  		}
   486  		if fieldNum <= 0 {
   487  			return fmt.Errorf("proto: NextPlanRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   488  		}
   489  		switch fieldNum {
   490  		case 1:
   491  			if wireType != 2 {
   492  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
   493  			}
   494  			var stringLen uint64
   495  			for shift := uint(0); ; shift += 7 {
   496  				if shift >= 64 {
   497  					return ErrIntOverflowScheduler
   498  				}
   499  				if iNdEx >= l {
   500  					return io.ErrUnexpectedEOF
   501  				}
   502  				b := dAtA[iNdEx]
   503  				iNdEx++
   504  				stringLen |= uint64(b&0x7F) << shift
   505  				if b < 0x80 {
   506  					break
   507  				}
   508  			}
   509  			intStringLen := int(stringLen)
   510  			if intStringLen < 0 {
   511  				return ErrInvalidLengthScheduler
   512  			}
   513  			postIndex := iNdEx + intStringLen
   514  			if postIndex < 0 {
   515  				return ErrInvalidLengthScheduler
   516  			}
   517  			if postIndex > l {
   518  				return io.ErrUnexpectedEOF
   519  			}
   520  			m.Name = string(dAtA[iNdEx:postIndex])
   521  			iNdEx = postIndex
   522  		default:
   523  			iNdEx = preIndex
   524  			skippy, err := skipScheduler(dAtA[iNdEx:])
   525  			if err != nil {
   526  				return err
   527  			}
   528  			if skippy < 0 {
   529  				return ErrInvalidLengthScheduler
   530  			}
   531  			if (iNdEx + skippy) < 0 {
   532  				return ErrInvalidLengthScheduler
   533  			}
   534  			if (iNdEx + skippy) > l {
   535  				return io.ErrUnexpectedEOF
   536  			}
   537  			iNdEx += skippy
   538  		}
   539  	}
   540  
   541  	if iNdEx > l {
   542  		return io.ErrUnexpectedEOF
   543  	}
   544  	return nil
   545  }
   546  func (m *NextPlanResponse) Unmarshal(dAtA []byte) error {
   547  	l := len(dAtA)
   548  	iNdEx := 0
   549  	for iNdEx < l {
   550  		preIndex := iNdEx
   551  		var wire uint64
   552  		for shift := uint(0); ; shift += 7 {
   553  			if shift >= 64 {
   554  				return ErrIntOverflowScheduler
   555  			}
   556  			if iNdEx >= l {
   557  				return io.ErrUnexpectedEOF
   558  			}
   559  			b := dAtA[iNdEx]
   560  			iNdEx++
   561  			wire |= uint64(b&0x7F) << shift
   562  			if b < 0x80 {
   563  				break
   564  			}
   565  		}
   566  		fieldNum := int32(wire >> 3)
   567  		wireType := int(wire & 0x7)
   568  		if wireType == 4 {
   569  			return fmt.Errorf("proto: NextPlanResponse: wiretype end group for non-group")
   570  		}
   571  		if fieldNum <= 0 {
   572  			return fmt.Errorf("proto: NextPlanResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   573  		}
   574  		switch fieldNum {
   575  		case 1:
   576  			if wireType != 2 {
   577  				return fmt.Errorf("proto: wrong wireType = %d for field PlanFile", wireType)
   578  			}
   579  			var stringLen uint64
   580  			for shift := uint(0); ; shift += 7 {
   581  				if shift >= 64 {
   582  					return ErrIntOverflowScheduler
   583  				}
   584  				if iNdEx >= l {
   585  					return io.ErrUnexpectedEOF
   586  				}
   587  				b := dAtA[iNdEx]
   588  				iNdEx++
   589  				stringLen |= uint64(b&0x7F) << shift
   590  				if b < 0x80 {
   591  					break
   592  				}
   593  			}
   594  			intStringLen := int(stringLen)
   595  			if intStringLen < 0 {
   596  				return ErrInvalidLengthScheduler
   597  			}
   598  			postIndex := iNdEx + intStringLen
   599  			if postIndex < 0 {
   600  				return ErrInvalidLengthScheduler
   601  			}
   602  			if postIndex > l {
   603  				return io.ErrUnexpectedEOF
   604  			}
   605  			m.PlanFile = string(dAtA[iNdEx:postIndex])
   606  			iNdEx = postIndex
   607  		case 2:
   608  			if wireType != 2 {
   609  				return fmt.Errorf("proto: wrong wireType = %d for field ProgressFile", wireType)
   610  			}
   611  			var stringLen uint64
   612  			for shift := uint(0); ; shift += 7 {
   613  				if shift >= 64 {
   614  					return ErrIntOverflowScheduler
   615  				}
   616  				if iNdEx >= l {
   617  					return io.ErrUnexpectedEOF
   618  				}
   619  				b := dAtA[iNdEx]
   620  				iNdEx++
   621  				stringLen |= uint64(b&0x7F) << shift
   622  				if b < 0x80 {
   623  					break
   624  				}
   625  			}
   626  			intStringLen := int(stringLen)
   627  			if intStringLen < 0 {
   628  				return ErrInvalidLengthScheduler
   629  			}
   630  			postIndex := iNdEx + intStringLen
   631  			if postIndex < 0 {
   632  				return ErrInvalidLengthScheduler
   633  			}
   634  			if postIndex > l {
   635  				return io.ErrUnexpectedEOF
   636  			}
   637  			m.ProgressFile = string(dAtA[iNdEx:postIndex])
   638  			iNdEx = postIndex
   639  		default:
   640  			iNdEx = preIndex
   641  			skippy, err := skipScheduler(dAtA[iNdEx:])
   642  			if err != nil {
   643  				return err
   644  			}
   645  			if skippy < 0 {
   646  				return ErrInvalidLengthScheduler
   647  			}
   648  			if (iNdEx + skippy) < 0 {
   649  				return ErrInvalidLengthScheduler
   650  			}
   651  			if (iNdEx + skippy) > l {
   652  				return io.ErrUnexpectedEOF
   653  			}
   654  			iNdEx += skippy
   655  		}
   656  	}
   657  
   658  	if iNdEx > l {
   659  		return io.ErrUnexpectedEOF
   660  	}
   661  	return nil
   662  }
   663  func skipScheduler(dAtA []byte) (n int, err error) {
   664  	l := len(dAtA)
   665  	iNdEx := 0
   666  	for iNdEx < l {
   667  		var wire uint64
   668  		for shift := uint(0); ; shift += 7 {
   669  			if shift >= 64 {
   670  				return 0, ErrIntOverflowScheduler
   671  			}
   672  			if iNdEx >= l {
   673  				return 0, io.ErrUnexpectedEOF
   674  			}
   675  			b := dAtA[iNdEx]
   676  			iNdEx++
   677  			wire |= (uint64(b) & 0x7F) << shift
   678  			if b < 0x80 {
   679  				break
   680  			}
   681  		}
   682  		wireType := int(wire & 0x7)
   683  		switch wireType {
   684  		case 0:
   685  			for shift := uint(0); ; shift += 7 {
   686  				if shift >= 64 {
   687  					return 0, ErrIntOverflowScheduler
   688  				}
   689  				if iNdEx >= l {
   690  					return 0, io.ErrUnexpectedEOF
   691  				}
   692  				iNdEx++
   693  				if dAtA[iNdEx-1] < 0x80 {
   694  					break
   695  				}
   696  			}
   697  			return iNdEx, nil
   698  		case 1:
   699  			iNdEx += 8
   700  			return iNdEx, nil
   701  		case 2:
   702  			var length int
   703  			for shift := uint(0); ; shift += 7 {
   704  				if shift >= 64 {
   705  					return 0, ErrIntOverflowScheduler
   706  				}
   707  				if iNdEx >= l {
   708  					return 0, io.ErrUnexpectedEOF
   709  				}
   710  				b := dAtA[iNdEx]
   711  				iNdEx++
   712  				length |= (int(b) & 0x7F) << shift
   713  				if b < 0x80 {
   714  					break
   715  				}
   716  			}
   717  			if length < 0 {
   718  				return 0, ErrInvalidLengthScheduler
   719  			}
   720  			iNdEx += length
   721  			if iNdEx < 0 {
   722  				return 0, ErrInvalidLengthScheduler
   723  			}
   724  			return iNdEx, nil
   725  		case 3:
   726  			for {
   727  				var innerWire uint64
   728  				var start int = iNdEx
   729  				for shift := uint(0); ; shift += 7 {
   730  					if shift >= 64 {
   731  						return 0, ErrIntOverflowScheduler
   732  					}
   733  					if iNdEx >= l {
   734  						return 0, io.ErrUnexpectedEOF
   735  					}
   736  					b := dAtA[iNdEx]
   737  					iNdEx++
   738  					innerWire |= (uint64(b) & 0x7F) << shift
   739  					if b < 0x80 {
   740  						break
   741  					}
   742  				}
   743  				innerWireType := int(innerWire & 0x7)
   744  				if innerWireType == 4 {
   745  					break
   746  				}
   747  				next, err := skipScheduler(dAtA[start:])
   748  				if err != nil {
   749  					return 0, err
   750  				}
   751  				iNdEx = start + next
   752  				if iNdEx < 0 {
   753  					return 0, ErrInvalidLengthScheduler
   754  				}
   755  			}
   756  			return iNdEx, nil
   757  		case 4:
   758  			return iNdEx, nil
   759  		case 5:
   760  			iNdEx += 4
   761  			return iNdEx, nil
   762  		default:
   763  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   764  		}
   765  	}
   766  	panic("unreachable")
   767  }
   768  
   769  var (
   770  	ErrInvalidLengthScheduler = fmt.Errorf("proto: negative length found during unmarshaling")
   771  	ErrIntOverflowScheduler   = fmt.Errorf("proto: integer overflow")
   772  )