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.
 
 
 

190 lines
7.5 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/api/expr/v1beta1/source.proto
  3. package expr // import "google.golang.org/genproto/googleapis/api/expr/v1beta1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. // Source information collected at parse time.
  17. type SourceInfo struct {
  18. // The location name. All position information attached to an expression is
  19. // relative to this location.
  20. //
  21. // The location could be a file, UI element, or similar. For example,
  22. // `acme/app/AnvilPolicy.cel`.
  23. Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
  24. // Monotonically increasing list of character offsets where newlines appear.
  25. //
  26. // The line number of a given position is the index `i` where for a given
  27. // `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The
  28. // column may be derivd from `id_positions[id] - line_offsets[i]`.
  29. LineOffsets []int32 `protobuf:"varint,3,rep,packed,name=line_offsets,json=lineOffsets,proto3" json:"line_offsets,omitempty"`
  30. // A map from the parse node id (e.g. `Expr.id`) to the character offset
  31. // within source.
  32. Positions map[int32]int32 `protobuf:"bytes,4,rep,name=positions,proto3" json:"positions,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  33. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  34. XXX_unrecognized []byte `json:"-"`
  35. XXX_sizecache int32 `json:"-"`
  36. }
  37. func (m *SourceInfo) Reset() { *m = SourceInfo{} }
  38. func (m *SourceInfo) String() string { return proto.CompactTextString(m) }
  39. func (*SourceInfo) ProtoMessage() {}
  40. func (*SourceInfo) Descriptor() ([]byte, []int) {
  41. return fileDescriptor_source_32ecb266d62c46ba, []int{0}
  42. }
  43. func (m *SourceInfo) XXX_Unmarshal(b []byte) error {
  44. return xxx_messageInfo_SourceInfo.Unmarshal(m, b)
  45. }
  46. func (m *SourceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  47. return xxx_messageInfo_SourceInfo.Marshal(b, m, deterministic)
  48. }
  49. func (dst *SourceInfo) XXX_Merge(src proto.Message) {
  50. xxx_messageInfo_SourceInfo.Merge(dst, src)
  51. }
  52. func (m *SourceInfo) XXX_Size() int {
  53. return xxx_messageInfo_SourceInfo.Size(m)
  54. }
  55. func (m *SourceInfo) XXX_DiscardUnknown() {
  56. xxx_messageInfo_SourceInfo.DiscardUnknown(m)
  57. }
  58. var xxx_messageInfo_SourceInfo proto.InternalMessageInfo
  59. func (m *SourceInfo) GetLocation() string {
  60. if m != nil {
  61. return m.Location
  62. }
  63. return ""
  64. }
  65. func (m *SourceInfo) GetLineOffsets() []int32 {
  66. if m != nil {
  67. return m.LineOffsets
  68. }
  69. return nil
  70. }
  71. func (m *SourceInfo) GetPositions() map[int32]int32 {
  72. if m != nil {
  73. return m.Positions
  74. }
  75. return nil
  76. }
  77. // A specific position in source.
  78. type SourcePosition struct {
  79. // The soucre location name (e.g. file name).
  80. Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
  81. // The character offset.
  82. Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
  83. // The 1-based index of the starting line in the source text
  84. // where the issue occurs, or 0 if unknown.
  85. Line int32 `protobuf:"varint,3,opt,name=line,proto3" json:"line,omitempty"`
  86. // The 0-based index of the starting position within the line of source text
  87. // where the issue occurs. Only meaningful if line is nonzer..
  88. Column int32 `protobuf:"varint,4,opt,name=column,proto3" json:"column,omitempty"`
  89. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  90. XXX_unrecognized []byte `json:"-"`
  91. XXX_sizecache int32 `json:"-"`
  92. }
  93. func (m *SourcePosition) Reset() { *m = SourcePosition{} }
  94. func (m *SourcePosition) String() string { return proto.CompactTextString(m) }
  95. func (*SourcePosition) ProtoMessage() {}
  96. func (*SourcePosition) Descriptor() ([]byte, []int) {
  97. return fileDescriptor_source_32ecb266d62c46ba, []int{1}
  98. }
  99. func (m *SourcePosition) XXX_Unmarshal(b []byte) error {
  100. return xxx_messageInfo_SourcePosition.Unmarshal(m, b)
  101. }
  102. func (m *SourcePosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  103. return xxx_messageInfo_SourcePosition.Marshal(b, m, deterministic)
  104. }
  105. func (dst *SourcePosition) XXX_Merge(src proto.Message) {
  106. xxx_messageInfo_SourcePosition.Merge(dst, src)
  107. }
  108. func (m *SourcePosition) XXX_Size() int {
  109. return xxx_messageInfo_SourcePosition.Size(m)
  110. }
  111. func (m *SourcePosition) XXX_DiscardUnknown() {
  112. xxx_messageInfo_SourcePosition.DiscardUnknown(m)
  113. }
  114. var xxx_messageInfo_SourcePosition proto.InternalMessageInfo
  115. func (m *SourcePosition) GetLocation() string {
  116. if m != nil {
  117. return m.Location
  118. }
  119. return ""
  120. }
  121. func (m *SourcePosition) GetOffset() int32 {
  122. if m != nil {
  123. return m.Offset
  124. }
  125. return 0
  126. }
  127. func (m *SourcePosition) GetLine() int32 {
  128. if m != nil {
  129. return m.Line
  130. }
  131. return 0
  132. }
  133. func (m *SourcePosition) GetColumn() int32 {
  134. if m != nil {
  135. return m.Column
  136. }
  137. return 0
  138. }
  139. func init() {
  140. proto.RegisterType((*SourceInfo)(nil), "google.api.expr.v1beta1.SourceInfo")
  141. proto.RegisterMapType((map[int32]int32)(nil), "google.api.expr.v1beta1.SourceInfo.PositionsEntry")
  142. proto.RegisterType((*SourcePosition)(nil), "google.api.expr.v1beta1.SourcePosition")
  143. }
  144. func init() {
  145. proto.RegisterFile("google/api/expr/v1beta1/source.proto", fileDescriptor_source_32ecb266d62c46ba)
  146. }
  147. var fileDescriptor_source_32ecb266d62c46ba = []byte{
  148. // 311 bytes of a gzipped FileDescriptorProto
  149. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x41, 0x4b, 0x3b, 0x31,
  150. 0x10, 0xc5, 0x49, 0xb7, 0x5b, 0xfe, 0x9d, 0xfe, 0x29, 0x12, 0x44, 0x97, 0x7a, 0x59, 0x8b, 0x87,
  151. 0x3d, 0x65, 0x69, 0xbd, 0x88, 0xf5, 0x54, 0xf0, 0xe0, 0xc9, 0xb2, 0xde, 0xbc, 0x48, 0xba, 0xa4,
  152. 0x4b, 0x30, 0xcd, 0x84, 0xcd, 0xb6, 0xd8, 0xcf, 0xea, 0x17, 0xf1, 0x28, 0x49, 0xb6, 0x96, 0x2a,
  153. 0xbd, 0xe5, 0xcd, 0xfc, 0x32, 0x33, 0x8f, 0x07, 0x37, 0x15, 0x62, 0xa5, 0x44, 0xce, 0x8d, 0xcc,
  154. 0xc5, 0x87, 0xa9, 0xf3, 0xed, 0x64, 0x29, 0x1a, 0x3e, 0xc9, 0x2d, 0x6e, 0xea, 0x52, 0x30, 0x53,
  155. 0x63, 0x83, 0xf4, 0x32, 0x50, 0x8c, 0x1b, 0xc9, 0x1c, 0xc5, 0x5a, 0x6a, 0xfc, 0x49, 0x00, 0x5e,
  156. 0x3c, 0xf9, 0xa4, 0x57, 0x48, 0x47, 0xf0, 0x4f, 0x61, 0xc9, 0x1b, 0x89, 0x3a, 0xe9, 0xa4, 0x24,
  157. 0xeb, 0x17, 0x3f, 0x9a, 0x5e, 0xc3, 0x7f, 0x25, 0xb5, 0x78, 0xc3, 0xd5, 0xca, 0x8a, 0xc6, 0x26,
  158. 0x51, 0x1a, 0x65, 0x71, 0x31, 0x70, 0xb5, 0xe7, 0x50, 0xa2, 0x0b, 0xe8, 0x1b, 0xb4, 0xd2, 0xe1,
  159. 0x36, 0xe9, 0xa6, 0x51, 0x36, 0x98, 0x4e, 0xd9, 0x89, 0xd5, 0xec, 0xb0, 0x96, 0x2d, 0xf6, 0x9f,
  160. 0x1e, 0x75, 0x53, 0xef, 0x8a, 0xc3, 0x90, 0xd1, 0x03, 0x0c, 0x8f, 0x9b, 0xf4, 0x0c, 0xa2, 0x77,
  161. 0xb1, 0x4b, 0x48, 0x4a, 0xb2, 0xb8, 0x70, 0x4f, 0x7a, 0x0e, 0xf1, 0x96, 0xab, 0x8d, 0xf0, 0x17,
  162. 0xc7, 0x45, 0x10, 0xf7, 0x9d, 0x3b, 0x32, 0x36, 0x30, 0x0c, 0x5b, 0xf6, 0x33, 0x8e, 0x0c, 0x92,
  163. 0x5f, 0x06, 0x2f, 0xa0, 0x17, 0xbc, 0xb5, 0x83, 0x5a, 0x45, 0x29, 0x74, 0x9d, 0xc9, 0x24, 0xf2,
  164. 0x55, 0xff, 0x76, 0x6c, 0x89, 0x6a, 0xb3, 0xd6, 0x49, 0x37, 0xb0, 0x41, 0xcd, 0x15, 0x5c, 0x95,
  165. 0xb8, 0x3e, 0xe5, 0x79, 0x3e, 0x68, 0xcf, 0x71, 0xa1, 0x2c, 0xc8, 0xeb, 0xac, 0xe5, 0x2a, 0x54,
  166. 0x5c, 0x57, 0x0c, 0xeb, 0x2a, 0xaf, 0x84, 0xf6, 0x91, 0xe5, 0xa1, 0xc5, 0x8d, 0xb4, 0x7f, 0xb2,
  167. 0x9d, 0x39, 0xf1, 0x45, 0xc8, 0xb2, 0xe7, 0xd1, 0xdb, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdf,
  168. 0x8a, 0x1a, 0x6c, 0x05, 0x02, 0x00, 0x00,
  169. }