Documentation ¶
Index ¶
- Variables
- type ArrayType
- type ArrayValue
- type DynamicValue
- type ObjectType
- type ObjectValue
- type StringValue
- type Type
- func (*Type) Descriptor() ([]byte, []int)deprecated
- func (x *Type) GetArray() *ArrayType
- func (m *Type) GetElementType() isType_ElementType
- func (x *Type) GetName() TypeKind
- func (x *Type) GetObject() *ObjectType
- func (*Type) ProtoMessage()
- func (x *Type) ProtoReflect() protoreflect.Message
- func (x *Type) Reset()
- func (x *Type) String() string
- type TypeKind
- type Type_Array
- type Type_Object
- type Value
- func (*Value) Descriptor() ([]byte, []int)deprecated
- func (x *Value) GetArrayValue() *ArrayValue
- func (x *Value) GetDynamicValue() *DynamicValue
- func (x *Value) GetObjectValue() *ObjectValue
- func (x *Value) GetStringValue() *StringValue
- func (x *Value) GetType() *Type
- func (m *Value) GetValue() isValue_Value
- func (*Value) ProtoMessage()
- func (x *Value) ProtoReflect() protoreflect.Message
- func (x *Value) Reset()
- func (x *Value) String() string
- type Value_ArrayValue
- type Value_DynamicValue
- type Value_ObjectValue
- type Value_StringValue
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TypeKind_name = map[int32]string{ 0: "INVALID", 1: "STRING", 2: "NUMBER", 3: "BOOLEAN", 4: "OBJECT", 5: "ARRAY", 6: "DYNAMIC", } TypeKind_value = map[string]int32{ "INVALID": 0, "STRING": 1, "NUMBER": 2, "BOOLEAN": 3, "OBJECT": 4, "ARRAY": 5, "DYNAMIC": 6, } )
Enum value maps for TypeKind.
View Source
var File_objects_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ArrayType ¶
type ArrayType struct { Element *Type `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"` // contains filtered or unexported fields }
func (*ArrayType) Descriptor
deprecated
func (*ArrayType) GetElement ¶
func (*ArrayType) ProtoMessage ¶
func (*ArrayType) ProtoMessage()
func (*ArrayType) ProtoReflect ¶
func (x *ArrayType) ProtoReflect() protoreflect.Message
type ArrayValue ¶
type ArrayValue struct { Elements []*Value `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"` // contains filtered or unexported fields }
func (*ArrayValue) Descriptor
deprecated
func (*ArrayValue) Descriptor() ([]byte, []int)
Deprecated: Use ArrayValue.ProtoReflect.Descriptor instead.
func (*ArrayValue) GetElements ¶
func (x *ArrayValue) GetElements() []*Value
func (*ArrayValue) ProtoMessage ¶
func (*ArrayValue) ProtoMessage()
func (*ArrayValue) ProtoReflect ¶
func (x *ArrayValue) ProtoReflect() protoreflect.Message
func (*ArrayValue) Reset ¶
func (x *ArrayValue) Reset()
func (*ArrayValue) String ¶
func (x *ArrayValue) String() string
type DynamicValue ¶
type DynamicValue struct { Value *anypb.Any `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*DynamicValue) Descriptor
deprecated
func (*DynamicValue) Descriptor() ([]byte, []int)
Deprecated: Use DynamicValue.ProtoReflect.Descriptor instead.
func (*DynamicValue) GetValue ¶
func (x *DynamicValue) GetValue() *anypb.Any
func (*DynamicValue) ProtoMessage ¶
func (*DynamicValue) ProtoMessage()
func (*DynamicValue) ProtoReflect ¶
func (x *DynamicValue) ProtoReflect() protoreflect.Message
func (*DynamicValue) Reset ¶
func (x *DynamicValue) Reset()
func (*DynamicValue) String ¶
func (x *DynamicValue) String() string
type ObjectType ¶
type ObjectType struct { Fields map[string]*Type `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ObjectType) Descriptor
deprecated
func (*ObjectType) Descriptor() ([]byte, []int)
Deprecated: Use ObjectType.ProtoReflect.Descriptor instead.
func (*ObjectType) GetFields ¶
func (x *ObjectType) GetFields() map[string]*Type
func (*ObjectType) ProtoMessage ¶
func (*ObjectType) ProtoMessage()
func (*ObjectType) ProtoReflect ¶
func (x *ObjectType) ProtoReflect() protoreflect.Message
func (*ObjectType) Reset ¶
func (x *ObjectType) Reset()
func (*ObjectType) String ¶
func (x *ObjectType) String() string
type ObjectValue ¶
type ObjectValue struct { Fields map[string]*Value `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ObjectValue) Descriptor
deprecated
func (*ObjectValue) Descriptor() ([]byte, []int)
Deprecated: Use ObjectValue.ProtoReflect.Descriptor instead.
func (*ObjectValue) GetFields ¶
func (x *ObjectValue) GetFields() map[string]*Value
func (*ObjectValue) ProtoMessage ¶
func (*ObjectValue) ProtoMessage()
func (*ObjectValue) ProtoReflect ¶
func (x *ObjectValue) ProtoReflect() protoreflect.Message
func (*ObjectValue) Reset ¶
func (x *ObjectValue) Reset()
func (*ObjectValue) String ¶
func (x *ObjectValue) String() string
type StringValue ¶
type StringValue struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*StringValue) Descriptor
deprecated
func (*StringValue) Descriptor() ([]byte, []int)
Deprecated: Use StringValue.ProtoReflect.Descriptor instead.
func (*StringValue) GetValue ¶
func (x *StringValue) GetValue() string
func (*StringValue) ProtoMessage ¶
func (*StringValue) ProtoMessage()
func (*StringValue) ProtoReflect ¶
func (x *StringValue) ProtoReflect() protoreflect.Message
func (*StringValue) Reset ¶
func (x *StringValue) Reset()
func (*StringValue) String ¶
func (x *StringValue) String() string
type Type ¶
type Type struct { Name TypeKind `protobuf:"varint,1,opt,name=name,proto3,enum=objects.TypeKind" json:"name,omitempty"` // Types that are assignable to ElementType: // // *Type_Object // *Type_Array ElementType isType_ElementType `protobuf_oneof:"ElementType"` // contains filtered or unexported fields }
func (*Type) Descriptor
deprecated
func (*Type) GetElementType ¶
func (m *Type) GetElementType() isType_ElementType
func (*Type) GetObject ¶
func (x *Type) GetObject() *ObjectType
func (*Type) ProtoMessage ¶
func (*Type) ProtoMessage()
func (*Type) ProtoReflect ¶
func (x *Type) ProtoReflect() protoreflect.Message
type TypeKind ¶
type TypeKind int32
func (TypeKind) Descriptor ¶
func (TypeKind) Descriptor() protoreflect.EnumDescriptor
func (TypeKind) EnumDescriptor
deprecated
func (TypeKind) Number ¶
func (x TypeKind) Number() protoreflect.EnumNumber
func (TypeKind) Type ¶
func (TypeKind) Type() protoreflect.EnumType
type Type_Array ¶
type Type_Array struct {
Array *ArrayType `protobuf:"bytes,3,opt,name=array,proto3,oneof"`
}
type Type_Object ¶
type Type_Object struct {
Object *ObjectType `protobuf:"bytes,2,opt,name=object,proto3,oneof"`
}
type Value ¶
type Value struct { Type *Type `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Types that are assignable to Value: // // *Value_StringValue // *Value_ObjectValue // *Value_ArrayValue // *Value_DynamicValue Value isValue_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*Value) Descriptor
deprecated
func (*Value) GetArrayValue ¶
func (x *Value) GetArrayValue() *ArrayValue
func (*Value) GetDynamicValue ¶
func (x *Value) GetDynamicValue() *DynamicValue
func (*Value) GetObjectValue ¶
func (x *Value) GetObjectValue() *ObjectValue
func (*Value) GetStringValue ¶
func (x *Value) GetStringValue() *StringValue
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) ProtoReflect ¶
func (x *Value) ProtoReflect() protoreflect.Message
type Value_ArrayValue ¶
type Value_ArrayValue struct {
ArrayValue *ArrayValue `protobuf:"bytes,4,opt,name=array_value,json=arrayValue,proto3,oneof"`
}
type Value_DynamicValue ¶
type Value_DynamicValue struct {
DynamicValue *DynamicValue `protobuf:"bytes,5,opt,name=dynamic_value,json=dynamicValue,proto3,oneof"`
}
type Value_ObjectValue ¶
type Value_ObjectValue struct {
ObjectValue *ObjectValue `protobuf:"bytes,3,opt,name=object_value,json=objectValue,proto3,oneof"`
}
type Value_StringValue ¶
type Value_StringValue struct {
StringValue *StringValue `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.