import "go.chromium.org/luci/common/proto/examples"
Package examples shows how to design protos which adhere to the Google Cloud API design guide.
https://cloud.google.com/apis/design/
doc.go examples.pb.go generate.go
type ListRequest struct { // The value of next_page_token received in a ListResponse. Used to get the // next page of records. If empty, gets the first page. PageToken string `protobuf:"bytes,1,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // The maximum number of results to include in the response. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An example request to list existing records. Demonstrates usage of standard fields.
https://cloud.google.com/apis/design/standard_fields
func (*ListRequest) Descriptor() ([]byte, []int)
func (m *ListRequest) GetPageSize() int32
func (m *ListRequest) GetPageToken() string
func (*ListRequest) ProtoMessage()
func (m *ListRequest) Reset()
func (m *ListRequest) String() string
func (m *ListRequest) XXX_DiscardUnknown()
func (m *ListRequest) XXX_Merge(src proto.Message)
func (m *ListRequest) XXX_Size() int
func (m *ListRequest) XXX_Unmarshal(b []byte) error
type ListResponse struct { // The record. Records []string `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` // The value to use as the page_token in a ListRequest to get the next page of // records. If empty, there are no more records. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An example response to a request to list records. Demonstrates usage of standard fields.
https://cloud.google.com/apis/design/standard_fields
func (*ListResponse) Descriptor() ([]byte, []int)
func (m *ListResponse) GetNextPageToken() string
func (m *ListResponse) GetRecords() []string
func (*ListResponse) ProtoMessage()
func (m *ListResponse) Reset()
func (m *ListResponse) String() string
func (m *ListResponse) XXX_DiscardUnknown()
func (m *ListResponse) XXX_Merge(src proto.Message)
func (m *ListResponse) XXX_Size() int
func (m *ListResponse) XXX_Unmarshal(b []byte) error
Package examples imports 3 packages (graph). Updated 2021-01-24. Refresh now. Tools for package owners.