github.com/bigcommerce/nomad@v0.9.3-bc/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  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    35  	XXX_unrecognized     []byte   `json:"-"`
    36  	XXX_sizecache        int32    `json:"-"`
    37  }
    38  
    39  func (m *StartRequest) Reset()         { *m = StartRequest{} }
    40  func (m *StartRequest) String() string { return proto.CompactTextString(m) }
    41  func (*StartRequest) ProtoMessage()    {}
    42  func (*StartRequest) Descriptor() ([]byte, []int) {
    43  	return fileDescriptor_logmon_c8f5fe5f286cd193, []int{0}
    44  }
    45  func (m *StartRequest) XXX_Unmarshal(b []byte) error {
    46  	return xxx_messageInfo_StartRequest.Unmarshal(m, b)
    47  }
    48  func (m *StartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    49  	return xxx_messageInfo_StartRequest.Marshal(b, m, deterministic)
    50  }
    51  func (dst *StartRequest) XXX_Merge(src proto.Message) {
    52  	xxx_messageInfo_StartRequest.Merge(dst, src)
    53  }
    54  func (m *StartRequest) XXX_Size() int {
    55  	return xxx_messageInfo_StartRequest.Size(m)
    56  }
    57  func (m *StartRequest) XXX_DiscardUnknown() {
    58  	xxx_messageInfo_StartRequest.DiscardUnknown(m)
    59  }
    60  
    61  var xxx_messageInfo_StartRequest proto.InternalMessageInfo
    62  
    63  func (m *StartRequest) GetLogDir() string {
    64  	if m != nil {
    65  		return m.LogDir
    66  	}
    67  	return ""
    68  }
    69  
    70  func (m *StartRequest) GetStdoutFileName() string {
    71  	if m != nil {
    72  		return m.StdoutFileName
    73  	}
    74  	return ""
    75  }
    76  
    77  func (m *StartRequest) GetStderrFileName() string {
    78  	if m != nil {
    79  		return m.StderrFileName
    80  	}
    81  	return ""
    82  }
    83  
    84  func (m *StartRequest) GetMaxFiles() uint32 {
    85  	if m != nil {
    86  		return m.MaxFiles
    87  	}
    88  	return 0
    89  }
    90  
    91  func (m *StartRequest) GetMaxFileSizeMb() uint32 {
    92  	if m != nil {
    93  		return m.MaxFileSizeMb
    94  	}
    95  	return 0
    96  }
    97  
    98  func (m *StartRequest) GetStdoutFifo() string {
    99  	if m != nil {
   100  		return m.StdoutFifo
   101  	}
   102  	return ""
   103  }
   104  
   105  func (m *StartRequest) GetStderrFifo() string {
   106  	if m != nil {
   107  		return m.StderrFifo
   108  	}
   109  	return ""
   110  }
   111  
   112  type StartResponse struct {
   113  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   114  	XXX_unrecognized     []byte   `json:"-"`
   115  	XXX_sizecache        int32    `json:"-"`
   116  }
   117  
   118  func (m *StartResponse) Reset()         { *m = StartResponse{} }
   119  func (m *StartResponse) String() string { return proto.CompactTextString(m) }
   120  func (*StartResponse) ProtoMessage()    {}
   121  func (*StartResponse) Descriptor() ([]byte, []int) {
   122  	return fileDescriptor_logmon_c8f5fe5f286cd193, []int{1}
   123  }
   124  func (m *StartResponse) XXX_Unmarshal(b []byte) error {
   125  	return xxx_messageInfo_StartResponse.Unmarshal(m, b)
   126  }
   127  func (m *StartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   128  	return xxx_messageInfo_StartResponse.Marshal(b, m, deterministic)
   129  }
   130  func (dst *StartResponse) XXX_Merge(src proto.Message) {
   131  	xxx_messageInfo_StartResponse.Merge(dst, src)
   132  }
   133  func (m *StartResponse) XXX_Size() int {
   134  	return xxx_messageInfo_StartResponse.Size(m)
   135  }
   136  func (m *StartResponse) XXX_DiscardUnknown() {
   137  	xxx_messageInfo_StartResponse.DiscardUnknown(m)
   138  }
   139  
   140  var xxx_messageInfo_StartResponse proto.InternalMessageInfo
   141  
   142  type StopRequest struct {
   143  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   144  	XXX_unrecognized     []byte   `json:"-"`
   145  	XXX_sizecache        int32    `json:"-"`
   146  }
   147  
   148  func (m *StopRequest) Reset()         { *m = StopRequest{} }
   149  func (m *StopRequest) String() string { return proto.CompactTextString(m) }
   150  func (*StopRequest) ProtoMessage()    {}
   151  func (*StopRequest) Descriptor() ([]byte, []int) {
   152  	return fileDescriptor_logmon_c8f5fe5f286cd193, []int{2}
   153  }
   154  func (m *StopRequest) XXX_Unmarshal(b []byte) error {
   155  	return xxx_messageInfo_StopRequest.Unmarshal(m, b)
   156  }
   157  func (m *StopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   158  	return xxx_messageInfo_StopRequest.Marshal(b, m, deterministic)
   159  }
   160  func (dst *StopRequest) XXX_Merge(src proto.Message) {
   161  	xxx_messageInfo_StopRequest.Merge(dst, src)
   162  }
   163  func (m *StopRequest) XXX_Size() int {
   164  	return xxx_messageInfo_StopRequest.Size(m)
   165  }
   166  func (m *StopRequest) XXX_DiscardUnknown() {
   167  	xxx_messageInfo_StopRequest.DiscardUnknown(m)
   168  }
   169  
   170  var xxx_messageInfo_StopRequest proto.InternalMessageInfo
   171  
   172  type StopResponse struct {
   173  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   174  	XXX_unrecognized     []byte   `json:"-"`
   175  	XXX_sizecache        int32    `json:"-"`
   176  }
   177  
   178  func (m *StopResponse) Reset()         { *m = StopResponse{} }
   179  func (m *StopResponse) String() string { return proto.CompactTextString(m) }
   180  func (*StopResponse) ProtoMessage()    {}
   181  func (*StopResponse) Descriptor() ([]byte, []int) {
   182  	return fileDescriptor_logmon_c8f5fe5f286cd193, []int{3}
   183  }
   184  func (m *StopResponse) XXX_Unmarshal(b []byte) error {
   185  	return xxx_messageInfo_StopResponse.Unmarshal(m, b)
   186  }
   187  func (m *StopResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   188  	return xxx_messageInfo_StopResponse.Marshal(b, m, deterministic)
   189  }
   190  func (dst *StopResponse) XXX_Merge(src proto.Message) {
   191  	xxx_messageInfo_StopResponse.Merge(dst, src)
   192  }
   193  func (m *StopResponse) XXX_Size() int {
   194  	return xxx_messageInfo_StopResponse.Size(m)
   195  }
   196  func (m *StopResponse) XXX_DiscardUnknown() {
   197  	xxx_messageInfo_StopResponse.DiscardUnknown(m)
   198  }
   199  
   200  var xxx_messageInfo_StopResponse proto.InternalMessageInfo
   201  
   202  func init() {
   203  	proto.RegisterType((*StartRequest)(nil), "hashicorp.nomad.client.logmon.proto.StartRequest")
   204  	proto.RegisterType((*StartResponse)(nil), "hashicorp.nomad.client.logmon.proto.StartResponse")
   205  	proto.RegisterType((*StopRequest)(nil), "hashicorp.nomad.client.logmon.proto.StopRequest")
   206  	proto.RegisterType((*StopResponse)(nil), "hashicorp.nomad.client.logmon.proto.StopResponse")
   207  }
   208  
   209  // Reference imports to suppress errors if they are not otherwise used.
   210  var _ context.Context
   211  var _ grpc.ClientConn
   212  
   213  // This is a compile-time assertion to ensure that this generated file
   214  // is compatible with the grpc package it is being compiled against.
   215  const _ = grpc.SupportPackageIsVersion4
   216  
   217  // LogMonClient is the client API for LogMon service.
   218  //
   219  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   220  type LogMonClient interface {
   221  	Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error)
   222  	Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error)
   223  }
   224  
   225  type logMonClient struct {
   226  	cc *grpc.ClientConn
   227  }
   228  
   229  func NewLogMonClient(cc *grpc.ClientConn) LogMonClient {
   230  	return &logMonClient{cc}
   231  }
   232  
   233  func (c *logMonClient) Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) {
   234  	out := new(StartResponse)
   235  	err := c.cc.Invoke(ctx, "/hashicorp.nomad.client.logmon.proto.LogMon/Start", in, out, opts...)
   236  	if err != nil {
   237  		return nil, err
   238  	}
   239  	return out, nil
   240  }
   241  
   242  func (c *logMonClient) Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error) {
   243  	out := new(StopResponse)
   244  	err := c.cc.Invoke(ctx, "/hashicorp.nomad.client.logmon.proto.LogMon/Stop", in, out, opts...)
   245  	if err != nil {
   246  		return nil, err
   247  	}
   248  	return out, nil
   249  }
   250  
   251  // LogMonServer is the server API for LogMon service.
   252  type LogMonServer interface {
   253  	Start(context.Context, *StartRequest) (*StartResponse, error)
   254  	Stop(context.Context, *StopRequest) (*StopResponse, error)
   255  }
   256  
   257  func RegisterLogMonServer(s *grpc.Server, srv LogMonServer) {
   258  	s.RegisterService(&_LogMon_serviceDesc, srv)
   259  }
   260  
   261  func _LogMon_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   262  	in := new(StartRequest)
   263  	if err := dec(in); err != nil {
   264  		return nil, err
   265  	}
   266  	if interceptor == nil {
   267  		return srv.(LogMonServer).Start(ctx, in)
   268  	}
   269  	info := &grpc.UnaryServerInfo{
   270  		Server:     srv,
   271  		FullMethod: "/hashicorp.nomad.client.logmon.proto.LogMon/Start",
   272  	}
   273  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   274  		return srv.(LogMonServer).Start(ctx, req.(*StartRequest))
   275  	}
   276  	return interceptor(ctx, in, info, handler)
   277  }
   278  
   279  func _LogMon_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   280  	in := new(StopRequest)
   281  	if err := dec(in); err != nil {
   282  		return nil, err
   283  	}
   284  	if interceptor == nil {
   285  		return srv.(LogMonServer).Stop(ctx, in)
   286  	}
   287  	info := &grpc.UnaryServerInfo{
   288  		Server:     srv,
   289  		FullMethod: "/hashicorp.nomad.client.logmon.proto.LogMon/Stop",
   290  	}
   291  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   292  		return srv.(LogMonServer).Stop(ctx, req.(*StopRequest))
   293  	}
   294  	return interceptor(ctx, in, info, handler)
   295  }
   296  
   297  var _LogMon_serviceDesc = grpc.ServiceDesc{
   298  	ServiceName: "hashicorp.nomad.client.logmon.proto.LogMon",
   299  	HandlerType: (*LogMonServer)(nil),
   300  	Methods: []grpc.MethodDesc{
   301  		{
   302  			MethodName: "Start",
   303  			Handler:    _LogMon_Start_Handler,
   304  		},
   305  		{
   306  			MethodName: "Stop",
   307  			Handler:    _LogMon_Stop_Handler,
   308  		},
   309  	},
   310  	Streams:  []grpc.StreamDesc{},
   311  	Metadata: "client/logmon/proto/logmon.proto",
   312  }
   313  
   314  func init() {
   315  	proto.RegisterFile("client/logmon/proto/logmon.proto", fileDescriptor_logmon_c8f5fe5f286cd193)
   316  }
   317  
   318  var fileDescriptor_logmon_c8f5fe5f286cd193 = []byte{
   319  	// 320 bytes of a gzipped FileDescriptorProto
   320  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0x31, 0x6f, 0xc2, 0x30,
   321  	0x10, 0x85, 0x1b, 0x0a, 0xa1, 0x1c, 0x0d, 0x45, 0x5e, 0x1a, 0xd1, 0xa1, 0x28, 0x1d, 0xca, 0x14,
   322  	0x0a, 0xfd, 0x07, 0x55, 0xd5, 0xa9, 0x74, 0x80, 0xad, 0x4b, 0x64, 0xc0, 0x09, 0x96, 0x62, 0x5f,
   323  	0x6a, 0x1b, 0x09, 0xb1, 0xf6, 0xd7, 0xf6, 0x5f, 0x54, 0x71, 0x4c, 0x94, 0x11, 0x26, 0xeb, 0xee,
   324  	0x7d, 0x4f, 0xf7, 0xfc, 0x60, 0xbc, 0xc9, 0x39, 0x93, 0x66, 0x9a, 0x63, 0x26, 0x50, 0x4e, 0x0b,
   325  	0x85, 0x06, 0xdd, 0x10, 0xdb, 0x81, 0x3c, 0xed, 0xa8, 0xde, 0xf1, 0x0d, 0xaa, 0x22, 0x96, 0x28,
   326  	0xe8, 0x36, 0xae, 0x1c, 0x71, 0x13, 0x8a, 0x7e, 0x5b, 0x70, 0xbb, 0x32, 0x54, 0x99, 0x25, 0xfb,
   327  	0xd9, 0x33, 0x6d, 0xc8, 0x3d, 0x74, 0x73, 0xcc, 0x92, 0x2d, 0x57, 0xa1, 0x37, 0xf6, 0x26, 0xbd,
   328  	0xa5, 0x9f, 0x63, 0xf6, 0xce, 0x15, 0x99, 0xc0, 0x50, 0x9b, 0x2d, 0xee, 0x4d, 0x92, 0xf2, 0x9c,
   329  	0x25, 0x92, 0x0a, 0x16, 0xb6, 0x2c, 0x31, 0xa8, 0xf6, 0x1f, 0x3c, 0x67, 0x5f, 0x54, 0x30, 0x47,
   330  	0x32, 0xa5, 0x1a, 0xe4, 0x75, 0x4d, 0x32, 0xa5, 0x6a, 0xf2, 0x01, 0x7a, 0x82, 0x1e, 0x2c, 0xa6,
   331  	0xc3, 0xf6, 0xd8, 0x9b, 0x04, 0xcb, 0x1b, 0x41, 0x0f, 0xa5, 0xae, 0xc9, 0x33, 0x0c, 0x4f, 0x62,
   332  	0xa2, 0xf9, 0x91, 0x25, 0x62, 0x1d, 0x76, 0x2c, 0x13, 0x38, 0x66, 0xc5, 0x8f, 0x6c, 0xb1, 0x26,
   333  	0x8f, 0xd0, 0xaf, 0x93, 0xa5, 0x18, 0xfa, 0xf6, 0x14, 0x9c, 0x42, 0xa5, 0xe8, 0x80, 0x2a, 0x50,
   334  	0x8a, 0x61, 0xb7, 0x06, 0x6c, 0x96, 0x14, 0xa3, 0x3b, 0x08, 0x5c, 0x09, 0xba, 0x40, 0xa9, 0x59,
   335  	0x14, 0x40, 0x7f, 0x65, 0xb0, 0x70, 0xa5, 0x44, 0x83, 0xb2, 0xa4, 0x72, 0xac, 0xe4, 0xf9, 0x9f,
   336  	0x07, 0xfe, 0x27, 0x66, 0x0b, 0x94, 0xa4, 0x80, 0x8e, 0xb5, 0x92, 0x59, 0x7c, 0x46, 0xdf, 0x71,
   337  	0xb3, 0xeb, 0xd1, 0xfc, 0x12, 0x8b, 0x4b, 0x76, 0x45, 0x04, 0xb4, 0xcb, 0x30, 0xe4, 0xe5, 0x4c,
   338  	0x77, 0xfd, 0x8d, 0xd1, 0xec, 0x02, 0xc7, 0xe9, 0xdc, 0x5b, 0xf7, 0xbb, 0x63, 0xf7, 0x6b, 0xdf,
   339  	0x3e, 0xaf, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd8, 0xb4, 0x87, 0xfc, 0x7a, 0x02, 0x00, 0x00,
   340  }