Documentation ¶
Index ¶
- Variables
- type Field
- func (*Field) Descriptor() ([]byte, []int)deprecated
- func (x *Field) GetFieldIndex() int32
- func (x *Field) GetIsRepeated() bool
- func (x *Field) GetIsRequired() bool
- func (x *Field) GetName() string
- func (x *Field) GetType() *Type
- func (*Field) ProtoMessage()
- func (x *Field) ProtoReflect() protoreflect.Message
- func (x *Field) Reset()
- func (x *Field) String() string
- type ListType
- type ListValue
- type RecordType
- type RecordValue
- type ScalarType
- type Type
- func (*Type) Descriptor() ([]byte, []int)deprecated
- func (m *Type) GetKind() isType_Kind
- func (x *Type) GetListType() *ListType
- func (x *Type) GetRecordType() *RecordType
- func (x *Type) GetScalarType() ScalarType
- func (*Type) ProtoMessage()
- func (x *Type) ProtoReflect() protoreflect.Message
- func (x *Type) Reset()
- func (x *Type) String() string
- type Type_ListType
- type Type_RecordType
- type Type_ScalarType
- type Value
- func (*Value) Descriptor() ([]byte, []int)deprecated
- func (x *Value) GetBoolValue() bool
- func (x *Value) GetBytesValue() []byte
- func (x *Value) GetDoubleValue() float64
- func (x *Value) GetFloatValue() float32
- func (x *Value) GetInt32Value() int32
- func (x *Value) GetInt64Value() int64
- func (m *Value) GetKind() isValue_Kind
- func (x *Value) GetListValue() *ListValue
- func (x *Value) GetRecordValue() *RecordValue
- func (x *Value) GetStringValue() string
- func (*Value) ProtoMessage()
- func (x *Value) ProtoReflect() protoreflect.Message
- func (x *Value) Reset()
- func (x *Value) String() string
- type Value_BoolValue
- type Value_BytesValue
- type Value_DoubleValue
- type Value_FloatValue
- type Value_Int32Value
- type Value_Int64Value
- type Value_ListValue
- type Value_RecordValue
- type Value_StringValue
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) GetFieldIndex ¶
func (*Field) GetIsRepeated ¶
func (*Field) GetIsRequired ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶
func (x *Field) ProtoReflect() protoreflect.Message
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) GetElementType ¶
func (*ListType) ProtoMessage ¶
func (*ListType) ProtoMessage()
func (*ListType) ProtoReflect ¶
func (x *ListType) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*ListValue) ProtoMessage()
func (*ListValue) ProtoReflect ¶
func (x *ListValue) ProtoReflect() protoreflect.Message
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 ¶
func (ScalarType) Type() protoreflect.EnumType
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) GetListType ¶
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
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) GetBoolValue ¶
func (*Value) GetBytesValue ¶
func (*Value) GetDoubleValue ¶
func (*Value) GetFloatValue ¶
func (*Value) GetInt32Value ¶
func (*Value) GetInt64Value ¶
func (*Value) GetListValue ¶
func (*Value) GetRecordValue ¶
func (x *Value) GetRecordValue() *RecordValue
func (*Value) GetStringValue ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) ProtoReflect ¶
func (x *Value) ProtoReflect() protoreflect.Message
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"`
}
Click to show internal directories.
Click to hide internal directories.