github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/roachpb/io-formats.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: roachpb/io-formats.proto
     3  
     4  package roachpb
     5  
     6  import proto "github.com/gogo/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  
    10  import io "io"
    11  
    12  // Reference imports to suppress errors if they are not otherwise used.
    13  var _ = proto.Marshal
    14  var _ = fmt.Errorf
    15  var _ = math.Inf
    16  
    17  // This is a compile-time assertion to ensure that this generated file
    18  // is compatible with the proto package it is being compiled against.
    19  // A compilation error at this line likely means your copy of the
    20  // proto package needs to be updated.
    21  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    22  
    23  type IOFileFormat_FileFormat int32
    24  
    25  const (
    26  	IOFileFormat_Unknown      IOFileFormat_FileFormat = 0
    27  	IOFileFormat_CSV          IOFileFormat_FileFormat = 1
    28  	IOFileFormat_MysqlOutfile IOFileFormat_FileFormat = 2
    29  	IOFileFormat_Mysqldump    IOFileFormat_FileFormat = 3
    30  	IOFileFormat_PgCopy       IOFileFormat_FileFormat = 4
    31  	IOFileFormat_PgDump       IOFileFormat_FileFormat = 5
    32  	IOFileFormat_Avro         IOFileFormat_FileFormat = 6
    33  )
    34  
    35  var IOFileFormat_FileFormat_name = map[int32]string{
    36  	0: "Unknown",
    37  	1: "CSV",
    38  	2: "MysqlOutfile",
    39  	3: "Mysqldump",
    40  	4: "PgCopy",
    41  	5: "PgDump",
    42  	6: "Avro",
    43  }
    44  var IOFileFormat_FileFormat_value = map[string]int32{
    45  	"Unknown":      0,
    46  	"CSV":          1,
    47  	"MysqlOutfile": 2,
    48  	"Mysqldump":    3,
    49  	"PgCopy":       4,
    50  	"PgDump":       5,
    51  	"Avro":         6,
    52  }
    53  
    54  func (x IOFileFormat_FileFormat) Enum() *IOFileFormat_FileFormat {
    55  	p := new(IOFileFormat_FileFormat)
    56  	*p = x
    57  	return p
    58  }
    59  func (x IOFileFormat_FileFormat) String() string {
    60  	return proto.EnumName(IOFileFormat_FileFormat_name, int32(x))
    61  }
    62  func (x *IOFileFormat_FileFormat) UnmarshalJSON(data []byte) error {
    63  	value, err := proto.UnmarshalJSONEnum(IOFileFormat_FileFormat_value, data, "IOFileFormat_FileFormat")
    64  	if err != nil {
    65  		return err
    66  	}
    67  	*x = IOFileFormat_FileFormat(value)
    68  	return nil
    69  }
    70  func (IOFileFormat_FileFormat) EnumDescriptor() ([]byte, []int) {
    71  	return fileDescriptor_io_formats_e2ffeab7714b237d, []int{0, 0}
    72  }
    73  
    74  type IOFileFormat_Compression int32
    75  
    76  const (
    77  	IOFileFormat_Auto IOFileFormat_Compression = 0
    78  	IOFileFormat_None IOFileFormat_Compression = 1
    79  	IOFileFormat_Gzip IOFileFormat_Compression = 2
    80  	IOFileFormat_Bzip IOFileFormat_Compression = 3
    81  )
    82  
    83  var IOFileFormat_Compression_name = map[int32]string{
    84  	0: "Auto",
    85  	1: "None",
    86  	2: "Gzip",
    87  	3: "Bzip",
    88  }
    89  var IOFileFormat_Compression_value = map[string]int32{
    90  	"Auto": 0,
    91  	"None": 1,
    92  	"Gzip": 2,
    93  	"Bzip": 3,
    94  }
    95  
    96  func (x IOFileFormat_Compression) Enum() *IOFileFormat_Compression {
    97  	p := new(IOFileFormat_Compression)
    98  	*p = x
    99  	return p
   100  }
   101  func (x IOFileFormat_Compression) String() string {
   102  	return proto.EnumName(IOFileFormat_Compression_name, int32(x))
   103  }
   104  func (x *IOFileFormat_Compression) UnmarshalJSON(data []byte) error {
   105  	value, err := proto.UnmarshalJSONEnum(IOFileFormat_Compression_value, data, "IOFileFormat_Compression")
   106  	if err != nil {
   107  		return err
   108  	}
   109  	*x = IOFileFormat_Compression(value)
   110  	return nil
   111  }
   112  func (IOFileFormat_Compression) EnumDescriptor() ([]byte, []int) {
   113  	return fileDescriptor_io_formats_e2ffeab7714b237d, []int{0, 1}
   114  }
   115  
   116  type MySQLOutfileOptions_Enclose int32
   117  
   118  const (
   119  	MySQLOutfileOptions_Never    MySQLOutfileOptions_Enclose = 0
   120  	MySQLOutfileOptions_Always   MySQLOutfileOptions_Enclose = 1
   121  	MySQLOutfileOptions_Optional MySQLOutfileOptions_Enclose = 2
   122  )
   123  
   124  var MySQLOutfileOptions_Enclose_name = map[int32]string{
   125  	0: "Never",
   126  	1: "Always",
   127  	2: "Optional",
   128  }
   129  var MySQLOutfileOptions_Enclose_value = map[string]int32{
   130  	"Never":    0,
   131  	"Always":   1,
   132  	"Optional": 2,
   133  }
   134  
   135  func (x MySQLOutfileOptions_Enclose) Enum() *MySQLOutfileOptions_Enclose {
   136  	p := new(MySQLOutfileOptions_Enclose)
   137  	*p = x
   138  	return p
   139  }
   140  func (x MySQLOutfileOptions_Enclose) String() string {
   141  	return proto.EnumName(MySQLOutfileOptions_Enclose_name, int32(x))
   142  }
   143  func (x *MySQLOutfileOptions_Enclose) UnmarshalJSON(data []byte) error {
   144  	value, err := proto.UnmarshalJSONEnum(MySQLOutfileOptions_Enclose_value, data, "MySQLOutfileOptions_Enclose")
   145  	if err != nil {
   146  		return err
   147  	}
   148  	*x = MySQLOutfileOptions_Enclose(value)
   149  	return nil
   150  }
   151  func (MySQLOutfileOptions_Enclose) EnumDescriptor() ([]byte, []int) {
   152  	return fileDescriptor_io_formats_e2ffeab7714b237d, []int{2, 0}
   153  }
   154  
   155  type AvroOptions_Format int32
   156  
   157  const (
   158  	// Avro object container file input
   159  	AvroOptions_OCF AvroOptions_Format = 0
   160  	// Input file contains avro binary encoded records; one record per line
   161  	AvroOptions_BIN_RECORDS AvroOptions_Format = 1
   162  	// Input file contains avro JSON encoded records; one record per line
   163  	AvroOptions_JSON_RECORDS AvroOptions_Format = 2
   164  )
   165  
   166  var AvroOptions_Format_name = map[int32]string{
   167  	0: "OCF",
   168  	1: "BIN_RECORDS",
   169  	2: "JSON_RECORDS",
   170  }
   171  var AvroOptions_Format_value = map[string]int32{
   172  	"OCF":          0,
   173  	"BIN_RECORDS":  1,
   174  	"JSON_RECORDS": 2,
   175  }
   176  
   177  func (x AvroOptions_Format) Enum() *AvroOptions_Format {
   178  	p := new(AvroOptions_Format)
   179  	*p = x
   180  	return p
   181  }
   182  func (x AvroOptions_Format) String() string {
   183  	return proto.EnumName(AvroOptions_Format_name, int32(x))
   184  }
   185  func (x *AvroOptions_Format) UnmarshalJSON(data []byte) error {
   186  	value, err := proto.UnmarshalJSONEnum(AvroOptions_Format_value, data, "AvroOptions_Format")
   187  	if err != nil {
   188  		return err
   189  	}
   190  	*x = AvroOptions_Format(value)
   191  	return nil
   192  }
   193  func (AvroOptions_Format) EnumDescriptor() ([]byte, []int) {
   194  	return fileDescriptor_io_formats_e2ffeab7714b237d, []int{5, 0}
   195  }
   196  
   197  type IOFileFormat struct {
   198  	Format      IOFileFormat_FileFormat  `protobuf:"varint,1,opt,name=format,enum=cockroach.roachpb.IOFileFormat_FileFormat" json:"format"`
   199  	Csv         CSVOptions               `protobuf:"bytes,2,opt,name=csv" json:"csv"`
   200  	MysqlOut    MySQLOutfileOptions      `protobuf:"bytes,3,opt,name=mysql_out,json=mysqlOut" json:"mysql_out"`
   201  	PgCopy      PgCopyOptions            `protobuf:"bytes,4,opt,name=pg_copy,json=pgCopy" json:"pg_copy"`
   202  	PgDump      PgDumpOptions            `protobuf:"bytes,6,opt,name=pg_dump,json=pgDump" json:"pg_dump"`
   203  	Avro        AvroOptions              `protobuf:"bytes,8,opt,name=avro" json:"avro"`
   204  	Compression IOFileFormat_Compression `protobuf:"varint,5,opt,name=compression,enum=cockroach.roachpb.IOFileFormat_Compression" json:"compression"`
   205  	// If true, don't abort on failures but instead save the offending row and keep on.
   206  	SaveRejected bool `protobuf:"varint,7,opt,name=save_rejected,json=saveRejected" json:"save_rejected"`
   207  }
   208  
   209  func (m *IOFileFormat) Reset()         { *m = IOFileFormat{} }
   210  func (m *IOFileFormat) String() string { return proto.CompactTextString(m) }
   211  func (*IOFileFormat) ProtoMessage()    {}
   212  func (*IOFileFormat) Descriptor() ([]byte, []int) {
   213  	return fileDescriptor_io_formats_e2ffeab7714b237d, []int{0}
   214  }
   215  func (m *IOFileFormat) XXX_Unmarshal(b []byte) error {
   216  	return m.Unmarshal(b)
   217  }
   218  func (m *IOFileFormat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   219  	b = b[:cap(b)]
   220  	n, err := m.MarshalTo(b)
   221  	if err != nil {
   222  		return nil, err
   223  	}
   224  	return b[:n], nil
   225  }
   226  func (dst *IOFileFormat) XXX_Merge(src proto.Message) {
   227  	xxx_messageInfo_IOFileFormat.Merge(dst, src)
   228  }
   229  func (m *IOFileFormat) XXX_Size() int {
   230  	return m.Size()
   231  }
   232  func (m *IOFileFormat) XXX_DiscardUnknown() {
   233  	xxx_messageInfo_IOFileFormat.DiscardUnknown(m)
   234  }
   235  
   236  var xxx_messageInfo_IOFileFormat proto.InternalMessageInfo
   237  
   238  // CSVOptions describe the format of csv data (delimiter, comment, etc).
   239  type CSVOptions struct {
   240  	// comma is an delimiter used by the CSV file; defaults to a comma.
   241  	Comma int32 `protobuf:"varint,1,opt,name=comma" json:"comma"`
   242  	// comment is an comment rune; zero value means comments not enabled.
   243  	Comment int32 `protobuf:"varint,2,opt,name=comment" json:"comment"`
   244  	// null_encoding, if not nil, is the string which identifies a NULL. Can be the empty string.
   245  	NullEncoding *string `protobuf:"bytes,3,opt,name=null_encoding,json=nullEncoding" json:"null_encoding,omitempty"`
   246  	// skip the first N lines of the input (e.g. to ignore column headers) when reading.
   247  	Skip uint32 `protobuf:"varint,4,opt,name=skip" json:"skip"`
   248  	// If strict_quotes is true, a quote may NOT appear in an unquoted field and a
   249  	// non-doubled quote may NOT appear in a quoted field.
   250  	StrictQuotes bool `protobuf:"varint,5,opt,name=strict_quotes,json=strictQuotes" json:"strict_quotes"`
   251  }
   252  
   253  func (m *CSVOptions) Reset()         { *m = CSVOptions{} }
   254  func (m *CSVOptions) String() string { return proto.CompactTextString(m) }
   255  func (*CSVOptions) ProtoMessage()    {}
   256  func (*CSVOptions) Descriptor() ([]byte, []int) {
   257  	return fileDescriptor_io_formats_e2ffeab7714b237d, []int{1}
   258  }
   259  func (m *CSVOptions) XXX_Unmarshal(b []byte) error {
   260  	return m.Unmarshal(b)
   261  }
   262  func (m *CSVOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   263  	b = b[:cap(b)]
   264  	n, err := m.MarshalTo(b)
   265  	if err != nil {
   266  		return nil, err
   267  	}
   268  	return b[:n], nil
   269  }
   270  func (dst *CSVOptions) XXX_Merge(src proto.Message) {
   271  	xxx_messageInfo_CSVOptions.Merge(dst, src)
   272  }
   273  func (m *CSVOptions) XXX_Size() int {
   274  	return m.Size()
   275  }
   276  func (m *CSVOptions) XXX_DiscardUnknown() {
   277  	xxx_messageInfo_CSVOptions.DiscardUnknown(m)
   278  }
   279  
   280  var xxx_messageInfo_CSVOptions proto.InternalMessageInfo
   281  
   282  // MySQLOutfileOptions describe the format of mysql's outfile.
   283  type MySQLOutfileOptions struct {
   284  	// row_separator is the delimiter between rows (mysql's --rows-terminated-by)
   285  	RowSeparator int32 `protobuf:"varint,1,opt,name=row_separator,json=rowSeparator" json:"row_separator"`
   286  	// field_separator is the delimiter between fields (mysql's --fields-terminated-by)
   287  	FieldSeparator int32 `protobuf:"varint,2,opt,name=field_separator,json=fieldSeparator" json:"field_separator"`
   288  	// enclose is the enclosing (quoting) behavior (i.e. if specified and if optional).
   289  	Enclose MySQLOutfileOptions_Enclose `protobuf:"varint,3,opt,name=enclose,enum=cockroach.roachpb.MySQLOutfileOptions_Enclose" json:"enclose"`
   290  	// encloser is the character used to enclose (qupte) fields (--fields-enclosed-by)
   291  	Encloser int32 `protobuf:"varint,4,opt,name=encloser" json:"encloser"`
   292  	// has_escape indicates that an escape character is set (mysql's default is not).
   293  	HasEscape bool `protobuf:"varint,5,opt,name=has_escape,json=hasEscape" json:"has_escape"`
   294  	// escape is the character used to prefix the other delimiters (--fields-escaped-by)
   295  	Escape int32 `protobuf:"varint,6,opt,name=escape" json:"escape"`
   296  	// skip the first N lines of the input (e.g. to ignore column headers) when reading.
   297  	Skip uint32 `protobuf:"varint,7,opt,name=skip" json:"skip"`
   298  	// null_encoding, if not nil, is the string which identifies a NULL. Can be the empty string.
   299  	NullEncoding *string `protobuf:"bytes,8,opt,name=null_encoding,json=nullEncoding" json:"null_encoding,omitempty"`
   300  }
   301  
   302  func (m *MySQLOutfileOptions) Reset()         { *m = MySQLOutfileOptions{} }
   303  func (m *MySQLOutfileOptions) String() string { return proto.CompactTextString(m) }
   304  func (*MySQLOutfileOptions) ProtoMessage()    {}
   305  func (*MySQLOutfileOptions) Descriptor() ([]byte, []int) {
   306  	return fileDescriptor_io_formats_e2ffeab7714b237d, []int{2}
   307  }
   308  func (m *MySQLOutfileOptions) XXX_Unmarshal(b []byte) error {
   309  	return m.Unmarshal(b)
   310  }
   311  func (m *MySQLOutfileOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   312  	b = b[:cap(b)]
   313  	n, err := m.MarshalTo(b)
   314  	if err != nil {
   315  		return nil, err
   316  	}
   317  	return b[:n], nil
   318  }
   319  func (dst *MySQLOutfileOptions) XXX_Merge(src proto.Message) {
   320  	xxx_messageInfo_MySQLOutfileOptions.Merge(dst, src)
   321  }
   322  func (m *MySQLOutfileOptions) XXX_Size() int {
   323  	return m.Size()
   324  }
   325  func (m *MySQLOutfileOptions) XXX_DiscardUnknown() {
   326  	xxx_messageInfo_MySQLOutfileOptions.DiscardUnknown(m)
   327  }
   328  
   329  var xxx_messageInfo_MySQLOutfileOptions proto.InternalMessageInfo
   330  
   331  // PgCopyOptions describe the format of postgresql's COPY TO STDOUT.
   332  type PgCopyOptions struct {
   333  	// delimiter is the delimitor between columns (DELIMITER)
   334  	Delimiter int32 `protobuf:"varint,1,opt,name=delimiter" json:"delimiter"`
   335  	// null is the NULL value (NULL)
   336  	Null string `protobuf:"bytes,2,opt,name=null" json:"null"`
   337  	// maxRowSize is the maximum row size
   338  	MaxRowSize int32 `protobuf:"varint,3,opt,name=maxRowSize" json:"maxRowSize"`
   339  }
   340  
   341  func (m *PgCopyOptions) Reset()         { *m = PgCopyOptions{} }
   342  func (m *PgCopyOptions) String() string { return proto.CompactTextString(m) }
   343  func (*PgCopyOptions) ProtoMessage()    {}
   344  func (*PgCopyOptions) Descriptor() ([]byte, []int) {
   345  	return fileDescriptor_io_formats_e2ffeab7714b237d, []int{3}
   346  }
   347  func (m *PgCopyOptions) XXX_Unmarshal(b []byte) error {
   348  	return m.Unmarshal(b)
   349  }
   350  func (m *PgCopyOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   351  	b = b[:cap(b)]
   352  	n, err := m.MarshalTo(b)
   353  	if err != nil {
   354  		return nil, err
   355  	}
   356  	return b[:n], nil
   357  }
   358  func (dst *PgCopyOptions) XXX_Merge(src proto.Message) {
   359  	xxx_messageInfo_PgCopyOptions.Merge(dst, src)
   360  }
   361  func (m *PgCopyOptions) XXX_Size() int {
   362  	return m.Size()
   363  }
   364  func (m *PgCopyOptions) XXX_DiscardUnknown() {
   365  	xxx_messageInfo_PgCopyOptions.DiscardUnknown(m)
   366  }
   367  
   368  var xxx_messageInfo_PgCopyOptions proto.InternalMessageInfo
   369  
   370  // PgDumpOptions describe the format of postgresql's pg_dump.
   371  type PgDumpOptions struct {
   372  	// maxRowSize is the maximum row size
   373  	MaxRowSize int32 `protobuf:"varint,1,opt,name=maxRowSize" json:"maxRowSize"`
   374  }
   375  
   376  func (m *PgDumpOptions) Reset()         { *m = PgDumpOptions{} }
   377  func (m *PgDumpOptions) String() string { return proto.CompactTextString(m) }
   378  func (*PgDumpOptions) ProtoMessage()    {}
   379  func (*PgDumpOptions) Descriptor() ([]byte, []int) {
   380  	return fileDescriptor_io_formats_e2ffeab7714b237d, []int{4}
   381  }
   382  func (m *PgDumpOptions) XXX_Unmarshal(b []byte) error {
   383  	return m.Unmarshal(b)
   384  }
   385  func (m *PgDumpOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   386  	b = b[:cap(b)]
   387  	n, err := m.MarshalTo(b)
   388  	if err != nil {
   389  		return nil, err
   390  	}
   391  	return b[:n], nil
   392  }
   393  func (dst *PgDumpOptions) XXX_Merge(src proto.Message) {
   394  	xxx_messageInfo_PgDumpOptions.Merge(dst, src)
   395  }
   396  func (m *PgDumpOptions) XXX_Size() int {
   397  	return m.Size()
   398  }
   399  func (m *PgDumpOptions) XXX_DiscardUnknown() {
   400  	xxx_messageInfo_PgDumpOptions.DiscardUnknown(m)
   401  }
   402  
   403  var xxx_messageInfo_PgDumpOptions proto.InternalMessageInfo
   404  
   405  type AvroOptions struct {
   406  	Format AvroOptions_Format `protobuf:"varint,1,opt,name=format,enum=cockroach.roachpb.AvroOptions_Format" json:"format"`
   407  	// Strict mode import will reject avro records that do not have
   408  	// a one-to-one mapping to our target schema.
   409  	// The default is to ignore unknown avro fields, and to set any missing
   410  	// columns to null value if they were not set in the avro record.
   411  	StrictMode bool `protobuf:"varint,2,opt,name=strict_mode,json=strictMode" json:"strict_mode"`
   412  	// Applicable for records only.
   413  	SchemaJSON      string `protobuf:"bytes,3,opt,name=schemaJSON" json:"schemaJSON"`
   414  	MaxRecordSize   int32  `protobuf:"varint,4,opt,name=max_record_size,json=maxRecordSize" json:"max_record_size"`
   415  	RecordSeparator int32  `protobuf:"varint,5,opt,name=record_separator,json=recordSeparator" json:"record_separator"`
   416  }
   417  
   418  func (m *AvroOptions) Reset()         { *m = AvroOptions{} }
   419  func (m *AvroOptions) String() string { return proto.CompactTextString(m) }
   420  func (*AvroOptions) ProtoMessage()    {}
   421  func (*AvroOptions) Descriptor() ([]byte, []int) {
   422  	return fileDescriptor_io_formats_e2ffeab7714b237d, []int{5}
   423  }
   424  func (m *AvroOptions) XXX_Unmarshal(b []byte) error {
   425  	return m.Unmarshal(b)
   426  }
   427  func (m *AvroOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   428  	b = b[:cap(b)]
   429  	n, err := m.MarshalTo(b)
   430  	if err != nil {
   431  		return nil, err
   432  	}
   433  	return b[:n], nil
   434  }
   435  func (dst *AvroOptions) XXX_Merge(src proto.Message) {
   436  	xxx_messageInfo_AvroOptions.Merge(dst, src)
   437  }
   438  func (m *AvroOptions) XXX_Size() int {
   439  	return m.Size()
   440  }
   441  func (m *AvroOptions) XXX_DiscardUnknown() {
   442  	xxx_messageInfo_AvroOptions.DiscardUnknown(m)
   443  }
   444  
   445  var xxx_messageInfo_AvroOptions proto.InternalMessageInfo
   446  
   447  func init() {
   448  	proto.RegisterType((*IOFileFormat)(nil), "cockroach.roachpb.IOFileFormat")
   449  	proto.RegisterType((*CSVOptions)(nil), "cockroach.roachpb.CSVOptions")
   450  	proto.RegisterType((*MySQLOutfileOptions)(nil), "cockroach.roachpb.MySQLOutfileOptions")
   451  	proto.RegisterType((*PgCopyOptions)(nil), "cockroach.roachpb.PgCopyOptions")
   452  	proto.RegisterType((*PgDumpOptions)(nil), "cockroach.roachpb.PgDumpOptions")
   453  	proto.RegisterType((*AvroOptions)(nil), "cockroach.roachpb.AvroOptions")
   454  	proto.RegisterEnum("cockroach.roachpb.IOFileFormat_FileFormat", IOFileFormat_FileFormat_name, IOFileFormat_FileFormat_value)
   455  	proto.RegisterEnum("cockroach.roachpb.IOFileFormat_Compression", IOFileFormat_Compression_name, IOFileFormat_Compression_value)
   456  	proto.RegisterEnum("cockroach.roachpb.MySQLOutfileOptions_Enclose", MySQLOutfileOptions_Enclose_name, MySQLOutfileOptions_Enclose_value)
   457  	proto.RegisterEnum("cockroach.roachpb.AvroOptions_Format", AvroOptions_Format_name, AvroOptions_Format_value)
   458  }
   459  func (m *IOFileFormat) Marshal() (dAtA []byte, err error) {
   460  	size := m.Size()
   461  	dAtA = make([]byte, size)
   462  	n, err := m.MarshalTo(dAtA)
   463  	if err != nil {
   464  		return nil, err
   465  	}
   466  	return dAtA[:n], nil
   467  }
   468  
   469  func (m *IOFileFormat) MarshalTo(dAtA []byte) (int, error) {
   470  	var i int
   471  	_ = i
   472  	var l int
   473  	_ = l
   474  	dAtA[i] = 0x8
   475  	i++
   476  	i = encodeVarintIoFormats(dAtA, i, uint64(m.Format))
   477  	dAtA[i] = 0x12
   478  	i++
   479  	i = encodeVarintIoFormats(dAtA, i, uint64(m.Csv.Size()))
   480  	n1, err := m.Csv.MarshalTo(dAtA[i:])
   481  	if err != nil {
   482  		return 0, err
   483  	}
   484  	i += n1
   485  	dAtA[i] = 0x1a
   486  	i++
   487  	i = encodeVarintIoFormats(dAtA, i, uint64(m.MysqlOut.Size()))
   488  	n2, err := m.MysqlOut.MarshalTo(dAtA[i:])
   489  	if err != nil {
   490  		return 0, err
   491  	}
   492  	i += n2
   493  	dAtA[i] = 0x22
   494  	i++
   495  	i = encodeVarintIoFormats(dAtA, i, uint64(m.PgCopy.Size()))
   496  	n3, err := m.PgCopy.MarshalTo(dAtA[i:])
   497  	if err != nil {
   498  		return 0, err
   499  	}
   500  	i += n3
   501  	dAtA[i] = 0x28
   502  	i++
   503  	i = encodeVarintIoFormats(dAtA, i, uint64(m.Compression))
   504  	dAtA[i] = 0x32
   505  	i++
   506  	i = encodeVarintIoFormats(dAtA, i, uint64(m.PgDump.Size()))
   507  	n4, err := m.PgDump.MarshalTo(dAtA[i:])
   508  	if err != nil {
   509  		return 0, err
   510  	}
   511  	i += n4
   512  	dAtA[i] = 0x38
   513  	i++
   514  	if m.SaveRejected {
   515  		dAtA[i] = 1
   516  	} else {
   517  		dAtA[i] = 0
   518  	}
   519  	i++
   520  	dAtA[i] = 0x42
   521  	i++
   522  	i = encodeVarintIoFormats(dAtA, i, uint64(m.Avro.Size()))
   523  	n5, err := m.Avro.MarshalTo(dAtA[i:])
   524  	if err != nil {
   525  		return 0, err
   526  	}
   527  	i += n5
   528  	return i, nil
   529  }
   530  
   531  func (m *CSVOptions) Marshal() (dAtA []byte, err error) {
   532  	size := m.Size()
   533  	dAtA = make([]byte, size)
   534  	n, err := m.MarshalTo(dAtA)
   535  	if err != nil {
   536  		return nil, err
   537  	}
   538  	return dAtA[:n], nil
   539  }
   540  
   541  func (m *CSVOptions) MarshalTo(dAtA []byte) (int, error) {
   542  	var i int
   543  	_ = i
   544  	var l int
   545  	_ = l
   546  	dAtA[i] = 0x8
   547  	i++
   548  	i = encodeVarintIoFormats(dAtA, i, uint64(m.Comma))
   549  	dAtA[i] = 0x10
   550  	i++
   551  	i = encodeVarintIoFormats(dAtA, i, uint64(m.Comment))
   552  	if m.NullEncoding != nil {
   553  		dAtA[i] = 0x1a
   554  		i++
   555  		i = encodeVarintIoFormats(dAtA, i, uint64(len(*m.NullEncoding)))
   556  		i += copy(dAtA[i:], *m.NullEncoding)
   557  	}
   558  	dAtA[i] = 0x20
   559  	i++
   560  	i = encodeVarintIoFormats(dAtA, i, uint64(m.Skip))
   561  	dAtA[i] = 0x28
   562  	i++
   563  	if m.StrictQuotes {
   564  		dAtA[i] = 1
   565  	} else {
   566  		dAtA[i] = 0
   567  	}
   568  	i++
   569  	return i, nil
   570  }
   571  
   572  func (m *MySQLOutfileOptions) Marshal() (dAtA []byte, err error) {
   573  	size := m.Size()
   574  	dAtA = make([]byte, size)
   575  	n, err := m.MarshalTo(dAtA)
   576  	if err != nil {
   577  		return nil, err
   578  	}
   579  	return dAtA[:n], nil
   580  }
   581  
   582  func (m *MySQLOutfileOptions) MarshalTo(dAtA []byte) (int, error) {
   583  	var i int
   584  	_ = i
   585  	var l int
   586  	_ = l
   587  	dAtA[i] = 0x8
   588  	i++
   589  	i = encodeVarintIoFormats(dAtA, i, uint64(m.RowSeparator))
   590  	dAtA[i] = 0x10
   591  	i++
   592  	i = encodeVarintIoFormats(dAtA, i, uint64(m.FieldSeparator))
   593  	dAtA[i] = 0x18
   594  	i++
   595  	i = encodeVarintIoFormats(dAtA, i, uint64(m.Enclose))
   596  	dAtA[i] = 0x20
   597  	i++
   598  	i = encodeVarintIoFormats(dAtA, i, uint64(m.Encloser))
   599  	dAtA[i] = 0x28
   600  	i++
   601  	if m.HasEscape {
   602  		dAtA[i] = 1
   603  	} else {
   604  		dAtA[i] = 0
   605  	}
   606  	i++
   607  	dAtA[i] = 0x30
   608  	i++
   609  	i = encodeVarintIoFormats(dAtA, i, uint64(m.Escape))
   610  	dAtA[i] = 0x38
   611  	i++
   612  	i = encodeVarintIoFormats(dAtA, i, uint64(m.Skip))
   613  	if m.NullEncoding != nil {
   614  		dAtA[i] = 0x42
   615  		i++
   616  		i = encodeVarintIoFormats(dAtA, i, uint64(len(*m.NullEncoding)))
   617  		i += copy(dAtA[i:], *m.NullEncoding)
   618  	}
   619  	return i, nil
   620  }
   621  
   622  func (m *PgCopyOptions) Marshal() (dAtA []byte, err error) {
   623  	size := m.Size()
   624  	dAtA = make([]byte, size)
   625  	n, err := m.MarshalTo(dAtA)
   626  	if err != nil {
   627  		return nil, err
   628  	}
   629  	return dAtA[:n], nil
   630  }
   631  
   632  func (m *PgCopyOptions) MarshalTo(dAtA []byte) (int, error) {
   633  	var i int
   634  	_ = i
   635  	var l int
   636  	_ = l
   637  	dAtA[i] = 0x8
   638  	i++
   639  	i = encodeVarintIoFormats(dAtA, i, uint64(m.Delimiter))
   640  	dAtA[i] = 0x12
   641  	i++
   642  	i = encodeVarintIoFormats(dAtA, i, uint64(len(m.Null)))
   643  	i += copy(dAtA[i:], m.Null)
   644  	dAtA[i] = 0x18
   645  	i++
   646  	i = encodeVarintIoFormats(dAtA, i, uint64(m.MaxRowSize))
   647  	return i, nil
   648  }
   649  
   650  func (m *PgDumpOptions) Marshal() (dAtA []byte, err error) {
   651  	size := m.Size()
   652  	dAtA = make([]byte, size)
   653  	n, err := m.MarshalTo(dAtA)
   654  	if err != nil {
   655  		return nil, err
   656  	}
   657  	return dAtA[:n], nil
   658  }
   659  
   660  func (m *PgDumpOptions) MarshalTo(dAtA []byte) (int, error) {
   661  	var i int
   662  	_ = i
   663  	var l int
   664  	_ = l
   665  	dAtA[i] = 0x8
   666  	i++
   667  	i = encodeVarintIoFormats(dAtA, i, uint64(m.MaxRowSize))
   668  	return i, nil
   669  }
   670  
   671  func (m *AvroOptions) Marshal() (dAtA []byte, err error) {
   672  	size := m.Size()
   673  	dAtA = make([]byte, size)
   674  	n, err := m.MarshalTo(dAtA)
   675  	if err != nil {
   676  		return nil, err
   677  	}
   678  	return dAtA[:n], nil
   679  }
   680  
   681  func (m *AvroOptions) MarshalTo(dAtA []byte) (int, error) {
   682  	var i int
   683  	_ = i
   684  	var l int
   685  	_ = l
   686  	dAtA[i] = 0x8
   687  	i++
   688  	i = encodeVarintIoFormats(dAtA, i, uint64(m.Format))
   689  	dAtA[i] = 0x10
   690  	i++
   691  	if m.StrictMode {
   692  		dAtA[i] = 1
   693  	} else {
   694  		dAtA[i] = 0
   695  	}
   696  	i++
   697  	dAtA[i] = 0x1a
   698  	i++
   699  	i = encodeVarintIoFormats(dAtA, i, uint64(len(m.SchemaJSON)))
   700  	i += copy(dAtA[i:], m.SchemaJSON)
   701  	dAtA[i] = 0x20
   702  	i++
   703  	i = encodeVarintIoFormats(dAtA, i, uint64(m.MaxRecordSize))
   704  	dAtA[i] = 0x28
   705  	i++
   706  	i = encodeVarintIoFormats(dAtA, i, uint64(m.RecordSeparator))
   707  	return i, nil
   708  }
   709  
   710  func encodeVarintIoFormats(dAtA []byte, offset int, v uint64) int {
   711  	for v >= 1<<7 {
   712  		dAtA[offset] = uint8(v&0x7f | 0x80)
   713  		v >>= 7
   714  		offset++
   715  	}
   716  	dAtA[offset] = uint8(v)
   717  	return offset + 1
   718  }
   719  func (m *IOFileFormat) Size() (n int) {
   720  	if m == nil {
   721  		return 0
   722  	}
   723  	var l int
   724  	_ = l
   725  	n += 1 + sovIoFormats(uint64(m.Format))
   726  	l = m.Csv.Size()
   727  	n += 1 + l + sovIoFormats(uint64(l))
   728  	l = m.MysqlOut.Size()
   729  	n += 1 + l + sovIoFormats(uint64(l))
   730  	l = m.PgCopy.Size()
   731  	n += 1 + l + sovIoFormats(uint64(l))
   732  	n += 1 + sovIoFormats(uint64(m.Compression))
   733  	l = m.PgDump.Size()
   734  	n += 1 + l + sovIoFormats(uint64(l))
   735  	n += 2
   736  	l = m.Avro.Size()
   737  	n += 1 + l + sovIoFormats(uint64(l))
   738  	return n
   739  }
   740  
   741  func (m *CSVOptions) Size() (n int) {
   742  	if m == nil {
   743  		return 0
   744  	}
   745  	var l int
   746  	_ = l
   747  	n += 1 + sovIoFormats(uint64(m.Comma))
   748  	n += 1 + sovIoFormats(uint64(m.Comment))
   749  	if m.NullEncoding != nil {
   750  		l = len(*m.NullEncoding)
   751  		n += 1 + l + sovIoFormats(uint64(l))
   752  	}
   753  	n += 1 + sovIoFormats(uint64(m.Skip))
   754  	n += 2
   755  	return n
   756  }
   757  
   758  func (m *MySQLOutfileOptions) Size() (n int) {
   759  	if m == nil {
   760  		return 0
   761  	}
   762  	var l int
   763  	_ = l
   764  	n += 1 + sovIoFormats(uint64(m.RowSeparator))
   765  	n += 1 + sovIoFormats(uint64(m.FieldSeparator))
   766  	n += 1 + sovIoFormats(uint64(m.Enclose))
   767  	n += 1 + sovIoFormats(uint64(m.Encloser))
   768  	n += 2
   769  	n += 1 + sovIoFormats(uint64(m.Escape))
   770  	n += 1 + sovIoFormats(uint64(m.Skip))
   771  	if m.NullEncoding != nil {
   772  		l = len(*m.NullEncoding)
   773  		n += 1 + l + sovIoFormats(uint64(l))
   774  	}
   775  	return n
   776  }
   777  
   778  func (m *PgCopyOptions) Size() (n int) {
   779  	if m == nil {
   780  		return 0
   781  	}
   782  	var l int
   783  	_ = l
   784  	n += 1 + sovIoFormats(uint64(m.Delimiter))
   785  	l = len(m.Null)
   786  	n += 1 + l + sovIoFormats(uint64(l))
   787  	n += 1 + sovIoFormats(uint64(m.MaxRowSize))
   788  	return n
   789  }
   790  
   791  func (m *PgDumpOptions) Size() (n int) {
   792  	if m == nil {
   793  		return 0
   794  	}
   795  	var l int
   796  	_ = l
   797  	n += 1 + sovIoFormats(uint64(m.MaxRowSize))
   798  	return n
   799  }
   800  
   801  func (m *AvroOptions) Size() (n int) {
   802  	if m == nil {
   803  		return 0
   804  	}
   805  	var l int
   806  	_ = l
   807  	n += 1 + sovIoFormats(uint64(m.Format))
   808  	n += 2
   809  	l = len(m.SchemaJSON)
   810  	n += 1 + l + sovIoFormats(uint64(l))
   811  	n += 1 + sovIoFormats(uint64(m.MaxRecordSize))
   812  	n += 1 + sovIoFormats(uint64(m.RecordSeparator))
   813  	return n
   814  }
   815  
   816  func sovIoFormats(x uint64) (n int) {
   817  	for {
   818  		n++
   819  		x >>= 7
   820  		if x == 0 {
   821  			break
   822  		}
   823  	}
   824  	return n
   825  }
   826  func sozIoFormats(x uint64) (n int) {
   827  	return sovIoFormats(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   828  }
   829  func (m *IOFileFormat) Unmarshal(dAtA []byte) error {
   830  	l := len(dAtA)
   831  	iNdEx := 0
   832  	for iNdEx < l {
   833  		preIndex := iNdEx
   834  		var wire uint64
   835  		for shift := uint(0); ; shift += 7 {
   836  			if shift >= 64 {
   837  				return ErrIntOverflowIoFormats
   838  			}
   839  			if iNdEx >= l {
   840  				return io.ErrUnexpectedEOF
   841  			}
   842  			b := dAtA[iNdEx]
   843  			iNdEx++
   844  			wire |= (uint64(b) & 0x7F) << shift
   845  			if b < 0x80 {
   846  				break
   847  			}
   848  		}
   849  		fieldNum := int32(wire >> 3)
   850  		wireType := int(wire & 0x7)
   851  		if wireType == 4 {
   852  			return fmt.Errorf("proto: IOFileFormat: wiretype end group for non-group")
   853  		}
   854  		if fieldNum <= 0 {
   855  			return fmt.Errorf("proto: IOFileFormat: illegal tag %d (wire type %d)", fieldNum, wire)
   856  		}
   857  		switch fieldNum {
   858  		case 1:
   859  			if wireType != 0 {
   860  				return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType)
   861  			}
   862  			m.Format = 0
   863  			for shift := uint(0); ; shift += 7 {
   864  				if shift >= 64 {
   865  					return ErrIntOverflowIoFormats
   866  				}
   867  				if iNdEx >= l {
   868  					return io.ErrUnexpectedEOF
   869  				}
   870  				b := dAtA[iNdEx]
   871  				iNdEx++
   872  				m.Format |= (IOFileFormat_FileFormat(b) & 0x7F) << shift
   873  				if b < 0x80 {
   874  					break
   875  				}
   876  			}
   877  		case 2:
   878  			if wireType != 2 {
   879  				return fmt.Errorf("proto: wrong wireType = %d for field Csv", wireType)
   880  			}
   881  			var msglen int
   882  			for shift := uint(0); ; shift += 7 {
   883  				if shift >= 64 {
   884  					return ErrIntOverflowIoFormats
   885  				}
   886  				if iNdEx >= l {
   887  					return io.ErrUnexpectedEOF
   888  				}
   889  				b := dAtA[iNdEx]
   890  				iNdEx++
   891  				msglen |= (int(b) & 0x7F) << shift
   892  				if b < 0x80 {
   893  					break
   894  				}
   895  			}
   896  			if msglen < 0 {
   897  				return ErrInvalidLengthIoFormats
   898  			}
   899  			postIndex := iNdEx + msglen
   900  			if postIndex > l {
   901  				return io.ErrUnexpectedEOF
   902  			}
   903  			if err := m.Csv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   904  				return err
   905  			}
   906  			iNdEx = postIndex
   907  		case 3:
   908  			if wireType != 2 {
   909  				return fmt.Errorf("proto: wrong wireType = %d for field MysqlOut", wireType)
   910  			}
   911  			var msglen int
   912  			for shift := uint(0); ; shift += 7 {
   913  				if shift >= 64 {
   914  					return ErrIntOverflowIoFormats
   915  				}
   916  				if iNdEx >= l {
   917  					return io.ErrUnexpectedEOF
   918  				}
   919  				b := dAtA[iNdEx]
   920  				iNdEx++
   921  				msglen |= (int(b) & 0x7F) << shift
   922  				if b < 0x80 {
   923  					break
   924  				}
   925  			}
   926  			if msglen < 0 {
   927  				return ErrInvalidLengthIoFormats
   928  			}
   929  			postIndex := iNdEx + msglen
   930  			if postIndex > l {
   931  				return io.ErrUnexpectedEOF
   932  			}
   933  			if err := m.MysqlOut.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   934  				return err
   935  			}
   936  			iNdEx = postIndex
   937  		case 4:
   938  			if wireType != 2 {
   939  				return fmt.Errorf("proto: wrong wireType = %d for field PgCopy", wireType)
   940  			}
   941  			var msglen int
   942  			for shift := uint(0); ; shift += 7 {
   943  				if shift >= 64 {
   944  					return ErrIntOverflowIoFormats
   945  				}
   946  				if iNdEx >= l {
   947  					return io.ErrUnexpectedEOF
   948  				}
   949  				b := dAtA[iNdEx]
   950  				iNdEx++
   951  				msglen |= (int(b) & 0x7F) << shift
   952  				if b < 0x80 {
   953  					break
   954  				}
   955  			}
   956  			if msglen < 0 {
   957  				return ErrInvalidLengthIoFormats
   958  			}
   959  			postIndex := iNdEx + msglen
   960  			if postIndex > l {
   961  				return io.ErrUnexpectedEOF
   962  			}
   963  			if err := m.PgCopy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   964  				return err
   965  			}
   966  			iNdEx = postIndex
   967  		case 5:
   968  			if wireType != 0 {
   969  				return fmt.Errorf("proto: wrong wireType = %d for field Compression", wireType)
   970  			}
   971  			m.Compression = 0
   972  			for shift := uint(0); ; shift += 7 {
   973  				if shift >= 64 {
   974  					return ErrIntOverflowIoFormats
   975  				}
   976  				if iNdEx >= l {
   977  					return io.ErrUnexpectedEOF
   978  				}
   979  				b := dAtA[iNdEx]
   980  				iNdEx++
   981  				m.Compression |= (IOFileFormat_Compression(b) & 0x7F) << shift
   982  				if b < 0x80 {
   983  					break
   984  				}
   985  			}
   986  		case 6:
   987  			if wireType != 2 {
   988  				return fmt.Errorf("proto: wrong wireType = %d for field PgDump", wireType)
   989  			}
   990  			var msglen int
   991  			for shift := uint(0); ; shift += 7 {
   992  				if shift >= 64 {
   993  					return ErrIntOverflowIoFormats
   994  				}
   995  				if iNdEx >= l {
   996  					return io.ErrUnexpectedEOF
   997  				}
   998  				b := dAtA[iNdEx]
   999  				iNdEx++
  1000  				msglen |= (int(b) & 0x7F) << shift
  1001  				if b < 0x80 {
  1002  					break
  1003  				}
  1004  			}
  1005  			if msglen < 0 {
  1006  				return ErrInvalidLengthIoFormats
  1007  			}
  1008  			postIndex := iNdEx + msglen
  1009  			if postIndex > l {
  1010  				return io.ErrUnexpectedEOF
  1011  			}
  1012  			if err := m.PgDump.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1013  				return err
  1014  			}
  1015  			iNdEx = postIndex
  1016  		case 7:
  1017  			if wireType != 0 {
  1018  				return fmt.Errorf("proto: wrong wireType = %d for field SaveRejected", wireType)
  1019  			}
  1020  			var v int
  1021  			for shift := uint(0); ; shift += 7 {
  1022  				if shift >= 64 {
  1023  					return ErrIntOverflowIoFormats
  1024  				}
  1025  				if iNdEx >= l {
  1026  					return io.ErrUnexpectedEOF
  1027  				}
  1028  				b := dAtA[iNdEx]
  1029  				iNdEx++
  1030  				v |= (int(b) & 0x7F) << shift
  1031  				if b < 0x80 {
  1032  					break
  1033  				}
  1034  			}
  1035  			m.SaveRejected = bool(v != 0)
  1036  		case 8:
  1037  			if wireType != 2 {
  1038  				return fmt.Errorf("proto: wrong wireType = %d for field Avro", wireType)
  1039  			}
  1040  			var msglen int
  1041  			for shift := uint(0); ; shift += 7 {
  1042  				if shift >= 64 {
  1043  					return ErrIntOverflowIoFormats
  1044  				}
  1045  				if iNdEx >= l {
  1046  					return io.ErrUnexpectedEOF
  1047  				}
  1048  				b := dAtA[iNdEx]
  1049  				iNdEx++
  1050  				msglen |= (int(b) & 0x7F) << shift
  1051  				if b < 0x80 {
  1052  					break
  1053  				}
  1054  			}
  1055  			if msglen < 0 {
  1056  				return ErrInvalidLengthIoFormats
  1057  			}
  1058  			postIndex := iNdEx + msglen
  1059  			if postIndex > l {
  1060  				return io.ErrUnexpectedEOF
  1061  			}
  1062  			if err := m.Avro.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1063  				return err
  1064  			}
  1065  			iNdEx = postIndex
  1066  		default:
  1067  			iNdEx = preIndex
  1068  			skippy, err := skipIoFormats(dAtA[iNdEx:])
  1069  			if err != nil {
  1070  				return err
  1071  			}
  1072  			if skippy < 0 {
  1073  				return ErrInvalidLengthIoFormats
  1074  			}
  1075  			if (iNdEx + skippy) > l {
  1076  				return io.ErrUnexpectedEOF
  1077  			}
  1078  			iNdEx += skippy
  1079  		}
  1080  	}
  1081  
  1082  	if iNdEx > l {
  1083  		return io.ErrUnexpectedEOF
  1084  	}
  1085  	return nil
  1086  }
  1087  func (m *CSVOptions) Unmarshal(dAtA []byte) error {
  1088  	l := len(dAtA)
  1089  	iNdEx := 0
  1090  	for iNdEx < l {
  1091  		preIndex := iNdEx
  1092  		var wire uint64
  1093  		for shift := uint(0); ; shift += 7 {
  1094  			if shift >= 64 {
  1095  				return ErrIntOverflowIoFormats
  1096  			}
  1097  			if iNdEx >= l {
  1098  				return io.ErrUnexpectedEOF
  1099  			}
  1100  			b := dAtA[iNdEx]
  1101  			iNdEx++
  1102  			wire |= (uint64(b) & 0x7F) << shift
  1103  			if b < 0x80 {
  1104  				break
  1105  			}
  1106  		}
  1107  		fieldNum := int32(wire >> 3)
  1108  		wireType := int(wire & 0x7)
  1109  		if wireType == 4 {
  1110  			return fmt.Errorf("proto: CSVOptions: wiretype end group for non-group")
  1111  		}
  1112  		if fieldNum <= 0 {
  1113  			return fmt.Errorf("proto: CSVOptions: illegal tag %d (wire type %d)", fieldNum, wire)
  1114  		}
  1115  		switch fieldNum {
  1116  		case 1:
  1117  			if wireType != 0 {
  1118  				return fmt.Errorf("proto: wrong wireType = %d for field Comma", wireType)
  1119  			}
  1120  			m.Comma = 0
  1121  			for shift := uint(0); ; shift += 7 {
  1122  				if shift >= 64 {
  1123  					return ErrIntOverflowIoFormats
  1124  				}
  1125  				if iNdEx >= l {
  1126  					return io.ErrUnexpectedEOF
  1127  				}
  1128  				b := dAtA[iNdEx]
  1129  				iNdEx++
  1130  				m.Comma |= (int32(b) & 0x7F) << shift
  1131  				if b < 0x80 {
  1132  					break
  1133  				}
  1134  			}
  1135  		case 2:
  1136  			if wireType != 0 {
  1137  				return fmt.Errorf("proto: wrong wireType = %d for field Comment", wireType)
  1138  			}
  1139  			m.Comment = 0
  1140  			for shift := uint(0); ; shift += 7 {
  1141  				if shift >= 64 {
  1142  					return ErrIntOverflowIoFormats
  1143  				}
  1144  				if iNdEx >= l {
  1145  					return io.ErrUnexpectedEOF
  1146  				}
  1147  				b := dAtA[iNdEx]
  1148  				iNdEx++
  1149  				m.Comment |= (int32(b) & 0x7F) << shift
  1150  				if b < 0x80 {
  1151  					break
  1152  				}
  1153  			}
  1154  		case 3:
  1155  			if wireType != 2 {
  1156  				return fmt.Errorf("proto: wrong wireType = %d for field NullEncoding", wireType)
  1157  			}
  1158  			var stringLen uint64
  1159  			for shift := uint(0); ; shift += 7 {
  1160  				if shift >= 64 {
  1161  					return ErrIntOverflowIoFormats
  1162  				}
  1163  				if iNdEx >= l {
  1164  					return io.ErrUnexpectedEOF
  1165  				}
  1166  				b := dAtA[iNdEx]
  1167  				iNdEx++
  1168  				stringLen |= (uint64(b) & 0x7F) << shift
  1169  				if b < 0x80 {
  1170  					break
  1171  				}
  1172  			}
  1173  			intStringLen := int(stringLen)
  1174  			if intStringLen < 0 {
  1175  				return ErrInvalidLengthIoFormats
  1176  			}
  1177  			postIndex := iNdEx + intStringLen
  1178  			if postIndex > l {
  1179  				return io.ErrUnexpectedEOF
  1180  			}
  1181  			s := string(dAtA[iNdEx:postIndex])
  1182  			m.NullEncoding = &s
  1183  			iNdEx = postIndex
  1184  		case 4:
  1185  			if wireType != 0 {
  1186  				return fmt.Errorf("proto: wrong wireType = %d for field Skip", wireType)
  1187  			}
  1188  			m.Skip = 0
  1189  			for shift := uint(0); ; shift += 7 {
  1190  				if shift >= 64 {
  1191  					return ErrIntOverflowIoFormats
  1192  				}
  1193  				if iNdEx >= l {
  1194  					return io.ErrUnexpectedEOF
  1195  				}
  1196  				b := dAtA[iNdEx]
  1197  				iNdEx++
  1198  				m.Skip |= (uint32(b) & 0x7F) << shift
  1199  				if b < 0x80 {
  1200  					break
  1201  				}
  1202  			}
  1203  		case 5:
  1204  			if wireType != 0 {
  1205  				return fmt.Errorf("proto: wrong wireType = %d for field StrictQuotes", wireType)
  1206  			}
  1207  			var v int
  1208  			for shift := uint(0); ; shift += 7 {
  1209  				if shift >= 64 {
  1210  					return ErrIntOverflowIoFormats
  1211  				}
  1212  				if iNdEx >= l {
  1213  					return io.ErrUnexpectedEOF
  1214  				}
  1215  				b := dAtA[iNdEx]
  1216  				iNdEx++
  1217  				v |= (int(b) & 0x7F) << shift
  1218  				if b < 0x80 {
  1219  					break
  1220  				}
  1221  			}
  1222  			m.StrictQuotes = bool(v != 0)
  1223  		default:
  1224  			iNdEx = preIndex
  1225  			skippy, err := skipIoFormats(dAtA[iNdEx:])
  1226  			if err != nil {
  1227  				return err
  1228  			}
  1229  			if skippy < 0 {
  1230  				return ErrInvalidLengthIoFormats
  1231  			}
  1232  			if (iNdEx + skippy) > l {
  1233  				return io.ErrUnexpectedEOF
  1234  			}
  1235  			iNdEx += skippy
  1236  		}
  1237  	}
  1238  
  1239  	if iNdEx > l {
  1240  		return io.ErrUnexpectedEOF
  1241  	}
  1242  	return nil
  1243  }
  1244  func (m *MySQLOutfileOptions) Unmarshal(dAtA []byte) error {
  1245  	l := len(dAtA)
  1246  	iNdEx := 0
  1247  	for iNdEx < l {
  1248  		preIndex := iNdEx
  1249  		var wire uint64
  1250  		for shift := uint(0); ; shift += 7 {
  1251  			if shift >= 64 {
  1252  				return ErrIntOverflowIoFormats
  1253  			}
  1254  			if iNdEx >= l {
  1255  				return io.ErrUnexpectedEOF
  1256  			}
  1257  			b := dAtA[iNdEx]
  1258  			iNdEx++
  1259  			wire |= (uint64(b) & 0x7F) << shift
  1260  			if b < 0x80 {
  1261  				break
  1262  			}
  1263  		}
  1264  		fieldNum := int32(wire >> 3)
  1265  		wireType := int(wire & 0x7)
  1266  		if wireType == 4 {
  1267  			return fmt.Errorf("proto: MySQLOutfileOptions: wiretype end group for non-group")
  1268  		}
  1269  		if fieldNum <= 0 {
  1270  			return fmt.Errorf("proto: MySQLOutfileOptions: illegal tag %d (wire type %d)", fieldNum, wire)
  1271  		}
  1272  		switch fieldNum {
  1273  		case 1:
  1274  			if wireType != 0 {
  1275  				return fmt.Errorf("proto: wrong wireType = %d for field RowSeparator", wireType)
  1276  			}
  1277  			m.RowSeparator = 0
  1278  			for shift := uint(0); ; shift += 7 {
  1279  				if shift >= 64 {
  1280  					return ErrIntOverflowIoFormats
  1281  				}
  1282  				if iNdEx >= l {
  1283  					return io.ErrUnexpectedEOF
  1284  				}
  1285  				b := dAtA[iNdEx]
  1286  				iNdEx++
  1287  				m.RowSeparator |= (int32(b) & 0x7F) << shift
  1288  				if b < 0x80 {
  1289  					break
  1290  				}
  1291  			}
  1292  		case 2:
  1293  			if wireType != 0 {
  1294  				return fmt.Errorf("proto: wrong wireType = %d for field FieldSeparator", wireType)
  1295  			}
  1296  			m.FieldSeparator = 0
  1297  			for shift := uint(0); ; shift += 7 {
  1298  				if shift >= 64 {
  1299  					return ErrIntOverflowIoFormats
  1300  				}
  1301  				if iNdEx >= l {
  1302  					return io.ErrUnexpectedEOF
  1303  				}
  1304  				b := dAtA[iNdEx]
  1305  				iNdEx++
  1306  				m.FieldSeparator |= (int32(b) & 0x7F) << shift
  1307  				if b < 0x80 {
  1308  					break
  1309  				}
  1310  			}
  1311  		case 3:
  1312  			if wireType != 0 {
  1313  				return fmt.Errorf("proto: wrong wireType = %d for field Enclose", wireType)
  1314  			}
  1315  			m.Enclose = 0
  1316  			for shift := uint(0); ; shift += 7 {
  1317  				if shift >= 64 {
  1318  					return ErrIntOverflowIoFormats
  1319  				}
  1320  				if iNdEx >= l {
  1321  					return io.ErrUnexpectedEOF
  1322  				}
  1323  				b := dAtA[iNdEx]
  1324  				iNdEx++
  1325  				m.Enclose |= (MySQLOutfileOptions_Enclose(b) & 0x7F) << shift
  1326  				if b < 0x80 {
  1327  					break
  1328  				}
  1329  			}
  1330  		case 4:
  1331  			if wireType != 0 {
  1332  				return fmt.Errorf("proto: wrong wireType = %d for field Encloser", wireType)
  1333  			}
  1334  			m.Encloser = 0
  1335  			for shift := uint(0); ; shift += 7 {
  1336  				if shift >= 64 {
  1337  					return ErrIntOverflowIoFormats
  1338  				}
  1339  				if iNdEx >= l {
  1340  					return io.ErrUnexpectedEOF
  1341  				}
  1342  				b := dAtA[iNdEx]
  1343  				iNdEx++
  1344  				m.Encloser |= (int32(b) & 0x7F) << shift
  1345  				if b < 0x80 {
  1346  					break
  1347  				}
  1348  			}
  1349  		case 5:
  1350  			if wireType != 0 {
  1351  				return fmt.Errorf("proto: wrong wireType = %d for field HasEscape", wireType)
  1352  			}
  1353  			var v int
  1354  			for shift := uint(0); ; shift += 7 {
  1355  				if shift >= 64 {
  1356  					return ErrIntOverflowIoFormats
  1357  				}
  1358  				if iNdEx >= l {
  1359  					return io.ErrUnexpectedEOF
  1360  				}
  1361  				b := dAtA[iNdEx]
  1362  				iNdEx++
  1363  				v |= (int(b) & 0x7F) << shift
  1364  				if b < 0x80 {
  1365  					break
  1366  				}
  1367  			}
  1368  			m.HasEscape = bool(v != 0)
  1369  		case 6:
  1370  			if wireType != 0 {
  1371  				return fmt.Errorf("proto: wrong wireType = %d for field Escape", wireType)
  1372  			}
  1373  			m.Escape = 0
  1374  			for shift := uint(0); ; shift += 7 {
  1375  				if shift >= 64 {
  1376  					return ErrIntOverflowIoFormats
  1377  				}
  1378  				if iNdEx >= l {
  1379  					return io.ErrUnexpectedEOF
  1380  				}
  1381  				b := dAtA[iNdEx]
  1382  				iNdEx++
  1383  				m.Escape |= (int32(b) & 0x7F) << shift
  1384  				if b < 0x80 {
  1385  					break
  1386  				}
  1387  			}
  1388  		case 7:
  1389  			if wireType != 0 {
  1390  				return fmt.Errorf("proto: wrong wireType = %d for field Skip", wireType)
  1391  			}
  1392  			m.Skip = 0
  1393  			for shift := uint(0); ; shift += 7 {
  1394  				if shift >= 64 {
  1395  					return ErrIntOverflowIoFormats
  1396  				}
  1397  				if iNdEx >= l {
  1398  					return io.ErrUnexpectedEOF
  1399  				}
  1400  				b := dAtA[iNdEx]
  1401  				iNdEx++
  1402  				m.Skip |= (uint32(b) & 0x7F) << shift
  1403  				if b < 0x80 {
  1404  					break
  1405  				}
  1406  			}
  1407  		case 8:
  1408  			if wireType != 2 {
  1409  				return fmt.Errorf("proto: wrong wireType = %d for field NullEncoding", wireType)
  1410  			}
  1411  			var stringLen uint64
  1412  			for shift := uint(0); ; shift += 7 {
  1413  				if shift >= 64 {
  1414  					return ErrIntOverflowIoFormats
  1415  				}
  1416  				if iNdEx >= l {
  1417  					return io.ErrUnexpectedEOF
  1418  				}
  1419  				b := dAtA[iNdEx]
  1420  				iNdEx++
  1421  				stringLen |= (uint64(b) & 0x7F) << shift
  1422  				if b < 0x80 {
  1423  					break
  1424  				}
  1425  			}
  1426  			intStringLen := int(stringLen)
  1427  			if intStringLen < 0 {
  1428  				return ErrInvalidLengthIoFormats
  1429  			}
  1430  			postIndex := iNdEx + intStringLen
  1431  			if postIndex > l {
  1432  				return io.ErrUnexpectedEOF
  1433  			}
  1434  			s := string(dAtA[iNdEx:postIndex])
  1435  			m.NullEncoding = &s
  1436  			iNdEx = postIndex
  1437  		default:
  1438  			iNdEx = preIndex
  1439  			skippy, err := skipIoFormats(dAtA[iNdEx:])
  1440  			if err != nil {
  1441  				return err
  1442  			}
  1443  			if skippy < 0 {
  1444  				return ErrInvalidLengthIoFormats
  1445  			}
  1446  			if (iNdEx + skippy) > l {
  1447  				return io.ErrUnexpectedEOF
  1448  			}
  1449  			iNdEx += skippy
  1450  		}
  1451  	}
  1452  
  1453  	if iNdEx > l {
  1454  		return io.ErrUnexpectedEOF
  1455  	}
  1456  	return nil
  1457  }
  1458  func (m *PgCopyOptions) Unmarshal(dAtA []byte) error {
  1459  	l := len(dAtA)
  1460  	iNdEx := 0
  1461  	for iNdEx < l {
  1462  		preIndex := iNdEx
  1463  		var wire uint64
  1464  		for shift := uint(0); ; shift += 7 {
  1465  			if shift >= 64 {
  1466  				return ErrIntOverflowIoFormats
  1467  			}
  1468  			if iNdEx >= l {
  1469  				return io.ErrUnexpectedEOF
  1470  			}
  1471  			b := dAtA[iNdEx]
  1472  			iNdEx++
  1473  			wire |= (uint64(b) & 0x7F) << shift
  1474  			if b < 0x80 {
  1475  				break
  1476  			}
  1477  		}
  1478  		fieldNum := int32(wire >> 3)
  1479  		wireType := int(wire & 0x7)
  1480  		if wireType == 4 {
  1481  			return fmt.Errorf("proto: PgCopyOptions: wiretype end group for non-group")
  1482  		}
  1483  		if fieldNum <= 0 {
  1484  			return fmt.Errorf("proto: PgCopyOptions: illegal tag %d (wire type %d)", fieldNum, wire)
  1485  		}
  1486  		switch fieldNum {
  1487  		case 1:
  1488  			if wireType != 0 {
  1489  				return fmt.Errorf("proto: wrong wireType = %d for field Delimiter", wireType)
  1490  			}
  1491  			m.Delimiter = 0
  1492  			for shift := uint(0); ; shift += 7 {
  1493  				if shift >= 64 {
  1494  					return ErrIntOverflowIoFormats
  1495  				}
  1496  				if iNdEx >= l {
  1497  					return io.ErrUnexpectedEOF
  1498  				}
  1499  				b := dAtA[iNdEx]
  1500  				iNdEx++
  1501  				m.Delimiter |= (int32(b) & 0x7F) << shift
  1502  				if b < 0x80 {
  1503  					break
  1504  				}
  1505  			}
  1506  		case 2:
  1507  			if wireType != 2 {
  1508  				return fmt.Errorf("proto: wrong wireType = %d for field Null", wireType)
  1509  			}
  1510  			var stringLen uint64
  1511  			for shift := uint(0); ; shift += 7 {
  1512  				if shift >= 64 {
  1513  					return ErrIntOverflowIoFormats
  1514  				}
  1515  				if iNdEx >= l {
  1516  					return io.ErrUnexpectedEOF
  1517  				}
  1518  				b := dAtA[iNdEx]
  1519  				iNdEx++
  1520  				stringLen |= (uint64(b) & 0x7F) << shift
  1521  				if b < 0x80 {
  1522  					break
  1523  				}
  1524  			}
  1525  			intStringLen := int(stringLen)
  1526  			if intStringLen < 0 {
  1527  				return ErrInvalidLengthIoFormats
  1528  			}
  1529  			postIndex := iNdEx + intStringLen
  1530  			if postIndex > l {
  1531  				return io.ErrUnexpectedEOF
  1532  			}
  1533  			m.Null = string(dAtA[iNdEx:postIndex])
  1534  			iNdEx = postIndex
  1535  		case 3:
  1536  			if wireType != 0 {
  1537  				return fmt.Errorf("proto: wrong wireType = %d for field MaxRowSize", wireType)
  1538  			}
  1539  			m.MaxRowSize = 0
  1540  			for shift := uint(0); ; shift += 7 {
  1541  				if shift >= 64 {
  1542  					return ErrIntOverflowIoFormats
  1543  				}
  1544  				if iNdEx >= l {
  1545  					return io.ErrUnexpectedEOF
  1546  				}
  1547  				b := dAtA[iNdEx]
  1548  				iNdEx++
  1549  				m.MaxRowSize |= (int32(b) & 0x7F) << shift
  1550  				if b < 0x80 {
  1551  					break
  1552  				}
  1553  			}
  1554  		default:
  1555  			iNdEx = preIndex
  1556  			skippy, err := skipIoFormats(dAtA[iNdEx:])
  1557  			if err != nil {
  1558  				return err
  1559  			}
  1560  			if skippy < 0 {
  1561  				return ErrInvalidLengthIoFormats
  1562  			}
  1563  			if (iNdEx + skippy) > l {
  1564  				return io.ErrUnexpectedEOF
  1565  			}
  1566  			iNdEx += skippy
  1567  		}
  1568  	}
  1569  
  1570  	if iNdEx > l {
  1571  		return io.ErrUnexpectedEOF
  1572  	}
  1573  	return nil
  1574  }
  1575  func (m *PgDumpOptions) Unmarshal(dAtA []byte) error {
  1576  	l := len(dAtA)
  1577  	iNdEx := 0
  1578  	for iNdEx < l {
  1579  		preIndex := iNdEx
  1580  		var wire uint64
  1581  		for shift := uint(0); ; shift += 7 {
  1582  			if shift >= 64 {
  1583  				return ErrIntOverflowIoFormats
  1584  			}
  1585  			if iNdEx >= l {
  1586  				return io.ErrUnexpectedEOF
  1587  			}
  1588  			b := dAtA[iNdEx]
  1589  			iNdEx++
  1590  			wire |= (uint64(b) & 0x7F) << shift
  1591  			if b < 0x80 {
  1592  				break
  1593  			}
  1594  		}
  1595  		fieldNum := int32(wire >> 3)
  1596  		wireType := int(wire & 0x7)
  1597  		if wireType == 4 {
  1598  			return fmt.Errorf("proto: PgDumpOptions: wiretype end group for non-group")
  1599  		}
  1600  		if fieldNum <= 0 {
  1601  			return fmt.Errorf("proto: PgDumpOptions: illegal tag %d (wire type %d)", fieldNum, wire)
  1602  		}
  1603  		switch fieldNum {
  1604  		case 1:
  1605  			if wireType != 0 {
  1606  				return fmt.Errorf("proto: wrong wireType = %d for field MaxRowSize", wireType)
  1607  			}
  1608  			m.MaxRowSize = 0
  1609  			for shift := uint(0); ; shift += 7 {
  1610  				if shift >= 64 {
  1611  					return ErrIntOverflowIoFormats
  1612  				}
  1613  				if iNdEx >= l {
  1614  					return io.ErrUnexpectedEOF
  1615  				}
  1616  				b := dAtA[iNdEx]
  1617  				iNdEx++
  1618  				m.MaxRowSize |= (int32(b) & 0x7F) << shift
  1619  				if b < 0x80 {
  1620  					break
  1621  				}
  1622  			}
  1623  		default:
  1624  			iNdEx = preIndex
  1625  			skippy, err := skipIoFormats(dAtA[iNdEx:])
  1626  			if err != nil {
  1627  				return err
  1628  			}
  1629  			if skippy < 0 {
  1630  				return ErrInvalidLengthIoFormats
  1631  			}
  1632  			if (iNdEx + skippy) > l {
  1633  				return io.ErrUnexpectedEOF
  1634  			}
  1635  			iNdEx += skippy
  1636  		}
  1637  	}
  1638  
  1639  	if iNdEx > l {
  1640  		return io.ErrUnexpectedEOF
  1641  	}
  1642  	return nil
  1643  }
  1644  func (m *AvroOptions) Unmarshal(dAtA []byte) error {
  1645  	l := len(dAtA)
  1646  	iNdEx := 0
  1647  	for iNdEx < l {
  1648  		preIndex := iNdEx
  1649  		var wire uint64
  1650  		for shift := uint(0); ; shift += 7 {
  1651  			if shift >= 64 {
  1652  				return ErrIntOverflowIoFormats
  1653  			}
  1654  			if iNdEx >= l {
  1655  				return io.ErrUnexpectedEOF
  1656  			}
  1657  			b := dAtA[iNdEx]
  1658  			iNdEx++
  1659  			wire |= (uint64(b) & 0x7F) << shift
  1660  			if b < 0x80 {
  1661  				break
  1662  			}
  1663  		}
  1664  		fieldNum := int32(wire >> 3)
  1665  		wireType := int(wire & 0x7)
  1666  		if wireType == 4 {
  1667  			return fmt.Errorf("proto: AvroOptions: wiretype end group for non-group")
  1668  		}
  1669  		if fieldNum <= 0 {
  1670  			return fmt.Errorf("proto: AvroOptions: illegal tag %d (wire type %d)", fieldNum, wire)
  1671  		}
  1672  		switch fieldNum {
  1673  		case 1:
  1674  			if wireType != 0 {
  1675  				return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType)
  1676  			}
  1677  			m.Format = 0
  1678  			for shift := uint(0); ; shift += 7 {
  1679  				if shift >= 64 {
  1680  					return ErrIntOverflowIoFormats
  1681  				}
  1682  				if iNdEx >= l {
  1683  					return io.ErrUnexpectedEOF
  1684  				}
  1685  				b := dAtA[iNdEx]
  1686  				iNdEx++
  1687  				m.Format |= (AvroOptions_Format(b) & 0x7F) << shift
  1688  				if b < 0x80 {
  1689  					break
  1690  				}
  1691  			}
  1692  		case 2:
  1693  			if wireType != 0 {
  1694  				return fmt.Errorf("proto: wrong wireType = %d for field StrictMode", wireType)
  1695  			}
  1696  			var v int
  1697  			for shift := uint(0); ; shift += 7 {
  1698  				if shift >= 64 {
  1699  					return ErrIntOverflowIoFormats
  1700  				}
  1701  				if iNdEx >= l {
  1702  					return io.ErrUnexpectedEOF
  1703  				}
  1704  				b := dAtA[iNdEx]
  1705  				iNdEx++
  1706  				v |= (int(b) & 0x7F) << shift
  1707  				if b < 0x80 {
  1708  					break
  1709  				}
  1710  			}
  1711  			m.StrictMode = bool(v != 0)
  1712  		case 3:
  1713  			if wireType != 2 {
  1714  				return fmt.Errorf("proto: wrong wireType = %d for field SchemaJSON", wireType)
  1715  			}
  1716  			var stringLen uint64
  1717  			for shift := uint(0); ; shift += 7 {
  1718  				if shift >= 64 {
  1719  					return ErrIntOverflowIoFormats
  1720  				}
  1721  				if iNdEx >= l {
  1722  					return io.ErrUnexpectedEOF
  1723  				}
  1724  				b := dAtA[iNdEx]
  1725  				iNdEx++
  1726  				stringLen |= (uint64(b) & 0x7F) << shift
  1727  				if b < 0x80 {
  1728  					break
  1729  				}
  1730  			}
  1731  			intStringLen := int(stringLen)
  1732  			if intStringLen < 0 {
  1733  				return ErrInvalidLengthIoFormats
  1734  			}
  1735  			postIndex := iNdEx + intStringLen
  1736  			if postIndex > l {
  1737  				return io.ErrUnexpectedEOF
  1738  			}
  1739  			m.SchemaJSON = string(dAtA[iNdEx:postIndex])
  1740  			iNdEx = postIndex
  1741  		case 4:
  1742  			if wireType != 0 {
  1743  				return fmt.Errorf("proto: wrong wireType = %d for field MaxRecordSize", wireType)
  1744  			}
  1745  			m.MaxRecordSize = 0
  1746  			for shift := uint(0); ; shift += 7 {
  1747  				if shift >= 64 {
  1748  					return ErrIntOverflowIoFormats
  1749  				}
  1750  				if iNdEx >= l {
  1751  					return io.ErrUnexpectedEOF
  1752  				}
  1753  				b := dAtA[iNdEx]
  1754  				iNdEx++
  1755  				m.MaxRecordSize |= (int32(b) & 0x7F) << shift
  1756  				if b < 0x80 {
  1757  					break
  1758  				}
  1759  			}
  1760  		case 5:
  1761  			if wireType != 0 {
  1762  				return fmt.Errorf("proto: wrong wireType = %d for field RecordSeparator", wireType)
  1763  			}
  1764  			m.RecordSeparator = 0
  1765  			for shift := uint(0); ; shift += 7 {
  1766  				if shift >= 64 {
  1767  					return ErrIntOverflowIoFormats
  1768  				}
  1769  				if iNdEx >= l {
  1770  					return io.ErrUnexpectedEOF
  1771  				}
  1772  				b := dAtA[iNdEx]
  1773  				iNdEx++
  1774  				m.RecordSeparator |= (int32(b) & 0x7F) << shift
  1775  				if b < 0x80 {
  1776  					break
  1777  				}
  1778  			}
  1779  		default:
  1780  			iNdEx = preIndex
  1781  			skippy, err := skipIoFormats(dAtA[iNdEx:])
  1782  			if err != nil {
  1783  				return err
  1784  			}
  1785  			if skippy < 0 {
  1786  				return ErrInvalidLengthIoFormats
  1787  			}
  1788  			if (iNdEx + skippy) > l {
  1789  				return io.ErrUnexpectedEOF
  1790  			}
  1791  			iNdEx += skippy
  1792  		}
  1793  	}
  1794  
  1795  	if iNdEx > l {
  1796  		return io.ErrUnexpectedEOF
  1797  	}
  1798  	return nil
  1799  }
  1800  func skipIoFormats(dAtA []byte) (n int, err error) {
  1801  	l := len(dAtA)
  1802  	iNdEx := 0
  1803  	for iNdEx < l {
  1804  		var wire uint64
  1805  		for shift := uint(0); ; shift += 7 {
  1806  			if shift >= 64 {
  1807  				return 0, ErrIntOverflowIoFormats
  1808  			}
  1809  			if iNdEx >= l {
  1810  				return 0, io.ErrUnexpectedEOF
  1811  			}
  1812  			b := dAtA[iNdEx]
  1813  			iNdEx++
  1814  			wire |= (uint64(b) & 0x7F) << shift
  1815  			if b < 0x80 {
  1816  				break
  1817  			}
  1818  		}
  1819  		wireType := int(wire & 0x7)
  1820  		switch wireType {
  1821  		case 0:
  1822  			for shift := uint(0); ; shift += 7 {
  1823  				if shift >= 64 {
  1824  					return 0, ErrIntOverflowIoFormats
  1825  				}
  1826  				if iNdEx >= l {
  1827  					return 0, io.ErrUnexpectedEOF
  1828  				}
  1829  				iNdEx++
  1830  				if dAtA[iNdEx-1] < 0x80 {
  1831  					break
  1832  				}
  1833  			}
  1834  			return iNdEx, nil
  1835  		case 1:
  1836  			iNdEx += 8
  1837  			return iNdEx, nil
  1838  		case 2:
  1839  			var length int
  1840  			for shift := uint(0); ; shift += 7 {
  1841  				if shift >= 64 {
  1842  					return 0, ErrIntOverflowIoFormats
  1843  				}
  1844  				if iNdEx >= l {
  1845  					return 0, io.ErrUnexpectedEOF
  1846  				}
  1847  				b := dAtA[iNdEx]
  1848  				iNdEx++
  1849  				length |= (int(b) & 0x7F) << shift
  1850  				if b < 0x80 {
  1851  					break
  1852  				}
  1853  			}
  1854  			iNdEx += length
  1855  			if length < 0 {
  1856  				return 0, ErrInvalidLengthIoFormats
  1857  			}
  1858  			return iNdEx, nil
  1859  		case 3:
  1860  			for {
  1861  				var innerWire uint64
  1862  				var start int = iNdEx
  1863  				for shift := uint(0); ; shift += 7 {
  1864  					if shift >= 64 {
  1865  						return 0, ErrIntOverflowIoFormats
  1866  					}
  1867  					if iNdEx >= l {
  1868  						return 0, io.ErrUnexpectedEOF
  1869  					}
  1870  					b := dAtA[iNdEx]
  1871  					iNdEx++
  1872  					innerWire |= (uint64(b) & 0x7F) << shift
  1873  					if b < 0x80 {
  1874  						break
  1875  					}
  1876  				}
  1877  				innerWireType := int(innerWire & 0x7)
  1878  				if innerWireType == 4 {
  1879  					break
  1880  				}
  1881  				next, err := skipIoFormats(dAtA[start:])
  1882  				if err != nil {
  1883  					return 0, err
  1884  				}
  1885  				iNdEx = start + next
  1886  			}
  1887  			return iNdEx, nil
  1888  		case 4:
  1889  			return iNdEx, nil
  1890  		case 5:
  1891  			iNdEx += 4
  1892  			return iNdEx, nil
  1893  		default:
  1894  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1895  		}
  1896  	}
  1897  	panic("unreachable")
  1898  }
  1899  
  1900  var (
  1901  	ErrInvalidLengthIoFormats = fmt.Errorf("proto: negative length found during unmarshaling")
  1902  	ErrIntOverflowIoFormats   = fmt.Errorf("proto: integer overflow")
  1903  )
  1904  
  1905  func init() {
  1906  	proto.RegisterFile("roachpb/io-formats.proto", fileDescriptor_io_formats_e2ffeab7714b237d)
  1907  }
  1908  
  1909  var fileDescriptor_io_formats_e2ffeab7714b237d = []byte{
  1910  	// 876 bytes of a gzipped FileDescriptorProto
  1911  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcf, 0x72, 0xdb, 0x44,
  1912  	0x18, 0x97, 0xfc, 0x4f, 0xf6, 0x67, 0x3b, 0x59, 0x16, 0x0e, 0x9a, 0x0e, 0x08, 0x8f, 0xa0, 0x4c,
  1913  	0x0a, 0x54, 0x99, 0xc9, 0x90, 0x19, 0x6e, 0x4c, 0xe3, 0x26, 0x90, 0x0e, 0xb1, 0xa9, 0x3d, 0xf4,
  1914  	0xc0, 0x45, 0x23, 0xe4, 0x8d, 0x23, 0x22, 0x69, 0xd5, 0x5d, 0xc9, 0xae, 0xfb, 0x14, 0xbc, 0x01,
  1915  	0x2f, 0xd1, 0x03, 0x8f, 0x90, 0x63, 0x8f, 0x3d, 0x31, 0xe0, 0xbc, 0x08, 0xb3, 0xab, 0x95, 0x2d,
  1916  	0xb5, 0x6e, 0xe0, 0xf6, 0xcd, 0xef, 0xf7, 0xfd, 0xff, 0x7e, 0xbb, 0x60, 0x32, 0xea, 0xf9, 0x57,
  1917  	0xc9, 0xaf, 0x87, 0x01, 0x7d, 0x78, 0x49, 0x59, 0xe4, 0xa5, 0xdc, 0x49, 0x18, 0x4d, 0x29, 0xfe,
  1918  	0xc0, 0xa7, 0xfe, 0xb5, 0x64, 0x1d, 0xe5, 0x73, 0xef, 0xa3, 0x39, 0x9d, 0x53, 0xc9, 0x1e, 0x0a,
  1919  	0x2b, 0x77, 0xb4, 0x5f, 0x35, 0xa1, 0x77, 0x3e, 0x3e, 0x0b, 0x42, 0x72, 0x26, 0x13, 0xe0, 0x1f,
  1920  	0xa0, 0x95, 0xa7, 0x32, 0xf5, 0x81, 0x7e, 0xb0, 0x77, 0xf4, 0xa5, 0xf3, 0x4e, 0x2a, 0xa7, 0x1c,
  1921  	0xe0, 0x6c, 0xcd, 0x93, 0xc6, 0xcd, 0x5f, 0x9f, 0x6a, 0x13, 0x15, 0x8f, 0x8f, 0xa1, 0xee, 0xf3,
  1922  	0x85, 0x59, 0x1b, 0xe8, 0x07, 0xdd, 0xa3, 0x4f, 0x76, 0xa4, 0x19, 0x4e, 0x9f, 0x8d, 0x93, 0x34,
  1923  	0xa0, 0x31, 0x57, 0x91, 0xc2, 0x1f, 0x9f, 0x43, 0x27, 0x5a, 0xf1, 0xe7, 0xa1, 0x4b, 0xb3, 0xd4,
  1924  	0xac, 0xcb, 0xe0, 0x2f, 0x76, 0x04, 0x5f, 0xac, 0xa6, 0x4f, 0x7f, 0x1c, 0x67, 0xe9, 0x65, 0x10,
  1925  	0x92, 0x6a, 0x96, 0xb6, 0x0c, 0x1f, 0x67, 0x29, 0xfe, 0x0e, 0x8c, 0x64, 0xee, 0xfa, 0x34, 0x59,
  1926  	0x99, 0x0d, 0x99, 0x68, 0xb0, 0x23, 0xd1, 0x4f, 0xf3, 0x21, 0x4d, 0x56, 0xd5, 0x14, 0xad, 0x44,
  1927  	0x82, 0x78, 0x0a, 0x5d, 0x9f, 0x46, 0x09, 0x23, 0x9c, 0x07, 0x34, 0x36, 0x9b, 0x72, 0x23, 0x5f,
  1928  	0xfd, 0xd7, 0x46, 0x86, 0xdb, 0x10, 0x95, 0xaf, 0x9c, 0x45, 0x75, 0x35, 0xcb, 0xa2, 0xc4, 0x6c,
  1929  	0xdd, 0xd1, 0xd5, 0xe3, 0x2c, 0x4a, 0xde, 0xe9, 0x4a, 0x80, 0xf8, 0x01, 0xf4, 0xb9, 0xb7, 0x20,
  1930  	0x2e, 0x23, 0xbf, 0x11, 0x3f, 0x25, 0x33, 0xd3, 0x18, 0xe8, 0x07, 0x6d, 0xe5, 0xd4, 0x13, 0xd4,
  1931  	0x44, 0x31, 0xf8, 0x5b, 0x68, 0x78, 0x0b, 0x46, 0xcd, 0xb6, 0x2c, 0x64, 0xed, 0x28, 0xf4, 0x68,
  1932  	0xc1, 0x68, 0xb5, 0x8c, 0x8c, 0xb0, 0x09, 0x40, 0x49, 0x15, 0x5d, 0x30, 0x7e, 0x8e, 0xaf, 0x63,
  1933  	0xba, 0x8c, 0x91, 0x86, 0x0d, 0xa8, 0x0f, 0xa7, 0xcf, 0x90, 0x8e, 0x11, 0xf4, 0x2e, 0xd4, 0xae,
  1934  	0xc5, 0x19, 0x50, 0x0d, 0xf7, 0xa1, 0x23, 0x11, 0x31, 0x1d, 0xaa, 0x63, 0x80, 0x56, 0xbe, 0x5e,
  1935  	0xd4, 0xc8, 0x6d, 0xd1, 0x3f, 0x6a, 0xe2, 0x36, 0x34, 0x44, 0x5d, 0xd4, 0xb2, 0x8f, 0xa1, 0x5b,
  1936  	0x5a, 0x97, 0x24, 0xb2, 0x94, 0x22, 0x4d, 0x58, 0x23, 0x1a, 0x13, 0xa4, 0x0b, 0xeb, 0xfb, 0x97,
  1937  	0x41, 0x82, 0x6a, 0xc2, 0x3a, 0x11, 0x56, 0xdd, 0xfe, 0x53, 0x07, 0xd8, 0xca, 0x07, 0xdf, 0x83,
  1938  	0xa6, 0x4f, 0xa3, 0xc8, 0x93, 0x9a, 0x6d, 0xaa, 0x39, 0x72, 0x08, 0x5b, 0x60, 0x08, 0x83, 0xc4,
  1939  	0xa9, 0x94, 0x62, 0xc1, 0x16, 0xa0, 0xd8, 0x66, 0x9c, 0x85, 0xa1, 0x4b, 0x62, 0x9f, 0xce, 0x82,
  1940  	0x78, 0x2e, 0x35, 0xd7, 0x91, 0x5e, 0xfa, 0xa4, 0x27, 0xa8, 0x53, 0xc5, 0x60, 0x13, 0x1a, 0xfc,
  1941  	0x3a, 0x48, 0xa4, 0x98, 0xfa, 0xc5, 0xb6, 0x04, 0x22, 0x4f, 0x92, 0xb2, 0xc0, 0x4f, 0xdd, 0xe7,
  1942  	0x19, 0x4d, 0x09, 0x97, 0x52, 0xd9, 0x9e, 0x44, 0x52, 0x4f, 0x25, 0x63, 0xff, 0x51, 0x87, 0x0f,
  1943  	0x77, 0x88, 0x57, 0xa4, 0x60, 0x74, 0xe9, 0x72, 0x92, 0x78, 0xcc, 0x4b, 0x29, 0xab, 0xcc, 0xd2,
  1944  	0x63, 0x74, 0x39, 0x2d, 0x18, 0xfc, 0x10, 0xf6, 0x2f, 0x03, 0x12, 0xce, 0x4a, 0xce, 0xe5, 0xd1,
  1945  	0xf6, 0x24, 0xb9, 0x75, 0x1f, 0x81, 0x41, 0x62, 0x3f, 0xa4, 0x9c, 0xc8, 0xd9, 0xf6, 0x8e, 0x9c,
  1946  	0xff, 0xf7, 0x9e, 0x9c, 0xd3, 0x3c, 0xaa, 0xd8, 0x98, 0x4a, 0x82, 0x07, 0xd0, 0x56, 0x26, 0x93,
  1947  	0xab, 0x28, 0xea, 0x6e, 0x50, 0xfc, 0x19, 0xc0, 0x95, 0xc7, 0x5d, 0xc2, 0x7d, 0x2f, 0x21, 0x95,
  1948  	0x5d, 0x74, 0xae, 0x3c, 0x7e, 0x2a, 0x61, 0xfc, 0x31, 0xb4, 0x94, 0x43, 0xab, 0x94, 0x44, 0x61,
  1949  	0x9b, 0x5d, 0x1b, 0xbb, 0x76, 0x5d, 0x3d, 0x58, 0xfb, 0x7d, 0x07, 0xb3, 0x1d, 0x30, 0xd4, 0x0c,
  1950  	0xb8, 0x03, 0xcd, 0x11, 0x59, 0x10, 0x86, 0x34, 0xa1, 0xc4, 0x47, 0xe1, 0xd2, 0x5b, 0x71, 0xa4,
  1951  	0xe3, 0x1e, 0xb4, 0xf3, 0x69, 0xbd, 0x10, 0xd5, 0x9e, 0x34, 0xda, 0x1d, 0x04, 0x36, 0x87, 0x7e,
  1952  	0xe5, 0x53, 0xc0, 0x36, 0x74, 0x66, 0x24, 0x0c, 0xa2, 0x20, 0x25, 0xd5, 0xb3, 0x6c, 0x61, 0xd1,
  1953  	0xaf, 0x28, 0x2d, 0x0f, 0xd1, 0x29, 0xfa, 0x15, 0x08, 0xfe, 0x1c, 0x20, 0xf2, 0x5e, 0x4c, 0xe8,
  1954  	0x72, 0x1a, 0xbc, 0xcc, 0x2f, 0x50, 0x84, 0x97, 0x70, 0xfb, 0x58, 0x14, 0x2d, 0xbd, 0xf9, 0xb7,
  1955  	0xc2, 0xf4, 0xf7, 0x84, 0xbd, 0xaa, 0x41, 0xb7, 0xf4, 0x84, 0xf1, 0xf0, 0xad, 0xef, 0xfb, 0xfe,
  1956  	0xdd, 0x4f, 0xde, 0xd9, 0xf9, 0x73, 0xdf, 0x87, 0xae, 0x52, 0x73, 0x44, 0x67, 0x44, 0x8e, 0x54,
  1957  	0xdc, 0x0f, 0x72, 0xe2, 0x82, 0xce, 0x88, 0xe8, 0x90, 0xfb, 0x57, 0x24, 0xf2, 0x9e, 0x4c, 0xc7,
  1958  	0xa3, 0xd2, 0xb3, 0x11, 0x5e, 0x1b, 0x1c, 0x7f, 0x0d, 0xfb, 0x91, 0xf7, 0xc2, 0x65, 0xc4, 0xa7,
  1959  	0x6c, 0xe6, 0x72, 0x31, 0x4c, 0x59, 0x34, 0x7d, 0x31, 0x8c, 0xe4, 0xc4, 0x3c, 0xf8, 0x10, 0x50,
  1960  	0xe1, 0xb9, 0xd1, 0x76, 0xb3, 0xe4, 0xbe, 0x9f, 0xb3, 0x1b, 0x71, 0xdb, 0xdf, 0x40, 0x4b, 0xfd,
  1961  	0x51, 0x06, 0xd4, 0xc7, 0xc3, 0x33, 0xa4, 0xe1, 0x7d, 0xe8, 0x9e, 0x9c, 0x8f, 0xdc, 0xc9, 0xe9,
  1962  	0x70, 0x3c, 0x79, 0x3c, 0xcd, 0xff, 0x29, 0xd1, 0xca, 0x06, 0xa9, 0x9d, 0x3c, 0xb8, 0xf9, 0xc7,
  1963  	0xd2, 0x6e, 0xd6, 0x96, 0xfe, 0x7a, 0x6d, 0xe9, 0x6f, 0xd6, 0x96, 0xfe, 0xf7, 0xda, 0xd2, 0x7f,
  1964  	0xbf, 0xb5, 0xb4, 0xd7, 0xb7, 0x96, 0xf6, 0xe6, 0xd6, 0xd2, 0x7e, 0x31, 0xd4, 0xb6, 0xfe, 0x0d,
  1965  	0x00, 0x00, 0xff, 0xff, 0xe0, 0x82, 0x8d, 0xf0, 0x65, 0x07, 0x00, 0x00,
  1966  }