go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/scheduler/appengine/task/gitiles/pb/messages.proto (about)

     1  // Copyright 2017 The LUCI Authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //      http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  syntax = "proto3";
    16  
    17  package gitiles.messages;
    18  
    19  option go_package = "go.chromium.org/luci/scheduler/appengine/task/gitiles/pb";
    20  
    21  // Child is the last part and its sha1 tip.
    22  message Child {
    23    string suffix = 1;
    24    bytes sha1 = 2;
    25  }
    26  
    27  // RefSpace is a bunch of children which share the same ref namespace (prefix).
    28  message RefSpace {
    29    string prefix = 1;
    30    repeated Child children = 2;
    31  }
    32  
    33  // RepositoryState stores tips of all watched refs in a repo.
    34  message RepositoryState {
    35    repeated RefSpace spaces = 1;
    36  }
    37  
    38  // DebugState is returned as part of GetDebugJobState RPC response.
    39  message DebugState {
    40    message Ref {
    41      string ref = 1;
    42      string commit = 2;
    43    }
    44    repeated Ref known = 1;   // tips as stored in the datastore
    45    repeated Ref current = 2; // tips as returned by gitiles right now
    46  }