blob: 7eb6a184266c13e6534e1650ca6badb0bbdb1f0c [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: fixture_service.proto
package crash
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
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 SetUpCrashTestRequest_ConsentType int32
const (
SetUpCrashTestRequest_MOCK_CONSENT SetUpCrashTestRequest_ConsentType = 0
SetUpCrashTestRequest_REAL_CONSENT SetUpCrashTestRequest_ConsentType = 1
)
var SetUpCrashTestRequest_ConsentType_name = map[int32]string{
0: "MOCK_CONSENT",
1: "REAL_CONSENT",
}
var SetUpCrashTestRequest_ConsentType_value = map[string]int32{
"MOCK_CONSENT": 0,
"REAL_CONSENT": 1,
}
func (x SetUpCrashTestRequest_ConsentType) String() string {
return proto.EnumName(SetUpCrashTestRequest_ConsentType_name, int32(x))
}
func (SetUpCrashTestRequest_ConsentType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_4b51ac24a74eb33d, []int{0, 0}
}
type SetUpCrashTestRequest struct {
Consent SetUpCrashTestRequest_ConsentType `protobuf:"varint,1,opt,name=consent,proto3,enum=tast.cros.crash.SetUpCrashTestRequest_ConsentType" json:"consent,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetUpCrashTestRequest) Reset() { *m = SetUpCrashTestRequest{} }
func (m *SetUpCrashTestRequest) String() string { return proto.CompactTextString(m) }
func (*SetUpCrashTestRequest) ProtoMessage() {}
func (*SetUpCrashTestRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4b51ac24a74eb33d, []int{0}
}
func (m *SetUpCrashTestRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetUpCrashTestRequest.Unmarshal(m, b)
}
func (m *SetUpCrashTestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetUpCrashTestRequest.Marshal(b, m, deterministic)
}
func (m *SetUpCrashTestRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetUpCrashTestRequest.Merge(m, src)
}
func (m *SetUpCrashTestRequest) XXX_Size() int {
return xxx_messageInfo_SetUpCrashTestRequest.Size(m)
}
func (m *SetUpCrashTestRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetUpCrashTestRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetUpCrashTestRequest proto.InternalMessageInfo
func (m *SetUpCrashTestRequest) GetConsent() SetUpCrashTestRequest_ConsentType {
if m != nil {
return m.Consent
}
return SetUpCrashTestRequest_MOCK_CONSENT
}
type EnableCrashFilterRequest struct {
// Name of the program to be handled by crash_reporter.
// There are two special cases:
// An empty string means all crashes should be handled. Equivalent to DisableCrashFilter.
// A string "none" means no crashes should be handled at all regardless of process name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EnableCrashFilterRequest) Reset() { *m = EnableCrashFilterRequest{} }
func (m *EnableCrashFilterRequest) String() string { return proto.CompactTextString(m) }
func (*EnableCrashFilterRequest) ProtoMessage() {}
func (*EnableCrashFilterRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4b51ac24a74eb33d, []int{1}
}
func (m *EnableCrashFilterRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EnableCrashFilterRequest.Unmarshal(m, b)
}
func (m *EnableCrashFilterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EnableCrashFilterRequest.Marshal(b, m, deterministic)
}
func (m *EnableCrashFilterRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_EnableCrashFilterRequest.Merge(m, src)
}
func (m *EnableCrashFilterRequest) XXX_Size() int {
return xxx_messageInfo_EnableCrashFilterRequest.Size(m)
}
func (m *EnableCrashFilterRequest) XXX_DiscardUnknown() {
xxx_messageInfo_EnableCrashFilterRequest.DiscardUnknown(m)
}
var xxx_messageInfo_EnableCrashFilterRequest proto.InternalMessageInfo
func (m *EnableCrashFilterRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// This deliberately does NOT use the "oldFiles" parameter in WaitForCrashFiles
// because that is redundant with SetUp's function of moving crashes to a
// temporary stash directory (and will eventually be removed).
type WaitForCrashFilesRequest struct {
Dirs []string `protobuf:"bytes,1,rep,name=dirs,proto3" json:"dirs,omitempty"`
Regexes []string `protobuf:"bytes,2,rep,name=regexes,proto3" json:"regexes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WaitForCrashFilesRequest) Reset() { *m = WaitForCrashFilesRequest{} }
func (m *WaitForCrashFilesRequest) String() string { return proto.CompactTextString(m) }
func (*WaitForCrashFilesRequest) ProtoMessage() {}
func (*WaitForCrashFilesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4b51ac24a74eb33d, []int{2}
}
func (m *WaitForCrashFilesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WaitForCrashFilesRequest.Unmarshal(m, b)
}
func (m *WaitForCrashFilesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WaitForCrashFilesRequest.Marshal(b, m, deterministic)
}
func (m *WaitForCrashFilesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WaitForCrashFilesRequest.Merge(m, src)
}
func (m *WaitForCrashFilesRequest) XXX_Size() int {
return xxx_messageInfo_WaitForCrashFilesRequest.Size(m)
}
func (m *WaitForCrashFilesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WaitForCrashFilesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_WaitForCrashFilesRequest proto.InternalMessageInfo
func (m *WaitForCrashFilesRequest) GetDirs() []string {
if m != nil {
return m.Dirs
}
return nil
}
func (m *WaitForCrashFilesRequest) GetRegexes() []string {
if m != nil {
return m.Regexes
}
return nil
}
type WaitForCrashFilesResponse struct {
Matches []*RegexMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WaitForCrashFilesResponse) Reset() { *m = WaitForCrashFilesResponse{} }
func (m *WaitForCrashFilesResponse) String() string { return proto.CompactTextString(m) }
func (*WaitForCrashFilesResponse) ProtoMessage() {}
func (*WaitForCrashFilesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_4b51ac24a74eb33d, []int{3}
}
func (m *WaitForCrashFilesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WaitForCrashFilesResponse.Unmarshal(m, b)
}
func (m *WaitForCrashFilesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WaitForCrashFilesResponse.Marshal(b, m, deterministic)
}
func (m *WaitForCrashFilesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WaitForCrashFilesResponse.Merge(m, src)
}
func (m *WaitForCrashFilesResponse) XXX_Size() int {
return xxx_messageInfo_WaitForCrashFilesResponse.Size(m)
}
func (m *WaitForCrashFilesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WaitForCrashFilesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WaitForCrashFilesResponse proto.InternalMessageInfo
func (m *WaitForCrashFilesResponse) GetMatches() []*RegexMatch {
if m != nil {
return m.Matches
}
return nil
}
type RemoveAllFilesRequest struct {
Matches []*RegexMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RemoveAllFilesRequest) Reset() { *m = RemoveAllFilesRequest{} }
func (m *RemoveAllFilesRequest) String() string { return proto.CompactTextString(m) }
func (*RemoveAllFilesRequest) ProtoMessage() {}
func (*RemoveAllFilesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4b51ac24a74eb33d, []int{4}
}
func (m *RemoveAllFilesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RemoveAllFilesRequest.Unmarshal(m, b)
}
func (m *RemoveAllFilesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RemoveAllFilesRequest.Marshal(b, m, deterministic)
}
func (m *RemoveAllFilesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RemoveAllFilesRequest.Merge(m, src)
}
func (m *RemoveAllFilesRequest) XXX_Size() int {
return xxx_messageInfo_RemoveAllFilesRequest.Size(m)
}
func (m *RemoveAllFilesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RemoveAllFilesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RemoveAllFilesRequest proto.InternalMessageInfo
func (m *RemoveAllFilesRequest) GetMatches() []*RegexMatch {
if m != nil {
return m.Matches
}
return nil
}
type SetConsentRequest struct {
Consent bool `protobuf:"varint,1,opt,name=consent,proto3" json:"consent,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetConsentRequest) Reset() { *m = SetConsentRequest{} }
func (m *SetConsentRequest) String() string { return proto.CompactTextString(m) }
func (*SetConsentRequest) ProtoMessage() {}
func (*SetConsentRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4b51ac24a74eb33d, []int{5}
}
func (m *SetConsentRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetConsentRequest.Unmarshal(m, b)
}
func (m *SetConsentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetConsentRequest.Marshal(b, m, deterministic)
}
func (m *SetConsentRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetConsentRequest.Merge(m, src)
}
func (m *SetConsentRequest) XXX_Size() int {
return xxx_messageInfo_SetConsentRequest.Size(m)
}
func (m *SetConsentRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetConsentRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetConsentRequest proto.InternalMessageInfo
func (m *SetConsentRequest) GetConsent() bool {
if m != nil {
return m.Consent
}
return false
}
type RegexMatch struct {
Regex string `protobuf:"bytes,1,opt,name=regex,proto3" json:"regex,omitempty"`
Files []string `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegexMatch) Reset() { *m = RegexMatch{} }
func (m *RegexMatch) String() string { return proto.CompactTextString(m) }
func (*RegexMatch) ProtoMessage() {}
func (*RegexMatch) Descriptor() ([]byte, []int) {
return fileDescriptor_4b51ac24a74eb33d, []int{6}
}
func (m *RegexMatch) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RegexMatch.Unmarshal(m, b)
}
func (m *RegexMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RegexMatch.Marshal(b, m, deterministic)
}
func (m *RegexMatch) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegexMatch.Merge(m, src)
}
func (m *RegexMatch) XXX_Size() int {
return xxx_messageInfo_RegexMatch.Size(m)
}
func (m *RegexMatch) XXX_DiscardUnknown() {
xxx_messageInfo_RegexMatch.DiscardUnknown(m)
}
var xxx_messageInfo_RegexMatch proto.InternalMessageInfo
func (m *RegexMatch) GetRegex() string {
if m != nil {
return m.Regex
}
return ""
}
func (m *RegexMatch) GetFiles() []string {
if m != nil {
return m.Files
}
return nil
}
func init() {
proto.RegisterEnum("tast.cros.crash.SetUpCrashTestRequest_ConsentType", SetUpCrashTestRequest_ConsentType_name, SetUpCrashTestRequest_ConsentType_value)
proto.RegisterType((*SetUpCrashTestRequest)(nil), "tast.cros.crash.SetUpCrashTestRequest")
proto.RegisterType((*EnableCrashFilterRequest)(nil), "tast.cros.crash.EnableCrashFilterRequest")
proto.RegisterType((*WaitForCrashFilesRequest)(nil), "tast.cros.crash.WaitForCrashFilesRequest")
proto.RegisterType((*WaitForCrashFilesResponse)(nil), "tast.cros.crash.WaitForCrashFilesResponse")
proto.RegisterType((*RemoveAllFilesRequest)(nil), "tast.cros.crash.RemoveAllFilesRequest")
proto.RegisterType((*SetConsentRequest)(nil), "tast.cros.crash.SetConsentRequest")
proto.RegisterType((*RegexMatch)(nil), "tast.cros.crash.RegexMatch")
}
func init() { proto.RegisterFile("fixture_service.proto", fileDescriptor_4b51ac24a74eb33d) }
var fileDescriptor_4b51ac24a74eb33d = []byte{
// 491 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xdf, 0x6e, 0x12, 0x41,
0x14, 0xc6, 0x59, 0x6d, 0xa5, 0x9e, 0x1a, 0x2c, 0x13, 0x31, 0x2b, 0xbd, 0x69, 0xc6, 0x68, 0xd4,
0xc4, 0xd9, 0x88, 0x31, 0xf1, 0xc2, 0x9b, 0x4a, 0x21, 0xfe, 0x69, 0x69, 0x32, 0x60, 0x34, 0xde,
0x34, 0xcb, 0x7a, 0x80, 0x4d, 0x76, 0x77, 0xd6, 0x99, 0xa1, 0xb6, 0x6f, 0xe2, 0x2b, 0xf9, 0x56,
0x66, 0x66, 0x58, 0x29, 0x65, 0x21, 0xd8, 0xbb, 0x99, 0xc3, 0x77, 0x3e, 0xbe, 0x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xfc, 0xca, 0xfe, 0x7f,
0x96, 0xef, 0x9f, 0x7c, 0x7f, 0x1c, 0x4d, 0xa4, 0x48, 0xe3, 0x69, 0x2a, 0x54, 0x60, 0x72, 0x04,
0xb3, 0x8f, 0x97, 0x0a, 0x4c, 0xa0, 0xc0, 0x06, 0x1a, 0xde, 0xb1, 0x8d, 0xaf, 0xff, 0x06, 0x00,
0x00, 0xff, 0xff, 0xd9, 0xbc, 0xb9, 0xe8, 0xe2, 0x04, 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
// FixtureServiceClient is the client API for FixtureService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type FixtureServiceClient interface {
// SetUp sets up the DUT for a crash test.
// For more details on what, precisely, it does, see documentation for
// "SetUpCrashTest" in the local/crash tast library.
// After the test is complete, you must call TearDown to clean up the
// associated resources.
SetUp(ctx context.Context, in *SetUpCrashTestRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// EnableCrashFilter sets crash_reporter filter by process name.
EnableCrashFilter(ctx context.Context, in *EnableCrashFilterRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// DisableCrashFilter disables crash_reporter filter.
DisableCrashFilter(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
// WaitForCrashFiles waits for the crash boot collector to finish, and then
// for the specified crash files to be present.
// See crash.go's WaitForCrashFiles for interface details.
WaitForCrashFiles(ctx context.Context, in *WaitForCrashFilesRequest, opts ...grpc.CallOption) (*WaitForCrashFilesResponse, error)
// RemoveAllFiles removes all files in the request.
RemoveAllFiles(ctx context.Context, in *RemoveAllFilesRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// SetConsent sets consent as specified in the request.
SetConsent(ctx context.Context, in *SetConsentRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// TearDown undoes the actions SetUp does and resets the machine to normal
// state.
TearDown(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}
type fixtureServiceClient struct {
cc *grpc.ClientConn
}
func NewFixtureServiceClient(cc *grpc.ClientConn) FixtureServiceClient {
return &fixtureServiceClient{cc}
}
func (c *fixtureServiceClient) SetUp(ctx context.Context, in *SetUpCrashTestRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/tast.cros.crash.FixtureService/SetUp", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fixtureServiceClient) EnableCrashFilter(ctx context.Context, in *EnableCrashFilterRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/tast.cros.crash.FixtureService/EnableCrashFilter", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fixtureServiceClient) DisableCrashFilter(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/tast.cros.crash.FixtureService/DisableCrashFilter", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fixtureServiceClient) WaitForCrashFiles(ctx context.Context, in *WaitForCrashFilesRequest, opts ...grpc.CallOption) (*WaitForCrashFilesResponse, error) {
out := new(WaitForCrashFilesResponse)
err := c.cc.Invoke(ctx, "/tast.cros.crash.FixtureService/WaitForCrashFiles", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fixtureServiceClient) RemoveAllFiles(ctx context.Context, in *RemoveAllFilesRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/tast.cros.crash.FixtureService/RemoveAllFiles", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fixtureServiceClient) SetConsent(ctx context.Context, in *SetConsentRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/tast.cros.crash.FixtureService/SetConsent", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fixtureServiceClient) TearDown(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/tast.cros.crash.FixtureService/TearDown", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// FixtureServiceServer is the server API for FixtureService service.
type FixtureServiceServer interface {
// SetUp sets up the DUT for a crash test.
// For more details on what, precisely, it does, see documentation for
// "SetUpCrashTest" in the local/crash tast library.
// After the test is complete, you must call TearDown to clean up the
// associated resources.
SetUp(context.Context, *SetUpCrashTestRequest) (*empty.Empty, error)
// EnableCrashFilter sets crash_reporter filter by process name.
EnableCrashFilter(context.Context, *EnableCrashFilterRequest) (*empty.Empty, error)
// DisableCrashFilter disables crash_reporter filter.
DisableCrashFilter(context.Context, *empty.Empty) (*empty.Empty, error)
// WaitForCrashFiles waits for the crash boot collector to finish, and then
// for the specified crash files to be present.
// See crash.go's WaitForCrashFiles for interface details.
WaitForCrashFiles(context.Context, *WaitForCrashFilesRequest) (*WaitForCrashFilesResponse, error)
// RemoveAllFiles removes all files in the request.
RemoveAllFiles(context.Context, *RemoveAllFilesRequest) (*empty.Empty, error)
// SetConsent sets consent as specified in the request.
SetConsent(context.Context, *SetConsentRequest) (*empty.Empty, error)
// TearDown undoes the actions SetUp does and resets the machine to normal
// state.
TearDown(context.Context, *empty.Empty) (*empty.Empty, error)
}
// UnimplementedFixtureServiceServer can be embedded to have forward compatible implementations.
type UnimplementedFixtureServiceServer struct {
}
func (*UnimplementedFixtureServiceServer) SetUp(ctx context.Context, req *SetUpCrashTestRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetUp not implemented")
}
func (*UnimplementedFixtureServiceServer) EnableCrashFilter(ctx context.Context, req *EnableCrashFilterRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method EnableCrashFilter not implemented")
}
func (*UnimplementedFixtureServiceServer) DisableCrashFilter(ctx context.Context, req *empty.Empty) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DisableCrashFilter not implemented")
}
func (*UnimplementedFixtureServiceServer) WaitForCrashFiles(ctx context.Context, req *WaitForCrashFilesRequest) (*WaitForCrashFilesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method WaitForCrashFiles not implemented")
}
func (*UnimplementedFixtureServiceServer) RemoveAllFiles(ctx context.Context, req *RemoveAllFilesRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveAllFiles not implemented")
}
func (*UnimplementedFixtureServiceServer) SetConsent(ctx context.Context, req *SetConsentRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetConsent not implemented")
}
func (*UnimplementedFixtureServiceServer) TearDown(ctx context.Context, req *empty.Empty) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method TearDown not implemented")
}
func RegisterFixtureServiceServer(s *grpc.Server, srv FixtureServiceServer) {
s.RegisterService(&_FixtureService_serviceDesc, srv)
}
func _FixtureService_SetUp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetUpCrashTestRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FixtureServiceServer).SetUp(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/tast.cros.crash.FixtureService/SetUp",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FixtureServiceServer).SetUp(ctx, req.(*SetUpCrashTestRequest))
}
return interceptor(ctx, in, info, handler)
}
func _FixtureService_EnableCrashFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EnableCrashFilterRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FixtureServiceServer).EnableCrashFilter(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/tast.cros.crash.FixtureService/EnableCrashFilter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FixtureServiceServer).EnableCrashFilter(ctx, req.(*EnableCrashFilterRequest))
}
return interceptor(ctx, in, info, handler)
}
func _FixtureService_DisableCrashFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FixtureServiceServer).DisableCrashFilter(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/tast.cros.crash.FixtureService/DisableCrashFilter",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FixtureServiceServer).DisableCrashFilter(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _FixtureService_WaitForCrashFiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(WaitForCrashFilesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FixtureServiceServer).WaitForCrashFiles(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/tast.cros.crash.FixtureService/WaitForCrashFiles",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FixtureServiceServer).WaitForCrashFiles(ctx, req.(*WaitForCrashFilesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _FixtureService_RemoveAllFiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RemoveAllFilesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FixtureServiceServer).RemoveAllFiles(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/tast.cros.crash.FixtureService/RemoveAllFiles",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FixtureServiceServer).RemoveAllFiles(ctx, req.(*RemoveAllFilesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _FixtureService_SetConsent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetConsentRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FixtureServiceServer).SetConsent(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/tast.cros.crash.FixtureService/SetConsent",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FixtureServiceServer).SetConsent(ctx, req.(*SetConsentRequest))
}
return interceptor(ctx, in, info, handler)
}
func _FixtureService_TearDown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FixtureServiceServer).TearDown(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/tast.cros.crash.FixtureService/TearDown",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FixtureServiceServer).TearDown(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
var _FixtureService_serviceDesc = grpc.ServiceDesc{
ServiceName: "tast.cros.crash.FixtureService",
HandlerType: (*FixtureServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "SetUp",
Handler: _FixtureService_SetUp_Handler,
},
{
MethodName: "EnableCrashFilter",
Handler: _FixtureService_EnableCrashFilter_Handler,
},
{
MethodName: "DisableCrashFilter",
Handler: _FixtureService_DisableCrashFilter_Handler,
},
{
MethodName: "WaitForCrashFiles",
Handler: _FixtureService_WaitForCrashFiles_Handler,
},
{
MethodName: "RemoveAllFiles",
Handler: _FixtureService_RemoveAllFiles_Handler,
},
{
MethodName: "SetConsent",
Handler: _FixtureService_SetConsent_Handler,
},
{
MethodName: "TearDown",
Handler: _FixtureService_TearDown_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "fixture_service.proto",
}