Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/dataobj/metastore/metastore.pb.go

467 lines
12 KiB

// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: pkg/dataobj/metastore/metastore.proto
package metastore
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
io "io"
math "math"
math_bits "math/bits"
reflect "reflect"
strings "strings"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// ColumnInfo describes an individual column within a data set.
type ObjectWrittenEvent struct {
ObjectPath string `protobuf:"bytes,2,opt,name=objectPath,proto3" json:"objectPath,omitempty"`
WriteTime string `protobuf:"bytes,3,opt,name=writeTime,proto3" json:"writeTime,omitempty"`
}
func (m *ObjectWrittenEvent) Reset() { *m = ObjectWrittenEvent{} }
func (*ObjectWrittenEvent) ProtoMessage() {}
func (*ObjectWrittenEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_fdfd617758a99d3c, []int{0}
}
func (m *ObjectWrittenEvent) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ObjectWrittenEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ObjectWrittenEvent.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ObjectWrittenEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_ObjectWrittenEvent.Merge(m, src)
}
func (m *ObjectWrittenEvent) XXX_Size() int {
return m.Size()
}
func (m *ObjectWrittenEvent) XXX_DiscardUnknown() {
xxx_messageInfo_ObjectWrittenEvent.DiscardUnknown(m)
}
var xxx_messageInfo_ObjectWrittenEvent proto.InternalMessageInfo
func (m *ObjectWrittenEvent) GetObjectPath() string {
if m != nil {
return m.ObjectPath
}
return ""
}
func (m *ObjectWrittenEvent) GetWriteTime() string {
if m != nil {
return m.WriteTime
}
return ""
}
func init() {
proto.RegisterType((*ObjectWrittenEvent)(nil), "dataobj.metastore.ObjectWrittenEvent")
}
func init() {
proto.RegisterFile("pkg/dataobj/metastore/metastore.proto", fileDescriptor_fdfd617758a99d3c)
}
var fileDescriptor_fdfd617758a99d3c = []byte{
// 222 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x2d, 0xc8, 0x4e, 0xd7,
0x4f, 0x49, 0x2c, 0x49, 0xcc, 0x4f, 0xca, 0xd2, 0xcf, 0x4d, 0x2d, 0x49, 0x2c, 0x2e, 0xc9, 0x2f,
0x4a, 0x45, 0xb0, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0x04, 0xa1, 0x4a, 0xf4, 0xe0, 0x12,
0x4a, 0x11, 0x5c, 0x42, 0xfe, 0x49, 0x59, 0xa9, 0xc9, 0x25, 0xe1, 0x45, 0x99, 0x25, 0x25, 0xa9,
0x79, 0xae, 0x65, 0xa9, 0x79, 0x25, 0x42, 0x72, 0x5c, 0x5c, 0xf9, 0x60, 0xd1, 0x80, 0xc4, 0x92,
0x0c, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x24, 0x11, 0x21, 0x19, 0x2e, 0xce, 0xf2, 0xa2,
0xcc, 0x92, 0xd4, 0x90, 0xcc, 0xdc, 0x54, 0x09, 0x66, 0xb0, 0x34, 0x42, 0xc0, 0x8b, 0x85, 0x83,
0x51, 0x80, 0xc9, 0x29, 0xed, 0xc2, 0x43, 0x39, 0x86, 0x1b, 0x0f, 0xe5, 0x18, 0x3e, 0x3c, 0x94,
0x63, 0x6c, 0x78, 0x24, 0xc7, 0xb8, 0xe2, 0x91, 0x1c, 0xe3, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e,
0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0xf8, 0xe2, 0x91, 0x1c, 0xc3, 0x87, 0x47, 0x72, 0x8c, 0x13,
0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x41, 0x7a, 0x66,
0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7a, 0x51, 0x62, 0x5a, 0x62, 0x5e, 0xa2,
0x7e, 0x4e, 0x7e, 0x76, 0xa6, 0x7e, 0x99, 0xb1, 0x3e, 0x56, 0x4f, 0x26, 0xb1, 0x81, 0xfd, 0x66,
0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x54, 0xec, 0x1a, 0x04, 0x01, 0x00, 0x00,
}
func (this *ObjectWrittenEvent) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*ObjectWrittenEvent)
if !ok {
that2, ok := that.(ObjectWrittenEvent)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.ObjectPath != that1.ObjectPath {
return false
}
if this.WriteTime != that1.WriteTime {
return false
}
return true
}
func (this *ObjectWrittenEvent) GoString() string {
if this == nil {
return "nil"
}
s := make([]string, 0, 6)
s = append(s, "&metastore.ObjectWrittenEvent{")
s = append(s, "ObjectPath: "+fmt.Sprintf("%#v", this.ObjectPath)+",\n")
s = append(s, "WriteTime: "+fmt.Sprintf("%#v", this.WriteTime)+",\n")
s = append(s, "}")
return strings.Join(s, "")
}
func valueToGoStringMetastore(v interface{}, typ string) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
}
func (m *ObjectWrittenEvent) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *ObjectWrittenEvent) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *ObjectWrittenEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.WriteTime) > 0 {
i -= len(m.WriteTime)
copy(dAtA[i:], m.WriteTime)
i = encodeVarintMetastore(dAtA, i, uint64(len(m.WriteTime)))
i--
dAtA[i] = 0x1a
}
if len(m.ObjectPath) > 0 {
i -= len(m.ObjectPath)
copy(dAtA[i:], m.ObjectPath)
i = encodeVarintMetastore(dAtA, i, uint64(len(m.ObjectPath)))
i--
dAtA[i] = 0x12
}
return len(dAtA) - i, nil
}
func encodeVarintMetastore(dAtA []byte, offset int, v uint64) int {
offset -= sovMetastore(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *ObjectWrittenEvent) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.ObjectPath)
if l > 0 {
n += 1 + l + sovMetastore(uint64(l))
}
l = len(m.WriteTime)
if l > 0 {
n += 1 + l + sovMetastore(uint64(l))
}
return n
}
func sovMetastore(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozMetastore(x uint64) (n int) {
return sovMetastore(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (this *ObjectWrittenEvent) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&ObjectWrittenEvent{`,
`ObjectPath:` + fmt.Sprintf("%v", this.ObjectPath) + `,`,
`WriteTime:` + fmt.Sprintf("%v", this.WriteTime) + `,`,
`}`,
}, "")
return s
}
func valueToStringMetastore(v interface{}) string {
rv := reflect.ValueOf(v)
if rv.IsNil() {
return "nil"
}
pv := reflect.Indirect(rv).Interface()
return fmt.Sprintf("*%v", pv)
}
func (m *ObjectWrittenEvent) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMetastore
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: ObjectWrittenEvent: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ObjectWrittenEvent: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ObjectPath", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMetastore
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthMetastore
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthMetastore
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ObjectPath = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field WriteTime", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowMetastore
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthMetastore
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthMetastore
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.WriteTime = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipMetastore(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthMetastore
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthMetastore
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipMetastore(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMetastore
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMetastore
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
return iNdEx, nil
case 1:
iNdEx += 8
return iNdEx, nil
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMetastore
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if length < 0 {
return 0, ErrInvalidLengthMetastore
}
iNdEx += length
if iNdEx < 0 {
return 0, ErrInvalidLengthMetastore
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowMetastore
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
innerWire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
innerWireType := int(innerWire & 0x7)
if innerWireType == 4 {
break
}
next, err := skipMetastore(dAtA[start:])
if err != nil {
return 0, err
}
iNdEx = start + next
if iNdEx < 0 {
return 0, ErrInvalidLengthMetastore
}
}
return iNdEx, nil
case 4:
return iNdEx, nil
case 5:
iNdEx += 4
return iNdEx, nil
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
}
panic("unreachable")
}
var (
ErrInvalidLengthMetastore = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowMetastore = fmt.Errorf("proto: integer overflow")
)