blob: b072b2a2743e85f34260a5e2afd4938a6a0f7640 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: chromite/api/build_api_test.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
type NestedPath struct {
Path *chromiumos.Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NestedPath) Reset() { *m = NestedPath{} }
func (m *NestedPath) String() string { return proto.CompactTextString(m) }
func (*NestedPath) ProtoMessage() {}
func (*NestedPath) Descriptor() ([]byte, []int) {
return fileDescriptor_78ca3263cf74c05a, []int{0}
}
func (m *NestedPath) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NestedPath.Unmarshal(m, b)
}
func (m *NestedPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NestedPath.Marshal(b, m, deterministic)
}
func (m *NestedPath) XXX_Merge(src proto.Message) {
xxx_messageInfo_NestedPath.Merge(m, src)
}
func (m *NestedPath) XXX_Size() int {
return xxx_messageInfo_NestedPath.Size(m)
}
func (m *NestedPath) XXX_DiscardUnknown() {
xxx_messageInfo_NestedPath.DiscardUnknown(m)
}
var xxx_messageInfo_NestedPath proto.InternalMessageInfo
func (m *NestedPath) GetPath() *chromiumos.Path {
if m != nil {
return m.Path
}
return nil
}
type MultiFieldMessage struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Flag bool `protobuf:"varint,3,opt,name=flag,proto3" json:"flag,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MultiFieldMessage) Reset() { *m = MultiFieldMessage{} }
func (m *MultiFieldMessage) String() string { return proto.CompactTextString(m) }
func (*MultiFieldMessage) ProtoMessage() {}
func (*MultiFieldMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_78ca3263cf74c05a, []int{1}
}
func (m *MultiFieldMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MultiFieldMessage.Unmarshal(m, b)
}
func (m *MultiFieldMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MultiFieldMessage.Marshal(b, m, deterministic)
}
func (m *MultiFieldMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_MultiFieldMessage.Merge(m, src)
}
func (m *MultiFieldMessage) XXX_Size() int {
return xxx_messageInfo_MultiFieldMessage.Size(m)
}
func (m *MultiFieldMessage) XXX_DiscardUnknown() {
xxx_messageInfo_MultiFieldMessage.DiscardUnknown(m)
}
var xxx_messageInfo_MultiFieldMessage proto.InternalMessageInfo
func (m *MultiFieldMessage) GetId() int32 {
if m != nil {
return m.Id
}
return 0
}
func (m *MultiFieldMessage) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *MultiFieldMessage) GetFlag() bool {
if m != nil {
return m.Flag
}
return false
}
// Simple input message.
type TestRequestMessage struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Chroot message for parsing and automatic chroot re-execution testing.
Chroot *chromiumos.Chroot `protobuf:"bytes,2,opt,name=chroot,proto3" json:"chroot,omitempty"`
// Path and ResultPath messages for insertion/extraction testing.
Path *chromiumos.Path `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
AnotherPath *chromiumos.Path `protobuf:"bytes,4,opt,name=another_path,json=anotherPath,proto3" json:"another_path,omitempty"`
NestedPath *NestedPath `protobuf:"bytes,5,opt,name=nested_path,json=nestedPath,proto3" json:"nested_path,omitempty"`
ResultPath *chromiumos.ResultPath `protobuf:"bytes,6,opt,name=result_path,json=resultPath,proto3" json:"result_path,omitempty"`
// BuildTarget messages for parsing tests.
BuildTarget *chromiumos.BuildTarget `protobuf:"bytes,7,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"`
BuildTargets []*chromiumos.BuildTarget `protobuf:"bytes,8,rep,name=build_targets,json=buildTargets,proto3" json:"build_targets,omitempty"`
// For SyncedDir syncing tests.
SyncedDir *chromiumos.SyncedDir `protobuf:"bytes,9,opt,name=synced_dir,json=syncedDir,proto3" json:"synced_dir,omitempty"`
SyncedDirs []*chromiumos.SyncedDir `protobuf:"bytes,10,rep,name=synced_dirs,json=syncedDirs,proto3" json:"synced_dirs,omitempty"`
// Repeated message with multiple fields.
Messages []*MultiFieldMessage `protobuf:"bytes,11,rep,name=messages,proto3" json:"messages,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TestRequestMessage) Reset() { *m = TestRequestMessage{} }
func (m *TestRequestMessage) String() string { return proto.CompactTextString(m) }
func (*TestRequestMessage) ProtoMessage() {}
func (*TestRequestMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_78ca3263cf74c05a, []int{2}
}
func (m *TestRequestMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TestRequestMessage.Unmarshal(m, b)
}
func (m *TestRequestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TestRequestMessage.Marshal(b, m, deterministic)
}
func (m *TestRequestMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_TestRequestMessage.Merge(m, src)
}
func (m *TestRequestMessage) XXX_Size() int {
return xxx_messageInfo_TestRequestMessage.Size(m)
}
func (m *TestRequestMessage) XXX_DiscardUnknown() {
xxx_messageInfo_TestRequestMessage.DiscardUnknown(m)
}
var xxx_messageInfo_TestRequestMessage proto.InternalMessageInfo
func (m *TestRequestMessage) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *TestRequestMessage) GetChroot() *chromiumos.Chroot {
if m != nil {
return m.Chroot
}
return nil
}
func (m *TestRequestMessage) GetPath() *chromiumos.Path {
if m != nil {
return m.Path
}
return nil
}
func (m *TestRequestMessage) GetAnotherPath() *chromiumos.Path {
if m != nil {
return m.AnotherPath
}
return nil
}
func (m *TestRequestMessage) GetNestedPath() *NestedPath {
if m != nil {
return m.NestedPath
}
return nil
}
func (m *TestRequestMessage) GetResultPath() *chromiumos.ResultPath {
if m != nil {
return m.ResultPath
}
return nil
}
func (m *TestRequestMessage) GetBuildTarget() *chromiumos.BuildTarget {
if m != nil {
return m.BuildTarget
}
return nil
}
func (m *TestRequestMessage) GetBuildTargets() []*chromiumos.BuildTarget {
if m != nil {
return m.BuildTargets
}
return nil
}
func (m *TestRequestMessage) GetSyncedDir() *chromiumos.SyncedDir {
if m != nil {
return m.SyncedDir
}
return nil
}
func (m *TestRequestMessage) GetSyncedDirs() []*chromiumos.SyncedDir {
if m != nil {
return m.SyncedDirs
}
return nil
}
func (m *TestRequestMessage) GetMessages() []*MultiFieldMessage {
if m != nil {
return m.Messages
}
return nil
}
// Simple output message.
type TestResultMessage struct {
Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
// Path messages for ResultPath testing.
Artifact *chromiumos.Path `protobuf:"bytes,2,opt,name=artifact,proto3" json:"artifact,omitempty"`
NestedArtifact *NestedPath `protobuf:"bytes,3,opt,name=nested_artifact,json=nestedArtifact,proto3" json:"nested_artifact,omitempty"`
Artifacts []*chromiumos.Path `protobuf:"bytes,4,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
Events []*chromiumos.MetricEvent `protobuf:"bytes,5,rep,name=events,proto3" json:"events,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TestResultMessage) Reset() { *m = TestResultMessage{} }
func (m *TestResultMessage) String() string { return proto.CompactTextString(m) }
func (*TestResultMessage) ProtoMessage() {}
func (*TestResultMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_78ca3263cf74c05a, []int{3}
}
func (m *TestResultMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TestResultMessage.Unmarshal(m, b)
}
func (m *TestResultMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TestResultMessage.Marshal(b, m, deterministic)
}
func (m *TestResultMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_TestResultMessage.Merge(m, src)
}
func (m *TestResultMessage) XXX_Size() int {
return xxx_messageInfo_TestResultMessage.Size(m)
}
func (m *TestResultMessage) XXX_DiscardUnknown() {
xxx_messageInfo_TestResultMessage.DiscardUnknown(m)
}
var xxx_messageInfo_TestResultMessage proto.InternalMessageInfo
func (m *TestResultMessage) GetResult() string {
if m != nil {
return m.Result
}
return ""
}
func (m *TestResultMessage) GetArtifact() *chromiumos.Path {
if m != nil {
return m.Artifact
}
return nil
}
func (m *TestResultMessage) GetNestedArtifact() *NestedPath {
if m != nil {
return m.NestedArtifact
}
return nil
}
func (m *TestResultMessage) GetArtifacts() []*chromiumos.Path {
if m != nil {
return m.Artifacts
}
return nil
}
func (m *TestResultMessage) GetEvents() []*chromiumos.MetricEvent {
if m != nil {
return m.Events
}
return nil
}
func init() {
proto.RegisterType((*NestedPath)(nil), "chromite.api.NestedPath")
proto.RegisterType((*MultiFieldMessage)(nil), "chromite.api.MultiFieldMessage")
proto.RegisterType((*TestRequestMessage)(nil), "chromite.api.TestRequestMessage")
proto.RegisterType((*TestResultMessage)(nil), "chromite.api.TestResultMessage")
}
func init() { proto.RegisterFile("chromite/api/build_api_test.proto", fileDescriptor_78ca3263cf74c05a) }
var fileDescriptor_78ca3263cf74c05a = []byte{
// 690 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x95, 0xdd, 0x6e, 0xd3, 0x30,
0x14, 0xc7, 0x95, 0xb6, 0x2b, 0xed, 0x49, 0x57, 0x5a, 0x0b, 0xba, 0x10, 0x90, 0x56, 0x2a, 0x2e,
0x26, 0x84, 0x12, 0xa9, 0x43, 0xe3, 0xf3, 0x66, 0x1b, 0x20, 0x4d, 0xa8, 0x1b, 0xca, 0x26, 0x2e,
0xb8, 0xa0, 0x78, 0x89, 0x97, 0x5a, 0x6a, 0x3e, 0xb0, 0x9d, 0x49, 0xbc, 0x5e, 0xc5, 0xab, 0x70,
0xd9, 0x07, 0x40, 0x02, 0x09, 0xc5, 0x4e, 0xd3, 0x94, 0x6c, 0xe3, 0xa6, 0xdc, 0x39, 0xf9, 0x9f,
0xdf, 0x39, 0xfe, 0x9f, 0x63, 0x27, 0xf0, 0xd0, 0x9d, 0xb0, 0x28, 0xa0, 0x82, 0xd8, 0x38, 0xa6,
0xf6, 0x79, 0x42, 0xa7, 0xde, 0x18, 0xc7, 0x74, 0x2c, 0x08, 0x17, 0x56, 0xcc, 0x22, 0x11, 0xa1,
0xd6, 0x22, 0xc4, 0xc2, 0x31, 0x35, 0x1f, 0x5c, 0x0d, 0xa8, 0x58, 0x73, 0x4b, 0xa9, 0x49, 0x10,
0x71, 0xdb, 0x8d, 0x82, 0x20, 0x0a, 0x33, 0xc1, 0x28, 0x08, 0x01, 0x11, 0x8c, 0xba, 0x5c, 0x29,
0x83, 0x21, 0xc0, 0x31, 0xe1, 0x82, 0x78, 0x1f, 0xb0, 0x98, 0xa0, 0x47, 0x50, 0x8b, 0xb1, 0x98,
0x18, 0x5a, 0x5f, 0xdb, 0xd1, 0x87, 0x1d, 0x6b, 0x89, 0x59, 0xa9, 0xee, 0x48, 0x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de, 0xda,
0x72, 0x0e, 0xba, 0xb3, 0xb9, 0xb9, 0x09, 0xfa, 0x61, 0xc4, 0x18, 0x71, 0xc5, 0x31, 0x0e, 0x88,
0x79, 0x67, 0x36, 0x37, 0x3b, 0xd0, 0x5e, 0xfd, 0x28, 0x0e, 0x7f, 0x6a, 0xd0, 0x3b, 0x0a, 0x39,
0xf5, 0x88, 0xba, 0xf4, 0x05, 0xbf, 0x9f, 0xe1, 0x9e, 0x52, 0xb2, 0x17, 0xea, 0x61, 0x7d, 0xbe,
0x7d, 0x30, 0x57, 0xf2, 0x9f, 0x24, 0x62, 0xad, 0x05, 0x06, 0xf5, 0xd9, 0xdc, 0xac, 0x74, 0x2a,
0x66, 0x6f, 0x36, 0x37, 0xd1, 0xdf, 0xce, 0x3b, 0xda, 0xf0, 0x97, 0x06, 0x5b, 0x59, 0xd1, 0x92,
0xf9, 0x2f, 0x70, 0x3f, 0x93, 0xfe, 0xd3, 0xee, 0x52, 0xfb, 0xab, 0x15, 0xd6, 0xdc, 0xdf, 0xcc,
0xbe, 0x76, 0x8d, 0xfd, 0xca, 0xc1, 0xf3, 0x4f, 0x7b, 0x7e, 0x94, 0xdf, 0x03, 0x2b, 0x62, 0xbe,
0x5d, 0xf8, 0xad, 0xd1, 0xf0, 0x82, 0x61, 0x5b, 0xfe, 0xd4, 0x6c, 0x3f, 0xb2, 0x8b, 0xff, 0xc9,
0xf3, 0xba, 0x7c, 0xbd, 0xfb, 0x27, 0x00, 0x00, 0xff, 0xff, 0x2d, 0x52, 0x72, 0xe2, 0x6f, 0x07,
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
// TestApiServiceClient is the client API for TestApiService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type TestApiServiceClient interface {
// Method that has input and output messages.
InputOutputMethod(ctx context.Context, in *TestRequestMessage, opts ...grpc.CallOption) (*TestResultMessage, error)
// Method name override.
RenamedMethod(ctx context.Context, in *TestRequestMessage, opts ...grpc.CallOption) (*TestResultMessage, error)
}
type testApiServiceClient struct {
cc *grpc.ClientConn
}
func NewTestApiServiceClient(cc *grpc.ClientConn) TestApiServiceClient {
return &testApiServiceClient{cc}
}
func (c *testApiServiceClient) InputOutputMethod(ctx context.Context, in *TestRequestMessage, opts ...grpc.CallOption) (*TestResultMessage, error) {
out := new(TestResultMessage)
err := c.cc.Invoke(ctx, "/chromite.api.TestApiService/InputOutputMethod", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *testApiServiceClient) RenamedMethod(ctx context.Context, in *TestRequestMessage, opts ...grpc.CallOption) (*TestResultMessage, error) {
out := new(TestResultMessage)
err := c.cc.Invoke(ctx, "/chromite.api.TestApiService/RenamedMethod", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// TestApiServiceServer is the server API for TestApiService service.
type TestApiServiceServer interface {
// Method that has input and output messages.
InputOutputMethod(context.Context, *TestRequestMessage) (*TestResultMessage, error)
// Method name override.
RenamedMethod(context.Context, *TestRequestMessage) (*TestResultMessage, error)
}
// UnimplementedTestApiServiceServer can be embedded to have forward compatible implementations.
type UnimplementedTestApiServiceServer struct {
}
func (*UnimplementedTestApiServiceServer) InputOutputMethod(ctx context.Context, req *TestRequestMessage) (*TestResultMessage, error) {
return nil, status.Errorf(codes.Unimplemented, "method InputOutputMethod not implemented")
}
func (*UnimplementedTestApiServiceServer) RenamedMethod(ctx context.Context, req *TestRequestMessage) (*TestResultMessage, error) {
return nil, status.Errorf(codes.Unimplemented, "method RenamedMethod not implemented")
}
func RegisterTestApiServiceServer(s *grpc.Server, srv TestApiServiceServer) {
s.RegisterService(&_TestApiService_serviceDesc, srv)
}
func _TestApiService_InputOutputMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TestRequestMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TestApiServiceServer).InputOutputMethod(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromite.api.TestApiService/InputOutputMethod",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TestApiServiceServer).InputOutputMethod(ctx, req.(*TestRequestMessage))
}
return interceptor(ctx, in, info, handler)
}
func _TestApiService_RenamedMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TestRequestMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TestApiServiceServer).RenamedMethod(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromite.api.TestApiService/RenamedMethod",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TestApiServiceServer).RenamedMethod(ctx, req.(*TestRequestMessage))
}
return interceptor(ctx, in, info, handler)
}
var _TestApiService_serviceDesc = grpc.ServiceDesc{
ServiceName: "chromite.api.TestApiService",
HandlerType: (*TestApiServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "InputOutputMethod",
Handler: _TestApiService_InputOutputMethod_Handler,
},
{
MethodName: "RenamedMethod",
Handler: _TestApiService_RenamedMethod_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "chromite/api/build_api_test.proto",
}
// InsideChrootApiServiceClient is the client API for InsideChrootApiService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type InsideChrootApiServiceClient interface {
// No override of service level inside assertion.
InsideServiceInsideMethod(ctx context.Context, in *TestRequestMessage, opts ...grpc.CallOption) (*TestResultMessage, error)
// Override service level inside assertion with outside assertion.
InsideServiceOutsideMethod(ctx context.Context, in *TestRequestMessage, opts ...grpc.CallOption) (*TestResultMessage, error)
}
type insideChrootApiServiceClient struct {
cc *grpc.ClientConn
}
func NewInsideChrootApiServiceClient(cc *grpc.ClientConn) InsideChrootApiServiceClient {
return &insideChrootApiServiceClient{cc}
}
func (c *insideChrootApiServiceClient) InsideServiceInsideMethod(ctx context.Context, in *TestRequestMessage, opts ...grpc.CallOption) (*TestResultMessage, error) {
out := new(TestResultMessage)
err := c.cc.Invoke(ctx, "/chromite.api.InsideChrootApiService/InsideServiceInsideMethod", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *insideChrootApiServiceClient) InsideServiceOutsideMethod(ctx context.Context, in *TestRequestMessage, opts ...grpc.CallOption) (*TestResultMessage, error) {
out := new(TestResultMessage)
err := c.cc.Invoke(ctx, "/chromite.api.InsideChrootApiService/InsideServiceOutsideMethod", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// InsideChrootApiServiceServer is the server API for InsideChrootApiService service.
type InsideChrootApiServiceServer interface {
// No override of service level inside assertion.
InsideServiceInsideMethod(context.Context, *TestRequestMessage) (*TestResultMessage, error)
// Override service level inside assertion with outside assertion.
InsideServiceOutsideMethod(context.Context, *TestRequestMessage) (*TestResultMessage, error)
}
// UnimplementedInsideChrootApiServiceServer can be embedded to have forward compatible implementations.
type UnimplementedInsideChrootApiServiceServer struct {
}
func (*UnimplementedInsideChrootApiServiceServer) InsideServiceInsideMethod(ctx context.Context, req *TestRequestMessage) (*TestResultMessage, error) {
return nil, status.Errorf(codes.Unimplemented, "method InsideServiceInsideMethod not implemented")
}
func (*UnimplementedInsideChrootApiServiceServer) InsideServiceOutsideMethod(ctx context.Context, req *TestRequestMessage) (*TestResultMessage, error) {
return nil, status.Errorf(codes.Unimplemented, "method InsideServiceOutsideMethod not implemented")
}
func RegisterInsideChrootApiServiceServer(s *grpc.Server, srv InsideChrootApiServiceServer) {
s.RegisterService(&_InsideChrootApiService_serviceDesc, srv)
}
func _InsideChrootApiService_InsideServiceInsideMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TestRequestMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InsideChrootApiServiceServer).InsideServiceInsideMethod(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromite.api.InsideChrootApiService/InsideServiceInsideMethod",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InsideChrootApiServiceServer).InsideServiceInsideMethod(ctx, req.(*TestRequestMessage))
}
return interceptor(ctx, in, info, handler)
}
func _InsideChrootApiService_InsideServiceOutsideMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TestRequestMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InsideChrootApiServiceServer).InsideServiceOutsideMethod(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromite.api.InsideChrootApiService/InsideServiceOutsideMethod",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InsideChrootApiServiceServer).InsideServiceOutsideMethod(ctx, req.(*TestRequestMessage))
}
return interceptor(ctx, in, info, handler)
}
var _InsideChrootApiService_serviceDesc = grpc.ServiceDesc{
ServiceName: "chromite.api.InsideChrootApiService",
HandlerType: (*InsideChrootApiServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "InsideServiceInsideMethod",
Handler: _InsideChrootApiService_InsideServiceInsideMethod_Handler,
},
{
MethodName: "InsideServiceOutsideMethod",
Handler: _InsideChrootApiService_InsideServiceOutsideMethod_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "chromite/api/build_api_test.proto",
}
// OutsideChrootApiServiceClient is the client API for OutsideChrootApiService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type OutsideChrootApiServiceClient interface {
// No override of service level outside assertion.
OutsideServiceOutsideMethod(ctx context.Context, in *TestRequestMessage, opts ...grpc.CallOption) (*TestResultMessage, error)
// Override service level outside assertion with inside assertion.
OutsideServiceInsideMethod(ctx context.Context, in *TestRequestMessage, opts ...grpc.CallOption) (*TestResultMessage, error)
}
type outsideChrootApiServiceClient struct {
cc *grpc.ClientConn
}
func NewOutsideChrootApiServiceClient(cc *grpc.ClientConn) OutsideChrootApiServiceClient {
return &outsideChrootApiServiceClient{cc}
}
func (c *outsideChrootApiServiceClient) OutsideServiceOutsideMethod(ctx context.Context, in *TestRequestMessage, opts ...grpc.CallOption) (*TestResultMessage, error) {
out := new(TestResultMessage)
err := c.cc.Invoke(ctx, "/chromite.api.OutsideChrootApiService/OutsideServiceOutsideMethod", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *outsideChrootApiServiceClient) OutsideServiceInsideMethod(ctx context.Context, in *TestRequestMessage, opts ...grpc.CallOption) (*TestResultMessage, error) {
out := new(TestResultMessage)
err := c.cc.Invoke(ctx, "/chromite.api.OutsideChrootApiService/OutsideServiceInsideMethod", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// OutsideChrootApiServiceServer is the server API for OutsideChrootApiService service.
type OutsideChrootApiServiceServer interface {
// No override of service level outside assertion.
OutsideServiceOutsideMethod(context.Context, *TestRequestMessage) (*TestResultMessage, error)
// Override service level outside assertion with inside assertion.
OutsideServiceInsideMethod(context.Context, *TestRequestMessage) (*TestResultMessage, error)
}
// UnimplementedOutsideChrootApiServiceServer can be embedded to have forward compatible implementations.
type UnimplementedOutsideChrootApiServiceServer struct {
}
func (*UnimplementedOutsideChrootApiServiceServer) OutsideServiceOutsideMethod(ctx context.Context, req *TestRequestMessage) (*TestResultMessage, error) {
return nil, status.Errorf(codes.Unimplemented, "method OutsideServiceOutsideMethod not implemented")
}
func (*UnimplementedOutsideChrootApiServiceServer) OutsideServiceInsideMethod(ctx context.Context, req *TestRequestMessage) (*TestResultMessage, error) {
return nil, status.Errorf(codes.Unimplemented, "method OutsideServiceInsideMethod not implemented")
}
func RegisterOutsideChrootApiServiceServer(s *grpc.Server, srv OutsideChrootApiServiceServer) {
s.RegisterService(&_OutsideChrootApiService_serviceDesc, srv)
}
func _OutsideChrootApiService_OutsideServiceOutsideMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TestRequestMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OutsideChrootApiServiceServer).OutsideServiceOutsideMethod(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromite.api.OutsideChrootApiService/OutsideServiceOutsideMethod",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OutsideChrootApiServiceServer).OutsideServiceOutsideMethod(ctx, req.(*TestRequestMessage))
}
return interceptor(ctx, in, info, handler)
}
func _OutsideChrootApiService_OutsideServiceInsideMethod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TestRequestMessage)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OutsideChrootApiServiceServer).OutsideServiceInsideMethod(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/chromite.api.OutsideChrootApiService/OutsideServiceInsideMethod",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OutsideChrootApiServiceServer).OutsideServiceInsideMethod(ctx, req.(*TestRequestMessage))
}
return interceptor(ctx, in, info, handler)
}
var _OutsideChrootApiService_serviceDesc = grpc.ServiceDesc{
ServiceName: "chromite.api.OutsideChrootApiService",
HandlerType: (*OutsideChrootApiServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "OutsideServiceOutsideMethod",
Handler: _OutsideChrootApiService_OutsideServiceOutsideMethod_Handler,
},
{
MethodName: "OutsideServiceInsideMethod",
Handler: _OutsideChrootApiService_OutsideServiceInsideMethod_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "chromite/api/build_api_test.proto",
}