go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/common/proto/examples/examples.proto (about)

     1  // Copyright 2019 The LUCI Authors. All rights reserved.
     2  // Use of this source code is governed under the Apache License, Version 2.0
     3  // that can be found in the LICENSE file.
     4  
     5  syntax = "proto3";
     6  
     7  option go_package = "go.chromium.org/luci/common/proto/examples";
     8  
     9  package examples;
    10  
    11  // An example request to list existing records. Demonstrates usage of standard
    12  // fields.
    13  //
    14  // https://cloud.google.com/apis/design/standard_fields
    15  message ListRequest {
    16    // The value of next_page_token received in a ListResponse. Used to get the
    17    // next page of records. If empty, gets the first page.
    18    string page_token = 1;
    19  
    20    // The maximum number of results to include in the response.
    21    int32 page_size = 2;
    22  }
    23  
    24  // An example response to a request to list records. Demonstrates usage of
    25  // standard fields.
    26  //
    27  // https://cloud.google.com/apis/design/standard_fields
    28  message ListResponse {
    29    // The record.
    30    repeated string records = 1;
    31  
    32    // The value to use as the page_token in a ListRequest to get the next page of
    33    // records. If empty, there are no more records.
    34    string next_page_token = 2;
    35  }