| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: chromite/api/depgraph.proto |
| |
| package api |
| |
| import ( |
| context "context" |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| chromiumos "go.chromium.org/chromiumos/infra/proto/go/chromiumos" |
| grpc "google.golang.org/grpc" |
| codes "google.golang.org/grpc/codes" |
| status "google.golang.org/grpc/status" |
| math "math" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // Message contains data about the portage dependency graph and the packages' |
| // dependency source paths. |
| type DepGraph struct { |
| // TODO(crbug/1081828): drop when no longer used. Use sysroot instead. |
| // The board whose dependency graph this is. |
| BuildTarget *chromiumos.BuildTarget `protobuf:"bytes,1,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"` |
| // List of packages in the dependency graph and their infos, which include |
| // dependency packages and the source paths. |
| PackageDeps []*PackageDepInfo `protobuf:"bytes,2,rep,name=package_deps,json=packageDeps,proto3" json:"package_deps,omitempty"` |
| // The sysroot whose dependency graph is being created. If no sysroot is |
| // being used, may be unspecified. |
| Sysroot *Sysroot `protobuf:"bytes,3,opt,name=sysroot,proto3" json:"sysroot,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *DepGraph) Reset() { *m = DepGraph{} } |
| func (m *DepGraph) String() string { return proto.CompactTextString(m) } |
| func (*DepGraph) ProtoMessage() {} |
| func (*DepGraph) Descriptor() ([]byte, []int) { |
| return fileDescriptor_7a5308b238ddba97, []int{0} |
| } |
| |
| func (m *DepGraph) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_DepGraph.Unmarshal(m, b) |
| } |
| func (m *DepGraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_DepGraph.Marshal(b, m, deterministic) |
| } |
| func (m *DepGraph) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_DepGraph.Merge(m, src) |
| } |
| func (m *DepGraph) XXX_Size() int { |
| return xxx_messageInfo_DepGraph.Size(m) |
| } |
| func (m *DepGraph) XXX_DiscardUnknown() { |
| xxx_messageInfo_DepGraph.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_DepGraph proto.InternalMessageInfo |
| |
| func (m *DepGraph) GetBuildTarget() *chromiumos.BuildTarget { |
| if m != nil { |
| return m.BuildTarget |
| } |
| return nil |
| } |
| |
| func (m *DepGraph) GetPackageDeps() []*PackageDepInfo { |
| if m != nil { |
| return m.PackageDeps |
| } |
| return nil |
| } |
| |
| func (m *DepGraph) GetSysroot() *Sysroot { |
| if m != nil { |
| return m.Sysroot |
| } |
| return nil |
| } |
| |
| // Message describing a package and its dependencies. |
| type PackageDepInfo struct { |
| // The package itself. |
| PackageInfo *chromiumos.PackageInfo `protobuf:"bytes,1,opt,name=package_info,json=packageInfo,proto3" json:"package_info,omitempty"` |
| // List of packages this package depends on. |
| DependencyPackages []*chromiumos.PackageInfo `protobuf:"bytes,2,rep,name=dependency_packages,json=dependencyPackages,proto3" json:"dependency_packages,omitempty"` |
| // List of source paths the package depends on. |
| DependencySourcePaths []*SourcePath `protobuf:"bytes,3,rep,name=dependency_source_paths,json=dependencySourcePaths,proto3" json:"dependency_source_paths,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *PackageDepInfo) Reset() { *m = PackageDepInfo{} } |
| func (m *PackageDepInfo) String() string { return proto.CompactTextString(m) } |
| func (*PackageDepInfo) ProtoMessage() {} |
| func (*PackageDepInfo) Descriptor() ([]byte, []int) { |
| return fileDescriptor_7a5308b238ddba97, []int{1} |
| } |
| |
| func (m *PackageDepInfo) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_PackageDepInfo.Unmarshal(m, b) |
| } |
| func (m *PackageDepInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_PackageDepInfo.Marshal(b, m, deterministic) |
| } |
| func (m *PackageDepInfo) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_PackageDepInfo.Merge(m, src) |
| } |
| func (m *PackageDepInfo) XXX_Size() int { |
| return xxx_messageInfo_PackageDepInfo.Size(m) |
| } |
| func (m *PackageDepInfo) XXX_DiscardUnknown() { |
| xxx_messageInfo_PackageDepInfo.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_PackageDepInfo proto.InternalMessageInfo |
| |
| func (m *PackageDepInfo) GetPackageInfo() *chromiumos.PackageInfo { |
| if m != nil { |
| return m.PackageInfo |
| } |
| return nil |
| } |
| |
| func (m *PackageDepInfo) GetDependencyPackages() []*chromiumos.PackageInfo { |
| if m != nil { |
| return m.DependencyPackages |
| } |
| return nil |
| } |
| |
| func (m *PackageDepInfo) GetDependencySourcePaths() []*SourcePath { |
| if m != nil { |
| return m.DependencySourcePaths |
| } |
| return nil |
| } |
| |
| // Message describes a source path. |
| type SourcePath struct { |
| Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *SourcePath) Reset() { *m = SourcePath{} } |
| func (m *SourcePath) String() string { return proto.CompactTextString(m) } |
| func (*SourcePath) ProtoMessage() {} |
| func (*SourcePath) Descriptor() ([]byte, []int) { |
| return fileDescriptor_7a5308b238ddba97, []int{2} |
| } |
| |
| func (m *SourcePath) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_SourcePath.Unmarshal(m, b) |
| } |
| func (m *SourcePath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_SourcePath.Marshal(b, m, deterministic) |
| } |
| func (m *SourcePath) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_SourcePath.Merge(m, src) |
| } |
| func (m *SourcePath) XXX_Size() int { |
| return xxx_messageInfo_SourcePath.Size(m) |
| } |
| func (m *SourcePath) XXX_DiscardUnknown() { |
| xxx_messageInfo_SourcePath.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_SourcePath proto.InternalMessageInfo |
| |
| func (m *SourcePath) GetPath() string { |
| if m != nil { |
| return m.Path |
| } |
| return "" |
| } |
| |
| // Message for creating dependency graph json map. |
| // Example Json: |
| // {"build_target":{"name":"board"},"output_file":"/tmp/depgraph.json"} |
| type GetBuildDependencyGraphRequest struct { |
| // The sysroot whose dependency graph is being created. If no sysroot is |
| // being used, may be unspecified. |
| Sysroot *Sysroot `protobuf:"bytes,4,opt,name=sysroot,proto3" json:"sysroot,omitempty"` |
| // TODO(crbug/1081828): drop when no longer used. |
| // DEPRECATED: Use sysroot instead. |
| // The board whose dependency graph is being created. If both sysroot and |
| // build_target are given, sysroot is used. |
| BuildTarget *chromiumos.BuildTarget `protobuf:"bytes,1,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"` |
| // The chroot to use to execute the endpoint. |
| Chroot *chromiumos.Chroot `protobuf:"bytes,2,opt,name=chroot,proto3" json:"chroot,omitempty"` |
| // List of packages for which to create the dependency graph. If none are |
| // specified the standard list of packages is used. |
| Packages []*chromiumos.PackageInfo `protobuf:"bytes,3,rep,name=packages,proto3" json:"packages,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *GetBuildDependencyGraphRequest) Reset() { *m = GetBuildDependencyGraphRequest{} } |
| func (m *GetBuildDependencyGraphRequest) String() string { return proto.CompactTextString(m) } |
| func (*GetBuildDependencyGraphRequest) ProtoMessage() {} |
| func (*GetBuildDependencyGraphRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_7a5308b238ddba97, []int{3} |
| } |
| |
| func (m *GetBuildDependencyGraphRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GetBuildDependencyGraphRequest.Unmarshal(m, b) |
| } |
| func (m *GetBuildDependencyGraphRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GetBuildDependencyGraphRequest.Marshal(b, m, deterministic) |
| } |
| func (m *GetBuildDependencyGraphRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetBuildDependencyGraphRequest.Merge(m, src) |
| } |
| func (m *GetBuildDependencyGraphRequest) XXX_Size() int { |
| return xxx_messageInfo_GetBuildDependencyGraphRequest.Size(m) |
| } |
| func (m *GetBuildDependencyGraphRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_GetBuildDependencyGraphRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GetBuildDependencyGraphRequest proto.InternalMessageInfo |
| |
| func (m *GetBuildDependencyGraphRequest) GetSysroot() *Sysroot { |
| if m != nil { |
| return m.Sysroot |
| } |
| return nil |
| } |
| |
| func (m *GetBuildDependencyGraphRequest) GetBuildTarget() *chromiumos.BuildTarget { |
| if m != nil { |
| return m.BuildTarget |
| } |
| return nil |
| } |
| |
| func (m *GetBuildDependencyGraphRequest) GetChroot() *chromiumos.Chroot { |
| if m != nil { |
| return m.Chroot |
| } |
| return nil |
| } |
| |
| func (m *GetBuildDependencyGraphRequest) GetPackages() []*chromiumos.PackageInfo { |
| if m != nil { |
| return m.Packages |
| } |
| return nil |
| } |
| |
| // Response from creating dependency graph json map. |
| type GetBuildDependencyGraphResponse struct { |
| DepGraph *DepGraph `protobuf:"bytes,1,opt,name=dep_graph,json=depGraph,proto3" json:"dep_graph,omitempty"` |
| SdkDepGraph *DepGraph `protobuf:"bytes,2,opt,name=sdk_dep_graph,json=sdkDepGraph,proto3" json:"sdk_dep_graph,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *GetBuildDependencyGraphResponse) Reset() { *m = GetBuildDependencyGraphResponse{} } |
| func (m *GetBuildDependencyGraphResponse) String() string { return proto.CompactTextString(m) } |
| func (*GetBuildDependencyGraphResponse) ProtoMessage() {} |
| func (*GetBuildDependencyGraphResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_7a5308b238ddba97, []int{4} |
| } |
| |
| func (m *GetBuildDependencyGraphResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GetBuildDependencyGraphResponse.Unmarshal(m, b) |
| } |
| func (m *GetBuildDependencyGraphResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GetBuildDependencyGraphResponse.Marshal(b, m, deterministic) |
| } |
| func (m *GetBuildDependencyGraphResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetBuildDependencyGraphResponse.Merge(m, src) |
| } |
| func (m *GetBuildDependencyGraphResponse) XXX_Size() int { |
| return xxx_messageInfo_GetBuildDependencyGraphResponse.Size(m) |
| } |
| func (m *GetBuildDependencyGraphResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_GetBuildDependencyGraphResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GetBuildDependencyGraphResponse proto.InternalMessageInfo |
| |
| func (m *GetBuildDependencyGraphResponse) GetDepGraph() *DepGraph { |
| if m != nil { |
| return m.DepGraph |
| } |
| return nil |
| } |
| |
| func (m *GetBuildDependencyGraphResponse) GetSdkDepGraph() *DepGraph { |
| if m != nil { |
| return m.SdkDepGraph |
| } |
| return nil |
| } |
| |
| type GetToolchainPathsRequest struct { |
| // The chroot to use to execute the endpoint. |
| Chroot *chromiumos.Chroot `protobuf:"bytes,1,opt,name=chroot,proto3" json:"chroot,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *GetToolchainPathsRequest) Reset() { *m = GetToolchainPathsRequest{} } |
| func (m *GetToolchainPathsRequest) String() string { return proto.CompactTextString(m) } |
| func (*GetToolchainPathsRequest) ProtoMessage() {} |
| func (*GetToolchainPathsRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_7a5308b238ddba97, []int{5} |
| } |
| |
| func (m *GetToolchainPathsRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GetToolchainPathsRequest.Unmarshal(m, b) |
| } |
| func (m *GetToolchainPathsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GetToolchainPathsRequest.Marshal(b, m, deterministic) |
| } |
| func (m *GetToolchainPathsRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetToolchainPathsRequest.Merge(m, src) |
| } |
| func (m *GetToolchainPathsRequest) XXX_Size() int { |
| return xxx_messageInfo_GetToolchainPathsRequest.Size(m) |
| } |
| func (m *GetToolchainPathsRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_GetToolchainPathsRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GetToolchainPathsRequest proto.InternalMessageInfo |
| |
| func (m *GetToolchainPathsRequest) GetChroot() *chromiumos.Chroot { |
| if m != nil { |
| return m.Chroot |
| } |
| return nil |
| } |
| |
| type GetToolchainPathsResponse struct { |
| // List of paths considered relevant to toolchain packages. |
| Paths []*SourcePath `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *GetToolchainPathsResponse) Reset() { *m = GetToolchainPathsResponse{} } |
| func (m *GetToolchainPathsResponse) String() string { return proto.CompactTextString(m) } |
| func (*GetToolchainPathsResponse) ProtoMessage() {} |
| func (*GetToolchainPathsResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_7a5308b238ddba97, []int{6} |
| } |
| |
| func (m *GetToolchainPathsResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_GetToolchainPathsResponse.Unmarshal(m, b) |
| } |
| func (m *GetToolchainPathsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_GetToolchainPathsResponse.Marshal(b, m, deterministic) |
| } |
| func (m *GetToolchainPathsResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_GetToolchainPathsResponse.Merge(m, src) |
| } |
| func (m *GetToolchainPathsResponse) XXX_Size() int { |
| return xxx_messageInfo_GetToolchainPathsResponse.Size(m) |
| } |
| func (m *GetToolchainPathsResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_GetToolchainPathsResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_GetToolchainPathsResponse proto.InternalMessageInfo |
| |
| func (m *GetToolchainPathsResponse) GetPaths() []*SourcePath { |
| if m != nil { |
| return m.Paths |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*DepGraph)(nil), "chromite.api.DepGraph") |
| proto.RegisterType((*PackageDepInfo)(nil), "chromite.api.PackageDepInfo") |
| proto.RegisterType((*SourcePath)(nil), "chromite.api.SourcePath") |
| proto.RegisterType((*GetBuildDependencyGraphRequest)(nil), "chromite.api.GetBuildDependencyGraphRequest") |
| proto.RegisterType((*GetBuildDependencyGraphResponse)(nil), "chromite.api.GetBuildDependencyGraphResponse") |
| proto.RegisterType((*GetToolchainPathsRequest)(nil), "chromite.api.GetToolchainPathsRequest") |
| proto.RegisterType((*GetToolchainPathsResponse)(nil), "chromite.api.GetToolchainPathsResponse") |
| } |
| |
| func init() { proto.RegisterFile("chromite/api/depgraph.proto", fileDescriptor_7a5308b238ddba97) } |
| |
| var fileDescriptor_7a5308b238ddba97 = []byte{ |
| // 551 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xcd, 0x6e, 0xd3, 0x30, |
| 0x1c, 0x57, 0xda, 0x31, 0xba, 0x7f, 0xcb, 0xc4, 0x8c, 0x46, 0x43, 0x98, 0xa0, 0xca, 0x01, 0x26, |
| 0x04, 0x89, 0xd4, 0x4a, 0x08, 0x71, 0x41, 0x1a, 0x15, 0x05, 0x71, 0xa9, 0xb2, 0x9d, 0xb8, 0x44, |
| 0x6e, 0xec, 0x26, 0x51, 0xd7, 0xd8, 0xc4, 0xee, 0xa4, 0x3d, 0x00, 0x2f, 0xc0, 0xd3, 0x70, 0xe6, |
| 0x69, 0xb8, 0xc0, 0x33, 0xa0, 0x38, 0x1f, 0x4e, 0x58, 0x3f, 0x26, 0x71, 0x8b, 0xf3, 0xfb, 0xb0, |
| 0x7f, 0x3f, 0x7f, 0xc0, 0xe3, 0x20, 0x4a, 0xd9, 0x32, 0x96, 0xd4, 0xc5, 0x3c, 0x76, 0x09, 0xe5, |
| 0x61, 0x8a, 0x79, 0xe4, 0xf0, 0x94, 0x49, 0x86, 0x7a, 0x25, 0xe8, 0x60, 0x1e, 0x5b, 0x27, 0x0d, |
| 0xea, 0x6c, 0x15, 0x5f, 0x12, 0x1f, 0xf3, 0x38, 0xe7, 0x5a, 0x56, 0x03, 0x15, 0xd7, 0x22, 0x65, |
| 0x4c, 0x16, 0x58, 0x3f, 0xc7, 0x56, 0x4b, 0x26, 0xdc, 0x80, 0x2d, 0x97, 0x2c, 0xc9, 0x01, 0xfb, |
| 0x87, 0x01, 0x9d, 0x31, 0xe5, 0x93, 0x6c, 0x4e, 0xf4, 0x16, 0x7a, 0xb9, 0xa9, 0xc4, 0x69, 0x48, |
| 0xa5, 0x69, 0x0c, 0x8c, 0xd3, 0xee, 0xb0, 0xef, 0x68, 0xb1, 0x73, 0x96, 0xe1, 0x17, 0x0a, 0xf6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x9d, 0xed, 0xab, 0xdf, 0xa3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x58, |
| 0x6b, 0x08, 0x88, 0xab, 0x05, 0x00, 0x00, |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConn |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the grpc package it is being compiled against. |
| const _ = grpc.SupportPackageIsVersion4 |
| |
| // DependencyServiceClient is the client API for DependencyService service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type DependencyServiceClient interface { |
| // Get the build dependency graph. |
| GetBuildDependencyGraph(ctx context.Context, in *GetBuildDependencyGraphRequest, opts ...grpc.CallOption) (*GetBuildDependencyGraphResponse, error) |
| // Get the list of source paths that are relevant to the toolchain |
| GetToolchainPaths(ctx context.Context, in *GetToolchainPathsRequest, opts ...grpc.CallOption) (*GetToolchainPathsResponse, error) |
| } |
| |
| type dependencyServiceClient struct { |
| cc *grpc.ClientConn |
| } |
| |
| func NewDependencyServiceClient(cc *grpc.ClientConn) DependencyServiceClient { |
| return &dependencyServiceClient{cc} |
| } |
| |
| func (c *dependencyServiceClient) GetBuildDependencyGraph(ctx context.Context, in *GetBuildDependencyGraphRequest, opts ...grpc.CallOption) (*GetBuildDependencyGraphResponse, error) { |
| out := new(GetBuildDependencyGraphResponse) |
| err := c.cc.Invoke(ctx, "/chromite.api.DependencyService/GetBuildDependencyGraph", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *dependencyServiceClient) GetToolchainPaths(ctx context.Context, in *GetToolchainPathsRequest, opts ...grpc.CallOption) (*GetToolchainPathsResponse, error) { |
| out := new(GetToolchainPathsResponse) |
| err := c.cc.Invoke(ctx, "/chromite.api.DependencyService/GetToolchainPaths", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // DependencyServiceServer is the server API for DependencyService service. |
| type DependencyServiceServer interface { |
| // Get the build dependency graph. |
| GetBuildDependencyGraph(context.Context, *GetBuildDependencyGraphRequest) (*GetBuildDependencyGraphResponse, error) |
| // Get the list of source paths that are relevant to the toolchain |
| GetToolchainPaths(context.Context, *GetToolchainPathsRequest) (*GetToolchainPathsResponse, error) |
| } |
| |
| // UnimplementedDependencyServiceServer can be embedded to have forward compatible implementations. |
| type UnimplementedDependencyServiceServer struct { |
| } |
| |
| func (*UnimplementedDependencyServiceServer) GetBuildDependencyGraph(ctx context.Context, req *GetBuildDependencyGraphRequest) (*GetBuildDependencyGraphResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetBuildDependencyGraph not implemented") |
| } |
| func (*UnimplementedDependencyServiceServer) GetToolchainPaths(ctx context.Context, req *GetToolchainPathsRequest) (*GetToolchainPathsResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method GetToolchainPaths not implemented") |
| } |
| |
| func RegisterDependencyServiceServer(s *grpc.Server, srv DependencyServiceServer) { |
| s.RegisterService(&_DependencyService_serviceDesc, srv) |
| } |
| |
| func _DependencyService_GetBuildDependencyGraph_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetBuildDependencyGraphRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(DependencyServiceServer).GetBuildDependencyGraph(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/chromite.api.DependencyService/GetBuildDependencyGraph", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(DependencyServiceServer).GetBuildDependencyGraph(ctx, req.(*GetBuildDependencyGraphRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _DependencyService_GetToolchainPaths_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetToolchainPathsRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(DependencyServiceServer).GetToolchainPaths(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/chromite.api.DependencyService/GetToolchainPaths", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(DependencyServiceServer).GetToolchainPaths(ctx, req.(*GetToolchainPathsRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _DependencyService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "chromite.api.DependencyService", |
| HandlerType: (*DependencyServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "GetBuildDependencyGraph", |
| Handler: _DependencyService_GetBuildDependencyGraph_Handler, |
| }, |
| { |
| MethodName: "GetToolchainPaths", |
| Handler: _DependencyService_GetToolchainPaths_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "chromite/api/depgraph.proto", |
| } |