schema_pb

package
v0.0.0-...-45e1a9a Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ScalarType_name = map[int32]string{
		0: "BOOL",
		1: "INT32",
		3: "INT64",
		4: "FLOAT",
		5: "DOUBLE",
		6: "BYTES",
		7: "STRING",
	}
	ScalarType_value = map[string]int32{
		"BOOL":   0,
		"INT32":  1,
		"INT64":  3,
		"FLOAT":  4,
		"DOUBLE": 5,
		"BYTES":  6,
		"STRING": 7,
	}
)

Enum value maps for ScalarType.

View Source
var File_schema_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Field

type Field struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	FieldIndex int32  `protobuf:"varint,2,opt,name=field_index,json=fieldIndex,proto3" json:"field_index,omitempty"`
	Type       *Type  `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	IsRepeated bool   `protobuf:"varint,4,opt,name=is_repeated,json=isRepeated,proto3" json:"is_repeated,omitempty"`
	IsRequired bool   `protobuf:"varint,5,opt,name=is_required,json=isRequired,proto3" json:"is_required,omitempty"`
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated

func (*Field) Descriptor() ([]byte, []int)

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetFieldIndex

func (x *Field) GetFieldIndex() int32

func (*Field) GetIsRepeated

func (x *Field) GetIsRepeated() bool

func (*Field) GetIsRequired

func (x *Field) GetIsRequired() bool

func (*Field) GetName

func (x *Field) GetName() string

func (*Field) GetType

func (x *Field) GetType() *Type

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

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

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

type ListType

type ListType struct {
	ElementType *Type `protobuf:"bytes,1,opt,name=element_type,json=elementType,proto3" json:"element_type,omitempty"`
	// contains filtered or unexported fields
}

func (*ListType) Descriptor deprecated

func (*ListType) Descriptor() ([]byte, []int)

Deprecated: Use ListType.ProtoReflect.Descriptor instead.

func (*ListType) GetElementType

func (x *ListType) GetElementType() *Type

func (*ListType) ProtoMessage

func (*ListType) ProtoMessage()

func (*ListType) ProtoReflect

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

func (*ListType) Reset

func (x *ListType) Reset()

func (*ListType) String

func (x *ListType) String() string

type ListValue

type ListValue struct {
	Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*ListValue) Descriptor deprecated

func (*ListValue) Descriptor() ([]byte, []int)

Deprecated: Use ListValue.ProtoReflect.Descriptor instead.

func (*ListValue) GetValues

func (x *ListValue) GetValues() []*Value

func (*ListValue) ProtoMessage

func (*ListValue) ProtoMessage()

func (*ListValue) ProtoReflect

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

func (*ListValue) Reset

func (x *ListValue) Reset()

func (*ListValue) String

func (x *ListValue) String() string

type RecordType

type RecordType struct {
	Fields []*Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordType) Descriptor deprecated

func (*RecordType) Descriptor() ([]byte, []int)

Deprecated: Use RecordType.ProtoReflect.Descriptor instead.

func (*RecordType) GetFields

func (x *RecordType) GetFields() []*Field

func (*RecordType) ProtoMessage

func (*RecordType) ProtoMessage()

func (*RecordType) ProtoReflect

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

func (*RecordType) Reset

func (x *RecordType) Reset()

func (*RecordType) String

func (x *RecordType) String() string

type RecordValue

type RecordValue struct {
	Fields map[string]*Value `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

///////////////////////// value definition /////////////////////////

func (*RecordValue) Descriptor deprecated

func (*RecordValue) Descriptor() ([]byte, []int)

Deprecated: Use RecordValue.ProtoReflect.Descriptor instead.

func (*RecordValue) GetFields

func (x *RecordValue) GetFields() map[string]*Value

func (*RecordValue) ProtoMessage

func (*RecordValue) ProtoMessage()

func (*RecordValue) ProtoReflect

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

func (*RecordValue) Reset

func (x *RecordValue) Reset()

func (*RecordValue) String

func (x *RecordValue) String() string

type ScalarType

type ScalarType int32
const (
	ScalarType_BOOL   ScalarType = 0
	ScalarType_INT32  ScalarType = 1
	ScalarType_INT64  ScalarType = 3
	ScalarType_FLOAT  ScalarType = 4
	ScalarType_DOUBLE ScalarType = 5
	ScalarType_BYTES  ScalarType = 6
	ScalarType_STRING ScalarType = 7
)

func (ScalarType) Descriptor

func (ScalarType) Descriptor() protoreflect.EnumDescriptor

func (ScalarType) Enum

func (x ScalarType) Enum() *ScalarType

func (ScalarType) EnumDescriptor deprecated

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

Deprecated: Use ScalarType.Descriptor instead.

func (ScalarType) Number

func (x ScalarType) Number() protoreflect.EnumNumber

func (ScalarType) String

func (x ScalarType) String() string

func (ScalarType) Type

type Type

type Type struct {

	// Types that are assignable to Kind:
	//
	//	*Type_ScalarType
	//	*Type_RecordType
	//	*Type_ListType
	Kind isType_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

func (*Type) Descriptor deprecated

func (*Type) Descriptor() ([]byte, []int)

Deprecated: Use Type.ProtoReflect.Descriptor instead.

func (*Type) GetKind

func (m *Type) GetKind() isType_Kind

func (*Type) GetListType

func (x *Type) GetListType() *ListType

func (*Type) GetRecordType

func (x *Type) GetRecordType() *RecordType

func (*Type) GetScalarType

func (x *Type) GetScalarType() ScalarType

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 Type_ListType

type Type_ListType struct {
	ListType *ListType `protobuf:"bytes,3,opt,name=list_type,json=listType,proto3,oneof"`
}

type Type_RecordType

type Type_RecordType struct {
	RecordType *RecordType `protobuf:"bytes,2,opt,name=record_type,json=recordType,proto3,oneof"`
}

type Type_ScalarType

type Type_ScalarType struct {
	ScalarType ScalarType `protobuf:"varint,1,opt,name=scalar_type,json=scalarType,proto3,enum=schema_pb.ScalarType,oneof"`
}

type Value

type Value struct {

	// Types that are assignable to Kind:
	//
	//	*Value_BoolValue
	//	*Value_Int32Value
	//	*Value_Int64Value
	//	*Value_FloatValue
	//	*Value_DoubleValue
	//	*Value_BytesValue
	//	*Value_StringValue
	//	*Value_ListValue
	//	*Value_RecordValue
	Kind isValue_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

func (*Value) Descriptor deprecated

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetBoolValue

func (x *Value) GetBoolValue() bool

func (*Value) GetBytesValue

func (x *Value) GetBytesValue() []byte

func (*Value) GetDoubleValue

func (x *Value) GetDoubleValue() float64

func (*Value) GetFloatValue

func (x *Value) GetFloatValue() float32

func (*Value) GetInt32Value

func (x *Value) GetInt32Value() int32

func (*Value) GetInt64Value

func (x *Value) GetInt64Value() int64

func (*Value) GetKind

func (m *Value) GetKind() isValue_Kind

func (*Value) GetListValue

func (x *Value) GetListValue() *ListValue

func (*Value) GetRecordValue

func (x *Value) GetRecordValue() *RecordValue

func (*Value) GetStringValue

func (x *Value) GetStringValue() string

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_BoolValue

type Value_BoolValue struct {
	BoolValue bool `protobuf:"varint,1,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type Value_BytesValue

type Value_BytesValue struct {
	BytesValue []byte `protobuf:"bytes,6,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
}

type Value_DoubleValue

type Value_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type Value_FloatValue

type Value_FloatValue struct {
	FloatValue float32 `protobuf:"fixed32,4,opt,name=float_value,json=floatValue,proto3,oneof"`
}

type Value_Int32Value

type Value_Int32Value struct {
	Int32Value int32 `protobuf:"varint,2,opt,name=int32_value,json=int32Value,proto3,oneof"`
}

type Value_Int64Value

type Value_Int64Value struct {
	Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"`
}

type Value_ListValue

type Value_ListValue struct {
	ListValue *ListValue `protobuf:"bytes,14,opt,name=list_value,json=listValue,proto3,oneof"`
}

type Value_RecordValue

type Value_RecordValue struct {
	RecordValue *RecordValue `protobuf:"bytes,15,opt,name=record_value,json=recordValue,proto3,oneof"`
}

type Value_StringValue

type Value_StringValue struct {
	StringValue string `protobuf:"bytes,7,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