Documentation
¶
Overview ¶
Package aip132 contains utilities used to comply with API Improvement Proposals (AIPs) from https://google.aip.dev/132.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldPath ¶
type FieldPath struct {
// contains filtered or unexported fields
}
FieldPath represents the path to a field in a message.
For example, for the given message:
message MyThing { message Bar { string foobar = 2; } string foo = 1; Bar bar = 2; map<string, Bar> named_bars = 3; }
Some valid paths would be: foo, bar.foobar and named_bars.`bar-key`.foobar.
func NewFieldPath ¶
NewFieldPath initializes a new field path with the given segments.
func (FieldPath) GetSegments ¶
type OrderBy ¶
type OrderBy struct { // The field path. This is the path of the field in the // resource message that the AIP-132 List RPC is listing. FieldPath FieldPath // Whether the field should be sorted in descending order. Descending bool }
OrderBy represents a part of an AIP-132 order_by clause.
func ParseOrderBy ¶
ParseOrderBy parses an AIP-132 order_by list. The method validates the syntax is correct and each identifier appears at most once, but it does not validate the identifiers themselves are valid.
Click to show internal directories.
Click to hide internal directories.