| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/protobuf/struct.proto |
| |
| package structpb |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| math "math" |
| ) |
| |
| // 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.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // `NullValue` is a singleton enumeration to represent the null value for the |
| // `Value` type union. |
| // |
| // The JSON representation for `NullValue` is JSON `null`. |
| type NullValue int32 |
| |
| const ( |
| // Null value. |
| NullValue_NULL_VALUE NullValue = 0 |
| ) |
| |
| var NullValue_name = map[int32]string{ |
| 0: "NULL_VALUE", |
| } |
| |
| var NullValue_value = map[string]int32{ |
| "NULL_VALUE": 0, |
| } |
| |
| func (x NullValue) String() string { |
| return proto.EnumName(NullValue_name, int32(x)) |
| } |
| |
| func (NullValue) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_df322afd6c9fb402, []int{0} |
| } |
| |
| func (NullValue) XXX_WellKnownType() string { return "NullValue" } |
| |
| // `Struct` represents a structured data value, consisting of fields |
| // which map to dynamically typed values. In some languages, `Struct` |
| // might be supported by a native representation. For example, in |
| // scripting languages like JS a struct is represented as an |
| // object. The details of that representation are described together |
| // with the proto support for the language. |
| // |
| // The JSON representation for `Struct` is JSON object. |
| type Struct struct { |
| // Unordered map of dynamically typed values. |
| 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"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Struct) Reset() { *m = Struct{} } |
| func (m *Struct) String() string { return proto.CompactTextString(m) } |
| func (*Struct) ProtoMessage() {} |
| func (*Struct) Descriptor() ([]byte, []int) { |
| return fileDescriptor_df322afd6c9fb402, []int{0} |
| } |
| |
| func (*Struct) XXX_WellKnownType() string { return "Struct" } |
| |
| func (m *Struct) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Struct.Unmarshal(m, b) |
| } |
| func (m *Struct) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Struct.Marshal(b, m, deterministic) |
| } |
| func (m *Struct) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Struct.Merge(m, src) |
| } |
| func (m *Struct) XXX_Size() int { |
| return xxx_messageInfo_Struct.Size(m) |
| } |
| func (m *Struct) XXX_DiscardUnknown() { |
| xxx_messageInfo_Struct.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Struct proto.InternalMessageInfo |
| |
| func (m *Struct) GetFields() map[string]*Value { |
| if m != nil { |
| return m.Fields |
| } |
| return nil |
| } |
| |
| // `Value` represents a dynamically typed value which can be either |
| // null, a number, a string, a boolean, a recursive struct value, or a |
| // list of values. A producer of value is expected to set one of that |
| // variants, absence of any variant indicates an error. |
| // |
| // The JSON representation for `Value` is JSON value. |
| type Value struct { |
| // The kind of value. |
| // |
| // Types that are valid to be assigned to Kind: |
| // *Value_NullValue |
| // *Value_NumberValue |
| // *Value_StringValue |
| // *Value_BoolValue |
| // *Value_StructValue |
| // *Value_ListValue |
| Kind isValue_Kind `protobuf_oneof:"kind"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Value) Reset() { *m = Value{} } |
| func (m *Value) String() string { return proto.CompactTextString(m) } |
| func (*Value) ProtoMessage() {} |
| func (*Value) Descriptor() ([]byte, []int) { |
| return fileDescriptor_df322afd6c9fb402, []int{1} |
| } |
| |
| func (*Value) XXX_WellKnownType() string { return "Value" } |
| |
| func (m *Value) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Value.Unmarshal(m, b) |
| } |
| func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Value.Marshal(b, m, deterministic) |
| } |
| func (m *Value) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Value.Merge(m, src) |
| } |
| func (m *Value) XXX_Size() int { |
| return xxx_messageInfo_Value.Size(m) |
| } |
| func (m *Value) XXX_DiscardUnknown() { |
| xxx_messageInfo_Value.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Value proto.InternalMessageInfo |
| |
| type isValue_Kind interface { |
| isValue_Kind() |
| } |
| |
| type Value_NullValue struct { |
| NullValue NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"` |
| } |
| |
| type Value_NumberValue struct { |
| NumberValue float64 `protobuf:"fixed64,2,opt,name=number_value,json=numberValue,proto3,oneof"` |
| } |
| |
| type Value_StringValue struct { |
| StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"` |
| } |
| |
| type Value_BoolValue struct { |
| BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof"` |
| } |
| |
| type Value_StructValue struct { |
| StructValue *Struct `protobuf:"bytes,5,opt,name=struct_value,json=structValue,proto3,oneof"` |
| } |
| |
| type Value_ListValue struct { |
| ListValue *ListValue `protobuf:"bytes,6,opt,name=list_value,json=listValue,proto3,oneof"` |
| } |
| |
| func (*Value_NullValue) isValue_Kind() {} |
| |
| func (*Value_NumberValue) isValue_Kind() {} |
| |
| func (*Value_StringValue) isValue_Kind() {} |
| |
| func (*Value_BoolValue) isValue_Kind() {} |
| |
| func (*Value_StructValue) isValue_Kind() {} |
| |
| func (*Value_ListValue) isValue_Kind() {} |
| |
| func (m *Value) GetKind() isValue_Kind { |
| if m != nil { |
| return m.Kind |
| } |
| return nil |
| } |
| |
| func (m *Value) GetNullValue() NullValue { |
| if x, ok := m.GetKind().(*Value_NullValue); ok { |
| return x.NullValue |
| } |
| return NullValue_NULL_VALUE |
| } |
| |
| func (m *Value) GetNumberValue() float64 { |
| if x, ok := m.GetKind().(*Value_NumberValue); ok { |
| return x.NumberValue |
| } |
| return 0 |
| } |
| |
| func (m *Value) GetStringValue() string { |
| if x, ok := m.GetKind().(*Value_StringValue); ok { |
| return x.StringValue |
| } |
| return "" |
| } |
| |
| func (m *Value) GetBoolValue() bool { |
| if x, ok := m.GetKind().(*Value_BoolValue); ok { |
| return x.BoolValue |
| } |
| return false |
| } |
| |
| func (m *Value) GetStructValue() *Struct { |
| if x, ok := m.GetKind().(*Value_StructValue); ok { |
| return x.StructValue |
| } |
| return nil |
| } |
| |
| func (m *Value) GetListValue() *ListValue { |
| if x, ok := m.GetKind().(*Value_ListValue); ok { |
| return x.ListValue |
| } |
| return nil |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*Value) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*Value_NullValue)(nil), |
| (*Value_NumberValue)(nil), |
| (*Value_StringValue)(nil), |
| (*Value_BoolValue)(nil), |
| (*Value_StructValue)(nil), |
| (*Value_ListValue)(nil), |
| } |
| } |
| |
| // `ListValue` is a wrapper around a repeated field of values. |
| // |
| // The JSON representation for `ListValue` is JSON array. |
| type ListValue struct { |
| // Repeated field of dynamically typed values. |
| Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ListValue) Reset() { *m = ListValue{} } |
| func (m *ListValue) String() string { return proto.CompactTextString(m) } |
| func (*ListValue) ProtoMessage() {} |
| func (*ListValue) Descriptor() ([]byte, []int) { |
| return fileDescriptor_df322afd6c9fb402, []int{2} |
| } |
| |
| func (*ListValue) XXX_WellKnownType() string { return "ListValue" } |
| |
| func (m *ListValue) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ListValue.Unmarshal(m, b) |
| } |
| func (m *ListValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ListValue.Marshal(b, m, deterministic) |
| } |
| func (m *ListValue) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ListValue.Merge(m, src) |
| } |
| func (m *ListValue) XXX_Size() int { |
| return xxx_messageInfo_ListValue.Size(m) |
| } |
| func (m *ListValue) XXX_DiscardUnknown() { |
| xxx_messageInfo_ListValue.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ListValue proto.InternalMessageInfo |
| |
| func (m *ListValue) GetValues() []*Value { |
| if m != nil { |
| return m.Values |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterEnum("google.protobuf.NullValue", NullValue_name, NullValue_value) |
| proto.RegisterType((*Struct)(nil), "google.protobuf.Struct") |
| proto.RegisterMapType((map[string]*Value)(nil), "google.protobuf.Struct.FieldsEntry") |
| proto.RegisterType((*Value)(nil), "google.protobuf.Value") |
| proto.RegisterType((*ListValue)(nil), "google.protobuf.ListValue") |
| } |
| |
| func init() { proto.RegisterFile("google/protobuf/struct.proto", fileDescriptor_df322afd6c9fb402) } |
| |
| var fileDescriptor_df322afd6c9fb402 = []byte{ |
| // 417 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x41, 0x8b, 0xd3, 0x40, |
| 0x14, 0xc7, 0x3b, 0xc9, 0x36, 0x98, 0x17, 0x59, 0x97, 0x11, 0xb4, 0xac, 0xa2, 0xa1, 0x7b, 0x09, |
| 0x22, 0x29, 0xd6, 0x8b, 0x18, 0x2f, 0x06, 0xd6, 0x5d, 0x30, 0x2c, 0x31, 0xba, 0x15, 0xbc, 0x94, |
| 0x26, 0x4d, 0x63, 0xe8, 0x74, 0x26, 0x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