Girish Gowdra | d27a190 | 2021-02-23 16:19:08 -0800 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: google/protobuf/struct.proto |
| 3 | |
| 4 | package structpb |
| 5 | |
| 6 | import ( |
| 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
| 9 | math "math" |
| 10 | ) |
| 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.ProtoPackageIsVersion3 // please upgrade the proto package |
| 22 | |
| 23 | // `NullValue` is a singleton enumeration to represent the null value for the |
| 24 | // `Value` type union. |
| 25 | // |
| 26 | // The JSON representation for `NullValue` is JSON `null`. |
| 27 | type NullValue int32 |
| 28 | |
| 29 | const ( |
| 30 | // Null value. |
| 31 | NullValue_NULL_VALUE NullValue = 0 |
| 32 | ) |
| 33 | |
| 34 | var NullValue_name = map[int32]string{ |
| 35 | 0: "NULL_VALUE", |
| 36 | } |
| 37 | |
| 38 | var NullValue_value = map[string]int32{ |
| 39 | "NULL_VALUE": 0, |
| 40 | } |
| 41 | |
| 42 | func (x NullValue) String() string { |
| 43 | return proto.EnumName(NullValue_name, int32(x)) |
| 44 | } |
| 45 | |
| 46 | func (NullValue) EnumDescriptor() ([]byte, []int) { |
| 47 | return fileDescriptor_df322afd6c9fb402, []int{0} |
| 48 | } |
| 49 | |
| 50 | func (NullValue) XXX_WellKnownType() string { return "NullValue" } |
| 51 | |
| 52 | // `Struct` represents a structured data value, consisting of fields |
| 53 | // which map to dynamically typed values. In some languages, `Struct` |
| 54 | // might be supported by a native representation. For example, in |
| 55 | // scripting languages like JS a struct is represented as an |
| 56 | // object. The details of that representation are described together |
| 57 | // with the proto support for the language. |
| 58 | // |
| 59 | // The JSON representation for `Struct` is JSON object. |
| 60 | type Struct struct { |
| 61 | // Unordered map of dynamically typed values. |
| 62 | Fields map[string]*Value `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 63 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 64 | XXX_unrecognized []byte `json:"-"` |
| 65 | XXX_sizecache int32 `json:"-"` |
| 66 | } |
| 67 | |
| 68 | func (m *Struct) Reset() { *m = Struct{} } |
| 69 | func (m *Struct) String() string { return proto.CompactTextString(m) } |
| 70 | func (*Struct) ProtoMessage() {} |
| 71 | func (*Struct) Descriptor() ([]byte, []int) { |
| 72 | return fileDescriptor_df322afd6c9fb402, []int{0} |
| 73 | } |
| 74 | |
| 75 | func (*Struct) XXX_WellKnownType() string { return "Struct" } |
| 76 | |
| 77 | func (m *Struct) XXX_Unmarshal(b []byte) error { |
| 78 | return xxx_messageInfo_Struct.Unmarshal(m, b) |
| 79 | } |
| 80 | func (m *Struct) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 81 | return xxx_messageInfo_Struct.Marshal(b, m, deterministic) |
| 82 | } |
| 83 | func (m *Struct) XXX_Merge(src proto.Message) { |
| 84 | xxx_messageInfo_Struct.Merge(m, src) |
| 85 | } |
| 86 | func (m *Struct) XXX_Size() int { |
| 87 | return xxx_messageInfo_Struct.Size(m) |
| 88 | } |
| 89 | func (m *Struct) XXX_DiscardUnknown() { |
| 90 | xxx_messageInfo_Struct.DiscardUnknown(m) |
| 91 | } |
| 92 | |
| 93 | var xxx_messageInfo_Struct proto.InternalMessageInfo |
| 94 | |
| 95 | func (m *Struct) GetFields() map[string]*Value { |
| 96 | if m != nil { |
| 97 | return m.Fields |
| 98 | } |
| 99 | return nil |
| 100 | } |
| 101 | |
| 102 | // `Value` represents a dynamically typed value which can be either |
| 103 | // null, a number, a string, a boolean, a recursive struct value, or a |
| 104 | // list of values. A producer of value is expected to set one of that |
| 105 | // variants, absence of any variant indicates an error. |
| 106 | // |
| 107 | // The JSON representation for `Value` is JSON value. |
| 108 | type Value struct { |
| 109 | // The kind of value. |
| 110 | // |
| 111 | // Types that are valid to be assigned to Kind: |
| 112 | // *Value_NullValue |
| 113 | // *Value_NumberValue |
| 114 | // *Value_StringValue |
| 115 | // *Value_BoolValue |
| 116 | // *Value_StructValue |
| 117 | // *Value_ListValue |
| 118 | Kind isValue_Kind `protobuf_oneof:"kind"` |
| 119 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 120 | XXX_unrecognized []byte `json:"-"` |
| 121 | XXX_sizecache int32 `json:"-"` |
| 122 | } |
| 123 | |
| 124 | func (m *Value) Reset() { *m = Value{} } |
| 125 | func (m *Value) String() string { return proto.CompactTextString(m) } |
| 126 | func (*Value) ProtoMessage() {} |
| 127 | func (*Value) Descriptor() ([]byte, []int) { |
| 128 | return fileDescriptor_df322afd6c9fb402, []int{1} |
| 129 | } |
| 130 | |
| 131 | func (*Value) XXX_WellKnownType() string { return "Value" } |
| 132 | |
| 133 | func (m *Value) XXX_Unmarshal(b []byte) error { |
| 134 | return xxx_messageInfo_Value.Unmarshal(m, b) |
| 135 | } |
| 136 | func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 137 | return xxx_messageInfo_Value.Marshal(b, m, deterministic) |
| 138 | } |
| 139 | func (m *Value) XXX_Merge(src proto.Message) { |
| 140 | xxx_messageInfo_Value.Merge(m, src) |
| 141 | } |
| 142 | func (m *Value) XXX_Size() int { |
| 143 | return xxx_messageInfo_Value.Size(m) |
| 144 | } |
| 145 | func (m *Value) XXX_DiscardUnknown() { |
| 146 | xxx_messageInfo_Value.DiscardUnknown(m) |
| 147 | } |
| 148 | |
| 149 | var xxx_messageInfo_Value proto.InternalMessageInfo |
| 150 | |
| 151 | type isValue_Kind interface { |
| 152 | isValue_Kind() |
| 153 | } |
| 154 | |
| 155 | type Value_NullValue struct { |
| 156 | NullValue NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"` |
| 157 | } |
| 158 | |
| 159 | type Value_NumberValue struct { |
| 160 | NumberValue float64 `protobuf:"fixed64,2,opt,name=number_value,json=numberValue,proto3,oneof"` |
| 161 | } |
| 162 | |
| 163 | type Value_StringValue struct { |
| 164 | StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"` |
| 165 | } |
| 166 | |
| 167 | type Value_BoolValue struct { |
| 168 | BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof"` |
| 169 | } |
| 170 | |
| 171 | type Value_StructValue struct { |
| 172 | StructValue *Struct `protobuf:"bytes,5,opt,name=struct_value,json=structValue,proto3,oneof"` |
| 173 | } |
| 174 | |
| 175 | type Value_ListValue struct { |
| 176 | ListValue *ListValue `protobuf:"bytes,6,opt,name=list_value,json=listValue,proto3,oneof"` |
| 177 | } |
| 178 | |
| 179 | func (*Value_NullValue) isValue_Kind() {} |
| 180 | |
| 181 | func (*Value_NumberValue) isValue_Kind() {} |
| 182 | |
| 183 | func (*Value_StringValue) isValue_Kind() {} |
| 184 | |
| 185 | func (*Value_BoolValue) isValue_Kind() {} |
| 186 | |
| 187 | func (*Value_StructValue) isValue_Kind() {} |
| 188 | |
| 189 | func (*Value_ListValue) isValue_Kind() {} |
| 190 | |
| 191 | func (m *Value) GetKind() isValue_Kind { |
| 192 | if m != nil { |
| 193 | return m.Kind |
| 194 | } |
| 195 | return nil |
| 196 | } |
| 197 | |
| 198 | func (m *Value) GetNullValue() NullValue { |
| 199 | if x, ok := m.GetKind().(*Value_NullValue); ok { |
| 200 | return x.NullValue |
| 201 | } |
| 202 | return NullValue_NULL_VALUE |
| 203 | } |
| 204 | |
| 205 | func (m *Value) GetNumberValue() float64 { |
| 206 | if x, ok := m.GetKind().(*Value_NumberValue); ok { |
| 207 | return x.NumberValue |
| 208 | } |
| 209 | return 0 |
| 210 | } |
| 211 | |
| 212 | func (m *Value) GetStringValue() string { |
| 213 | if x, ok := m.GetKind().(*Value_StringValue); ok { |
| 214 | return x.StringValue |
| 215 | } |
| 216 | return "" |
| 217 | } |
| 218 | |
| 219 | func (m *Value) GetBoolValue() bool { |
| 220 | if x, ok := m.GetKind().(*Value_BoolValue); ok { |
| 221 | return x.BoolValue |
| 222 | } |
| 223 | return false |
| 224 | } |
| 225 | |
| 226 | func (m *Value) GetStructValue() *Struct { |
| 227 | if x, ok := m.GetKind().(*Value_StructValue); ok { |
| 228 | return x.StructValue |
| 229 | } |
| 230 | return nil |
| 231 | } |
| 232 | |
| 233 | func (m *Value) GetListValue() *ListValue { |
| 234 | if x, ok := m.GetKind().(*Value_ListValue); ok { |
| 235 | return x.ListValue |
| 236 | } |
| 237 | return nil |
| 238 | } |
| 239 | |
| 240 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 241 | func (*Value) XXX_OneofWrappers() []interface{} { |
| 242 | return []interface{}{ |
| 243 | (*Value_NullValue)(nil), |
| 244 | (*Value_NumberValue)(nil), |
| 245 | (*Value_StringValue)(nil), |
| 246 | (*Value_BoolValue)(nil), |
| 247 | (*Value_StructValue)(nil), |
| 248 | (*Value_ListValue)(nil), |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | // `ListValue` is a wrapper around a repeated field of values. |
| 253 | // |
| 254 | // The JSON representation for `ListValue` is JSON array. |
| 255 | type ListValue struct { |
| 256 | // Repeated field of dynamically typed values. |
| 257 | Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` |
| 258 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 259 | XXX_unrecognized []byte `json:"-"` |
| 260 | XXX_sizecache int32 `json:"-"` |
| 261 | } |
| 262 | |
| 263 | func (m *ListValue) Reset() { *m = ListValue{} } |
| 264 | func (m *ListValue) String() string { return proto.CompactTextString(m) } |
| 265 | func (*ListValue) ProtoMessage() {} |
| 266 | func (*ListValue) Descriptor() ([]byte, []int) { |
| 267 | return fileDescriptor_df322afd6c9fb402, []int{2} |
| 268 | } |
| 269 | |
| 270 | func (*ListValue) XXX_WellKnownType() string { return "ListValue" } |
| 271 | |
| 272 | func (m *ListValue) XXX_Unmarshal(b []byte) error { |
| 273 | return xxx_messageInfo_ListValue.Unmarshal(m, b) |
| 274 | } |
| 275 | func (m *ListValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 276 | return xxx_messageInfo_ListValue.Marshal(b, m, deterministic) |
| 277 | } |
| 278 | func (m *ListValue) XXX_Merge(src proto.Message) { |
| 279 | xxx_messageInfo_ListValue.Merge(m, src) |
| 280 | } |
| 281 | func (m *ListValue) XXX_Size() int { |
| 282 | return xxx_messageInfo_ListValue.Size(m) |
| 283 | } |
| 284 | func (m *ListValue) XXX_DiscardUnknown() { |
| 285 | xxx_messageInfo_ListValue.DiscardUnknown(m) |
| 286 | } |
| 287 | |
| 288 | var xxx_messageInfo_ListValue proto.InternalMessageInfo |
| 289 | |
| 290 | func (m *ListValue) GetValues() []*Value { |
| 291 | if m != nil { |
| 292 | return m.Values |
| 293 | } |
| 294 | return nil |
| 295 | } |
| 296 | |
| 297 | func init() { |
| 298 | proto.RegisterEnum("google.protobuf.NullValue", NullValue_name, NullValue_value) |
| 299 | proto.RegisterType((*Struct)(nil), "google.protobuf.Struct") |
| 300 | proto.RegisterMapType((map[string]*Value)(nil), "google.protobuf.Struct.FieldsEntry") |
| 301 | proto.RegisterType((*Value)(nil), "google.protobuf.Value") |
| 302 | proto.RegisterType((*ListValue)(nil), "google.protobuf.ListValue") |
| 303 | } |
| 304 | |
| 305 | func init() { proto.RegisterFile("google/protobuf/struct.proto", fileDescriptor_df322afd6c9fb402) } |
| 306 | |
| 307 | var fileDescriptor_df322afd6c9fb402 = []byte{ |
| 308 | // 417 bytes of a gzipped FileDescriptorProto |
| 309 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x41, 0x8b, 0xd3, 0x40, |
| 310 | 0x14, 0xc7, 0x3b, 0xc9, 0x36, 0x98, 0x17, 0x59, 0x97, 0x11, 0xb4, 0xac, 0xa2, 0xa1, 0x7b, 0x09, |
| 311 | 0x22, 0x29, 0xd6, 0x8b, 0x18, 0x2f, 0x06, 0xd6, 0x5d, 0x30, 0x2c, 0x31, 0xba, 0x15, 0xbc, 0x94, |
| 312 | 0x26, 0x4d, 0x63, 0xe8, 0x74, 0x26, 0x24, 0x33, 0x4a, 0x8f, 0x7e, 0x0b, 0xcf, 0x1e, 0x3d, 0xfa, |
| 313 | 0xe9, 0x3c, 0xca, 0xcc, 0x24, 0xa9, 0xb4, 0xf4, 0x94, 0xbc, 0xf7, 0x7e, 0xef, 0x3f, 0xef, 0xff, |
| 314 | 0x66, 0xe0, 0x71, 0xc1, 0x58, 0x41, 0xf2, 0x49, 0x55, 0x33, 0xce, 0x52, 0xb1, 0x9a, 0x34, 0xbc, |
| 315 | 0x16, 0x19, 0xf7, 0x55, 0x8c, 0xef, 0xe9, 0xaa, 0xdf, 0x55, 0xc7, 0x3f, 0x11, 0x58, 0x1f, 0x15, |
| 316 | 0x81, 0x03, 0xb0, 0x56, 0x65, 0x4e, 0x96, 0xcd, 0x08, 0xb9, 0xa6, 0xe7, 0x4c, 0x2f, 0xfc, 0x3d, |
| 317 | 0xd8, 0xd7, 0xa0, 0xff, 0x4e, 0x51, 0x97, 0x94, 0xd7, 0xdb, 0xa4, 0x6d, 0x39, 0xff, 0x00, 0xce, |
| 318 | 0x7f, 0x69, 0x7c, 0x06, 0xe6, 0x3a, 0xdf, 0x8e, 0x90, 0x8b, 0x3c, 0x3b, 0x91, 0xbf, 0xf8, 0x39, |
| 319 | 0x0c, 0xbf, 0x2d, 0x88, 0xc8, 0x47, 0x86, 0x8b, 0x3c, 0x67, 0xfa, 0xe0, 0x40, 0x7c, 0x26, 0xab, |
| 320 | 0x89, 0x86, 0x5e, 0x1b, 0xaf, 0xd0, 0xf8, 0x8f, 0x01, 0x43, 0x95, 0xc4, 0x01, 0x00, 0x15, 0x84, |
| 321 | 0xcc, 0xb5, 0x80, 0x14, 0x3d, 0x9d, 0x9e, 0x1f, 0x08, 0xdc, 0x08, 0x42, 0x14, 0x7f, 0x3d, 0x48, |
| 322 | 0x6c, 0xda, 0x05, 0xf8, 0x02, 0xee, 0x52, 0xb1, 0x49, 0xf3, 0x7a, 0xbe, 0x3b, 0x1f, 0x5d, 0x0f, |
| 323 | 0x12, 0x47, 0x67, 0x7b, 0xa8, 0xe1, 0x75, 0x49, 0x8b, 0x16, 0x32, 0xe5, 0xe0, 0x12, 0xd2, 0x59, |
| 324 | 0x0d, 0x3d, 0x05, 0x48, 0x19, 0xeb, 0xc6, 0x38, 0x71, 0x91, 0x77, 0x47, 0x1e, 0x25, 0x73, 0x1a, |
| 325 | 0x78, 0xa3, 0x54, 0x44, 0xc6, 0x5b, 0x64, 0xa8, 0xac, 0x3e, 0x3c, 0xb2, 0xc7, 0x56, 0x5e, 0x64, |
| 326 | 0xbc, 0x77, 0x49, 0xca, 0xa6, 0xeb, 0xb5, 0x54, 0xef, 0xa1, 0xcb, 0xa8, 0x6c, 0x78, 0xef, 0x92, |
| 327 | 0x74, 0x41, 0x68, 0xc1, 0xc9, 0xba, 0xa4, 0xcb, 0x71, 0x00, 0x76, 0x4f, 0x60, 0x1f, 0x2c, 0x25, |
| 328 | 0xd6, 0xdd, 0xe8, 0xb1, 0xa5, 0xb7, 0xd4, 0xb3, 0x47, 0x60, 0xf7, 0x4b, 0xc4, 0xa7, 0x00, 0x37, |
| 329 | 0xb7, 0x51, 0x34, 0x9f, 0xbd, 0x8d, 0x6e, 0x2f, 0xcf, 0x06, 0xe1, 0x0f, 0x04, 0xf7, 0x33, 0xb6, |
| 330 | 0xd9, 0x97, 0x08, 0x1d, 0xed, 0x26, 0x96, 0x71, 0x8c, 0xbe, 0xbc, 0x28, 0x4a, 0xfe, 0x55, 0xa4, |
| 331 | 0x7e, 0xc6, 0x36, 0x93, 0x82, 0x91, 0x05, 0x2d, 0x76, 0x4f, 0xb1, 0xe2, 0xdb, 0x2a, 0x6f, 0xda, |
| 332 | 0x17, 0x19, 0xe8, 0x4f, 0x95, 0xfe, 0x45, 0xe8, 0x97, 0x61, 0x5e, 0xc5, 0xe1, 0x6f, 0xe3, 0xc9, |
| 333 | 0x95, 0x16, 0x8f, 0xbb, 0xf9, 0x3e, 0xe7, 0x84, 0xbc, 0xa7, 0xec, 0x3b, 0xfd, 0x24, 0x3b, 0x53, |
| 334 | 0x4b, 0x49, 0xbd, 0xfc, 0x17, 0x00, 0x00, 0xff, 0xff, 0xe8, 0x1b, 0x59, 0xf8, 0xe5, 0x02, 0x00, |
| 335 | 0x00, |
| 336 | } |