wrongv1

package
v1.32.0-20230402184031... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_wrong_v1_multiple_fields_pk_proto protoreflect.FileDescriptor
View Source
var File_example_wrong_v1_multiple_fields_sk_proto protoreflect.FileDescriptor
View Source
var File_example_wrong_v1_pk_invalid_type_proto protoreflect.FileDescriptor
View Source
var File_example_wrong_v1_pk_sk_same_field_proto protoreflect.FileDescriptor
View Source
var File_example_wrong_v1_sk_invalid_type_proto protoreflect.FileDescriptor
View Source
var File_example_wrong_v1_sort_key_only_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type InvalidPkType

type InvalidPkType struct {

	// pk field invalid type
	Pk bool `protobuf:"varint,1,opt,name=pk,proto3" json:"pk,omitempty"`
	// contains filtered or unexported fields
}

InvalidPkType is invalid because the bool type is not supported as a pk

func (*InvalidPkType) Descriptor deprecated

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

Deprecated: Use InvalidPkType.ProtoReflect.Descriptor instead.

func (*InvalidPkType) GetPk

func (x *InvalidPkType) GetPk() bool

func (*InvalidPkType) ProtoMessage

func (*InvalidPkType) ProtoMessage()

func (*InvalidPkType) ProtoReflect

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

func (*InvalidPkType) Reset

func (x *InvalidPkType) Reset()

func (*InvalidPkType) String

func (x *InvalidPkType) String() string

type InvalidSkType

type InvalidSkType struct {

	// pk field invalid type
	Sk *Sk `protobuf:"bytes,1,opt,name=sk,proto3" json:"sk,omitempty"`
	// pk field invalid type
	Pk string `protobuf:"bytes,2,opt,name=pk,proto3" json:"pk,omitempty"`
	// contains filtered or unexported fields
}

InvalidSkType is invalid because the message type is not supported as a Sk

func (*InvalidSkType) Descriptor deprecated

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

Deprecated: Use InvalidSkType.ProtoReflect.Descriptor instead.

func (*InvalidSkType) GetPk

func (x *InvalidSkType) GetPk() string

func (*InvalidSkType) GetSk

func (x *InvalidSkType) GetSk() *Sk

func (*InvalidSkType) ProtoMessage

func (*InvalidSkType) ProtoMessage()

func (*InvalidSkType) ProtoReflect

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

func (*InvalidSkType) Reset

func (x *InvalidSkType) Reset()

func (*InvalidSkType) String

func (x *InvalidSkType) String() string

type MultipleFieldsPk

type MultipleFieldsPk struct {

	// one field
	One string `protobuf:"bytes,1,opt,name=one,proto3" json:"one,omitempty"`
	// two field
	Two string `protobuf:"bytes,2,opt,name=two,proto3" json:"two,omitempty"`
	// contains filtered or unexported fields
}

MultipleFieldsPk is invalid because multiple fields have been marked as a primary key

func (*MultipleFieldsPk) Descriptor deprecated

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

Deprecated: Use MultipleFieldsPk.ProtoReflect.Descriptor instead.

func (*MultipleFieldsPk) GetOne

func (x *MultipleFieldsPk) GetOne() string

func (*MultipleFieldsPk) GetTwo

func (x *MultipleFieldsPk) GetTwo() string

func (*MultipleFieldsPk) ProtoMessage

func (*MultipleFieldsPk) ProtoMessage()

func (*MultipleFieldsPk) ProtoReflect

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

func (*MultipleFieldsPk) Reset

func (x *MultipleFieldsPk) Reset()

func (*MultipleFieldsPk) String

func (x *MultipleFieldsPk) String() string

type MultipleFieldsSk

type MultipleFieldsSk struct {

	// one field
	One string `protobuf:"bytes,1,opt,name=one,proto3" json:"one,omitempty"`
	// two field
	Two string `protobuf:"bytes,2,opt,name=two,proto3" json:"two,omitempty"`
	// pk field
	Pk string `protobuf:"bytes,3,opt,name=pk,proto3" json:"pk,omitempty"`
	// contains filtered or unexported fields
}

MultipleFieldsSk is invalid because multiple fields have been marked as a sort key

func (*MultipleFieldsSk) Descriptor deprecated

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

Deprecated: Use MultipleFieldsSk.ProtoReflect.Descriptor instead.

func (*MultipleFieldsSk) GetOne

func (x *MultipleFieldsSk) GetOne() string

func (*MultipleFieldsSk) GetPk

func (x *MultipleFieldsSk) GetPk() string

func (*MultipleFieldsSk) GetTwo

func (x *MultipleFieldsSk) GetTwo() string

func (*MultipleFieldsSk) ProtoMessage

func (*MultipleFieldsSk) ProtoMessage()

func (*MultipleFieldsSk) ProtoReflect

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

func (*MultipleFieldsSk) Reset

func (x *MultipleFieldsSk) Reset()

func (*MultipleFieldsSk) String

func (x *MultipleFieldsSk) String() string

type PkSkSameField

type PkSkSameField struct {

	// skpk field
	Skpk string `protobuf:"bytes,1,opt,name=skpk,proto3" json:"skpk,omitempty"`
	// contains filtered or unexported fields
}

PkSkSameField is invalid because pk and sk can't mark the same field

func (*PkSkSameField) Descriptor deprecated

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

Deprecated: Use PkSkSameField.ProtoReflect.Descriptor instead.

func (*PkSkSameField) GetSkpk

func (x *PkSkSameField) GetSkpk() string

func (*PkSkSameField) ProtoMessage

func (*PkSkSameField) ProtoMessage()

func (*PkSkSameField) ProtoReflect

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

func (*PkSkSameField) Reset

func (x *PkSkSameField) Reset()

func (*PkSkSameField) String

func (x *PkSkSameField) String() string

type Sk

type Sk struct {
	// contains filtered or unexported fields
}

Sk message

func (*Sk) Descriptor deprecated

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

Deprecated: Use Sk.ProtoReflect.Descriptor instead.

func (*Sk) ProtoMessage

func (*Sk) ProtoMessage()

func (*Sk) ProtoReflect

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

func (*Sk) Reset

func (x *Sk) Reset()

func (*Sk) String

func (x *Sk) String() string

type WrongSortKeyOnly

type WrongSortKeyOnly struct {

	// sk field
	Sk string `protobuf:"bytes,1,opt,name=sk,proto3" json:"sk,omitempty"`
	// contains filtered or unexported fields
}

WrongSortKeyOnly is invalid because it only has a sort key

func (*WrongSortKeyOnly) Descriptor deprecated

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

Deprecated: Use WrongSortKeyOnly.ProtoReflect.Descriptor instead.

func (*WrongSortKeyOnly) GetSk

func (x *WrongSortKeyOnly) GetSk() string

func (*WrongSortKeyOnly) ProtoMessage

func (*WrongSortKeyOnly) ProtoMessage()

func (*WrongSortKeyOnly) ProtoReflect

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

func (*WrongSortKeyOnly) Reset

func (x *WrongSortKeyOnly) Reset()

func (*WrongSortKeyOnly) String

func (x *WrongSortKeyOnly) String() string

Jump to

Keyboard shortcuts

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