github.com/manicqin/nomad@v0.9.5/client/logmon/proto/logmon.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: client/logmon/proto/logmon.proto
     3  
     4  package proto
     5  
     6  import proto "github.com/golang/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  
    10  import (
    11  	context "golang.org/x/net/context"
    12  	grpc "google.golang.org/grpc"
    13  )
    14  
    15  // Reference imports to suppress errors if they are not otherwise used.
    16  var _ = proto.Marshal
    17  var _ = fmt.Errorf
    18  var _ = math.Inf
    19  
    20  // This is a compile-time assertion to ensure that this generated file
    21  // is compatible with the proto package it is being compiled against.
    22  // A compilation error at this line likely means your copy of the
    23  // proto package needs to be updated.
    24  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    25  
    26  type StartRequest struct {
    27  	LogDir               string   `protobuf:"bytes,1,opt,name=log_dir,json=logDir,proto3" json:"log_dir,omitempty"`
    28  	StdoutFileName       string   `protobuf:"bytes,2,opt,name=stdout_file_name,json=stdoutFileName,proto3" json:"stdout_file_name,omitempty"`
    29  	StderrFileName       string   `protobuf:"bytes,3,opt,name=stderr_file_name,json=stderrFileName,proto3" json:"stderr_file_name,omitempty"`
    30  	MaxFiles             uint32   `protobuf:"varint,4,opt,name=max_files,json=maxFiles,proto3" json:"max_files,omitempty"`
    31  	MaxFileSizeMb        uint32   `protobuf:"varint,5,opt,name=max_file_size_mb,json=maxFileSizeMb,proto3" json:"max_file_size_mb,omitempty"`
    32  	StdoutFifo           string   `protobuf:"bytes,6,opt,name=stdout_fifo,json=stdoutFifo,proto3" json:"stdout_fifo,omitempty"`
    33  	StderrFifo           string   `protobuf:"bytes,7,opt,name=stderr_fifo,json=stderrFifo,proto3" json:"stderr_fifo,omitempty"`
    34  	FileExtension        string   `protobuf:"bytes,8,opt,name=file_extension,json=fileExtension,proto3" json:"file_extension,omitempty"`
    35  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    36  	XXX_unrecognized     []byte   `json:"-"`
    37  	XXX_sizecache        int32    `json:"-"`
    38  }
    39  
    40  func (m *StartRequest) Reset()         { *m = StartRequest{} }
    41  func (m *StartRequest) String() string { return proto.CompactTextString(m) }
    42  func (*StartRequest) ProtoMessage()    {}
    43  func (*StartRequest) Descriptor() ([]byte, []int) {
    44  	return fileDescriptor_logmon_bf7689f3b6fc20b1, []int{0}
    45  }
    46  func (m *StartRequest) XXX_Unmarshal(b []byte) error {
    47  	return xxx_messageInfo_StartRequest.Unmarshal(m, b)
    48  }
    49  func (m *StartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    50  	return xxx_messageInfo_StartRequest.Marshal(b, m, deterministic)
    51  }
    52  func (dst *StartRequest) XXX_Merge(src proto.Message) {
    53  	xxx_messageInfo_StartRequest.Merge(dst, src)
    54  }
    55  func (m *StartRequest) XXX_Size() int {
    56  	return xxx_messageInfo_StartRequest.Size(m)
    57  }
    58  func (m *StartRequest) XXX_DiscardUnknown() {
    59  	xxx_messageInfo_StartRequest.DiscardUnknown(m)
    60  }
    61  
    62  var xxx_messageInfo_StartRequest proto.InternalMessageInfo
    63  
    64  func (m *StartRequest) GetLogDir() string {
    65  	if m != nil {
    66  		return m.LogDir
    67  	}
    68  	return ""
    69  }
    70  
    71  func (m *StartRequest) GetStdoutFileName() string {
    72  	if m != nil {
    73  		return m.StdoutFileName
    74  	}
    75  	return ""
    76  }
    77  
    78  func (m *StartRequest) GetStderrFileName() string {
    79  	if m != nil {
    80  		return m.StderrFileName
    81  	}
    82  	return ""
    83  }
    84  
    85  func (m *StartRequest) GetMaxFiles() uint32 {
    86  	if m != nil {
    87  		return m.MaxFiles
    88  	}
    89  	return 0
    90  }
    91  
    92  func (m *StartRequest) GetMaxFileSizeMb() uint32 {
    93  	if m != nil {
    94  		return m.MaxFileSizeMb
    95  	}
    96  	return 0
    97  }
    98  
    99  func (m *StartRequest) GetStdoutFifo() string {
   100  	if m != nil {
   101  		return m.StdoutFifo
   102  	}
   103  	return ""
   104  }
   105  
   106  func (m *StartRequest) GetStderrFifo() string {
   107  	if m != nil {
   108  		return m.StderrFifo
   109  	}
   110  	return ""
   111  }
   112  
   113  func (m *StartRequest) GetFileExtension() string {
   114  	if m != nil {
   115  		return m.FileExtension
   116  	}
   117  	return ""
   118  }
   119  
   120  type StartResponse struct {
   121  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   122  	XXX_unrecognized     []byte   `json:"-"`
   123  	XXX_sizecache        int32    `json:"-"`
   124  }
   125  
   126  func (m *StartResponse) Reset()         { *m = StartResponse{} }
   127  func (m *StartResponse) String() string { return proto.CompactTextString(m) }
   128  func (*StartResponse) ProtoMessage()    {}
   129  func (*StartResponse) Descriptor() ([]byte, []int) {
   130  	return fileDescriptor_logmon_bf7689f3b6fc20b1, []int{1}
   131  }
   132  func (m *StartResponse) XXX_Unmarshal(b []byte) error {
   133  	return xxx_messageInfo_StartResponse.Unmarshal(m, b)
   134  }
   135  func (m *StartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   136  	return xxx_messageInfo_StartResponse.Marshal(b, m, deterministic)
   137  }
   138  func (dst *StartResponse) XXX_Merge(src proto.Message) {
   139  	xxx_messageInfo_StartResponse.Merge(dst, src)
   140  }
   141  func (m *StartResponse) XXX_Size() int {
   142  	return xxx_messageInfo_StartResponse.Size(m)
   143  }
   144  func (m *StartResponse) XXX_DiscardUnknown() {
   145  	xxx_messageInfo_StartResponse.DiscardUnknown(m)
   146  }
   147  
   148  var xxx_messageInfo_StartResponse proto.InternalMessageInfo
   149  
   150  type StopRequest struct {
   151  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   152  	XXX_unrecognized     []byte   `json:"-"`
   153  	XXX_sizecache        int32    `json:"-"`
   154  }
   155  
   156  func (m *StopRequest) Reset()         { *m = StopRequest{} }
   157  func (m *StopRequest) String() string { return proto.CompactTextString(m) }
   158  func (*StopRequest) ProtoMessage()    {}
   159  func (*StopRequest) Descriptor() ([]byte, []int) {
   160  	return fileDescriptor_logmon_bf7689f3b6fc20b1, []int{2}
   161  }
   162  func (m *StopRequest) XXX_Unmarshal(b []byte) error {
   163  	return xxx_messageInfo_StopRequest.Unmarshal(m, b)
   164  }
   165  func (m *StopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   166  	return xxx_messageInfo_StopRequest.Marshal(b, m, deterministic)
   167  }
   168  func (dst *StopRequest) XXX_Merge(src proto.Message) {
   169  	xxx_messageInfo_StopRequest.Merge(dst, src)
   170  }
   171  func (m *StopRequest) XXX_Size() int {
   172  	return xxx_messageInfo_StopRequest.Size(m)
   173  }
   174  func (m *StopRequest) XXX_DiscardUnknown() {
   175  	xxx_messageInfo_StopRequest.DiscardUnknown(m)
   176  }
   177  
   178  var xxx_messageInfo_StopRequest proto.InternalMessageInfo
   179  
   180  type StopResponse struct {
   181  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   182  	XXX_unrecognized     []byte   `json:"-"`
   183  	XXX_sizecache        int32    `json:"-"`
   184  }
   185  
   186  func (m *StopResponse) Reset()         { *m = StopResponse{} }
   187  func (m *StopResponse) String() string { return proto.CompactTextString(m) }
   188  func (*StopResponse) ProtoMessage()    {}
   189  func (*StopResponse) Descriptor() ([]byte, []int) {
   190  	return fileDescriptor_logmon_bf7689f3b6fc20b1, []int{3}
   191  }
   192  func (m *StopResponse) XXX_Unmarshal(b []byte) error {
   193  	return xxx_messageInfo_StopResponse.Unmarshal(m, b)
   194  }
   195  func (m *StopResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   196  	return xxx_messageInfo_StopResponse.Marshal(b, m, deterministic)
   197  }
   198  func (dst *StopResponse) XXX_Merge(src proto.Message) {
   199  	xxx_messageInfo_StopResponse.Merge(dst, src)
   200  }
   201  func (m *StopResponse) XXX_Size() int {
   202  	return xxx_messageInfo_StopResponse.Size(m)
   203  }
   204  func (m *StopResponse) XXX_DiscardUnknown() {
   205  	xxx_messageInfo_StopResponse.DiscardUnknown(m)
   206  }
   207  
   208  var xxx_messageInfo_StopResponse proto.InternalMessageInfo
   209  
   210  func init() {
   211  	proto.RegisterType((*StartRequest)(nil), "hashicorp.nomad.client.logmon.proto.StartRequest")
   212  	proto.RegisterType((*StartResponse)(nil), "hashicorp.nomad.client.logmon.proto.StartResponse")
   213  	proto.RegisterType((*StopRequest)(nil), "hashicorp.nomad.client.logmon.proto.StopRequest")
   214  	proto.RegisterType((*StopResponse)(nil), "hashicorp.nomad.client.logmon.proto.StopResponse")
   215  }
   216  
   217  // Reference imports to suppress errors if they are not otherwise used.
   218  var _ context.Context
   219  var _ grpc.ClientConn
   220  
   221  // This is a compile-time assertion to ensure that this generated file
   222  // is compatible with the grpc package it is being compiled against.
   223  const _ = grpc.SupportPackageIsVersion4
   224  
   225  // LogMonClient is the client API for LogMon service.
   226  //
   227  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   228  type LogMonClient interface {
   229  	Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error)
   230  	Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error)
   231  }
   232  
   233  type logMonClient struct {
   234  	cc *grpc.ClientConn
   235  }
   236  
   237  func NewLogMonClient(cc *grpc.ClientConn) LogMonClient {
   238  	return &logMonClient{cc}
   239  }
   240  
   241  func (c *logMonClient) Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) {
   242  	out := new(StartResponse)
   243  	err := c.cc.Invoke(ctx, "/hashicorp.nomad.client.logmon.proto.LogMon/Start", in, out, opts...)
   244  	if err != nil {
   245  		return nil, err
   246  	}
   247  	return out, nil
   248  }
   249  
   250  func (c *logMonClient) Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error) {
   251  	out := new(StopResponse)
   252  	err := c.cc.Invoke(ctx, "/hashicorp.nomad.client.logmon.proto.LogMon/Stop", in, out, opts...)
   253  	if err != nil {
   254  		return nil, err
   255  	}
   256  	return out, nil
   257  }
   258  
   259  // LogMonServer is the server API for LogMon service.
   260  type LogMonServer interface {
   261  	Start(context.Context, *StartRequest) (*StartResponse, error)
   262  	Stop(context.Context, *StopRequest) (*StopResponse, error)
   263  }
   264  
   265  func RegisterLogMonServer(s *grpc.Server, srv LogMonServer) {
   266  	s.RegisterService(&_LogMon_serviceDesc, srv)
   267  }
   268  
   269  func _LogMon_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   270  	in := new(StartRequest)
   271  	if err := dec(in); err != nil {
   272  		return nil, err
   273  	}
   274  	if interceptor == nil {
   275  		return srv.(LogMonServer).Start(ctx, in)
   276  	}
   277  	info := &grpc.UnaryServerInfo{
   278  		Server:     srv,
   279  		FullMethod: "/hashicorp.nomad.client.logmon.proto.LogMon/Start",
   280  	}
   281  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   282  		return srv.(LogMonServer).Start(ctx, req.(*StartRequest))
   283  	}
   284  	return interceptor(ctx, in, info, handler)
   285  }
   286  
   287  func _LogMon_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   288  	in := new(StopRequest)
   289  	if err := dec(in); err != nil {
   290  		return nil, err
   291  	}
   292  	if interceptor == nil {
   293  		return srv.(LogMonServer).Stop(ctx, in)
   294  	}
   295  	info := &grpc.UnaryServerInfo{
   296  		Server:     srv,
   297  		FullMethod: "/hashicorp.nomad.client.logmon.proto.LogMon/Stop",
   298  	}
   299  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   300  		return srv.(LogMonServer).Stop(ctx, req.(*StopRequest))
   301  	}
   302  	return interceptor(ctx, in, info, handler)
   303  }
   304  
   305  var _LogMon_serviceDesc = grpc.ServiceDesc{
   306  	ServiceName: "hashicorp.nomad.client.logmon.proto.LogMon",
   307  	HandlerType: (*LogMonServer)(nil),
   308  	Methods: []grpc.MethodDesc{
   309  		{
   310  			MethodName: "Start",
   311  			Handler:    _LogMon_Start_Handler,
   312  		},
   313  		{
   314  			MethodName: "Stop",
   315  			Handler:    _LogMon_Stop_Handler,
   316  		},
   317  	},
   318  	Streams:  []grpc.StreamDesc{},
   319  	Metadata: "client/logmon/proto/logmon.proto",
   320  }
   321  
   322  func init() {
   323  	proto.RegisterFile("client/logmon/proto/logmon.proto", fileDescriptor_logmon_bf7689f3b6fc20b1)
   324  }
   325  
   326  var fileDescriptor_logmon_bf7689f3b6fc20b1 = []byte{
   327  	// 343 bytes of a gzipped FileDescriptorProto
   328  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0xcf, 0x6e, 0xe2, 0x30,
   329  	0x10, 0xc6, 0x37, 0x2c, 0x04, 0x18, 0x36, 0x2c, 0xf2, 0x65, 0x23, 0xf6, 0x50, 0x94, 0xaa, 0x2a,
   330  	0xa7, 0x50, 0xe8, 0x1b, 0x54, 0x6d, 0x4f, 0xa5, 0x07, 0xb8, 0xf5, 0x12, 0x05, 0x98, 0x04, 0x4b,
   331  	0xb1, 0x27, 0xb5, 0x8d, 0x84, 0x78, 0xa4, 0xbe, 0x59, 0xdf, 0xa2, 0x8a, 0xf3, 0x47, 0x1c, 0xe1,
   332  	0x64, 0xcd, 0x37, 0xbf, 0x4f, 0xf3, 0x79, 0x06, 0x26, 0xdb, 0x8c, 0xa3, 0x34, 0xb3, 0x8c, 0x52,
   333  	0x41, 0x72, 0x96, 0x2b, 0x32, 0x54, 0x15, 0xa1, 0x2d, 0xd8, 0xed, 0x3e, 0xd6, 0x7b, 0xbe, 0x25,
   334  	0x95, 0x87, 0x92, 0x44, 0xbc, 0x0b, 0x4b, 0x47, 0x78, 0x0e, 0x05, 0x5f, 0x2d, 0xf8, 0xb3, 0x36,
   335  	0xb1, 0x32, 0x2b, 0xfc, 0x3c, 0xa0, 0x36, 0xec, 0x1f, 0x74, 0x33, 0x4a, 0xa3, 0x1d, 0x57, 0xbe,
   336  	0x33, 0x71, 0xa6, 0xfd, 0x95, 0x9b, 0x51, 0xfa, 0xcc, 0x15, 0x9b, 0xc2, 0x48, 0x9b, 0x1d, 0x1d,
   337  	0x4c, 0x94, 0xf0, 0x0c, 0x23, 0x19, 0x0b, 0xf4, 0x5b, 0x96, 0x18, 0x96, 0xfa, 0x2b, 0xcf, 0xf0,
   338  	0x3d, 0x16, 0x58, 0x91, 0xa8, 0xd4, 0x19, 0xf9, 0xbb, 0x21, 0x51, 0xa9, 0x86, 0xfc, 0x0f, 0x7d,
   339  	0x11, 0x1f, 0x2d, 0xa6, 0xfd, 0xf6, 0xc4, 0x99, 0x7a, 0xab, 0x9e, 0x88, 0x8f, 0x45, 0x5f, 0xb3,
   340  	0x7b, 0x18, 0xd5, 0xcd, 0x48, 0xf3, 0x13, 0x46, 0x62, 0xe3, 0x77, 0x2c, 0xe3, 0x55, 0xcc, 0x9a,
   341  	0x9f, 0x70, 0xb9, 0x61, 0x37, 0x30, 0x68, 0x92, 0x25, 0xe4, 0xbb, 0x76, 0x14, 0xd4, 0xa1, 0x12,
   342  	0xaa, 0x80, 0x32, 0x50, 0x42, 0x7e, 0xb7, 0x01, 0x6c, 0x96, 0x84, 0xd8, 0x1d, 0x0c, 0xed, 0x18,
   343  	0x3c, 0x1a, 0x94, 0x9a, 0x93, 0xf4, 0x7b, 0x96, 0xf1, 0x0a, 0xf5, 0xa5, 0x16, 0x83, 0xbf, 0xe0,
   344  	0x55, 0xbb, 0xd2, 0x39, 0x49, 0x8d, 0x81, 0x07, 0x83, 0xb5, 0xa1, 0xbc, 0xda, 0x5d, 0x30, 0x2c,
   345  	0x76, 0x59, 0x94, 0x65, 0x7b, 0xf1, 0xed, 0x80, 0xfb, 0x46, 0xe9, 0x92, 0x24, 0xcb, 0xa1, 0x63,
   346  	0xad, 0x6c, 0x1e, 0x5e, 0x70, 0x96, 0xf0, 0xfc, 0x24, 0xe3, 0xc5, 0x35, 0x96, 0x2a, 0xd9, 0x2f,
   347  	0x26, 0xa0, 0x5d, 0x84, 0x61, 0x0f, 0x17, 0xba, 0x9b, 0x6f, 0x8c, 0xe7, 0x57, 0x38, 0xea, 0x71,
   348  	0x4f, 0xdd, 0x8f, 0x8e, 0xd5, 0x37, 0xae, 0x7d, 0x1e, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x71,
   349  	0x45, 0xd7, 0x57, 0xa1, 0x02, 0x00, 0x00,
   350  }