github.com/microsoft/moc@v0.17.1/rpc/common/moc_common_notification.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_common_notification.proto
     3  
     4  package common
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/golang/protobuf/proto"
     9  	wrappers "github.com/golang/protobuf/ptypes/wrappers"
    10  	math "math"
    11  )
    12  
    13  // Reference imports to suppress errors if they are not otherwise used.
    14  var _ = proto.Marshal
    15  var _ = fmt.Errorf
    16  var _ = math.Inf
    17  
    18  // This is a compile-time assertion to ensure that this generated file
    19  // is compatible with the proto package it is being compiled against.
    20  // A compilation error at this line likely means your copy of the
    21  // proto package needs to be updated.
    22  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    23  
    24  type Notification struct {
    25  	// Name of the entity sending notification
    26  	EntityName string `protobuf:"bytes,1,opt,name=entityName,proto3" json:"entityName,omitempty"`
    27  	// Type of operation that happened on the entity
    28  	Operation Operation `protobuf:"varint,2,opt,name=operation,proto3,enum=moc.Operation" json:"operation,omitempty"`
    29  	// Optional: Additional message that the entity would like to send
    30  	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
    31  	// Name of the parent Entity
    32  	ParentEntityName string `protobuf:"bytes,4,opt,name=parentEntityName,proto3" json:"parentEntityName,omitempty"`
    33  	// Optional flag to specify if the notification is async
    34  	Async bool `protobuf:"varint,5,opt,name=async,proto3" json:"async,omitempty"`
    35  	// Unique identifier for the notification
    36  	Id                   string   `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"`
    37  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    38  	XXX_unrecognized     []byte   `json:"-"`
    39  	XXX_sizecache        int32    `json:"-"`
    40  }
    41  
    42  func (m *Notification) Reset()         { *m = Notification{} }
    43  func (m *Notification) String() string { return proto.CompactTextString(m) }
    44  func (*Notification) ProtoMessage()    {}
    45  func (*Notification) Descriptor() ([]byte, []int) {
    46  	return fileDescriptor_d7c9519ae78bfcb0, []int{0}
    47  }
    48  
    49  func (m *Notification) XXX_Unmarshal(b []byte) error {
    50  	return xxx_messageInfo_Notification.Unmarshal(m, b)
    51  }
    52  func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    53  	return xxx_messageInfo_Notification.Marshal(b, m, deterministic)
    54  }
    55  func (m *Notification) XXX_Merge(src proto.Message) {
    56  	xxx_messageInfo_Notification.Merge(m, src)
    57  }
    58  func (m *Notification) XXX_Size() int {
    59  	return xxx_messageInfo_Notification.Size(m)
    60  }
    61  func (m *Notification) XXX_DiscardUnknown() {
    62  	xxx_messageInfo_Notification.DiscardUnknown(m)
    63  }
    64  
    65  var xxx_messageInfo_Notification proto.InternalMessageInfo
    66  
    67  func (m *Notification) GetEntityName() string {
    68  	if m != nil {
    69  		return m.EntityName
    70  	}
    71  	return ""
    72  }
    73  
    74  func (m *Notification) GetOperation() Operation {
    75  	if m != nil {
    76  		return m.Operation
    77  	}
    78  	return Operation_GET
    79  }
    80  
    81  func (m *Notification) GetMessage() string {
    82  	if m != nil {
    83  		return m.Message
    84  	}
    85  	return ""
    86  }
    87  
    88  func (m *Notification) GetParentEntityName() string {
    89  	if m != nil {
    90  		return m.ParentEntityName
    91  	}
    92  	return ""
    93  }
    94  
    95  func (m *Notification) GetAsync() bool {
    96  	if m != nil {
    97  		return m.Async
    98  	}
    99  	return false
   100  }
   101  
   102  func (m *Notification) GetId() string {
   103  	if m != nil {
   104  		return m.Id
   105  	}
   106  	return ""
   107  }
   108  
   109  type NotificationResponse struct {
   110  	Notifications        []*Notification     `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"`
   111  	Result               *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
   112  	Error                string              `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
   113  	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
   114  	XXX_unrecognized     []byte              `json:"-"`
   115  	XXX_sizecache        int32               `json:"-"`
   116  }
   117  
   118  func (m *NotificationResponse) Reset()         { *m = NotificationResponse{} }
   119  func (m *NotificationResponse) String() string { return proto.CompactTextString(m) }
   120  func (*NotificationResponse) ProtoMessage()    {}
   121  func (*NotificationResponse) Descriptor() ([]byte, []int) {
   122  	return fileDescriptor_d7c9519ae78bfcb0, []int{1}
   123  }
   124  
   125  func (m *NotificationResponse) XXX_Unmarshal(b []byte) error {
   126  	return xxx_messageInfo_NotificationResponse.Unmarshal(m, b)
   127  }
   128  func (m *NotificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   129  	return xxx_messageInfo_NotificationResponse.Marshal(b, m, deterministic)
   130  }
   131  func (m *NotificationResponse) XXX_Merge(src proto.Message) {
   132  	xxx_messageInfo_NotificationResponse.Merge(m, src)
   133  }
   134  func (m *NotificationResponse) XXX_Size() int {
   135  	return xxx_messageInfo_NotificationResponse.Size(m)
   136  }
   137  func (m *NotificationResponse) XXX_DiscardUnknown() {
   138  	xxx_messageInfo_NotificationResponse.DiscardUnknown(m)
   139  }
   140  
   141  var xxx_messageInfo_NotificationResponse proto.InternalMessageInfo
   142  
   143  func (m *NotificationResponse) GetNotifications() []*Notification {
   144  	if m != nil {
   145  		return m.Notifications
   146  	}
   147  	return nil
   148  }
   149  
   150  func (m *NotificationResponse) GetResult() *wrappers.BoolValue {
   151  	if m != nil {
   152  		return m.Result
   153  	}
   154  	return nil
   155  }
   156  
   157  func (m *NotificationResponse) GetError() string {
   158  	if m != nil {
   159  		return m.Error
   160  	}
   161  	return ""
   162  }
   163  
   164  func init() {
   165  	proto.RegisterType((*Notification)(nil), "moc.Notification")
   166  	proto.RegisterType((*NotificationResponse)(nil), "moc.NotificationResponse")
   167  }
   168  
   169  func init() { proto.RegisterFile("moc_common_notification.proto", fileDescriptor_d7c9519ae78bfcb0) }
   170  
   171  var fileDescriptor_d7c9519ae78bfcb0 = []byte{
   172  	// 321 bytes of a gzipped FileDescriptorProto
   173  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xc1, 0x6a, 0x2a, 0x31,
   174  	0x14, 0x86, 0x89, 0x5e, 0xbd, 0xd7, 0x78, 0xaf, 0xdc, 0x06, 0xa1, 0x41, 0xa8, 0x0c, 0x96, 0xc2,
   175  	0x50, 0x4a, 0x06, 0xa6, 0x8b, 0xee, 0x05, 0xb7, 0x16, 0x66, 0xd1, 0x45, 0x37, 0x12, 0x63, 0x9c,
   176  	0x06, 0x26, 0x39, 0x21, 0xc9, 0x50, 0x7c, 0x94, 0xbe, 0x51, 0x1f, 0xab, 0x34, 0x51, 0x1c, 0xe9,
   177  	0x2a, 0x9c, 0x3f, 0xdf, 0xf9, 0x73, 0xce, 0x1f, 0x7c, 0xa3, 0x41, 0x6c, 0x04, 0x68, 0x0d, 0x66,
   178  	0x63, 0x20, 0xa8, 0xbd, 0x12, 0x3c, 0x28, 0x30, 0xcc, 0x3a, 0x08, 0x40, 0xfa, 0x1a, 0xc4, 0x6c,
   179  	0x5e, 0x03, 0xd4, 0x8d, 0x2c, 0xa2, 0xb4, 0x6d, 0xf7, 0xc5, 0xbb, 0xe3, 0xd6, 0x4a, 0xe7, 0x13,
   180  	0x34, 0xbb, 0xee, 0x78, 0xa4, 0x23, 0x5d, 0x2c, 0x3e, 0x11, 0xfe, 0xbb, 0xee, 0x98, 0x92, 0x39,
   181  	0xc6, 0xd2, 0x04, 0x15, 0x0e, 0x6b, 0xae, 0x25, 0x45, 0x19, 0xca, 0x47, 0x55, 0x47, 0x21, 0x0f,
   182  	0x78, 0x04, 0x56, 0xba, 0x08, 0xd3, 0x5e, 0x86, 0xf2, 0x49, 0x39, 0x61, 0x1a, 0x04, 0x7b, 0x3e,
   183  	0xa9, 0xd5, 0x19, 0x20, 0x14, 0xff, 0xd6, 0xd2, 0x7b, 0x5e, 0x4b, 0xda, 0x8f, 0x56, 0xa7, 0x92,
   184  	0xdc, 0xe3, 0xff, 0x96, 0x3b, 0x69, 0xc2, 0xea, 0xfc, 0xda, 0xaf, 0x88, 0xfc, 0xd0, 0xc9, 0x14,
   185  	0x0f, 0xb8, 0x3f, 0x18, 0x41, 0x07, 0x19, 0xca, 0xff, 0x54, 0xa9, 0x20, 0x13, 0xdc, 0x53, 0x3b,
   186  	0x3a, 0x8c, 0x3d, 0x3d, 0xb5, 0x5b, 0x7c, 0x20, 0x3c, 0xed, 0xae, 0x52, 0x49, 0x6f, 0xc1, 0x78,
   187  	0x49, 0x9e, 0xf0, 0xbf, 0x6e, 0x6e, 0x9e, 0xa2, 0xac, 0x9f, 0x8f, 0xcb, 0xab, 0x38, 0xf6, 0x45,
   188  	0xc7, 0x25, 0x47, 0x4a, 0x3c, 0xac, 0xa4, 0x6f, 0x9b, 0x10, 0x17, 0x1d, 0x97, 0x33, 0x96, 0x62,
   189  	0x66, 0xa7, 0x98, 0xd9, 0x12, 0xa0, 0x79, 0xe1, 0x4d, 0x2b, 0xab, 0x23, 0xf9, 0x3d, 0xeb, 0xca,
   190  	0x39, 0x70, 0xc7, 0x7d, 0x53, 0xb1, 0xbc, 0x7b, 0xbd, 0xad, 0x55, 0x78, 0x6b, 0xb7, 0x4c, 0x80,
   191  	0x2e, 0xb4, 0x12, 0x0e, 0x3c, 0xec, 0x43, 0xa1, 0x41, 0x14, 0xce, 0x8a, 0x22, 0xfd, 0xc9, 0x76,
   192  	0x18, 0x8d, 0x1f, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x30, 0x98, 0x3b, 0xf3, 0x01, 0x00,
   193  	0x00,
   194  }