github.com/pachyderm/pachyderm@v1.13.4/src/client/pkg/tracing/extended/extended_trace.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: client/pkg/tracing/extended/extended_trace.proto
     3  
     4  package extended
     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  // TraceProto contains information identifying a Jaeger trace. It's used to
    26  // propagate traces that follow the lifetime of a long operation (e.g. creating
    27  // a pipeline or running a job), and which live longer than any single RPC.
    28  type TraceProto struct {
    29  	// serialized_trace contains the info identifying a trace in Jaeger (a
    30  	// (trace ID, span ID, sampled) tuple, basically)
    31  	SerializedTrace map[string]string `protobuf:"bytes,1,rep,name=serialized_trace,json=serializedTrace,proto3" json:"serialized_trace,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    32  	// pipeline specifies the target pipeline of this trace; this would be set for
    33  	// a trace created by 'pachctl create-pipeline' or 'pachctl update-pipeline'
    34  	// and would include the kubernetes RPCs involved in creating a pipeline
    35  	Pipeline             string   `protobuf:"bytes,2,opt,name=pipeline,proto3" json:"pipeline,omitempty"`
    36  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    37  	XXX_unrecognized     []byte   `json:"-"`
    38  	XXX_sizecache        int32    `json:"-"`
    39  }
    40  
    41  func (m *TraceProto) Reset()         { *m = TraceProto{} }
    42  func (m *TraceProto) String() string { return proto.CompactTextString(m) }
    43  func (*TraceProto) ProtoMessage()    {}
    44  func (*TraceProto) Descriptor() ([]byte, []int) {
    45  	return fileDescriptor_8d6b46ba46523418, []int{0}
    46  }
    47  func (m *TraceProto) XXX_Unmarshal(b []byte) error {
    48  	return m.Unmarshal(b)
    49  }
    50  func (m *TraceProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    51  	if deterministic {
    52  		return xxx_messageInfo_TraceProto.Marshal(b, m, deterministic)
    53  	} else {
    54  		b = b[:cap(b)]
    55  		n, err := m.MarshalToSizedBuffer(b)
    56  		if err != nil {
    57  			return nil, err
    58  		}
    59  		return b[:n], nil
    60  	}
    61  }
    62  func (m *TraceProto) XXX_Merge(src proto.Message) {
    63  	xxx_messageInfo_TraceProto.Merge(m, src)
    64  }
    65  func (m *TraceProto) XXX_Size() int {
    66  	return m.Size()
    67  }
    68  func (m *TraceProto) XXX_DiscardUnknown() {
    69  	xxx_messageInfo_TraceProto.DiscardUnknown(m)
    70  }
    71  
    72  var xxx_messageInfo_TraceProto proto.InternalMessageInfo
    73  
    74  func (m *TraceProto) GetSerializedTrace() map[string]string {
    75  	if m != nil {
    76  		return m.SerializedTrace
    77  	}
    78  	return nil
    79  }
    80  
    81  func (m *TraceProto) GetPipeline() string {
    82  	if m != nil {
    83  		return m.Pipeline
    84  	}
    85  	return ""
    86  }
    87  
    88  func init() {
    89  	proto.RegisterType((*TraceProto)(nil), "extended.TraceProto")
    90  	proto.RegisterMapType((map[string]string)(nil), "extended.TraceProto.SerializedTraceEntry")
    91  }
    92  
    93  func init() {
    94  	proto.RegisterFile("client/pkg/tracing/extended/extended_trace.proto", fileDescriptor_8d6b46ba46523418)
    95  }
    96  
    97  var fileDescriptor_8d6b46ba46523418 = []byte{
    98  	// 228 bytes of a gzipped FileDescriptorProto
    99  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x32, 0x48, 0xce, 0xc9, 0x4c,
   100  	0xcd, 0x2b, 0xd1, 0x2f, 0xc8, 0x4e, 0xd7, 0x2f, 0x29, 0x4a, 0x4c, 0xce, 0xcc, 0x4b, 0xd7, 0x4f,
   101  	0xad, 0x28, 0x49, 0xcd, 0x4b, 0x49, 0x4d, 0x81, 0x33, 0xe2, 0x41, 0x32, 0xa9, 0x7a, 0x05, 0x45,
   102  	0xf9, 0x25, 0xf9, 0x42, 0x1c, 0x30, 0x51, 0xa5, 0x43, 0x8c, 0x5c, 0x5c, 0x21, 0x20, 0x99, 0x00,
   103  	0xb0, 0x44, 0x08, 0x97, 0x40, 0x71, 0x6a, 0x51, 0x66, 0x62, 0x4e, 0x66, 0x15, 0x4c, 0x8b, 0x04,
   104  	0xa3, 0x02, 0xb3, 0x06, 0xb7, 0x91, 0xa6, 0x1e, 0x4c, 0x8f, 0x1e, 0x42, 0xbd, 0x5e, 0x30, 0x5c,
   105  	0x31, 0x58, 0xd0, 0x35, 0xaf, 0xa4, 0xa8, 0x32, 0x88, 0xbf, 0x18, 0x55, 0x54, 0x48, 0x8a, 0x8b,
   106  	0xa3, 0x20, 0xb3, 0x20, 0x35, 0x27, 0x33, 0x2f, 0x55, 0x82, 0x49, 0x81, 0x51, 0x83, 0x33, 0x08,
   107  	0xce, 0x97, 0x72, 0xe2, 0x12, 0xc1, 0x66, 0x88, 0x90, 0x00, 0x17, 0x73, 0x76, 0x6a, 0xa5, 0x04,
   108  	0x23, 0x58, 0x39, 0x88, 0x29, 0x24, 0xc2, 0xc5, 0x5a, 0x96, 0x98, 0x53, 0x0a, 0x33, 0x02, 0xc2,
   109  	0xb1, 0x62, 0xb2, 0x60, 0x74, 0xf2, 0x39, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07,
   110  	0x8f, 0xe4, 0x18, 0xa3, 0xec, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5,
   111  	0x0b, 0x12, 0x93, 0x33, 0x2a, 0x53, 0x52, 0x8b, 0x90, 0x59, 0xc5, 0x45, 0xc9, 0xfa, 0x78, 0x42,
   112  	0x2c, 0x89, 0x0d, 0x1c, 0x46, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x84, 0xae, 0x61,
   113  	0x57, 0x01, 0x00, 0x00,
   114  }
   115  
   116  func (m *TraceProto) Marshal() (dAtA []byte, err error) {
   117  	size := m.Size()
   118  	dAtA = make([]byte, size)
   119  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   120  	if err != nil {
   121  		return nil, err
   122  	}
   123  	return dAtA[:n], nil
   124  }
   125  
   126  func (m *TraceProto) MarshalTo(dAtA []byte) (int, error) {
   127  	size := m.Size()
   128  	return m.MarshalToSizedBuffer(dAtA[:size])
   129  }
   130  
   131  func (m *TraceProto) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   132  	i := len(dAtA)
   133  	_ = i
   134  	var l int
   135  	_ = l
   136  	if m.XXX_unrecognized != nil {
   137  		i -= len(m.XXX_unrecognized)
   138  		copy(dAtA[i:], m.XXX_unrecognized)
   139  	}
   140  	if len(m.Pipeline) > 0 {
   141  		i -= len(m.Pipeline)
   142  		copy(dAtA[i:], m.Pipeline)
   143  		i = encodeVarintExtendedTrace(dAtA, i, uint64(len(m.Pipeline)))
   144  		i--
   145  		dAtA[i] = 0x12
   146  	}
   147  	if len(m.SerializedTrace) > 0 {
   148  		for k := range m.SerializedTrace {
   149  			v := m.SerializedTrace[k]
   150  			baseI := i
   151  			i -= len(v)
   152  			copy(dAtA[i:], v)
   153  			i = encodeVarintExtendedTrace(dAtA, i, uint64(len(v)))
   154  			i--
   155  			dAtA[i] = 0x12
   156  			i -= len(k)
   157  			copy(dAtA[i:], k)
   158  			i = encodeVarintExtendedTrace(dAtA, i, uint64(len(k)))
   159  			i--
   160  			dAtA[i] = 0xa
   161  			i = encodeVarintExtendedTrace(dAtA, i, uint64(baseI-i))
   162  			i--
   163  			dAtA[i] = 0xa
   164  		}
   165  	}
   166  	return len(dAtA) - i, nil
   167  }
   168  
   169  func encodeVarintExtendedTrace(dAtA []byte, offset int, v uint64) int {
   170  	offset -= sovExtendedTrace(v)
   171  	base := offset
   172  	for v >= 1<<7 {
   173  		dAtA[offset] = uint8(v&0x7f | 0x80)
   174  		v >>= 7
   175  		offset++
   176  	}
   177  	dAtA[offset] = uint8(v)
   178  	return base
   179  }
   180  func (m *TraceProto) Size() (n int) {
   181  	if m == nil {
   182  		return 0
   183  	}
   184  	var l int
   185  	_ = l
   186  	if len(m.SerializedTrace) > 0 {
   187  		for k, v := range m.SerializedTrace {
   188  			_ = k
   189  			_ = v
   190  			mapEntrySize := 1 + len(k) + sovExtendedTrace(uint64(len(k))) + 1 + len(v) + sovExtendedTrace(uint64(len(v)))
   191  			n += mapEntrySize + 1 + sovExtendedTrace(uint64(mapEntrySize))
   192  		}
   193  	}
   194  	l = len(m.Pipeline)
   195  	if l > 0 {
   196  		n += 1 + l + sovExtendedTrace(uint64(l))
   197  	}
   198  	if m.XXX_unrecognized != nil {
   199  		n += len(m.XXX_unrecognized)
   200  	}
   201  	return n
   202  }
   203  
   204  func sovExtendedTrace(x uint64) (n int) {
   205  	return (math_bits.Len64(x|1) + 6) / 7
   206  }
   207  func sozExtendedTrace(x uint64) (n int) {
   208  	return sovExtendedTrace(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   209  }
   210  func (m *TraceProto) Unmarshal(dAtA []byte) error {
   211  	l := len(dAtA)
   212  	iNdEx := 0
   213  	for iNdEx < l {
   214  		preIndex := iNdEx
   215  		var wire uint64
   216  		for shift := uint(0); ; shift += 7 {
   217  			if shift >= 64 {
   218  				return ErrIntOverflowExtendedTrace
   219  			}
   220  			if iNdEx >= l {
   221  				return io.ErrUnexpectedEOF
   222  			}
   223  			b := dAtA[iNdEx]
   224  			iNdEx++
   225  			wire |= uint64(b&0x7F) << shift
   226  			if b < 0x80 {
   227  				break
   228  			}
   229  		}
   230  		fieldNum := int32(wire >> 3)
   231  		wireType := int(wire & 0x7)
   232  		if wireType == 4 {
   233  			return fmt.Errorf("proto: TraceProto: wiretype end group for non-group")
   234  		}
   235  		if fieldNum <= 0 {
   236  			return fmt.Errorf("proto: TraceProto: illegal tag %d (wire type %d)", fieldNum, wire)
   237  		}
   238  		switch fieldNum {
   239  		case 1:
   240  			if wireType != 2 {
   241  				return fmt.Errorf("proto: wrong wireType = %d for field SerializedTrace", wireType)
   242  			}
   243  			var msglen int
   244  			for shift := uint(0); ; shift += 7 {
   245  				if shift >= 64 {
   246  					return ErrIntOverflowExtendedTrace
   247  				}
   248  				if iNdEx >= l {
   249  					return io.ErrUnexpectedEOF
   250  				}
   251  				b := dAtA[iNdEx]
   252  				iNdEx++
   253  				msglen |= int(b&0x7F) << shift
   254  				if b < 0x80 {
   255  					break
   256  				}
   257  			}
   258  			if msglen < 0 {
   259  				return ErrInvalidLengthExtendedTrace
   260  			}
   261  			postIndex := iNdEx + msglen
   262  			if postIndex < 0 {
   263  				return ErrInvalidLengthExtendedTrace
   264  			}
   265  			if postIndex > l {
   266  				return io.ErrUnexpectedEOF
   267  			}
   268  			if m.SerializedTrace == nil {
   269  				m.SerializedTrace = make(map[string]string)
   270  			}
   271  			var mapkey string
   272  			var mapvalue string
   273  			for iNdEx < postIndex {
   274  				entryPreIndex := iNdEx
   275  				var wire uint64
   276  				for shift := uint(0); ; shift += 7 {
   277  					if shift >= 64 {
   278  						return ErrIntOverflowExtendedTrace
   279  					}
   280  					if iNdEx >= l {
   281  						return io.ErrUnexpectedEOF
   282  					}
   283  					b := dAtA[iNdEx]
   284  					iNdEx++
   285  					wire |= uint64(b&0x7F) << shift
   286  					if b < 0x80 {
   287  						break
   288  					}
   289  				}
   290  				fieldNum := int32(wire >> 3)
   291  				if fieldNum == 1 {
   292  					var stringLenmapkey uint64
   293  					for shift := uint(0); ; shift += 7 {
   294  						if shift >= 64 {
   295  							return ErrIntOverflowExtendedTrace
   296  						}
   297  						if iNdEx >= l {
   298  							return io.ErrUnexpectedEOF
   299  						}
   300  						b := dAtA[iNdEx]
   301  						iNdEx++
   302  						stringLenmapkey |= uint64(b&0x7F) << shift
   303  						if b < 0x80 {
   304  							break
   305  						}
   306  					}
   307  					intStringLenmapkey := int(stringLenmapkey)
   308  					if intStringLenmapkey < 0 {
   309  						return ErrInvalidLengthExtendedTrace
   310  					}
   311  					postStringIndexmapkey := iNdEx + intStringLenmapkey
   312  					if postStringIndexmapkey < 0 {
   313  						return ErrInvalidLengthExtendedTrace
   314  					}
   315  					if postStringIndexmapkey > l {
   316  						return io.ErrUnexpectedEOF
   317  					}
   318  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
   319  					iNdEx = postStringIndexmapkey
   320  				} else if fieldNum == 2 {
   321  					var stringLenmapvalue uint64
   322  					for shift := uint(0); ; shift += 7 {
   323  						if shift >= 64 {
   324  							return ErrIntOverflowExtendedTrace
   325  						}
   326  						if iNdEx >= l {
   327  							return io.ErrUnexpectedEOF
   328  						}
   329  						b := dAtA[iNdEx]
   330  						iNdEx++
   331  						stringLenmapvalue |= uint64(b&0x7F) << shift
   332  						if b < 0x80 {
   333  							break
   334  						}
   335  					}
   336  					intStringLenmapvalue := int(stringLenmapvalue)
   337  					if intStringLenmapvalue < 0 {
   338  						return ErrInvalidLengthExtendedTrace
   339  					}
   340  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
   341  					if postStringIndexmapvalue < 0 {
   342  						return ErrInvalidLengthExtendedTrace
   343  					}
   344  					if postStringIndexmapvalue > l {
   345  						return io.ErrUnexpectedEOF
   346  					}
   347  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
   348  					iNdEx = postStringIndexmapvalue
   349  				} else {
   350  					iNdEx = entryPreIndex
   351  					skippy, err := skipExtendedTrace(dAtA[iNdEx:])
   352  					if err != nil {
   353  						return err
   354  					}
   355  					if (skippy < 0) || (iNdEx+skippy) < 0 {
   356  						return ErrInvalidLengthExtendedTrace
   357  					}
   358  					if (iNdEx + skippy) > postIndex {
   359  						return io.ErrUnexpectedEOF
   360  					}
   361  					iNdEx += skippy
   362  				}
   363  			}
   364  			m.SerializedTrace[mapkey] = mapvalue
   365  			iNdEx = postIndex
   366  		case 2:
   367  			if wireType != 2 {
   368  				return fmt.Errorf("proto: wrong wireType = %d for field Pipeline", wireType)
   369  			}
   370  			var stringLen uint64
   371  			for shift := uint(0); ; shift += 7 {
   372  				if shift >= 64 {
   373  					return ErrIntOverflowExtendedTrace
   374  				}
   375  				if iNdEx >= l {
   376  					return io.ErrUnexpectedEOF
   377  				}
   378  				b := dAtA[iNdEx]
   379  				iNdEx++
   380  				stringLen |= uint64(b&0x7F) << shift
   381  				if b < 0x80 {
   382  					break
   383  				}
   384  			}
   385  			intStringLen := int(stringLen)
   386  			if intStringLen < 0 {
   387  				return ErrInvalidLengthExtendedTrace
   388  			}
   389  			postIndex := iNdEx + intStringLen
   390  			if postIndex < 0 {
   391  				return ErrInvalidLengthExtendedTrace
   392  			}
   393  			if postIndex > l {
   394  				return io.ErrUnexpectedEOF
   395  			}
   396  			m.Pipeline = string(dAtA[iNdEx:postIndex])
   397  			iNdEx = postIndex
   398  		default:
   399  			iNdEx = preIndex
   400  			skippy, err := skipExtendedTrace(dAtA[iNdEx:])
   401  			if err != nil {
   402  				return err
   403  			}
   404  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   405  				return ErrInvalidLengthExtendedTrace
   406  			}
   407  			if (iNdEx + skippy) > l {
   408  				return io.ErrUnexpectedEOF
   409  			}
   410  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   411  			iNdEx += skippy
   412  		}
   413  	}
   414  
   415  	if iNdEx > l {
   416  		return io.ErrUnexpectedEOF
   417  	}
   418  	return nil
   419  }
   420  func skipExtendedTrace(dAtA []byte) (n int, err error) {
   421  	l := len(dAtA)
   422  	iNdEx := 0
   423  	depth := 0
   424  	for iNdEx < l {
   425  		var wire uint64
   426  		for shift := uint(0); ; shift += 7 {
   427  			if shift >= 64 {
   428  				return 0, ErrIntOverflowExtendedTrace
   429  			}
   430  			if iNdEx >= l {
   431  				return 0, io.ErrUnexpectedEOF
   432  			}
   433  			b := dAtA[iNdEx]
   434  			iNdEx++
   435  			wire |= (uint64(b) & 0x7F) << shift
   436  			if b < 0x80 {
   437  				break
   438  			}
   439  		}
   440  		wireType := int(wire & 0x7)
   441  		switch wireType {
   442  		case 0:
   443  			for shift := uint(0); ; shift += 7 {
   444  				if shift >= 64 {
   445  					return 0, ErrIntOverflowExtendedTrace
   446  				}
   447  				if iNdEx >= l {
   448  					return 0, io.ErrUnexpectedEOF
   449  				}
   450  				iNdEx++
   451  				if dAtA[iNdEx-1] < 0x80 {
   452  					break
   453  				}
   454  			}
   455  		case 1:
   456  			iNdEx += 8
   457  		case 2:
   458  			var length int
   459  			for shift := uint(0); ; shift += 7 {
   460  				if shift >= 64 {
   461  					return 0, ErrIntOverflowExtendedTrace
   462  				}
   463  				if iNdEx >= l {
   464  					return 0, io.ErrUnexpectedEOF
   465  				}
   466  				b := dAtA[iNdEx]
   467  				iNdEx++
   468  				length |= (int(b) & 0x7F) << shift
   469  				if b < 0x80 {
   470  					break
   471  				}
   472  			}
   473  			if length < 0 {
   474  				return 0, ErrInvalidLengthExtendedTrace
   475  			}
   476  			iNdEx += length
   477  		case 3:
   478  			depth++
   479  		case 4:
   480  			if depth == 0 {
   481  				return 0, ErrUnexpectedEndOfGroupExtendedTrace
   482  			}
   483  			depth--
   484  		case 5:
   485  			iNdEx += 4
   486  		default:
   487  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   488  		}
   489  		if iNdEx < 0 {
   490  			return 0, ErrInvalidLengthExtendedTrace
   491  		}
   492  		if depth == 0 {
   493  			return iNdEx, nil
   494  		}
   495  	}
   496  	return 0, io.ErrUnexpectedEOF
   497  }
   498  
   499  var (
   500  	ErrInvalidLengthExtendedTrace        = fmt.Errorf("proto: negative length found during unmarshaling")
   501  	ErrIntOverflowExtendedTrace          = fmt.Errorf("proto: integer overflow")
   502  	ErrUnexpectedEndOfGroupExtendedTrace = fmt.Errorf("proto: unexpected end of group")
   503  )