github.com/onosproject/onos-api/go@v0.10.32/onos/o1t/o1t.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: onos/o1t/o1t.proto
     3  
     4  // Package onos.o1t defines interfaces to o1t sessions
     5  
     6  package o1t
     7  
     8  import (
     9  	context "context"
    10  	fmt "fmt"
    11  	proto "github.com/gogo/protobuf/proto"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	io "io"
    16  	math "math"
    17  	math_bits "math/bits"
    18  )
    19  
    20  // Reference imports to suppress errors if they are not otherwise used.
    21  var _ = proto.Marshal
    22  var _ = fmt.Errorf
    23  var _ = math.Inf
    24  
    25  // This is a compile-time assertion to ensure that this generated file
    26  // is compatible with the proto package it is being compiled against.
    27  // A compilation error at this line likely means your copy of the
    28  // proto package needs to be updated.
    29  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    30  
    31  type GetRequest struct {
    32  }
    33  
    34  func (m *GetRequest) Reset()         { *m = GetRequest{} }
    35  func (m *GetRequest) String() string { return proto.CompactTextString(m) }
    36  func (*GetRequest) ProtoMessage()    {}
    37  func (*GetRequest) Descriptor() ([]byte, []int) {
    38  	return fileDescriptor_57fac756a72d47fd, []int{0}
    39  }
    40  func (m *GetRequest) XXX_Unmarshal(b []byte) error {
    41  	return m.Unmarshal(b)
    42  }
    43  func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    44  	if deterministic {
    45  		return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic)
    46  	} else {
    47  		b = b[:cap(b)]
    48  		n, err := m.MarshalToSizedBuffer(b)
    49  		if err != nil {
    50  			return nil, err
    51  		}
    52  		return b[:n], nil
    53  	}
    54  }
    55  func (m *GetRequest) XXX_Merge(src proto.Message) {
    56  	xxx_messageInfo_GetRequest.Merge(m, src)
    57  }
    58  func (m *GetRequest) XXX_Size() int {
    59  	return m.Size()
    60  }
    61  func (m *GetRequest) XXX_DiscardUnknown() {
    62  	xxx_messageInfo_GetRequest.DiscardUnknown(m)
    63  }
    64  
    65  var xxx_messageInfo_GetRequest proto.InternalMessageInfo
    66  
    67  type GetResponse struct {
    68  	Sessions map[string]*Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    69  }
    70  
    71  func (m *GetResponse) Reset()         { *m = GetResponse{} }
    72  func (m *GetResponse) String() string { return proto.CompactTextString(m) }
    73  func (*GetResponse) ProtoMessage()    {}
    74  func (*GetResponse) Descriptor() ([]byte, []int) {
    75  	return fileDescriptor_57fac756a72d47fd, []int{1}
    76  }
    77  func (m *GetResponse) XXX_Unmarshal(b []byte) error {
    78  	return m.Unmarshal(b)
    79  }
    80  func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    81  	if deterministic {
    82  		return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic)
    83  	} else {
    84  		b = b[:cap(b)]
    85  		n, err := m.MarshalToSizedBuffer(b)
    86  		if err != nil {
    87  			return nil, err
    88  		}
    89  		return b[:n], nil
    90  	}
    91  }
    92  func (m *GetResponse) XXX_Merge(src proto.Message) {
    93  	xxx_messageInfo_GetResponse.Merge(m, src)
    94  }
    95  func (m *GetResponse) XXX_Size() int {
    96  	return m.Size()
    97  }
    98  func (m *GetResponse) XXX_DiscardUnknown() {
    99  	xxx_messageInfo_GetResponse.DiscardUnknown(m)
   100  }
   101  
   102  var xxx_messageInfo_GetResponse proto.InternalMessageInfo
   103  
   104  func (m *GetResponse) GetSessions() map[string]*Session {
   105  	if m != nil {
   106  		return m.Sessions
   107  	}
   108  	return nil
   109  }
   110  
   111  type Session struct {
   112  	SessionID  string                `protobuf:"bytes,1,opt,name=SessionID,proto3" json:"SessionID,omitempty"`
   113  	Alive      bool                  `protobuf:"varint,2,opt,name=Alive,proto3" json:"Alive,omitempty"`
   114  	Operations map[string]*Operation `protobuf:"bytes,3,rep,name=Operations,proto3" json:"Operations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   115  }
   116  
   117  func (m *Session) Reset()         { *m = Session{} }
   118  func (m *Session) String() string { return proto.CompactTextString(m) }
   119  func (*Session) ProtoMessage()    {}
   120  func (*Session) Descriptor() ([]byte, []int) {
   121  	return fileDescriptor_57fac756a72d47fd, []int{2}
   122  }
   123  func (m *Session) XXX_Unmarshal(b []byte) error {
   124  	return m.Unmarshal(b)
   125  }
   126  func (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   127  	if deterministic {
   128  		return xxx_messageInfo_Session.Marshal(b, m, deterministic)
   129  	} else {
   130  		b = b[:cap(b)]
   131  		n, err := m.MarshalToSizedBuffer(b)
   132  		if err != nil {
   133  			return nil, err
   134  		}
   135  		return b[:n], nil
   136  	}
   137  }
   138  func (m *Session) XXX_Merge(src proto.Message) {
   139  	xxx_messageInfo_Session.Merge(m, src)
   140  }
   141  func (m *Session) XXX_Size() int {
   142  	return m.Size()
   143  }
   144  func (m *Session) XXX_DiscardUnknown() {
   145  	xxx_messageInfo_Session.DiscardUnknown(m)
   146  }
   147  
   148  var xxx_messageInfo_Session proto.InternalMessageInfo
   149  
   150  func (m *Session) GetSessionID() string {
   151  	if m != nil {
   152  		return m.SessionID
   153  	}
   154  	return ""
   155  }
   156  
   157  func (m *Session) GetAlive() bool {
   158  	if m != nil {
   159  		return m.Alive
   160  	}
   161  	return false
   162  }
   163  
   164  func (m *Session) GetOperations() map[string]*Operation {
   165  	if m != nil {
   166  		return m.Operations
   167  	}
   168  	return nil
   169  }
   170  
   171  type Operation struct {
   172  	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   173  	Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
   174  	Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
   175  	Status    bool   `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
   176  }
   177  
   178  func (m *Operation) Reset()         { *m = Operation{} }
   179  func (m *Operation) String() string { return proto.CompactTextString(m) }
   180  func (*Operation) ProtoMessage()    {}
   181  func (*Operation) Descriptor() ([]byte, []int) {
   182  	return fileDescriptor_57fac756a72d47fd, []int{3}
   183  }
   184  func (m *Operation) XXX_Unmarshal(b []byte) error {
   185  	return m.Unmarshal(b)
   186  }
   187  func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   188  	if deterministic {
   189  		return xxx_messageInfo_Operation.Marshal(b, m, deterministic)
   190  	} else {
   191  		b = b[:cap(b)]
   192  		n, err := m.MarshalToSizedBuffer(b)
   193  		if err != nil {
   194  			return nil, err
   195  		}
   196  		return b[:n], nil
   197  	}
   198  }
   199  func (m *Operation) XXX_Merge(src proto.Message) {
   200  	xxx_messageInfo_Operation.Merge(m, src)
   201  }
   202  func (m *Operation) XXX_Size() int {
   203  	return m.Size()
   204  }
   205  func (m *Operation) XXX_DiscardUnknown() {
   206  	xxx_messageInfo_Operation.DiscardUnknown(m)
   207  }
   208  
   209  var xxx_messageInfo_Operation proto.InternalMessageInfo
   210  
   211  func (m *Operation) GetName() string {
   212  	if m != nil {
   213  		return m.Name
   214  	}
   215  	return ""
   216  }
   217  
   218  func (m *Operation) GetTimestamp() uint64 {
   219  	if m != nil {
   220  		return m.Timestamp
   221  	}
   222  	return 0
   223  }
   224  
   225  func (m *Operation) GetNamespace() string {
   226  	if m != nil {
   227  		return m.Namespace
   228  	}
   229  	return ""
   230  }
   231  
   232  func (m *Operation) GetStatus() bool {
   233  	if m != nil {
   234  		return m.Status
   235  	}
   236  	return false
   237  }
   238  
   239  func init() {
   240  	proto.RegisterType((*GetRequest)(nil), "onos.o1t.GetRequest")
   241  	proto.RegisterType((*GetResponse)(nil), "onos.o1t.GetResponse")
   242  	proto.RegisterMapType((map[string]*Session)(nil), "onos.o1t.GetResponse.SessionsEntry")
   243  	proto.RegisterType((*Session)(nil), "onos.o1t.Session")
   244  	proto.RegisterMapType((map[string]*Operation)(nil), "onos.o1t.Session.OperationsEntry")
   245  	proto.RegisterType((*Operation)(nil), "onos.o1t.Operation")
   246  }
   247  
   248  func init() { proto.RegisterFile("onos/o1t/o1t.proto", fileDescriptor_57fac756a72d47fd) }
   249  
   250  var fileDescriptor_57fac756a72d47fd = []byte{
   251  	// 382 bytes of a gzipped FileDescriptorProto
   252  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xc1, 0x4e, 0xf2, 0x40,
   253  	0x10, 0xee, 0xd2, 0xc2, 0x0f, 0xc3, 0x6f, 0xd0, 0x15, 0x4d, 0x43, 0x4c, 0x83, 0xf5, 0x20, 0x5e,
   254  	0xaa, 0x60, 0x34, 0xc6, 0x8b, 0xc1, 0x68, 0x8c, 0x89, 0xc1, 0xa4, 0x1e, 0x3c, 0x57, 0xb2, 0xc6,
   255  	0x46, 0xe8, 0x56, 0x76, 0x20, 0xe1, 0xe6, 0x23, 0xf8, 0x04, 0x3e, 0x8f, 0x47, 0x0e, 0x1e, 0x3c,
   256  	0x1a, 0x78, 0x11, 0xd3, 0xed, 0xd2, 0x02, 0x72, 0xf1, 0xb0, 0xc9, 0xcc, 0x37, 0xf3, 0x7d, 0x93,
   257  	0x6f, 0x67, 0x80, 0xf2, 0x80, 0x8b, 0x7d, 0x5e, 0xc7, 0xe8, 0x39, 0x61, 0x8f, 0x23, 0xa7, 0xf9,
   258  	0x08, 0x73, 0x78, 0x1d, 0xed, 0xff, 0x00, 0x57, 0x0c, 0x5d, 0xf6, 0xd2, 0x67, 0x02, 0xed, 0x77,
   259  	0x02, 0x45, 0x99, 0x8a, 0x90, 0x07, 0x82, 0xd1, 0x33, 0xc8, 0x0b, 0x26, 0x84, 0xcf, 0x03, 0x61,
   260  	0x92, 0xaa, 0x5e, 0x2b, 0x36, 0x76, 0x9c, 0x29, 0xd5, 0x99, 0x69, 0x74, 0xee, 0x54, 0xd7, 0x65,
   261  	0x80, 0xbd, 0xa1, 0x9b, 0x90, 0x2a, 0x2d, 0x58, 0x99, 0x2b, 0xd1, 0x55, 0xd0, 0x9f, 0xd9, 0xd0,
   262  	0x24, 0x55, 0x52, 0x2b, 0xb8, 0x51, 0x48, 0x77, 0x21, 0x3b, 0xf0, 0x3a, 0x7d, 0x66, 0x66, 0xaa,
   263  	0xa4, 0x56, 0x6c, 0xac, 0xa5, 0x03, 0x14, 0xd3, 0x8d, 0xeb, 0xa7, 0x99, 0x13, 0x62, 0x7f, 0x12,
   264  	0xf8, 0xa7, 0x60, 0xba, 0x05, 0x05, 0x15, 0x5e, 0x5f, 0x28, 0xc1, 0x14, 0xa0, 0x65, 0xc8, 0x36,
   265  	0x3b, 0xfe, 0x20, 0x96, 0xcd, 0xbb, 0x71, 0x42, 0x9b, 0x00, 0xb7, 0x21, 0xeb, 0x79, 0x28, 0x2d,
   266  	0xe9, 0xd2, 0xd2, 0xf6, 0xaf, 0x89, 0x4e, 0xda, 0x13, 0x1b, 0x9a, 0x21, 0x55, 0x5c, 0x28, 0x2d,
   267  	0x94, 0x97, 0x98, 0xda, 0x9b, 0x37, 0xb5, 0x9e, 0x8e, 0x48, 0xb8, 0xb3, 0xb6, 0x04, 0x14, 0x12,
   268  	0x9c, 0x52, 0x30, 0x02, 0xaf, 0xcb, 0x94, 0x9c, 0x8c, 0x23, 0xaf, 0xe8, 0x77, 0x99, 0x40, 0xaf,
   269  	0x1b, 0x4a, 0x4d, 0xc3, 0x4d, 0x81, 0xa8, 0x1a, 0x75, 0x89, 0xd0, 0x6b, 0x33, 0x53, 0x8f, 0x7f,
   270  	0x22, 0x01, 0xe8, 0x26, 0xe4, 0x04, 0x7a, 0xd8, 0x17, 0xa6, 0x21, 0xbf, 0x42, 0x65, 0x8d, 0x57,
   271  	0x02, 0xa5, 0x16, 0xc3, 0x36, 0x0f, 0x1e, 0xa7, 0x3b, 0xa2, 0x47, 0x60, 0xdc, 0xf8, 0x02, 0x69,
   272  	0x79, 0x61, 0xcd, 0xf2, 0x3c, 0x2a, 0x1b, 0x4b, 0x97, 0x6f, 0x6b, 0xf4, 0x18, 0xb2, 0xf7, 0x1e,
   273  	0xb6, 0x9f, 0xfe, 0xc4, 0x3b, 0x20, 0xe7, 0xe6, 0xc7, 0xd8, 0x22, 0xa3, 0xb1, 0x45, 0xbe, 0xc7,
   274  	0x16, 0x79, 0x9b, 0x58, 0xda, 0x68, 0x62, 0x69, 0x5f, 0x13, 0x4b, 0x7b, 0xc8, 0xc9, 0x43, 0x3d,
   275  	0xfc, 0x09, 0x00, 0x00, 0xff, 0xff, 0x11, 0xb7, 0x21, 0x8a, 0xbe, 0x02, 0x00, 0x00,
   276  }
   277  
   278  // Reference imports to suppress errors if they are not otherwise used.
   279  var _ context.Context
   280  var _ grpc.ClientConn
   281  
   282  // This is a compile-time assertion to ensure that this generated file
   283  // is compatible with the grpc package it is being compiled against.
   284  const _ = grpc.SupportPackageIsVersion4
   285  
   286  // NetconfSessionsClient is the client API for NetconfSessions service.
   287  //
   288  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   289  type NetconfSessionsClient interface {
   290  	List(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
   291  	Watch(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (NetconfSessions_WatchClient, error)
   292  }
   293  
   294  type netconfSessionsClient struct {
   295  	cc *grpc.ClientConn
   296  }
   297  
   298  func NewNetconfSessionsClient(cc *grpc.ClientConn) NetconfSessionsClient {
   299  	return &netconfSessionsClient{cc}
   300  }
   301  
   302  func (c *netconfSessionsClient) List(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
   303  	out := new(GetResponse)
   304  	err := c.cc.Invoke(ctx, "/onos.o1t.NetconfSessions/List", in, out, opts...)
   305  	if err != nil {
   306  		return nil, err
   307  	}
   308  	return out, nil
   309  }
   310  
   311  func (c *netconfSessionsClient) Watch(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (NetconfSessions_WatchClient, error) {
   312  	stream, err := c.cc.NewStream(ctx, &_NetconfSessions_serviceDesc.Streams[0], "/onos.o1t.NetconfSessions/Watch", opts...)
   313  	if err != nil {
   314  		return nil, err
   315  	}
   316  	x := &netconfSessionsWatchClient{stream}
   317  	if err := x.ClientStream.SendMsg(in); err != nil {
   318  		return nil, err
   319  	}
   320  	if err := x.ClientStream.CloseSend(); err != nil {
   321  		return nil, err
   322  	}
   323  	return x, nil
   324  }
   325  
   326  type NetconfSessions_WatchClient interface {
   327  	Recv() (*GetResponse, error)
   328  	grpc.ClientStream
   329  }
   330  
   331  type netconfSessionsWatchClient struct {
   332  	grpc.ClientStream
   333  }
   334  
   335  func (x *netconfSessionsWatchClient) Recv() (*GetResponse, error) {
   336  	m := new(GetResponse)
   337  	if err := x.ClientStream.RecvMsg(m); err != nil {
   338  		return nil, err
   339  	}
   340  	return m, nil
   341  }
   342  
   343  // NetconfSessionsServer is the server API for NetconfSessions service.
   344  type NetconfSessionsServer interface {
   345  	List(context.Context, *GetRequest) (*GetResponse, error)
   346  	Watch(*GetRequest, NetconfSessions_WatchServer) error
   347  }
   348  
   349  // UnimplementedNetconfSessionsServer can be embedded to have forward compatible implementations.
   350  type UnimplementedNetconfSessionsServer struct {
   351  }
   352  
   353  func (*UnimplementedNetconfSessionsServer) List(ctx context.Context, req *GetRequest) (*GetResponse, error) {
   354  	return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
   355  }
   356  func (*UnimplementedNetconfSessionsServer) Watch(req *GetRequest, srv NetconfSessions_WatchServer) error {
   357  	return status.Errorf(codes.Unimplemented, "method Watch not implemented")
   358  }
   359  
   360  func RegisterNetconfSessionsServer(s *grpc.Server, srv NetconfSessionsServer) {
   361  	s.RegisterService(&_NetconfSessions_serviceDesc, srv)
   362  }
   363  
   364  func _NetconfSessions_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   365  	in := new(GetRequest)
   366  	if err := dec(in); err != nil {
   367  		return nil, err
   368  	}
   369  	if interceptor == nil {
   370  		return srv.(NetconfSessionsServer).List(ctx, in)
   371  	}
   372  	info := &grpc.UnaryServerInfo{
   373  		Server:     srv,
   374  		FullMethod: "/onos.o1t.NetconfSessions/List",
   375  	}
   376  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   377  		return srv.(NetconfSessionsServer).List(ctx, req.(*GetRequest))
   378  	}
   379  	return interceptor(ctx, in, info, handler)
   380  }
   381  
   382  func _NetconfSessions_Watch_Handler(srv interface{}, stream grpc.ServerStream) error {
   383  	m := new(GetRequest)
   384  	if err := stream.RecvMsg(m); err != nil {
   385  		return err
   386  	}
   387  	return srv.(NetconfSessionsServer).Watch(m, &netconfSessionsWatchServer{stream})
   388  }
   389  
   390  type NetconfSessions_WatchServer interface {
   391  	Send(*GetResponse) error
   392  	grpc.ServerStream
   393  }
   394  
   395  type netconfSessionsWatchServer struct {
   396  	grpc.ServerStream
   397  }
   398  
   399  func (x *netconfSessionsWatchServer) Send(m *GetResponse) error {
   400  	return x.ServerStream.SendMsg(m)
   401  }
   402  
   403  var _NetconfSessions_serviceDesc = grpc.ServiceDesc{
   404  	ServiceName: "onos.o1t.NetconfSessions",
   405  	HandlerType: (*NetconfSessionsServer)(nil),
   406  	Methods: []grpc.MethodDesc{
   407  		{
   408  			MethodName: "List",
   409  			Handler:    _NetconfSessions_List_Handler,
   410  		},
   411  	},
   412  	Streams: []grpc.StreamDesc{
   413  		{
   414  			StreamName:    "Watch",
   415  			Handler:       _NetconfSessions_Watch_Handler,
   416  			ServerStreams: true,
   417  		},
   418  	},
   419  	Metadata: "onos/o1t/o1t.proto",
   420  }
   421  
   422  func (m *GetRequest) Marshal() (dAtA []byte, err error) {
   423  	size := m.Size()
   424  	dAtA = make([]byte, size)
   425  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   426  	if err != nil {
   427  		return nil, err
   428  	}
   429  	return dAtA[:n], nil
   430  }
   431  
   432  func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) {
   433  	size := m.Size()
   434  	return m.MarshalToSizedBuffer(dAtA[:size])
   435  }
   436  
   437  func (m *GetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   438  	i := len(dAtA)
   439  	_ = i
   440  	var l int
   441  	_ = l
   442  	return len(dAtA) - i, nil
   443  }
   444  
   445  func (m *GetResponse) Marshal() (dAtA []byte, err error) {
   446  	size := m.Size()
   447  	dAtA = make([]byte, size)
   448  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   449  	if err != nil {
   450  		return nil, err
   451  	}
   452  	return dAtA[:n], nil
   453  }
   454  
   455  func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) {
   456  	size := m.Size()
   457  	return m.MarshalToSizedBuffer(dAtA[:size])
   458  }
   459  
   460  func (m *GetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   461  	i := len(dAtA)
   462  	_ = i
   463  	var l int
   464  	_ = l
   465  	if len(m.Sessions) > 0 {
   466  		for k := range m.Sessions {
   467  			v := m.Sessions[k]
   468  			baseI := i
   469  			if v != nil {
   470  				{
   471  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
   472  					if err != nil {
   473  						return 0, err
   474  					}
   475  					i -= size
   476  					i = encodeVarintO1T(dAtA, i, uint64(size))
   477  				}
   478  				i--
   479  				dAtA[i] = 0x12
   480  			}
   481  			i -= len(k)
   482  			copy(dAtA[i:], k)
   483  			i = encodeVarintO1T(dAtA, i, uint64(len(k)))
   484  			i--
   485  			dAtA[i] = 0xa
   486  			i = encodeVarintO1T(dAtA, i, uint64(baseI-i))
   487  			i--
   488  			dAtA[i] = 0xa
   489  		}
   490  	}
   491  	return len(dAtA) - i, nil
   492  }
   493  
   494  func (m *Session) Marshal() (dAtA []byte, err error) {
   495  	size := m.Size()
   496  	dAtA = make([]byte, size)
   497  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   498  	if err != nil {
   499  		return nil, err
   500  	}
   501  	return dAtA[:n], nil
   502  }
   503  
   504  func (m *Session) MarshalTo(dAtA []byte) (int, error) {
   505  	size := m.Size()
   506  	return m.MarshalToSizedBuffer(dAtA[:size])
   507  }
   508  
   509  func (m *Session) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   510  	i := len(dAtA)
   511  	_ = i
   512  	var l int
   513  	_ = l
   514  	if len(m.Operations) > 0 {
   515  		for k := range m.Operations {
   516  			v := m.Operations[k]
   517  			baseI := i
   518  			if v != nil {
   519  				{
   520  					size, err := v.MarshalToSizedBuffer(dAtA[:i])
   521  					if err != nil {
   522  						return 0, err
   523  					}
   524  					i -= size
   525  					i = encodeVarintO1T(dAtA, i, uint64(size))
   526  				}
   527  				i--
   528  				dAtA[i] = 0x12
   529  			}
   530  			i -= len(k)
   531  			copy(dAtA[i:], k)
   532  			i = encodeVarintO1T(dAtA, i, uint64(len(k)))
   533  			i--
   534  			dAtA[i] = 0xa
   535  			i = encodeVarintO1T(dAtA, i, uint64(baseI-i))
   536  			i--
   537  			dAtA[i] = 0x1a
   538  		}
   539  	}
   540  	if m.Alive {
   541  		i--
   542  		if m.Alive {
   543  			dAtA[i] = 1
   544  		} else {
   545  			dAtA[i] = 0
   546  		}
   547  		i--
   548  		dAtA[i] = 0x10
   549  	}
   550  	if len(m.SessionID) > 0 {
   551  		i -= len(m.SessionID)
   552  		copy(dAtA[i:], m.SessionID)
   553  		i = encodeVarintO1T(dAtA, i, uint64(len(m.SessionID)))
   554  		i--
   555  		dAtA[i] = 0xa
   556  	}
   557  	return len(dAtA) - i, nil
   558  }
   559  
   560  func (m *Operation) Marshal() (dAtA []byte, err error) {
   561  	size := m.Size()
   562  	dAtA = make([]byte, size)
   563  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   564  	if err != nil {
   565  		return nil, err
   566  	}
   567  	return dAtA[:n], nil
   568  }
   569  
   570  func (m *Operation) MarshalTo(dAtA []byte) (int, error) {
   571  	size := m.Size()
   572  	return m.MarshalToSizedBuffer(dAtA[:size])
   573  }
   574  
   575  func (m *Operation) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   576  	i := len(dAtA)
   577  	_ = i
   578  	var l int
   579  	_ = l
   580  	if m.Status {
   581  		i--
   582  		if m.Status {
   583  			dAtA[i] = 1
   584  		} else {
   585  			dAtA[i] = 0
   586  		}
   587  		i--
   588  		dAtA[i] = 0x20
   589  	}
   590  	if len(m.Namespace) > 0 {
   591  		i -= len(m.Namespace)
   592  		copy(dAtA[i:], m.Namespace)
   593  		i = encodeVarintO1T(dAtA, i, uint64(len(m.Namespace)))
   594  		i--
   595  		dAtA[i] = 0x1a
   596  	}
   597  	if m.Timestamp != 0 {
   598  		i = encodeVarintO1T(dAtA, i, uint64(m.Timestamp))
   599  		i--
   600  		dAtA[i] = 0x10
   601  	}
   602  	if len(m.Name) > 0 {
   603  		i -= len(m.Name)
   604  		copy(dAtA[i:], m.Name)
   605  		i = encodeVarintO1T(dAtA, i, uint64(len(m.Name)))
   606  		i--
   607  		dAtA[i] = 0xa
   608  	}
   609  	return len(dAtA) - i, nil
   610  }
   611  
   612  func encodeVarintO1T(dAtA []byte, offset int, v uint64) int {
   613  	offset -= sovO1T(v)
   614  	base := offset
   615  	for v >= 1<<7 {
   616  		dAtA[offset] = uint8(v&0x7f | 0x80)
   617  		v >>= 7
   618  		offset++
   619  	}
   620  	dAtA[offset] = uint8(v)
   621  	return base
   622  }
   623  func (m *GetRequest) Size() (n int) {
   624  	if m == nil {
   625  		return 0
   626  	}
   627  	var l int
   628  	_ = l
   629  	return n
   630  }
   631  
   632  func (m *GetResponse) Size() (n int) {
   633  	if m == nil {
   634  		return 0
   635  	}
   636  	var l int
   637  	_ = l
   638  	if len(m.Sessions) > 0 {
   639  		for k, v := range m.Sessions {
   640  			_ = k
   641  			_ = v
   642  			l = 0
   643  			if v != nil {
   644  				l = v.Size()
   645  				l += 1 + sovO1T(uint64(l))
   646  			}
   647  			mapEntrySize := 1 + len(k) + sovO1T(uint64(len(k))) + l
   648  			n += mapEntrySize + 1 + sovO1T(uint64(mapEntrySize))
   649  		}
   650  	}
   651  	return n
   652  }
   653  
   654  func (m *Session) Size() (n int) {
   655  	if m == nil {
   656  		return 0
   657  	}
   658  	var l int
   659  	_ = l
   660  	l = len(m.SessionID)
   661  	if l > 0 {
   662  		n += 1 + l + sovO1T(uint64(l))
   663  	}
   664  	if m.Alive {
   665  		n += 2
   666  	}
   667  	if len(m.Operations) > 0 {
   668  		for k, v := range m.Operations {
   669  			_ = k
   670  			_ = v
   671  			l = 0
   672  			if v != nil {
   673  				l = v.Size()
   674  				l += 1 + sovO1T(uint64(l))
   675  			}
   676  			mapEntrySize := 1 + len(k) + sovO1T(uint64(len(k))) + l
   677  			n += mapEntrySize + 1 + sovO1T(uint64(mapEntrySize))
   678  		}
   679  	}
   680  	return n
   681  }
   682  
   683  func (m *Operation) Size() (n int) {
   684  	if m == nil {
   685  		return 0
   686  	}
   687  	var l int
   688  	_ = l
   689  	l = len(m.Name)
   690  	if l > 0 {
   691  		n += 1 + l + sovO1T(uint64(l))
   692  	}
   693  	if m.Timestamp != 0 {
   694  		n += 1 + sovO1T(uint64(m.Timestamp))
   695  	}
   696  	l = len(m.Namespace)
   697  	if l > 0 {
   698  		n += 1 + l + sovO1T(uint64(l))
   699  	}
   700  	if m.Status {
   701  		n += 2
   702  	}
   703  	return n
   704  }
   705  
   706  func sovO1T(x uint64) (n int) {
   707  	return (math_bits.Len64(x|1) + 6) / 7
   708  }
   709  func sozO1T(x uint64) (n int) {
   710  	return sovO1T(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   711  }
   712  func (m *GetRequest) Unmarshal(dAtA []byte) error {
   713  	l := len(dAtA)
   714  	iNdEx := 0
   715  	for iNdEx < l {
   716  		preIndex := iNdEx
   717  		var wire uint64
   718  		for shift := uint(0); ; shift += 7 {
   719  			if shift >= 64 {
   720  				return ErrIntOverflowO1T
   721  			}
   722  			if iNdEx >= l {
   723  				return io.ErrUnexpectedEOF
   724  			}
   725  			b := dAtA[iNdEx]
   726  			iNdEx++
   727  			wire |= uint64(b&0x7F) << shift
   728  			if b < 0x80 {
   729  				break
   730  			}
   731  		}
   732  		fieldNum := int32(wire >> 3)
   733  		wireType := int(wire & 0x7)
   734  		if wireType == 4 {
   735  			return fmt.Errorf("proto: GetRequest: wiretype end group for non-group")
   736  		}
   737  		if fieldNum <= 0 {
   738  			return fmt.Errorf("proto: GetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   739  		}
   740  		switch fieldNum {
   741  		default:
   742  			iNdEx = preIndex
   743  			skippy, err := skipO1T(dAtA[iNdEx:])
   744  			if err != nil {
   745  				return err
   746  			}
   747  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   748  				return ErrInvalidLengthO1T
   749  			}
   750  			if (iNdEx + skippy) > l {
   751  				return io.ErrUnexpectedEOF
   752  			}
   753  			iNdEx += skippy
   754  		}
   755  	}
   756  
   757  	if iNdEx > l {
   758  		return io.ErrUnexpectedEOF
   759  	}
   760  	return nil
   761  }
   762  func (m *GetResponse) Unmarshal(dAtA []byte) error {
   763  	l := len(dAtA)
   764  	iNdEx := 0
   765  	for iNdEx < l {
   766  		preIndex := iNdEx
   767  		var wire uint64
   768  		for shift := uint(0); ; shift += 7 {
   769  			if shift >= 64 {
   770  				return ErrIntOverflowO1T
   771  			}
   772  			if iNdEx >= l {
   773  				return io.ErrUnexpectedEOF
   774  			}
   775  			b := dAtA[iNdEx]
   776  			iNdEx++
   777  			wire |= uint64(b&0x7F) << shift
   778  			if b < 0x80 {
   779  				break
   780  			}
   781  		}
   782  		fieldNum := int32(wire >> 3)
   783  		wireType := int(wire & 0x7)
   784  		if wireType == 4 {
   785  			return fmt.Errorf("proto: GetResponse: wiretype end group for non-group")
   786  		}
   787  		if fieldNum <= 0 {
   788  			return fmt.Errorf("proto: GetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   789  		}
   790  		switch fieldNum {
   791  		case 1:
   792  			if wireType != 2 {
   793  				return fmt.Errorf("proto: wrong wireType = %d for field Sessions", wireType)
   794  			}
   795  			var msglen int
   796  			for shift := uint(0); ; shift += 7 {
   797  				if shift >= 64 {
   798  					return ErrIntOverflowO1T
   799  				}
   800  				if iNdEx >= l {
   801  					return io.ErrUnexpectedEOF
   802  				}
   803  				b := dAtA[iNdEx]
   804  				iNdEx++
   805  				msglen |= int(b&0x7F) << shift
   806  				if b < 0x80 {
   807  					break
   808  				}
   809  			}
   810  			if msglen < 0 {
   811  				return ErrInvalidLengthO1T
   812  			}
   813  			postIndex := iNdEx + msglen
   814  			if postIndex < 0 {
   815  				return ErrInvalidLengthO1T
   816  			}
   817  			if postIndex > l {
   818  				return io.ErrUnexpectedEOF
   819  			}
   820  			if m.Sessions == nil {
   821  				m.Sessions = make(map[string]*Session)
   822  			}
   823  			var mapkey string
   824  			var mapvalue *Session
   825  			for iNdEx < postIndex {
   826  				entryPreIndex := iNdEx
   827  				var wire uint64
   828  				for shift := uint(0); ; shift += 7 {
   829  					if shift >= 64 {
   830  						return ErrIntOverflowO1T
   831  					}
   832  					if iNdEx >= l {
   833  						return io.ErrUnexpectedEOF
   834  					}
   835  					b := dAtA[iNdEx]
   836  					iNdEx++
   837  					wire |= uint64(b&0x7F) << shift
   838  					if b < 0x80 {
   839  						break
   840  					}
   841  				}
   842  				fieldNum := int32(wire >> 3)
   843  				if fieldNum == 1 {
   844  					var stringLenmapkey uint64
   845  					for shift := uint(0); ; shift += 7 {
   846  						if shift >= 64 {
   847  							return ErrIntOverflowO1T
   848  						}
   849  						if iNdEx >= l {
   850  							return io.ErrUnexpectedEOF
   851  						}
   852  						b := dAtA[iNdEx]
   853  						iNdEx++
   854  						stringLenmapkey |= uint64(b&0x7F) << shift
   855  						if b < 0x80 {
   856  							break
   857  						}
   858  					}
   859  					intStringLenmapkey := int(stringLenmapkey)
   860  					if intStringLenmapkey < 0 {
   861  						return ErrInvalidLengthO1T
   862  					}
   863  					postStringIndexmapkey := iNdEx + intStringLenmapkey
   864  					if postStringIndexmapkey < 0 {
   865  						return ErrInvalidLengthO1T
   866  					}
   867  					if postStringIndexmapkey > l {
   868  						return io.ErrUnexpectedEOF
   869  					}
   870  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
   871  					iNdEx = postStringIndexmapkey
   872  				} else if fieldNum == 2 {
   873  					var mapmsglen int
   874  					for shift := uint(0); ; shift += 7 {
   875  						if shift >= 64 {
   876  							return ErrIntOverflowO1T
   877  						}
   878  						if iNdEx >= l {
   879  							return io.ErrUnexpectedEOF
   880  						}
   881  						b := dAtA[iNdEx]
   882  						iNdEx++
   883  						mapmsglen |= int(b&0x7F) << shift
   884  						if b < 0x80 {
   885  							break
   886  						}
   887  					}
   888  					if mapmsglen < 0 {
   889  						return ErrInvalidLengthO1T
   890  					}
   891  					postmsgIndex := iNdEx + mapmsglen
   892  					if postmsgIndex < 0 {
   893  						return ErrInvalidLengthO1T
   894  					}
   895  					if postmsgIndex > l {
   896  						return io.ErrUnexpectedEOF
   897  					}
   898  					mapvalue = &Session{}
   899  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
   900  						return err
   901  					}
   902  					iNdEx = postmsgIndex
   903  				} else {
   904  					iNdEx = entryPreIndex
   905  					skippy, err := skipO1T(dAtA[iNdEx:])
   906  					if err != nil {
   907  						return err
   908  					}
   909  					if (skippy < 0) || (iNdEx+skippy) < 0 {
   910  						return ErrInvalidLengthO1T
   911  					}
   912  					if (iNdEx + skippy) > postIndex {
   913  						return io.ErrUnexpectedEOF
   914  					}
   915  					iNdEx += skippy
   916  				}
   917  			}
   918  			m.Sessions[mapkey] = mapvalue
   919  			iNdEx = postIndex
   920  		default:
   921  			iNdEx = preIndex
   922  			skippy, err := skipO1T(dAtA[iNdEx:])
   923  			if err != nil {
   924  				return err
   925  			}
   926  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   927  				return ErrInvalidLengthO1T
   928  			}
   929  			if (iNdEx + skippy) > l {
   930  				return io.ErrUnexpectedEOF
   931  			}
   932  			iNdEx += skippy
   933  		}
   934  	}
   935  
   936  	if iNdEx > l {
   937  		return io.ErrUnexpectedEOF
   938  	}
   939  	return nil
   940  }
   941  func (m *Session) Unmarshal(dAtA []byte) error {
   942  	l := len(dAtA)
   943  	iNdEx := 0
   944  	for iNdEx < l {
   945  		preIndex := iNdEx
   946  		var wire uint64
   947  		for shift := uint(0); ; shift += 7 {
   948  			if shift >= 64 {
   949  				return ErrIntOverflowO1T
   950  			}
   951  			if iNdEx >= l {
   952  				return io.ErrUnexpectedEOF
   953  			}
   954  			b := dAtA[iNdEx]
   955  			iNdEx++
   956  			wire |= uint64(b&0x7F) << shift
   957  			if b < 0x80 {
   958  				break
   959  			}
   960  		}
   961  		fieldNum := int32(wire >> 3)
   962  		wireType := int(wire & 0x7)
   963  		if wireType == 4 {
   964  			return fmt.Errorf("proto: Session: wiretype end group for non-group")
   965  		}
   966  		if fieldNum <= 0 {
   967  			return fmt.Errorf("proto: Session: illegal tag %d (wire type %d)", fieldNum, wire)
   968  		}
   969  		switch fieldNum {
   970  		case 1:
   971  			if wireType != 2 {
   972  				return fmt.Errorf("proto: wrong wireType = %d for field SessionID", wireType)
   973  			}
   974  			var stringLen uint64
   975  			for shift := uint(0); ; shift += 7 {
   976  				if shift >= 64 {
   977  					return ErrIntOverflowO1T
   978  				}
   979  				if iNdEx >= l {
   980  					return io.ErrUnexpectedEOF
   981  				}
   982  				b := dAtA[iNdEx]
   983  				iNdEx++
   984  				stringLen |= uint64(b&0x7F) << shift
   985  				if b < 0x80 {
   986  					break
   987  				}
   988  			}
   989  			intStringLen := int(stringLen)
   990  			if intStringLen < 0 {
   991  				return ErrInvalidLengthO1T
   992  			}
   993  			postIndex := iNdEx + intStringLen
   994  			if postIndex < 0 {
   995  				return ErrInvalidLengthO1T
   996  			}
   997  			if postIndex > l {
   998  				return io.ErrUnexpectedEOF
   999  			}
  1000  			m.SessionID = string(dAtA[iNdEx:postIndex])
  1001  			iNdEx = postIndex
  1002  		case 2:
  1003  			if wireType != 0 {
  1004  				return fmt.Errorf("proto: wrong wireType = %d for field Alive", wireType)
  1005  			}
  1006  			var v int
  1007  			for shift := uint(0); ; shift += 7 {
  1008  				if shift >= 64 {
  1009  					return ErrIntOverflowO1T
  1010  				}
  1011  				if iNdEx >= l {
  1012  					return io.ErrUnexpectedEOF
  1013  				}
  1014  				b := dAtA[iNdEx]
  1015  				iNdEx++
  1016  				v |= int(b&0x7F) << shift
  1017  				if b < 0x80 {
  1018  					break
  1019  				}
  1020  			}
  1021  			m.Alive = bool(v != 0)
  1022  		case 3:
  1023  			if wireType != 2 {
  1024  				return fmt.Errorf("proto: wrong wireType = %d for field Operations", wireType)
  1025  			}
  1026  			var msglen int
  1027  			for shift := uint(0); ; shift += 7 {
  1028  				if shift >= 64 {
  1029  					return ErrIntOverflowO1T
  1030  				}
  1031  				if iNdEx >= l {
  1032  					return io.ErrUnexpectedEOF
  1033  				}
  1034  				b := dAtA[iNdEx]
  1035  				iNdEx++
  1036  				msglen |= int(b&0x7F) << shift
  1037  				if b < 0x80 {
  1038  					break
  1039  				}
  1040  			}
  1041  			if msglen < 0 {
  1042  				return ErrInvalidLengthO1T
  1043  			}
  1044  			postIndex := iNdEx + msglen
  1045  			if postIndex < 0 {
  1046  				return ErrInvalidLengthO1T
  1047  			}
  1048  			if postIndex > l {
  1049  				return io.ErrUnexpectedEOF
  1050  			}
  1051  			if m.Operations == nil {
  1052  				m.Operations = make(map[string]*Operation)
  1053  			}
  1054  			var mapkey string
  1055  			var mapvalue *Operation
  1056  			for iNdEx < postIndex {
  1057  				entryPreIndex := iNdEx
  1058  				var wire uint64
  1059  				for shift := uint(0); ; shift += 7 {
  1060  					if shift >= 64 {
  1061  						return ErrIntOverflowO1T
  1062  					}
  1063  					if iNdEx >= l {
  1064  						return io.ErrUnexpectedEOF
  1065  					}
  1066  					b := dAtA[iNdEx]
  1067  					iNdEx++
  1068  					wire |= uint64(b&0x7F) << shift
  1069  					if b < 0x80 {
  1070  						break
  1071  					}
  1072  				}
  1073  				fieldNum := int32(wire >> 3)
  1074  				if fieldNum == 1 {
  1075  					var stringLenmapkey uint64
  1076  					for shift := uint(0); ; shift += 7 {
  1077  						if shift >= 64 {
  1078  							return ErrIntOverflowO1T
  1079  						}
  1080  						if iNdEx >= l {
  1081  							return io.ErrUnexpectedEOF
  1082  						}
  1083  						b := dAtA[iNdEx]
  1084  						iNdEx++
  1085  						stringLenmapkey |= uint64(b&0x7F) << shift
  1086  						if b < 0x80 {
  1087  							break
  1088  						}
  1089  					}
  1090  					intStringLenmapkey := int(stringLenmapkey)
  1091  					if intStringLenmapkey < 0 {
  1092  						return ErrInvalidLengthO1T
  1093  					}
  1094  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  1095  					if postStringIndexmapkey < 0 {
  1096  						return ErrInvalidLengthO1T
  1097  					}
  1098  					if postStringIndexmapkey > l {
  1099  						return io.ErrUnexpectedEOF
  1100  					}
  1101  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  1102  					iNdEx = postStringIndexmapkey
  1103  				} else if fieldNum == 2 {
  1104  					var mapmsglen int
  1105  					for shift := uint(0); ; shift += 7 {
  1106  						if shift >= 64 {
  1107  							return ErrIntOverflowO1T
  1108  						}
  1109  						if iNdEx >= l {
  1110  							return io.ErrUnexpectedEOF
  1111  						}
  1112  						b := dAtA[iNdEx]
  1113  						iNdEx++
  1114  						mapmsglen |= int(b&0x7F) << shift
  1115  						if b < 0x80 {
  1116  							break
  1117  						}
  1118  					}
  1119  					if mapmsglen < 0 {
  1120  						return ErrInvalidLengthO1T
  1121  					}
  1122  					postmsgIndex := iNdEx + mapmsglen
  1123  					if postmsgIndex < 0 {
  1124  						return ErrInvalidLengthO1T
  1125  					}
  1126  					if postmsgIndex > l {
  1127  						return io.ErrUnexpectedEOF
  1128  					}
  1129  					mapvalue = &Operation{}
  1130  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  1131  						return err
  1132  					}
  1133  					iNdEx = postmsgIndex
  1134  				} else {
  1135  					iNdEx = entryPreIndex
  1136  					skippy, err := skipO1T(dAtA[iNdEx:])
  1137  					if err != nil {
  1138  						return err
  1139  					}
  1140  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  1141  						return ErrInvalidLengthO1T
  1142  					}
  1143  					if (iNdEx + skippy) > postIndex {
  1144  						return io.ErrUnexpectedEOF
  1145  					}
  1146  					iNdEx += skippy
  1147  				}
  1148  			}
  1149  			m.Operations[mapkey] = mapvalue
  1150  			iNdEx = postIndex
  1151  		default:
  1152  			iNdEx = preIndex
  1153  			skippy, err := skipO1T(dAtA[iNdEx:])
  1154  			if err != nil {
  1155  				return err
  1156  			}
  1157  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1158  				return ErrInvalidLengthO1T
  1159  			}
  1160  			if (iNdEx + skippy) > l {
  1161  				return io.ErrUnexpectedEOF
  1162  			}
  1163  			iNdEx += skippy
  1164  		}
  1165  	}
  1166  
  1167  	if iNdEx > l {
  1168  		return io.ErrUnexpectedEOF
  1169  	}
  1170  	return nil
  1171  }
  1172  func (m *Operation) Unmarshal(dAtA []byte) error {
  1173  	l := len(dAtA)
  1174  	iNdEx := 0
  1175  	for iNdEx < l {
  1176  		preIndex := iNdEx
  1177  		var wire uint64
  1178  		for shift := uint(0); ; shift += 7 {
  1179  			if shift >= 64 {
  1180  				return ErrIntOverflowO1T
  1181  			}
  1182  			if iNdEx >= l {
  1183  				return io.ErrUnexpectedEOF
  1184  			}
  1185  			b := dAtA[iNdEx]
  1186  			iNdEx++
  1187  			wire |= uint64(b&0x7F) << shift
  1188  			if b < 0x80 {
  1189  				break
  1190  			}
  1191  		}
  1192  		fieldNum := int32(wire >> 3)
  1193  		wireType := int(wire & 0x7)
  1194  		if wireType == 4 {
  1195  			return fmt.Errorf("proto: Operation: wiretype end group for non-group")
  1196  		}
  1197  		if fieldNum <= 0 {
  1198  			return fmt.Errorf("proto: Operation: illegal tag %d (wire type %d)", fieldNum, wire)
  1199  		}
  1200  		switch fieldNum {
  1201  		case 1:
  1202  			if wireType != 2 {
  1203  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  1204  			}
  1205  			var stringLen uint64
  1206  			for shift := uint(0); ; shift += 7 {
  1207  				if shift >= 64 {
  1208  					return ErrIntOverflowO1T
  1209  				}
  1210  				if iNdEx >= l {
  1211  					return io.ErrUnexpectedEOF
  1212  				}
  1213  				b := dAtA[iNdEx]
  1214  				iNdEx++
  1215  				stringLen |= uint64(b&0x7F) << shift
  1216  				if b < 0x80 {
  1217  					break
  1218  				}
  1219  			}
  1220  			intStringLen := int(stringLen)
  1221  			if intStringLen < 0 {
  1222  				return ErrInvalidLengthO1T
  1223  			}
  1224  			postIndex := iNdEx + intStringLen
  1225  			if postIndex < 0 {
  1226  				return ErrInvalidLengthO1T
  1227  			}
  1228  			if postIndex > l {
  1229  				return io.ErrUnexpectedEOF
  1230  			}
  1231  			m.Name = string(dAtA[iNdEx:postIndex])
  1232  			iNdEx = postIndex
  1233  		case 2:
  1234  			if wireType != 0 {
  1235  				return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  1236  			}
  1237  			m.Timestamp = 0
  1238  			for shift := uint(0); ; shift += 7 {
  1239  				if shift >= 64 {
  1240  					return ErrIntOverflowO1T
  1241  				}
  1242  				if iNdEx >= l {
  1243  					return io.ErrUnexpectedEOF
  1244  				}
  1245  				b := dAtA[iNdEx]
  1246  				iNdEx++
  1247  				m.Timestamp |= uint64(b&0x7F) << shift
  1248  				if b < 0x80 {
  1249  					break
  1250  				}
  1251  			}
  1252  		case 3:
  1253  			if wireType != 2 {
  1254  				return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
  1255  			}
  1256  			var stringLen uint64
  1257  			for shift := uint(0); ; shift += 7 {
  1258  				if shift >= 64 {
  1259  					return ErrIntOverflowO1T
  1260  				}
  1261  				if iNdEx >= l {
  1262  					return io.ErrUnexpectedEOF
  1263  				}
  1264  				b := dAtA[iNdEx]
  1265  				iNdEx++
  1266  				stringLen |= uint64(b&0x7F) << shift
  1267  				if b < 0x80 {
  1268  					break
  1269  				}
  1270  			}
  1271  			intStringLen := int(stringLen)
  1272  			if intStringLen < 0 {
  1273  				return ErrInvalidLengthO1T
  1274  			}
  1275  			postIndex := iNdEx + intStringLen
  1276  			if postIndex < 0 {
  1277  				return ErrInvalidLengthO1T
  1278  			}
  1279  			if postIndex > l {
  1280  				return io.ErrUnexpectedEOF
  1281  			}
  1282  			m.Namespace = string(dAtA[iNdEx:postIndex])
  1283  			iNdEx = postIndex
  1284  		case 4:
  1285  			if wireType != 0 {
  1286  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  1287  			}
  1288  			var v int
  1289  			for shift := uint(0); ; shift += 7 {
  1290  				if shift >= 64 {
  1291  					return ErrIntOverflowO1T
  1292  				}
  1293  				if iNdEx >= l {
  1294  					return io.ErrUnexpectedEOF
  1295  				}
  1296  				b := dAtA[iNdEx]
  1297  				iNdEx++
  1298  				v |= int(b&0x7F) << shift
  1299  				if b < 0x80 {
  1300  					break
  1301  				}
  1302  			}
  1303  			m.Status = bool(v != 0)
  1304  		default:
  1305  			iNdEx = preIndex
  1306  			skippy, err := skipO1T(dAtA[iNdEx:])
  1307  			if err != nil {
  1308  				return err
  1309  			}
  1310  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1311  				return ErrInvalidLengthO1T
  1312  			}
  1313  			if (iNdEx + skippy) > l {
  1314  				return io.ErrUnexpectedEOF
  1315  			}
  1316  			iNdEx += skippy
  1317  		}
  1318  	}
  1319  
  1320  	if iNdEx > l {
  1321  		return io.ErrUnexpectedEOF
  1322  	}
  1323  	return nil
  1324  }
  1325  func skipO1T(dAtA []byte) (n int, err error) {
  1326  	l := len(dAtA)
  1327  	iNdEx := 0
  1328  	depth := 0
  1329  	for iNdEx < l {
  1330  		var wire uint64
  1331  		for shift := uint(0); ; shift += 7 {
  1332  			if shift >= 64 {
  1333  				return 0, ErrIntOverflowO1T
  1334  			}
  1335  			if iNdEx >= l {
  1336  				return 0, io.ErrUnexpectedEOF
  1337  			}
  1338  			b := dAtA[iNdEx]
  1339  			iNdEx++
  1340  			wire |= (uint64(b) & 0x7F) << shift
  1341  			if b < 0x80 {
  1342  				break
  1343  			}
  1344  		}
  1345  		wireType := int(wire & 0x7)
  1346  		switch wireType {
  1347  		case 0:
  1348  			for shift := uint(0); ; shift += 7 {
  1349  				if shift >= 64 {
  1350  					return 0, ErrIntOverflowO1T
  1351  				}
  1352  				if iNdEx >= l {
  1353  					return 0, io.ErrUnexpectedEOF
  1354  				}
  1355  				iNdEx++
  1356  				if dAtA[iNdEx-1] < 0x80 {
  1357  					break
  1358  				}
  1359  			}
  1360  		case 1:
  1361  			iNdEx += 8
  1362  		case 2:
  1363  			var length int
  1364  			for shift := uint(0); ; shift += 7 {
  1365  				if shift >= 64 {
  1366  					return 0, ErrIntOverflowO1T
  1367  				}
  1368  				if iNdEx >= l {
  1369  					return 0, io.ErrUnexpectedEOF
  1370  				}
  1371  				b := dAtA[iNdEx]
  1372  				iNdEx++
  1373  				length |= (int(b) & 0x7F) << shift
  1374  				if b < 0x80 {
  1375  					break
  1376  				}
  1377  			}
  1378  			if length < 0 {
  1379  				return 0, ErrInvalidLengthO1T
  1380  			}
  1381  			iNdEx += length
  1382  		case 3:
  1383  			depth++
  1384  		case 4:
  1385  			if depth == 0 {
  1386  				return 0, ErrUnexpectedEndOfGroupO1T
  1387  			}
  1388  			depth--
  1389  		case 5:
  1390  			iNdEx += 4
  1391  		default:
  1392  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1393  		}
  1394  		if iNdEx < 0 {
  1395  			return 0, ErrInvalidLengthO1T
  1396  		}
  1397  		if depth == 0 {
  1398  			return iNdEx, nil
  1399  		}
  1400  	}
  1401  	return 0, io.ErrUnexpectedEOF
  1402  }
  1403  
  1404  var (
  1405  	ErrInvalidLengthO1T        = fmt.Errorf("proto: negative length found during unmarshaling")
  1406  	ErrIntOverflowO1T          = fmt.Errorf("proto: integer overflow")
  1407  	ErrUnexpectedEndOfGroupO1T = fmt.Errorf("proto: unexpected end of group")
  1408  )