golang.org/x/build@v0.0.0-20240506185731-218518f32b70/cmd/coordinator/protos/coordinator.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: coordinator.proto 3 4 package protos 5 6 import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 ) 16 17 // Reference imports to suppress errors if they are not otherwise used. 18 var _ = proto.Marshal 19 var _ = fmt.Errorf 20 var _ = math.Inf 21 22 // This is a compile-time assertion to ensure that this generated file 23 // is compatible with the proto package it is being compiled against. 24 // A compilation error at this line likely means your copy of the 25 // proto package needs to be updated. 26 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 27 28 // ClearResultsRequest specifies the data needed to clear a result. 29 type ClearResultsRequest struct { 30 // builder is the builder to clear results. 31 Builder string `protobuf:"bytes,1,opt,name=builder,proto3" json:"builder,omitempty"` 32 // hash is the commit hash to clear results. 33 Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` 34 XXX_NoUnkeyedLiteral struct{} `json:"-"` 35 XXX_unrecognized []byte `json:"-"` 36 XXX_sizecache int32 `json:"-"` 37 } 38 39 func (m *ClearResultsRequest) Reset() { *m = ClearResultsRequest{} } 40 func (m *ClearResultsRequest) String() string { return proto.CompactTextString(m) } 41 func (*ClearResultsRequest) ProtoMessage() {} 42 func (*ClearResultsRequest) Descriptor() ([]byte, []int) { 43 return fileDescriptor_99e779eb11ceee19, []int{0} 44 } 45 46 func (m *ClearResultsRequest) XXX_Unmarshal(b []byte) error { 47 return xxx_messageInfo_ClearResultsRequest.Unmarshal(m, b) 48 } 49 func (m *ClearResultsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 50 return xxx_messageInfo_ClearResultsRequest.Marshal(b, m, deterministic) 51 } 52 func (m *ClearResultsRequest) XXX_Merge(src proto.Message) { 53 xxx_messageInfo_ClearResultsRequest.Merge(m, src) 54 } 55 func (m *ClearResultsRequest) XXX_Size() int { 56 return xxx_messageInfo_ClearResultsRequest.Size(m) 57 } 58 func (m *ClearResultsRequest) XXX_DiscardUnknown() { 59 xxx_messageInfo_ClearResultsRequest.DiscardUnknown(m) 60 } 61 62 var xxx_messageInfo_ClearResultsRequest proto.InternalMessageInfo 63 64 func (m *ClearResultsRequest) GetBuilder() string { 65 if m != nil { 66 return m.Builder 67 } 68 return "" 69 } 70 71 func (m *ClearResultsRequest) GetHash() string { 72 if m != nil { 73 return m.Hash 74 } 75 return "" 76 } 77 78 type ClearResultsResponse struct { 79 XXX_NoUnkeyedLiteral struct{} `json:"-"` 80 XXX_unrecognized []byte `json:"-"` 81 XXX_sizecache int32 `json:"-"` 82 } 83 84 func (m *ClearResultsResponse) Reset() { *m = ClearResultsResponse{} } 85 func (m *ClearResultsResponse) String() string { return proto.CompactTextString(m) } 86 func (*ClearResultsResponse) ProtoMessage() {} 87 func (*ClearResultsResponse) Descriptor() ([]byte, []int) { 88 return fileDescriptor_99e779eb11ceee19, []int{1} 89 } 90 91 func (m *ClearResultsResponse) XXX_Unmarshal(b []byte) error { 92 return xxx_messageInfo_ClearResultsResponse.Unmarshal(m, b) 93 } 94 func (m *ClearResultsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 95 return xxx_messageInfo_ClearResultsResponse.Marshal(b, m, deterministic) 96 } 97 func (m *ClearResultsResponse) XXX_Merge(src proto.Message) { 98 xxx_messageInfo_ClearResultsResponse.Merge(m, src) 99 } 100 func (m *ClearResultsResponse) XXX_Size() int { 101 return xxx_messageInfo_ClearResultsResponse.Size(m) 102 } 103 func (m *ClearResultsResponse) XXX_DiscardUnknown() { 104 xxx_messageInfo_ClearResultsResponse.DiscardUnknown(m) 105 } 106 107 var xxx_messageInfo_ClearResultsResponse proto.InternalMessageInfo 108 109 func init() { 110 proto.RegisterType((*ClearResultsRequest)(nil), "protos.ClearResultsRequest") 111 proto.RegisterType((*ClearResultsResponse)(nil), "protos.ClearResultsResponse") 112 } 113 114 func init() { proto.RegisterFile("coordinator.proto", fileDescriptor_99e779eb11ceee19) } 115 116 var fileDescriptor_99e779eb11ceee19 = []byte{ 117 // 151 bytes of a gzipped FileDescriptorProto 118 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4c, 0xce, 0xcf, 0x2f, 119 0x4a, 0xc9, 0xcc, 0x4b, 0x2c, 0xc9, 0x2f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x03, 120 0x53, 0xc5, 0x4a, 0xce, 0x5c, 0xc2, 0xce, 0x39, 0xa9, 0x89, 0x45, 0x41, 0xa9, 0xc5, 0xa5, 0x39, 121 0x25, 0xc5, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x42, 0x12, 0x5c, 0xec, 0x49, 0xa5, 0x99, 122 0x39, 0x29, 0xa9, 0x45, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x30, 0xae, 0x90, 0x10, 0x17, 123 0x4b, 0x46, 0x62, 0x71, 0x86, 0x04, 0x13, 0x58, 0x18, 0xcc, 0x56, 0x12, 0xe3, 0x12, 0x41, 0x35, 124 0xa4, 0xb8, 0x20, 0x3f, 0xaf, 0x38, 0xd5, 0x28, 0x8a, 0x8b, 0xdb, 0x19, 0x61, 0xb3, 0x90, 0x37, 125 0x17, 0x0f, 0xb2, 0x32, 0x21, 0x69, 0x88, 0x5b, 0x8a, 0xf5, 0xb0, 0xb8, 0x40, 0x4a, 0x06, 0xbb, 126 0x24, 0xc4, 0x64, 0x25, 0x86, 0x24, 0x88, 0x07, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x10, 127 0xa0, 0xb6, 0xbb, 0xdc, 0x00, 0x00, 0x00, 128 } 129 130 // Reference imports to suppress errors if they are not otherwise used. 131 var _ context.Context 132 var _ grpc.ClientConnInterface 133 134 // This is a compile-time assertion to ensure that this generated file 135 // is compatible with the grpc package it is being compiled against. 136 const _ = grpc.SupportPackageIsVersion6 137 138 // CoordinatorClient is the client API for Coordinator service. 139 // 140 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 141 type CoordinatorClient interface { 142 // ClearResults clears build failures from the coordinator to force them to rebuild. 143 ClearResults(ctx context.Context, in *ClearResultsRequest, opts ...grpc.CallOption) (*ClearResultsResponse, error) 144 } 145 146 type coordinatorClient struct { 147 cc grpc.ClientConnInterface 148 } 149 150 func NewCoordinatorClient(cc grpc.ClientConnInterface) CoordinatorClient { 151 return &coordinatorClient{cc} 152 } 153 154 func (c *coordinatorClient) ClearResults(ctx context.Context, in *ClearResultsRequest, opts ...grpc.CallOption) (*ClearResultsResponse, error) { 155 out := new(ClearResultsResponse) 156 err := c.cc.Invoke(ctx, "/protos.Coordinator/ClearResults", in, out, opts...) 157 if err != nil { 158 return nil, err 159 } 160 return out, nil 161 } 162 163 // CoordinatorServer is the server API for Coordinator service. 164 type CoordinatorServer interface { 165 // ClearResults clears build failures from the coordinator to force them to rebuild. 166 ClearResults(context.Context, *ClearResultsRequest) (*ClearResultsResponse, error) 167 } 168 169 // UnimplementedCoordinatorServer can be embedded to have forward compatible implementations. 170 type UnimplementedCoordinatorServer struct { 171 } 172 173 func (*UnimplementedCoordinatorServer) ClearResults(ctx context.Context, req *ClearResultsRequest) (*ClearResultsResponse, error) { 174 return nil, status.Errorf(codes.Unimplemented, "method ClearResults not implemented") 175 } 176 177 func RegisterCoordinatorServer(s *grpc.Server, srv CoordinatorServer) { 178 s.RegisterService(&_Coordinator_serviceDesc, srv) 179 } 180 181 func _Coordinator_ClearResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 182 in := new(ClearResultsRequest) 183 if err := dec(in); err != nil { 184 return nil, err 185 } 186 if interceptor == nil { 187 return srv.(CoordinatorServer).ClearResults(ctx, in) 188 } 189 info := &grpc.UnaryServerInfo{ 190 Server: srv, 191 FullMethod: "/protos.Coordinator/ClearResults", 192 } 193 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 194 return srv.(CoordinatorServer).ClearResults(ctx, req.(*ClearResultsRequest)) 195 } 196 return interceptor(ctx, in, info, handler) 197 } 198 199 var _Coordinator_serviceDesc = grpc.ServiceDesc{ 200 ServiceName: "protos.Coordinator", 201 HandlerType: (*CoordinatorServer)(nil), 202 Methods: []grpc.MethodDesc{ 203 { 204 MethodName: "ClearResults", 205 Handler: _Coordinator_ClearResults_Handler, 206 }, 207 }, 208 Streams: []grpc.StreamDesc{}, 209 Metadata: "coordinator.proto", 210 }