Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestMessageDescriptor ¶
type RequestMessageDescriptor struct { // StringFlags is a list of string flags. StringFlags []*v1.Flag // Int32Flags is a list of number flags. Int32Flags []*v1.Flag // EnumFlags is a list of enum flags. EnumFlags []*v1.EnumFlag // Message is a construct of a request message. Message *v1.RequestMessage // contains filtered or unexported fields }
RequestMessageDescriptor describes a construct of a request message from a proto file. It describes relationships between flags and a request message.
func NewRequestMessageDescriptor ¶
func NewRequestMessageDescriptor(file *descriptorpb.FileDescriptorProto) *RequestMessageDescriptor
func (*RequestMessageDescriptor) RequestMessage ¶
func (r *RequestMessageDescriptor) RequestMessage(typ string, withName bool, withPath bool) (*RequestMessageDescriptor, error)
RequestMessage returns a request message descriptor. It sets and returns itself.
typ is a type of the request message. It is resolved in the same way as FieldDescriptorProto.type_name, but must refer to a message type. (e.g. ".com.example.FooRequest")
Click to show internal directories.
Click to hide internal directories.