github.com/gravitational/teleport/api@v0.0.0-20240507183017-3110591cbafc/types/events/athena.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: teleport/legacy/types/events/athena.proto
     3  
     4  package events
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/gogo/protobuf/proto"
     9  	io "io"
    10  	math "math"
    11  	math_bits "math/bits"
    12  )
    13  
    14  // Reference imports to suppress errors if they are not otherwise used.
    15  var _ = proto.Marshal
    16  var _ = fmt.Errorf
    17  var _ = math.Inf
    18  
    19  // This is a compile-time assertion to ensure that this generated file
    20  // is compatible with the proto package it is being compiled against.
    21  // A compilation error at this line likely means your copy of the
    22  // proto package needs to be updated.
    23  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    24  
    25  // AthenaS3EventPayload is used as payload for sending large events to SQS.
    26  type AthenaS3EventPayload struct {
    27  	// Path on S3.
    28  	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
    29  	// VersionID is versionID of file on s3, if versioning is enabled.
    30  	VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
    31  	// Custom KMS key for server-side encryption.
    32  	Ckms                 string   `protobuf:"bytes,3,opt,name=ckms,proto3" json:"ckms,omitempty"`
    33  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    34  	XXX_unrecognized     []byte   `json:"-"`
    35  	XXX_sizecache        int32    `json:"-"`
    36  }
    37  
    38  func (m *AthenaS3EventPayload) Reset()         { *m = AthenaS3EventPayload{} }
    39  func (m *AthenaS3EventPayload) String() string { return proto.CompactTextString(m) }
    40  func (*AthenaS3EventPayload) ProtoMessage()    {}
    41  func (*AthenaS3EventPayload) Descriptor() ([]byte, []int) {
    42  	return fileDescriptor_c0d45ba0499f9acf, []int{0}
    43  }
    44  func (m *AthenaS3EventPayload) XXX_Unmarshal(b []byte) error {
    45  	return m.Unmarshal(b)
    46  }
    47  func (m *AthenaS3EventPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	if deterministic {
    49  		return xxx_messageInfo_AthenaS3EventPayload.Marshal(b, m, deterministic)
    50  	} else {
    51  		b = b[:cap(b)]
    52  		n, err := m.MarshalToSizedBuffer(b)
    53  		if err != nil {
    54  			return nil, err
    55  		}
    56  		return b[:n], nil
    57  	}
    58  }
    59  func (m *AthenaS3EventPayload) XXX_Merge(src proto.Message) {
    60  	xxx_messageInfo_AthenaS3EventPayload.Merge(m, src)
    61  }
    62  func (m *AthenaS3EventPayload) XXX_Size() int {
    63  	return m.Size()
    64  }
    65  func (m *AthenaS3EventPayload) XXX_DiscardUnknown() {
    66  	xxx_messageInfo_AthenaS3EventPayload.DiscardUnknown(m)
    67  }
    68  
    69  var xxx_messageInfo_AthenaS3EventPayload proto.InternalMessageInfo
    70  
    71  func (m *AthenaS3EventPayload) GetPath() string {
    72  	if m != nil {
    73  		return m.Path
    74  	}
    75  	return ""
    76  }
    77  
    78  func (m *AthenaS3EventPayload) GetVersionId() string {
    79  	if m != nil {
    80  		return m.VersionId
    81  	}
    82  	return ""
    83  }
    84  
    85  func (m *AthenaS3EventPayload) GetCkms() string {
    86  	if m != nil {
    87  		return m.Ckms
    88  	}
    89  	return ""
    90  }
    91  
    92  func init() {
    93  	proto.RegisterType((*AthenaS3EventPayload)(nil), "events.AthenaS3EventPayload")
    94  }
    95  
    96  func init() {
    97  	proto.RegisterFile("teleport/legacy/types/events/athena.proto", fileDescriptor_c0d45ba0499f9acf)
    98  }
    99  
   100  var fileDescriptor_c0d45ba0499f9acf = []byte{
   101  	// 195 bytes of a gzipped FileDescriptorProto
   102  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2c, 0x49, 0xcd, 0x49,
   103  	0x2d, 0xc8, 0x2f, 0x2a, 0xd1, 0xcf, 0x49, 0x4d, 0x4f, 0x4c, 0xae, 0xd4, 0x2f, 0xa9, 0x2c, 0x48,
   104  	0x2d, 0xd6, 0x4f, 0x2d, 0x4b, 0xcd, 0x2b, 0x29, 0xd6, 0x4f, 0x2c, 0xc9, 0x48, 0xcd, 0x4b, 0xd4,
   105  	0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x83, 0x08, 0x2a, 0xc5, 0x72, 0x89, 0x38, 0x82, 0xc5,
   106  	0x83, 0x8d, 0x5d, 0x41, 0x22, 0x01, 0x89, 0x95, 0x39, 0xf9, 0x89, 0x29, 0x42, 0x42, 0x5c, 0x2c,
   107  	0x05, 0x89, 0x25, 0x19, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x60, 0xb6, 0x90, 0x2c, 0x17,
   108  	0x57, 0x59, 0x6a, 0x51, 0x71, 0x66, 0x7e, 0x5e, 0x7c, 0x66, 0x8a, 0x04, 0x13, 0x58, 0x86, 0x13,
   109  	0x2a, 0xe2, 0x09, 0xd6, 0x92, 0x9c, 0x9d, 0x5b, 0x2c, 0xc1, 0x0c, 0xd1, 0x02, 0x62, 0x3b, 0x39,
   110  	0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x51, 0x46, 0xe9,
   111  	0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xe9, 0x45, 0x89, 0x65, 0x99, 0x25,
   112  	0x89, 0x25, 0x99, 0xf9, 0x79, 0x89, 0x39, 0xfa, 0x70, 0x87, 0x27, 0x16, 0x64, 0xa2, 0xb8, 0x3a,
   113  	0x89, 0x0d, 0xec, 0x5e, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6d, 0xfe, 0x60, 0xcf, 0xdc,
   114  	0x00, 0x00, 0x00,
   115  }
   116  
   117  func (m *AthenaS3EventPayload) Marshal() (dAtA []byte, err error) {
   118  	size := m.Size()
   119  	dAtA = make([]byte, size)
   120  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   121  	if err != nil {
   122  		return nil, err
   123  	}
   124  	return dAtA[:n], nil
   125  }
   126  
   127  func (m *AthenaS3EventPayload) MarshalTo(dAtA []byte) (int, error) {
   128  	size := m.Size()
   129  	return m.MarshalToSizedBuffer(dAtA[:size])
   130  }
   131  
   132  func (m *AthenaS3EventPayload) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   133  	i := len(dAtA)
   134  	_ = i
   135  	var l int
   136  	_ = l
   137  	if m.XXX_unrecognized != nil {
   138  		i -= len(m.XXX_unrecognized)
   139  		copy(dAtA[i:], m.XXX_unrecognized)
   140  	}
   141  	if len(m.Ckms) > 0 {
   142  		i -= len(m.Ckms)
   143  		copy(dAtA[i:], m.Ckms)
   144  		i = encodeVarintAthena(dAtA, i, uint64(len(m.Ckms)))
   145  		i--
   146  		dAtA[i] = 0x1a
   147  	}
   148  	if len(m.VersionId) > 0 {
   149  		i -= len(m.VersionId)
   150  		copy(dAtA[i:], m.VersionId)
   151  		i = encodeVarintAthena(dAtA, i, uint64(len(m.VersionId)))
   152  		i--
   153  		dAtA[i] = 0x12
   154  	}
   155  	if len(m.Path) > 0 {
   156  		i -= len(m.Path)
   157  		copy(dAtA[i:], m.Path)
   158  		i = encodeVarintAthena(dAtA, i, uint64(len(m.Path)))
   159  		i--
   160  		dAtA[i] = 0xa
   161  	}
   162  	return len(dAtA) - i, nil
   163  }
   164  
   165  func encodeVarintAthena(dAtA []byte, offset int, v uint64) int {
   166  	offset -= sovAthena(v)
   167  	base := offset
   168  	for v >= 1<<7 {
   169  		dAtA[offset] = uint8(v&0x7f | 0x80)
   170  		v >>= 7
   171  		offset++
   172  	}
   173  	dAtA[offset] = uint8(v)
   174  	return base
   175  }
   176  func (m *AthenaS3EventPayload) Size() (n int) {
   177  	if m == nil {
   178  		return 0
   179  	}
   180  	var l int
   181  	_ = l
   182  	l = len(m.Path)
   183  	if l > 0 {
   184  		n += 1 + l + sovAthena(uint64(l))
   185  	}
   186  	l = len(m.VersionId)
   187  	if l > 0 {
   188  		n += 1 + l + sovAthena(uint64(l))
   189  	}
   190  	l = len(m.Ckms)
   191  	if l > 0 {
   192  		n += 1 + l + sovAthena(uint64(l))
   193  	}
   194  	if m.XXX_unrecognized != nil {
   195  		n += len(m.XXX_unrecognized)
   196  	}
   197  	return n
   198  }
   199  
   200  func sovAthena(x uint64) (n int) {
   201  	return (math_bits.Len64(x|1) + 6) / 7
   202  }
   203  func sozAthena(x uint64) (n int) {
   204  	return sovAthena(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   205  }
   206  func (m *AthenaS3EventPayload) Unmarshal(dAtA []byte) error {
   207  	l := len(dAtA)
   208  	iNdEx := 0
   209  	for iNdEx < l {
   210  		preIndex := iNdEx
   211  		var wire uint64
   212  		for shift := uint(0); ; shift += 7 {
   213  			if shift >= 64 {
   214  				return ErrIntOverflowAthena
   215  			}
   216  			if iNdEx >= l {
   217  				return io.ErrUnexpectedEOF
   218  			}
   219  			b := dAtA[iNdEx]
   220  			iNdEx++
   221  			wire |= uint64(b&0x7F) << shift
   222  			if b < 0x80 {
   223  				break
   224  			}
   225  		}
   226  		fieldNum := int32(wire >> 3)
   227  		wireType := int(wire & 0x7)
   228  		if wireType == 4 {
   229  			return fmt.Errorf("proto: AthenaS3EventPayload: wiretype end group for non-group")
   230  		}
   231  		if fieldNum <= 0 {
   232  			return fmt.Errorf("proto: AthenaS3EventPayload: illegal tag %d (wire type %d)", fieldNum, wire)
   233  		}
   234  		switch fieldNum {
   235  		case 1:
   236  			if wireType != 2 {
   237  				return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
   238  			}
   239  			var stringLen uint64
   240  			for shift := uint(0); ; shift += 7 {
   241  				if shift >= 64 {
   242  					return ErrIntOverflowAthena
   243  				}
   244  				if iNdEx >= l {
   245  					return io.ErrUnexpectedEOF
   246  				}
   247  				b := dAtA[iNdEx]
   248  				iNdEx++
   249  				stringLen |= uint64(b&0x7F) << shift
   250  				if b < 0x80 {
   251  					break
   252  				}
   253  			}
   254  			intStringLen := int(stringLen)
   255  			if intStringLen < 0 {
   256  				return ErrInvalidLengthAthena
   257  			}
   258  			postIndex := iNdEx + intStringLen
   259  			if postIndex < 0 {
   260  				return ErrInvalidLengthAthena
   261  			}
   262  			if postIndex > l {
   263  				return io.ErrUnexpectedEOF
   264  			}
   265  			m.Path = string(dAtA[iNdEx:postIndex])
   266  			iNdEx = postIndex
   267  		case 2:
   268  			if wireType != 2 {
   269  				return fmt.Errorf("proto: wrong wireType = %d for field VersionId", wireType)
   270  			}
   271  			var stringLen uint64
   272  			for shift := uint(0); ; shift += 7 {
   273  				if shift >= 64 {
   274  					return ErrIntOverflowAthena
   275  				}
   276  				if iNdEx >= l {
   277  					return io.ErrUnexpectedEOF
   278  				}
   279  				b := dAtA[iNdEx]
   280  				iNdEx++
   281  				stringLen |= uint64(b&0x7F) << shift
   282  				if b < 0x80 {
   283  					break
   284  				}
   285  			}
   286  			intStringLen := int(stringLen)
   287  			if intStringLen < 0 {
   288  				return ErrInvalidLengthAthena
   289  			}
   290  			postIndex := iNdEx + intStringLen
   291  			if postIndex < 0 {
   292  				return ErrInvalidLengthAthena
   293  			}
   294  			if postIndex > l {
   295  				return io.ErrUnexpectedEOF
   296  			}
   297  			m.VersionId = string(dAtA[iNdEx:postIndex])
   298  			iNdEx = postIndex
   299  		case 3:
   300  			if wireType != 2 {
   301  				return fmt.Errorf("proto: wrong wireType = %d for field Ckms", wireType)
   302  			}
   303  			var stringLen uint64
   304  			for shift := uint(0); ; shift += 7 {
   305  				if shift >= 64 {
   306  					return ErrIntOverflowAthena
   307  				}
   308  				if iNdEx >= l {
   309  					return io.ErrUnexpectedEOF
   310  				}
   311  				b := dAtA[iNdEx]
   312  				iNdEx++
   313  				stringLen |= uint64(b&0x7F) << shift
   314  				if b < 0x80 {
   315  					break
   316  				}
   317  			}
   318  			intStringLen := int(stringLen)
   319  			if intStringLen < 0 {
   320  				return ErrInvalidLengthAthena
   321  			}
   322  			postIndex := iNdEx + intStringLen
   323  			if postIndex < 0 {
   324  				return ErrInvalidLengthAthena
   325  			}
   326  			if postIndex > l {
   327  				return io.ErrUnexpectedEOF
   328  			}
   329  			m.Ckms = string(dAtA[iNdEx:postIndex])
   330  			iNdEx = postIndex
   331  		default:
   332  			iNdEx = preIndex
   333  			skippy, err := skipAthena(dAtA[iNdEx:])
   334  			if err != nil {
   335  				return err
   336  			}
   337  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   338  				return ErrInvalidLengthAthena
   339  			}
   340  			if (iNdEx + skippy) > l {
   341  				return io.ErrUnexpectedEOF
   342  			}
   343  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   344  			iNdEx += skippy
   345  		}
   346  	}
   347  
   348  	if iNdEx > l {
   349  		return io.ErrUnexpectedEOF
   350  	}
   351  	return nil
   352  }
   353  func skipAthena(dAtA []byte) (n int, err error) {
   354  	l := len(dAtA)
   355  	iNdEx := 0
   356  	depth := 0
   357  	for iNdEx < l {
   358  		var wire uint64
   359  		for shift := uint(0); ; shift += 7 {
   360  			if shift >= 64 {
   361  				return 0, ErrIntOverflowAthena
   362  			}
   363  			if iNdEx >= l {
   364  				return 0, io.ErrUnexpectedEOF
   365  			}
   366  			b := dAtA[iNdEx]
   367  			iNdEx++
   368  			wire |= (uint64(b) & 0x7F) << shift
   369  			if b < 0x80 {
   370  				break
   371  			}
   372  		}
   373  		wireType := int(wire & 0x7)
   374  		switch wireType {
   375  		case 0:
   376  			for shift := uint(0); ; shift += 7 {
   377  				if shift >= 64 {
   378  					return 0, ErrIntOverflowAthena
   379  				}
   380  				if iNdEx >= l {
   381  					return 0, io.ErrUnexpectedEOF
   382  				}
   383  				iNdEx++
   384  				if dAtA[iNdEx-1] < 0x80 {
   385  					break
   386  				}
   387  			}
   388  		case 1:
   389  			iNdEx += 8
   390  		case 2:
   391  			var length int
   392  			for shift := uint(0); ; shift += 7 {
   393  				if shift >= 64 {
   394  					return 0, ErrIntOverflowAthena
   395  				}
   396  				if iNdEx >= l {
   397  					return 0, io.ErrUnexpectedEOF
   398  				}
   399  				b := dAtA[iNdEx]
   400  				iNdEx++
   401  				length |= (int(b) & 0x7F) << shift
   402  				if b < 0x80 {
   403  					break
   404  				}
   405  			}
   406  			if length < 0 {
   407  				return 0, ErrInvalidLengthAthena
   408  			}
   409  			iNdEx += length
   410  		case 3:
   411  			depth++
   412  		case 4:
   413  			if depth == 0 {
   414  				return 0, ErrUnexpectedEndOfGroupAthena
   415  			}
   416  			depth--
   417  		case 5:
   418  			iNdEx += 4
   419  		default:
   420  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   421  		}
   422  		if iNdEx < 0 {
   423  			return 0, ErrInvalidLengthAthena
   424  		}
   425  		if depth == 0 {
   426  			return iNdEx, nil
   427  		}
   428  	}
   429  	return 0, io.ErrUnexpectedEOF
   430  }
   431  
   432  var (
   433  	ErrInvalidLengthAthena        = fmt.Errorf("proto: negative length found during unmarshaling")
   434  	ErrIntOverflowAthena          = fmt.Errorf("proto: integer overflow")
   435  	ErrUnexpectedEndOfGroupAthena = fmt.Errorf("proto: unexpected end of group")
   436  )