| OLD | NEW |
| (Empty) | |
| 1 // Code generated by protoc-gen-go. |
| 2 // source: github.com/luci/luci-go/milo/api/proto/buildbot.proto |
| 3 // DO NOT EDIT! |
| 4 |
| 5 /* |
| 6 Package milo is a generated protocol buffer package. |
| 7 |
| 8 It is generated from these files: |
| 9 github.com/luci/luci-go/milo/api/proto/buildbot.proto |
| 10 |
| 11 It has these top-level messages: |
| 12 MasterRequest |
| 13 CompressedMasterJSON |
| 14 */ |
| 15 package milo |
| 16 |
| 17 import prpc "github.com/luci/luci-go/grpc/prpc" |
| 18 |
| 19 import proto "github.com/golang/protobuf/proto" |
| 20 import fmt "fmt" |
| 21 import math "math" |
| 22 import google_protobuf "github.com/luci/luci-go/common/proto/google" |
| 23 |
| 24 import ( |
| 25 context "golang.org/x/net/context" |
| 26 grpc "google.golang.org/grpc" |
| 27 ) |
| 28 |
| 29 // Reference imports to suppress errors if they are not otherwise used. |
| 30 var _ = proto.Marshal |
| 31 var _ = fmt.Errorf |
| 32 var _ = math.Inf |
| 33 |
| 34 // This is a compile-time assertion to ensure that this generated file |
| 35 // is compatible with the proto package it is being compiled against. |
| 36 // A compilation error at this line likely means your copy of the |
| 37 // proto package needs to be updated. |
| 38 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| 39 |
| 40 // The request containing the name of the master. |
| 41 type MasterRequest struct { |
| 42 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` |
| 43 } |
| 44 |
| 45 func (m *MasterRequest) Reset() { *m = MasterRequest{} } |
| 46 func (m *MasterRequest) String() string { return proto.CompactTextStr
ing(m) } |
| 47 func (*MasterRequest) ProtoMessage() {} |
| 48 func (*MasterRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []i
nt{0} } |
| 49 |
| 50 // The response message containing master information. |
| 51 type CompressedMasterJSON struct { |
| 52 // Whether the master is internal or not. |
| 53 Internal bool `protobuf:"varint,1,opt,name=internal" json:"internal,omit
empty"` |
| 54 // Timestamp of the freshness of the master data. |
| 55 Modified *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=modified
" json:"modified,omitempty"` |
| 56 // Gzipped json data of the master. |
| 57 Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempt
y"` |
| 58 } |
| 59 |
| 60 func (m *CompressedMasterJSON) Reset() { *m = CompressedMaste
rJSON{} } |
| 61 func (m *CompressedMasterJSON) String() string { return proto.Compact
TextString(m) } |
| 62 func (*CompressedMasterJSON) ProtoMessage() {} |
| 63 func (*CompressedMasterJSON) Descriptor() ([]byte, []int) { return fileDescripto
r0, []int{1} } |
| 64 |
| 65 func (m *CompressedMasterJSON) GetModified() *google_protobuf.Timestamp { |
| 66 if m != nil { |
| 67 return m.Modified |
| 68 } |
| 69 return nil |
| 70 } |
| 71 |
| 72 func init() { |
| 73 proto.RegisterType((*MasterRequest)(nil), "milo.MasterRequest") |
| 74 proto.RegisterType((*CompressedMasterJSON)(nil), "milo.CompressedMasterJ
SON") |
| 75 } |
| 76 |
| 77 // Reference imports to suppress errors if they are not otherwise used. |
| 78 var _ context.Context |
| 79 var _ grpc.ClientConn |
| 80 |
| 81 // This is a compile-time assertion to ensure that this generated file |
| 82 // is compatible with the grpc package it is being compiled against. |
| 83 const _ = grpc.SupportPackageIsVersion3 |
| 84 |
| 85 // Client API for Buildbot service |
| 86 |
| 87 type BuildbotClient interface { |
| 88 GetCompressedMasterJSON(ctx context.Context, in *MasterRequest, opts ...
grpc.CallOption) (*CompressedMasterJSON, error) |
| 89 } |
| 90 type buildbotPRPCClient struct { |
| 91 client *prpc.Client |
| 92 } |
| 93 |
| 94 func NewBuildbotPRPCClient(client *prpc.Client) BuildbotClient { |
| 95 return &buildbotPRPCClient{client} |
| 96 } |
| 97 |
| 98 func (c *buildbotPRPCClient) GetCompressedMasterJSON(ctx context.Context, in *Ma
sterRequest, opts ...grpc.CallOption) (*CompressedMasterJSON, error) { |
| 99 out := new(CompressedMasterJSON) |
| 100 err := c.client.Call(ctx, "milo.Buildbot", "GetCompressedMasterJSON", in
, out, opts...) |
| 101 if err != nil { |
| 102 return nil, err |
| 103 } |
| 104 return out, nil |
| 105 } |
| 106 |
| 107 type buildbotClient struct { |
| 108 cc *grpc.ClientConn |
| 109 } |
| 110 |
| 111 func NewBuildbotClient(cc *grpc.ClientConn) BuildbotClient { |
| 112 return &buildbotClient{cc} |
| 113 } |
| 114 |
| 115 func (c *buildbotClient) GetCompressedMasterJSON(ctx context.Context, in *Master
Request, opts ...grpc.CallOption) (*CompressedMasterJSON, error) { |
| 116 out := new(CompressedMasterJSON) |
| 117 err := grpc.Invoke(ctx, "/milo.Buildbot/GetCompressedMasterJSON", in, ou
t, c.cc, opts...) |
| 118 if err != nil { |
| 119 return nil, err |
| 120 } |
| 121 return out, nil |
| 122 } |
| 123 |
| 124 // Server API for Buildbot service |
| 125 |
| 126 type BuildbotServer interface { |
| 127 GetCompressedMasterJSON(context.Context, *MasterRequest) (*CompressedMas
terJSON, error) |
| 128 } |
| 129 |
| 130 func RegisterBuildbotServer(s prpc.Registrar, srv BuildbotServer) { |
| 131 s.RegisterService(&_Buildbot_serviceDesc, srv) |
| 132 } |
| 133 |
| 134 func _Buildbot_GetCompressedMasterJSON_Handler(srv interface{}, ctx context.Cont
ext, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (inte
rface{}, error) { |
| 135 in := new(MasterRequest) |
| 136 if err := dec(in); err != nil { |
| 137 return nil, err |
| 138 } |
| 139 if interceptor == nil { |
| 140 return srv.(BuildbotServer).GetCompressedMasterJSON(ctx, in) |
| 141 } |
| 142 info := &grpc.UnaryServerInfo{ |
| 143 Server: srv, |
| 144 FullMethod: "/milo.Buildbot/GetCompressedMasterJSON", |
| 145 } |
| 146 handler := func(ctx context.Context, req interface{}) (interface{}, erro
r) { |
| 147 return srv.(BuildbotServer).GetCompressedMasterJSON(ctx, req.(*M
asterRequest)) |
| 148 } |
| 149 return interceptor(ctx, in, info, handler) |
| 150 } |
| 151 |
| 152 var _Buildbot_serviceDesc = grpc.ServiceDesc{ |
| 153 ServiceName: "milo.Buildbot", |
| 154 HandlerType: (*BuildbotServer)(nil), |
| 155 Methods: []grpc.MethodDesc{ |
| 156 { |
| 157 MethodName: "GetCompressedMasterJSON", |
| 158 Handler: _Buildbot_GetCompressedMasterJSON_Handler, |
| 159 }, |
| 160 }, |
| 161 Streams: []grpc.StreamDesc{}, |
| 162 Metadata: fileDescriptor0, |
| 163 } |
| 164 |
| 165 func init() { |
| 166 proto.RegisterFile("github.com/luci/luci-go/milo/api/proto/buildbot.prot
o", fileDescriptor0) |
| 167 } |
| 168 |
| 169 var fileDescriptor0 = []byte{ |
| 170 // 248 bytes of a gzipped FileDescriptorProto |
| 171 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x8f,
0x4f, 0x4b, 0xc4, 0x30, |
| 172 0x10, 0xc5, 0x5d, 0x5d, 0xa4, 0x46, 0xbd, 0x44, 0xc1, 0xd2, 0x8b, 0x52,
0x2f, 0x5e, 0x4c, 0x60, |
| 173 0x45, 0x3f, 0x80, 0x1e, 0x04, 0xf1, 0x0f, 0x44, 0x0f, 0x5e, 0x93, 0xcd,
0x6c, 0x1d, 0x48, 0x3a, |
| 174 0xb5, 0x4d, 0xae, 0x7e, 0x76, 0xdb, 0xc4, 0x5d, 0x10, 0xf6, 0x12, 0xe6,
0xe5, 0xbd, 0x61, 0x7e, |
| 175 0x8f, 0xdd, 0x36, 0x18, 0xbe, 0xa2, 0x11, 0x4b, 0xf2, 0xd2, 0xc5, 0x25,
0xa6, 0xe7, 0xba, 0x21, |
| 176 0xe9, 0xd1, 0x91, 0xd4, 0x1d, 0xca, 0xae, 0xa7, 0x40, 0xd2, 0x44, 0x74,
0xd6, 0x50, 0x10, 0x49, |
| 177 0xf2, 0xf9, 0x64, 0x57, 0xe7, 0x0d, 0x51, 0xe3, 0x20, 0x47, 0x4c, 0x5c,
0xc9, 0x80, 0x1e, 0x86, |
| 178 0xa0, 0x7d, 0x97, 0x63, 0xf5, 0x25, 0x3b, 0x7e, 0xd1, 0x43, 0x80, 0x5e,
0xc1, 0x77, 0x1c, 0x1d, |
| 179 0xce, 0xd9, 0xbc, 0xd5, 0x1e, 0xca, 0xd9, 0xc5, 0xec, 0xea, 0x40, 0xa5,
0xb9, 0xfe, 0x61, 0xa7, |
| 180 0x0f, 0xe4, 0xbb, 0x1e, 0x86, 0x01, 0x6c, 0x8e, 0x3f, 0xbd, 0xbf, 0xbd,
0xf2, 0x8a, 0x15, 0xd8, |
| 181 0x8e, 0xa2, 0xd5, 0x2e, 0xe5, 0x0b, 0xb5, 0xd1, 0xfc, 0x8e, 0x15, 0x9e,
0x2c, 0xae, 0x10, 0x6c, |
| 182 0xb9, 0x3b, 0x7a, 0x87, 0x8b, 0x4a, 0x64, 0x18, 0xb1, 0x86, 0x11, 0x1f,
0x6b, 0x18, 0xb5, 0xc9, |
| 183 0x4e, 0xf7, 0xad, 0x0e, 0xba, 0xdc, 0x1b, 0x77, 0x8e, 0x54, 0x9a, 0x17,
0x9f, 0xac, 0xb8, 0xff, |
| 184 0x6b, 0xc7, 0x9f, 0xd9, 0xd9, 0x23, 0x84, 0xad, 0x38, 0x27, 0x62, 0xea,
0x2c, 0xfe, 0xf5, 0xa9, |
| 185 0xaa, 0xfc, 0xb9, 0x6d, 0xa1, 0xde, 0x31, 0xfb, 0x89, 0xe5, 0xe6, 0x37,
0x00, 0x00, 0xff, 0xff, |
| 186 0xbd, 0xd5, 0xe2, 0x2d, 0x65, 0x01, 0x00, 0x00, |
| 187 } |
| OLD | NEW |