github.com/m3db/m3@v1.5.0/src/cluster/generated/proto/changesettest/changesettest.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: github.com/m3db/m3/src/cluster/generated/proto/changesettest/changesettest.proto
     3  
     4  // Copyright (c) 2018 Uber Technologies, Inc.
     5  //
     6  // Permission is hereby granted, free of charge, to any person obtaining a copy
     7  // of this software and associated documentation files (the "Software"), to deal
     8  // in the Software without restriction, including without limitation the rights
     9  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    10  // copies of the Software, and to permit persons to whom the Software is
    11  // furnished to do so, subject to the following conditions:
    12  //
    13  // The above copyright notice and this permission notice shall be included in
    14  // all copies or substantial portions of the Software.
    15  //
    16  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    17  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    18  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    19  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    20  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    21  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    22  // THE SOFTWARE.
    23  
    24  /*
    25  Package changesettest is a generated protocol buffer package.
    26  
    27  It is generated from these files:
    28  	github.com/m3db/m3/src/cluster/generated/proto/changesettest/changesettest.proto
    29  
    30  It has these top-level messages:
    31  	Config
    32  	Changes
    33  */
    34  package changesettest
    35  
    36  import proto "github.com/gogo/protobuf/proto"
    37  import fmt "fmt"
    38  import math "math"
    39  
    40  import io "io"
    41  
    42  // Reference imports to suppress errors if they are not otherwise used.
    43  var _ = proto.Marshal
    44  var _ = fmt.Errorf
    45  var _ = math.Inf
    46  
    47  // This is a compile-time assertion to ensure that this generated file
    48  // is compatible with the proto package it is being compiled against.
    49  // A compilation error at this line likely means your copy of the
    50  // proto package needs to be updated.
    51  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    52  
    53  type Config struct {
    54  	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
    55  }
    56  
    57  func (m *Config) Reset()                    { *m = Config{} }
    58  func (m *Config) String() string            { return proto.CompactTextString(m) }
    59  func (*Config) ProtoMessage()               {}
    60  func (*Config) Descriptor() ([]byte, []int) { return fileDescriptorChangesettest, []int{0} }
    61  
    62  func (m *Config) GetText() string {
    63  	if m != nil {
    64  		return m.Text
    65  	}
    66  	return ""
    67  }
    68  
    69  type Changes struct {
    70  	Lines []string `protobuf:"bytes,1,rep,name=lines" json:"lines,omitempty"`
    71  }
    72  
    73  func (m *Changes) Reset()                    { *m = Changes{} }
    74  func (m *Changes) String() string            { return proto.CompactTextString(m) }
    75  func (*Changes) ProtoMessage()               {}
    76  func (*Changes) Descriptor() ([]byte, []int) { return fileDescriptorChangesettest, []int{1} }
    77  
    78  func (m *Changes) GetLines() []string {
    79  	if m != nil {
    80  		return m.Lines
    81  	}
    82  	return nil
    83  }
    84  
    85  func init() {
    86  	proto.RegisterType((*Config)(nil), "changesettest.Config")
    87  	proto.RegisterType((*Changes)(nil), "changesettest.Changes")
    88  }
    89  func (m *Config) Marshal() (dAtA []byte, err error) {
    90  	size := m.Size()
    91  	dAtA = make([]byte, size)
    92  	n, err := m.MarshalTo(dAtA)
    93  	if err != nil {
    94  		return nil, err
    95  	}
    96  	return dAtA[:n], nil
    97  }
    98  
    99  func (m *Config) MarshalTo(dAtA []byte) (int, error) {
   100  	var i int
   101  	_ = i
   102  	var l int
   103  	_ = l
   104  	if len(m.Text) > 0 {
   105  		dAtA[i] = 0xa
   106  		i++
   107  		i = encodeVarintChangesettest(dAtA, i, uint64(len(m.Text)))
   108  		i += copy(dAtA[i:], m.Text)
   109  	}
   110  	return i, nil
   111  }
   112  
   113  func (m *Changes) Marshal() (dAtA []byte, err error) {
   114  	size := m.Size()
   115  	dAtA = make([]byte, size)
   116  	n, err := m.MarshalTo(dAtA)
   117  	if err != nil {
   118  		return nil, err
   119  	}
   120  	return dAtA[:n], nil
   121  }
   122  
   123  func (m *Changes) MarshalTo(dAtA []byte) (int, error) {
   124  	var i int
   125  	_ = i
   126  	var l int
   127  	_ = l
   128  	if len(m.Lines) > 0 {
   129  		for _, s := range m.Lines {
   130  			dAtA[i] = 0xa
   131  			i++
   132  			l = len(s)
   133  			for l >= 1<<7 {
   134  				dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
   135  				l >>= 7
   136  				i++
   137  			}
   138  			dAtA[i] = uint8(l)
   139  			i++
   140  			i += copy(dAtA[i:], s)
   141  		}
   142  	}
   143  	return i, nil
   144  }
   145  
   146  func encodeVarintChangesettest(dAtA []byte, offset int, v uint64) int {
   147  	for v >= 1<<7 {
   148  		dAtA[offset] = uint8(v&0x7f | 0x80)
   149  		v >>= 7
   150  		offset++
   151  	}
   152  	dAtA[offset] = uint8(v)
   153  	return offset + 1
   154  }
   155  func (m *Config) Size() (n int) {
   156  	var l int
   157  	_ = l
   158  	l = len(m.Text)
   159  	if l > 0 {
   160  		n += 1 + l + sovChangesettest(uint64(l))
   161  	}
   162  	return n
   163  }
   164  
   165  func (m *Changes) Size() (n int) {
   166  	var l int
   167  	_ = l
   168  	if len(m.Lines) > 0 {
   169  		for _, s := range m.Lines {
   170  			l = len(s)
   171  			n += 1 + l + sovChangesettest(uint64(l))
   172  		}
   173  	}
   174  	return n
   175  }
   176  
   177  func sovChangesettest(x uint64) (n int) {
   178  	for {
   179  		n++
   180  		x >>= 7
   181  		if x == 0 {
   182  			break
   183  		}
   184  	}
   185  	return n
   186  }
   187  func sozChangesettest(x uint64) (n int) {
   188  	return sovChangesettest(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   189  }
   190  func (m *Config) Unmarshal(dAtA []byte) error {
   191  	l := len(dAtA)
   192  	iNdEx := 0
   193  	for iNdEx < l {
   194  		preIndex := iNdEx
   195  		var wire uint64
   196  		for shift := uint(0); ; shift += 7 {
   197  			if shift >= 64 {
   198  				return ErrIntOverflowChangesettest
   199  			}
   200  			if iNdEx >= l {
   201  				return io.ErrUnexpectedEOF
   202  			}
   203  			b := dAtA[iNdEx]
   204  			iNdEx++
   205  			wire |= (uint64(b) & 0x7F) << shift
   206  			if b < 0x80 {
   207  				break
   208  			}
   209  		}
   210  		fieldNum := int32(wire >> 3)
   211  		wireType := int(wire & 0x7)
   212  		if wireType == 4 {
   213  			return fmt.Errorf("proto: Config: wiretype end group for non-group")
   214  		}
   215  		if fieldNum <= 0 {
   216  			return fmt.Errorf("proto: Config: illegal tag %d (wire type %d)", fieldNum, wire)
   217  		}
   218  		switch fieldNum {
   219  		case 1:
   220  			if wireType != 2 {
   221  				return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType)
   222  			}
   223  			var stringLen uint64
   224  			for shift := uint(0); ; shift += 7 {
   225  				if shift >= 64 {
   226  					return ErrIntOverflowChangesettest
   227  				}
   228  				if iNdEx >= l {
   229  					return io.ErrUnexpectedEOF
   230  				}
   231  				b := dAtA[iNdEx]
   232  				iNdEx++
   233  				stringLen |= (uint64(b) & 0x7F) << shift
   234  				if b < 0x80 {
   235  					break
   236  				}
   237  			}
   238  			intStringLen := int(stringLen)
   239  			if intStringLen < 0 {
   240  				return ErrInvalidLengthChangesettest
   241  			}
   242  			postIndex := iNdEx + intStringLen
   243  			if postIndex > l {
   244  				return io.ErrUnexpectedEOF
   245  			}
   246  			m.Text = string(dAtA[iNdEx:postIndex])
   247  			iNdEx = postIndex
   248  		default:
   249  			iNdEx = preIndex
   250  			skippy, err := skipChangesettest(dAtA[iNdEx:])
   251  			if err != nil {
   252  				return err
   253  			}
   254  			if skippy < 0 {
   255  				return ErrInvalidLengthChangesettest
   256  			}
   257  			if (iNdEx + skippy) > l {
   258  				return io.ErrUnexpectedEOF
   259  			}
   260  			iNdEx += skippy
   261  		}
   262  	}
   263  
   264  	if iNdEx > l {
   265  		return io.ErrUnexpectedEOF
   266  	}
   267  	return nil
   268  }
   269  func (m *Changes) Unmarshal(dAtA []byte) error {
   270  	l := len(dAtA)
   271  	iNdEx := 0
   272  	for iNdEx < l {
   273  		preIndex := iNdEx
   274  		var wire uint64
   275  		for shift := uint(0); ; shift += 7 {
   276  			if shift >= 64 {
   277  				return ErrIntOverflowChangesettest
   278  			}
   279  			if iNdEx >= l {
   280  				return io.ErrUnexpectedEOF
   281  			}
   282  			b := dAtA[iNdEx]
   283  			iNdEx++
   284  			wire |= (uint64(b) & 0x7F) << shift
   285  			if b < 0x80 {
   286  				break
   287  			}
   288  		}
   289  		fieldNum := int32(wire >> 3)
   290  		wireType := int(wire & 0x7)
   291  		if wireType == 4 {
   292  			return fmt.Errorf("proto: Changes: wiretype end group for non-group")
   293  		}
   294  		if fieldNum <= 0 {
   295  			return fmt.Errorf("proto: Changes: illegal tag %d (wire type %d)", fieldNum, wire)
   296  		}
   297  		switch fieldNum {
   298  		case 1:
   299  			if wireType != 2 {
   300  				return fmt.Errorf("proto: wrong wireType = %d for field Lines", wireType)
   301  			}
   302  			var stringLen uint64
   303  			for shift := uint(0); ; shift += 7 {
   304  				if shift >= 64 {
   305  					return ErrIntOverflowChangesettest
   306  				}
   307  				if iNdEx >= l {
   308  					return io.ErrUnexpectedEOF
   309  				}
   310  				b := dAtA[iNdEx]
   311  				iNdEx++
   312  				stringLen |= (uint64(b) & 0x7F) << shift
   313  				if b < 0x80 {
   314  					break
   315  				}
   316  			}
   317  			intStringLen := int(stringLen)
   318  			if intStringLen < 0 {
   319  				return ErrInvalidLengthChangesettest
   320  			}
   321  			postIndex := iNdEx + intStringLen
   322  			if postIndex > l {
   323  				return io.ErrUnexpectedEOF
   324  			}
   325  			m.Lines = append(m.Lines, string(dAtA[iNdEx:postIndex]))
   326  			iNdEx = postIndex
   327  		default:
   328  			iNdEx = preIndex
   329  			skippy, err := skipChangesettest(dAtA[iNdEx:])
   330  			if err != nil {
   331  				return err
   332  			}
   333  			if skippy < 0 {
   334  				return ErrInvalidLengthChangesettest
   335  			}
   336  			if (iNdEx + skippy) > l {
   337  				return io.ErrUnexpectedEOF
   338  			}
   339  			iNdEx += skippy
   340  		}
   341  	}
   342  
   343  	if iNdEx > l {
   344  		return io.ErrUnexpectedEOF
   345  	}
   346  	return nil
   347  }
   348  func skipChangesettest(dAtA []byte) (n int, err error) {
   349  	l := len(dAtA)
   350  	iNdEx := 0
   351  	for iNdEx < l {
   352  		var wire uint64
   353  		for shift := uint(0); ; shift += 7 {
   354  			if shift >= 64 {
   355  				return 0, ErrIntOverflowChangesettest
   356  			}
   357  			if iNdEx >= l {
   358  				return 0, io.ErrUnexpectedEOF
   359  			}
   360  			b := dAtA[iNdEx]
   361  			iNdEx++
   362  			wire |= (uint64(b) & 0x7F) << shift
   363  			if b < 0x80 {
   364  				break
   365  			}
   366  		}
   367  		wireType := int(wire & 0x7)
   368  		switch wireType {
   369  		case 0:
   370  			for shift := uint(0); ; shift += 7 {
   371  				if shift >= 64 {
   372  					return 0, ErrIntOverflowChangesettest
   373  				}
   374  				if iNdEx >= l {
   375  					return 0, io.ErrUnexpectedEOF
   376  				}
   377  				iNdEx++
   378  				if dAtA[iNdEx-1] < 0x80 {
   379  					break
   380  				}
   381  			}
   382  			return iNdEx, nil
   383  		case 1:
   384  			iNdEx += 8
   385  			return iNdEx, nil
   386  		case 2:
   387  			var length int
   388  			for shift := uint(0); ; shift += 7 {
   389  				if shift >= 64 {
   390  					return 0, ErrIntOverflowChangesettest
   391  				}
   392  				if iNdEx >= l {
   393  					return 0, io.ErrUnexpectedEOF
   394  				}
   395  				b := dAtA[iNdEx]
   396  				iNdEx++
   397  				length |= (int(b) & 0x7F) << shift
   398  				if b < 0x80 {
   399  					break
   400  				}
   401  			}
   402  			iNdEx += length
   403  			if length < 0 {
   404  				return 0, ErrInvalidLengthChangesettest
   405  			}
   406  			return iNdEx, nil
   407  		case 3:
   408  			for {
   409  				var innerWire uint64
   410  				var start int = iNdEx
   411  				for shift := uint(0); ; shift += 7 {
   412  					if shift >= 64 {
   413  						return 0, ErrIntOverflowChangesettest
   414  					}
   415  					if iNdEx >= l {
   416  						return 0, io.ErrUnexpectedEOF
   417  					}
   418  					b := dAtA[iNdEx]
   419  					iNdEx++
   420  					innerWire |= (uint64(b) & 0x7F) << shift
   421  					if b < 0x80 {
   422  						break
   423  					}
   424  				}
   425  				innerWireType := int(innerWire & 0x7)
   426  				if innerWireType == 4 {
   427  					break
   428  				}
   429  				next, err := skipChangesettest(dAtA[start:])
   430  				if err != nil {
   431  					return 0, err
   432  				}
   433  				iNdEx = start + next
   434  			}
   435  			return iNdEx, nil
   436  		case 4:
   437  			return iNdEx, nil
   438  		case 5:
   439  			iNdEx += 4
   440  			return iNdEx, nil
   441  		default:
   442  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   443  		}
   444  	}
   445  	panic("unreachable")
   446  }
   447  
   448  var (
   449  	ErrInvalidLengthChangesettest = fmt.Errorf("proto: negative length found during unmarshaling")
   450  	ErrIntOverflowChangesettest   = fmt.Errorf("proto: integer overflow")
   451  )
   452  
   453  func init() {
   454  	proto.RegisterFile("github.com/m3db/m3/src/cluster/generated/proto/changesettest/changesettest.proto", fileDescriptorChangesettest)
   455  }
   456  
   457  var fileDescriptorChangesettest = []byte{
   458  	// 171 bytes of a gzipped FileDescriptorProto
   459  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x0a, 0x48, 0xcf, 0x2c, 0xc9,
   460  	0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0xcf, 0x35, 0x4e, 0x49, 0xd2, 0xcf, 0x35, 0xd6, 0x2f,
   461  	0x2e, 0x4a, 0xd6, 0x4f, 0xce, 0x29, 0x2d, 0x2e, 0x49, 0x2d, 0xd2, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d,
   462  	0x4a, 0x2c, 0x49, 0x4d, 0xd1, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x4f, 0xce, 0x48, 0xcc, 0x4b,
   463  	0x4f, 0x2d, 0x4e, 0x2d, 0x29, 0x49, 0x2d, 0x2e, 0x41, 0xe5, 0xe9, 0x81, 0x55, 0x08, 0xf1, 0xa2,
   464  	0x08, 0x2a, 0xc9, 0x70, 0xb1, 0x39, 0xe7, 0xe7, 0xa5, 0x65, 0xa6, 0x0b, 0x09, 0x71, 0xb1, 0x94,
   465  	0xa4, 0x56, 0x94, 0x48, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x4a, 0xf2, 0x5c, 0xec,
   466  	0xce, 0x10, 0xe5, 0x42, 0x22, 0x5c, 0xac, 0x39, 0x99, 0x79, 0xa9, 0xc5, 0x12, 0x8c, 0x0a, 0xcc,
   467  	0x1a, 0x9c, 0x41, 0x10, 0x8e, 0x93, 0xc0, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e,
   468  	0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0x43, 0x12, 0x1b, 0xd8, 0x1a, 0x63, 0x40, 0x00, 0x00,
   469  	0x00, 0xff, 0xff, 0x86, 0xed, 0x1a, 0xf5, 0xba, 0x00, 0x00, 0x00,
   470  }