_go

package module
v0.0.0-...-f75ab15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use ArrayType.ProtoReflect.Descriptor instead.

func (*ArrayType) GetElement

func (x *ArrayType) GetElement() *Type

func (*ArrayType) ProtoMessage

func (*ArrayType) ProtoMessage()

func (*ArrayType) ProtoReflect

func (x *ArrayType) ProtoReflect() protoreflect.Message

func (*ArrayType) Reset

func (x *ArrayType) Reset()

func (*ArrayType) String

func (x *ArrayType) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Type.ProtoReflect.Descriptor instead.

func (*Type) GetArray

func (x *Type) GetArray() *ArrayType

func (*Type) GetElementType

func (m *Type) GetElementType() isType_ElementType

func (*Type) GetName

func (x *Type) GetName() TypeKind

func (*Type) GetObject

func (x *Type) GetObject() *ObjectType

func (*Type) ProtoMessage

func (*Type) ProtoMessage()

func (*Type) ProtoReflect

func (x *Type) ProtoReflect() protoreflect.Message

func (*Type) Reset

func (x *Type) Reset()

func (*Type) String

func (x *Type) String() string

type TypeKind

type TypeKind int32
const (
	TypeKind_INVALID TypeKind = 0
	TypeKind_STRING  TypeKind = 1
	TypeKind_NUMBER  TypeKind = 2
	TypeKind_BOOLEAN TypeKind = 3
	TypeKind_OBJECT  TypeKind = 4
	TypeKind_ARRAY   TypeKind = 5
	TypeKind_DYNAMIC TypeKind = 6
)

func (TypeKind) Descriptor

func (TypeKind) Descriptor() protoreflect.EnumDescriptor

func (TypeKind) Enum

func (x TypeKind) Enum() *TypeKind

func (TypeKind) EnumDescriptor deprecated

func (TypeKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use TypeKind.Descriptor instead.

func (TypeKind) Number

func (x TypeKind) Number() protoreflect.EnumNumber

func (TypeKind) String

func (x TypeKind) String() string

func (TypeKind) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

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) GetType

func (x *Value) GetType() *Type

func (*Value) GetValue

func (m *Value) GetValue() isValue_Value

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

func (x *Value) ProtoReflect() protoreflect.Message

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL