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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: onos/a1t/a1/policy.proto
     3  
     4  // Package onos.a1t.a1 defines the interior gRPC interfaces for xApps to interact with A1T.
     5  
     6  package a1
     7  
     8  import (
     9  	context "context"
    10  	fmt "fmt"
    11  	_ "github.com/gogo/protobuf/gogoproto"
    12  	proto "github.com/gogo/protobuf/proto"
    13  	golang_proto "github.com/golang/protobuf/proto"
    14  	grpc "google.golang.org/grpc"
    15  	codes "google.golang.org/grpc/codes"
    16  	status "google.golang.org/grpc/status"
    17  	io "io"
    18  	math "math"
    19  	math_bits "math/bits"
    20  )
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = golang_proto.Marshal
    25  var _ = fmt.Errorf
    26  var _ = math.Inf
    27  
    28  // This is a compile-time assertion to ensure that this generated file
    29  // is compatible with the proto package it is being compiled against.
    30  // A compilation error at this line likely means your copy of the
    31  // proto package needs to be updated.
    32  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    33  
    34  type PolicyType struct {
    35  	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    36  	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
    37  	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
    38  }
    39  
    40  func (m *PolicyType) Reset()         { *m = PolicyType{} }
    41  func (m *PolicyType) String() string { return proto.CompactTextString(m) }
    42  func (*PolicyType) ProtoMessage()    {}
    43  func (*PolicyType) Descriptor() ([]byte, []int) {
    44  	return fileDescriptor_5ce1b84452933ab0, []int{0}
    45  }
    46  func (m *PolicyType) XXX_Unmarshal(b []byte) error {
    47  	return m.Unmarshal(b)
    48  }
    49  func (m *PolicyType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    50  	if deterministic {
    51  		return xxx_messageInfo_PolicyType.Marshal(b, m, deterministic)
    52  	} else {
    53  		b = b[:cap(b)]
    54  		n, err := m.MarshalToSizedBuffer(b)
    55  		if err != nil {
    56  			return nil, err
    57  		}
    58  		return b[:n], nil
    59  	}
    60  }
    61  func (m *PolicyType) XXX_Merge(src proto.Message) {
    62  	xxx_messageInfo_PolicyType.Merge(m, src)
    63  }
    64  func (m *PolicyType) XXX_Size() int {
    65  	return m.Size()
    66  }
    67  func (m *PolicyType) XXX_DiscardUnknown() {
    68  	xxx_messageInfo_PolicyType.DiscardUnknown(m)
    69  }
    70  
    71  var xxx_messageInfo_PolicyType proto.InternalMessageInfo
    72  
    73  func (m *PolicyType) GetId() string {
    74  	if m != nil {
    75  		return m.Id
    76  	}
    77  	return ""
    78  }
    79  
    80  func (m *PolicyType) GetName() string {
    81  	if m != nil {
    82  		return m.Name
    83  	}
    84  	return ""
    85  }
    86  
    87  func (m *PolicyType) GetVersion() string {
    88  	if m != nil {
    89  		return m.Version
    90  	}
    91  	return ""
    92  }
    93  
    94  type PolicyRequestMessage struct {
    95  	PolicyId                string          `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
    96  	PolicyType              *PolicyType     `protobuf:"bytes,2,opt,name=policy_type,json=policyType,proto3" json:"policy_type,omitempty"`
    97  	Message                 *RequestMessage `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
    98  	NotificationDestination string          `protobuf:"bytes,4,opt,name=notification_destination,json=notificationDestination,proto3" json:"notification_destination,omitempty"`
    99  }
   100  
   101  func (m *PolicyRequestMessage) Reset()         { *m = PolicyRequestMessage{} }
   102  func (m *PolicyRequestMessage) String() string { return proto.CompactTextString(m) }
   103  func (*PolicyRequestMessage) ProtoMessage()    {}
   104  func (*PolicyRequestMessage) Descriptor() ([]byte, []int) {
   105  	return fileDescriptor_5ce1b84452933ab0, []int{1}
   106  }
   107  func (m *PolicyRequestMessage) XXX_Unmarshal(b []byte) error {
   108  	return m.Unmarshal(b)
   109  }
   110  func (m *PolicyRequestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   111  	if deterministic {
   112  		return xxx_messageInfo_PolicyRequestMessage.Marshal(b, m, deterministic)
   113  	} else {
   114  		b = b[:cap(b)]
   115  		n, err := m.MarshalToSizedBuffer(b)
   116  		if err != nil {
   117  			return nil, err
   118  		}
   119  		return b[:n], nil
   120  	}
   121  }
   122  func (m *PolicyRequestMessage) XXX_Merge(src proto.Message) {
   123  	xxx_messageInfo_PolicyRequestMessage.Merge(m, src)
   124  }
   125  func (m *PolicyRequestMessage) XXX_Size() int {
   126  	return m.Size()
   127  }
   128  func (m *PolicyRequestMessage) XXX_DiscardUnknown() {
   129  	xxx_messageInfo_PolicyRequestMessage.DiscardUnknown(m)
   130  }
   131  
   132  var xxx_messageInfo_PolicyRequestMessage proto.InternalMessageInfo
   133  
   134  func (m *PolicyRequestMessage) GetPolicyId() string {
   135  	if m != nil {
   136  		return m.PolicyId
   137  	}
   138  	return ""
   139  }
   140  
   141  func (m *PolicyRequestMessage) GetPolicyType() *PolicyType {
   142  	if m != nil {
   143  		return m.PolicyType
   144  	}
   145  	return nil
   146  }
   147  
   148  func (m *PolicyRequestMessage) GetMessage() *RequestMessage {
   149  	if m != nil {
   150  		return m.Message
   151  	}
   152  	return nil
   153  }
   154  
   155  func (m *PolicyRequestMessage) GetNotificationDestination() string {
   156  	if m != nil {
   157  		return m.NotificationDestination
   158  	}
   159  	return ""
   160  }
   161  
   162  type PolicyResultMessage struct {
   163  	PolicyId                string         `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
   164  	PolicyType              *PolicyType    `protobuf:"bytes,2,opt,name=policy_type,json=policyType,proto3" json:"policy_type,omitempty"`
   165  	Message                 *ResultMessage `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
   166  	NotificationDestination string         `protobuf:"bytes,4,opt,name=notification_destination,json=notificationDestination,proto3" json:"notification_destination,omitempty"`
   167  }
   168  
   169  func (m *PolicyResultMessage) Reset()         { *m = PolicyResultMessage{} }
   170  func (m *PolicyResultMessage) String() string { return proto.CompactTextString(m) }
   171  func (*PolicyResultMessage) ProtoMessage()    {}
   172  func (*PolicyResultMessage) Descriptor() ([]byte, []int) {
   173  	return fileDescriptor_5ce1b84452933ab0, []int{2}
   174  }
   175  func (m *PolicyResultMessage) XXX_Unmarshal(b []byte) error {
   176  	return m.Unmarshal(b)
   177  }
   178  func (m *PolicyResultMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   179  	if deterministic {
   180  		return xxx_messageInfo_PolicyResultMessage.Marshal(b, m, deterministic)
   181  	} else {
   182  		b = b[:cap(b)]
   183  		n, err := m.MarshalToSizedBuffer(b)
   184  		if err != nil {
   185  			return nil, err
   186  		}
   187  		return b[:n], nil
   188  	}
   189  }
   190  func (m *PolicyResultMessage) XXX_Merge(src proto.Message) {
   191  	xxx_messageInfo_PolicyResultMessage.Merge(m, src)
   192  }
   193  func (m *PolicyResultMessage) XXX_Size() int {
   194  	return m.Size()
   195  }
   196  func (m *PolicyResultMessage) XXX_DiscardUnknown() {
   197  	xxx_messageInfo_PolicyResultMessage.DiscardUnknown(m)
   198  }
   199  
   200  var xxx_messageInfo_PolicyResultMessage proto.InternalMessageInfo
   201  
   202  func (m *PolicyResultMessage) GetPolicyId() string {
   203  	if m != nil {
   204  		return m.PolicyId
   205  	}
   206  	return ""
   207  }
   208  
   209  func (m *PolicyResultMessage) GetPolicyType() *PolicyType {
   210  	if m != nil {
   211  		return m.PolicyType
   212  	}
   213  	return nil
   214  }
   215  
   216  func (m *PolicyResultMessage) GetMessage() *ResultMessage {
   217  	if m != nil {
   218  		return m.Message
   219  	}
   220  	return nil
   221  }
   222  
   223  func (m *PolicyResultMessage) GetNotificationDestination() string {
   224  	if m != nil {
   225  		return m.NotificationDestination
   226  	}
   227  	return ""
   228  }
   229  
   230  type PolicyStatusMessage struct {
   231  	PolicyId                string         `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
   232  	PolicyType              *PolicyType    `protobuf:"bytes,2,opt,name=policy_type,json=policyType,proto3" json:"policy_type,omitempty"`
   233  	Message                 *StatusMessage `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
   234  	NotificationDestination string         `protobuf:"bytes,4,opt,name=notification_destination,json=notificationDestination,proto3" json:"notification_destination,omitempty"`
   235  }
   236  
   237  func (m *PolicyStatusMessage) Reset()         { *m = PolicyStatusMessage{} }
   238  func (m *PolicyStatusMessage) String() string { return proto.CompactTextString(m) }
   239  func (*PolicyStatusMessage) ProtoMessage()    {}
   240  func (*PolicyStatusMessage) Descriptor() ([]byte, []int) {
   241  	return fileDescriptor_5ce1b84452933ab0, []int{3}
   242  }
   243  func (m *PolicyStatusMessage) XXX_Unmarshal(b []byte) error {
   244  	return m.Unmarshal(b)
   245  }
   246  func (m *PolicyStatusMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   247  	if deterministic {
   248  		return xxx_messageInfo_PolicyStatusMessage.Marshal(b, m, deterministic)
   249  	} else {
   250  		b = b[:cap(b)]
   251  		n, err := m.MarshalToSizedBuffer(b)
   252  		if err != nil {
   253  			return nil, err
   254  		}
   255  		return b[:n], nil
   256  	}
   257  }
   258  func (m *PolicyStatusMessage) XXX_Merge(src proto.Message) {
   259  	xxx_messageInfo_PolicyStatusMessage.Merge(m, src)
   260  }
   261  func (m *PolicyStatusMessage) XXX_Size() int {
   262  	return m.Size()
   263  }
   264  func (m *PolicyStatusMessage) XXX_DiscardUnknown() {
   265  	xxx_messageInfo_PolicyStatusMessage.DiscardUnknown(m)
   266  }
   267  
   268  var xxx_messageInfo_PolicyStatusMessage proto.InternalMessageInfo
   269  
   270  func (m *PolicyStatusMessage) GetPolicyId() string {
   271  	if m != nil {
   272  		return m.PolicyId
   273  	}
   274  	return ""
   275  }
   276  
   277  func (m *PolicyStatusMessage) GetPolicyType() *PolicyType {
   278  	if m != nil {
   279  		return m.PolicyType
   280  	}
   281  	return nil
   282  }
   283  
   284  func (m *PolicyStatusMessage) GetMessage() *StatusMessage {
   285  	if m != nil {
   286  		return m.Message
   287  	}
   288  	return nil
   289  }
   290  
   291  func (m *PolicyStatusMessage) GetNotificationDestination() string {
   292  	if m != nil {
   293  		return m.NotificationDestination
   294  	}
   295  	return ""
   296  }
   297  
   298  type PolicyAckMessage struct {
   299  	PolicyId                string      `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
   300  	PolicyType              *PolicyType `protobuf:"bytes,2,opt,name=policy_type,json=policyType,proto3" json:"policy_type,omitempty"`
   301  	Message                 *AckMessage `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
   302  	NotificationDestination string      `protobuf:"bytes,4,opt,name=notification_destination,json=notificationDestination,proto3" json:"notification_destination,omitempty"`
   303  }
   304  
   305  func (m *PolicyAckMessage) Reset()         { *m = PolicyAckMessage{} }
   306  func (m *PolicyAckMessage) String() string { return proto.CompactTextString(m) }
   307  func (*PolicyAckMessage) ProtoMessage()    {}
   308  func (*PolicyAckMessage) Descriptor() ([]byte, []int) {
   309  	return fileDescriptor_5ce1b84452933ab0, []int{4}
   310  }
   311  func (m *PolicyAckMessage) XXX_Unmarshal(b []byte) error {
   312  	return m.Unmarshal(b)
   313  }
   314  func (m *PolicyAckMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   315  	if deterministic {
   316  		return xxx_messageInfo_PolicyAckMessage.Marshal(b, m, deterministic)
   317  	} else {
   318  		b = b[:cap(b)]
   319  		n, err := m.MarshalToSizedBuffer(b)
   320  		if err != nil {
   321  			return nil, err
   322  		}
   323  		return b[:n], nil
   324  	}
   325  }
   326  func (m *PolicyAckMessage) XXX_Merge(src proto.Message) {
   327  	xxx_messageInfo_PolicyAckMessage.Merge(m, src)
   328  }
   329  func (m *PolicyAckMessage) XXX_Size() int {
   330  	return m.Size()
   331  }
   332  func (m *PolicyAckMessage) XXX_DiscardUnknown() {
   333  	xxx_messageInfo_PolicyAckMessage.DiscardUnknown(m)
   334  }
   335  
   336  var xxx_messageInfo_PolicyAckMessage proto.InternalMessageInfo
   337  
   338  func (m *PolicyAckMessage) GetPolicyId() string {
   339  	if m != nil {
   340  		return m.PolicyId
   341  	}
   342  	return ""
   343  }
   344  
   345  func (m *PolicyAckMessage) GetPolicyType() *PolicyType {
   346  	if m != nil {
   347  		return m.PolicyType
   348  	}
   349  	return nil
   350  }
   351  
   352  func (m *PolicyAckMessage) GetMessage() *AckMessage {
   353  	if m != nil {
   354  		return m.Message
   355  	}
   356  	return nil
   357  }
   358  
   359  func (m *PolicyAckMessage) GetNotificationDestination() string {
   360  	if m != nil {
   361  		return m.NotificationDestination
   362  	}
   363  	return ""
   364  }
   365  
   366  func init() {
   367  	proto.RegisterType((*PolicyType)(nil), "onos.a1t.a1.PolicyType")
   368  	golang_proto.RegisterType((*PolicyType)(nil), "onos.a1t.a1.PolicyType")
   369  	proto.RegisterType((*PolicyRequestMessage)(nil), "onos.a1t.a1.PolicyRequestMessage")
   370  	golang_proto.RegisterType((*PolicyRequestMessage)(nil), "onos.a1t.a1.PolicyRequestMessage")
   371  	proto.RegisterType((*PolicyResultMessage)(nil), "onos.a1t.a1.PolicyResultMessage")
   372  	golang_proto.RegisterType((*PolicyResultMessage)(nil), "onos.a1t.a1.PolicyResultMessage")
   373  	proto.RegisterType((*PolicyStatusMessage)(nil), "onos.a1t.a1.PolicyStatusMessage")
   374  	golang_proto.RegisterType((*PolicyStatusMessage)(nil), "onos.a1t.a1.PolicyStatusMessage")
   375  	proto.RegisterType((*PolicyAckMessage)(nil), "onos.a1t.a1.PolicyAckMessage")
   376  	golang_proto.RegisterType((*PolicyAckMessage)(nil), "onos.a1t.a1.PolicyAckMessage")
   377  }
   378  
   379  func init() { proto.RegisterFile("onos/a1t/a1/policy.proto", fileDescriptor_5ce1b84452933ab0) }
   380  func init() { golang_proto.RegisterFile("onos/a1t/a1/policy.proto", fileDescriptor_5ce1b84452933ab0) }
   381  
   382  var fileDescriptor_5ce1b84452933ab0 = []byte{
   383  	// 424 bytes of a gzipped FileDescriptorProto
   384  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x94, 0x41, 0xcf, 0xd2, 0x30,
   385  	0x18, 0xc7, 0x29, 0xef, 0x1b, 0x91, 0x67, 0x6a, 0x4c, 0x25, 0x61, 0x19, 0xba, 0x20, 0x27, 0x4e,
   386  	0x9b, 0x43, 0x4d, 0xf4, 0xa8, 0xe1, 0xa2, 0x89, 0x89, 0x0e, 0x3d, 0x93, 0xba, 0x55, 0xd2, 0x08,
   387  	0xeb, 0x5c, 0x3b, 0x92, 0x7d, 0x0b, 0x3f, 0x8d, 0x67, 0x8f, 0x1e, 0xb9, 0xe9, 0xc5, 0x68, 0xd8,
   388  	0x17, 0x31, 0xb4, 0x8c, 0x6d, 0x64, 0xc7, 0x11, 0x6f, 0xe5, 0xff, 0xf4, 0x79, 0xfa, 0xfb, 0xa5,
   389  	0x65, 0x60, 0xf2, 0x88, 0x0b, 0x97, 0x78, 0xd2, 0x25, 0x9e, 0x1b, 0xf3, 0x35, 0x0b, 0x32, 0x27,
   390  	0x4e, 0xb8, 0xe4, 0xd8, 0x38, 0x54, 0x1c, 0xe2, 0x49, 0x87, 0x78, 0xd6, 0x60, 0xc5, 0x57, 0x5c,
   391  	0xe5, 0xee, 0x61, 0xa5, 0xb7, 0x58, 0x83, 0x6a, 0x33, 0xf1, 0x74, 0x3a, 0x79, 0x0d, 0xf0, 0x56,
   392  	0x0d, 0x7a, 0x9f, 0xc5, 0x14, 0xdf, 0x81, 0x2e, 0x0b, 0x4d, 0x34, 0x46, 0xd3, 0xbe, 0xdf, 0x65,
   393  	0x21, 0xc6, 0x70, 0x1d, 0x91, 0x0d, 0x35, 0xbb, 0x2a, 0x51, 0x6b, 0x6c, 0x42, 0x6f, 0x4b, 0x13,
   394  	0xc1, 0x78, 0x64, 0x5e, 0xa9, 0xb8, 0xf8, 0x39, 0xf9, 0x83, 0x60, 0xa0, 0x87, 0xf9, 0xf4, 0x4b,
   395  	0x4a, 0x85, 0x7c, 0x43, 0x85, 0x20, 0x2b, 0x8a, 0x47, 0xd0, 0xd7, 0xb4, 0xcb, 0xd3, 0xf4, 0x9b,
   396  	0x3a, 0x78, 0x15, 0xe2, 0x67, 0x60, 0x1c, 0x8b, 0x32, 0x8b, 0xf5, 0x51, 0xc6, 0x6c, 0xe8, 0x54,
   397  	0x84, 0x9c, 0x92, 0xd0, 0x87, 0xb8, 0xa4, 0x7d, 0x0a, 0xbd, 0x8d, 0x3e, 0x41, 0x91, 0x18, 0xb3,
   398  	0x51, 0xad, 0xab, 0x0e, 0xe1, 0x17, 0x7b, 0xf1, 0x73, 0x30, 0x23, 0x2e, 0xd9, 0x27, 0x16, 0x10,
   399  	0xc9, 0x78, 0xb4, 0x0c, 0xa9, 0x90, 0x2c, 0x52, 0x6b, 0xf3, 0x5a, 0xc1, 0x0d, 0xab, 0xf5, 0x79,
   400  	0x59, 0x9e, 0xfc, 0x46, 0x70, 0xaf, 0x30, 0x14, 0xe9, 0xfa, 0xd2, 0x82, 0x4f, 0xce, 0x05, 0xad,
   401  	0x33, 0xc1, 0x0a, 0x43, 0xcb, 0x7e, 0x0b, 0x49, 0x64, 0x2a, 0xfe, 0xaf, 0x5f, 0x8d, 0xa1, 0x15,
   402  	0xbf, 0x9f, 0x08, 0xee, 0x6a, 0x96, 0x17, 0xc1, 0xe7, 0x0b, 0xcb, 0x79, 0xe7, 0x72, 0xf5, 0xae,
   403  	0x12, 0xa0, 0x0d, 0xb3, 0xd9, 0xb7, 0x2b, 0xb8, 0x7d, 0xbc, 0x39, 0x9a, 0x6c, 0x59, 0x40, 0xb1,
   404  	0x0f, 0x46, 0x11, 0xc8, 0x34, 0xc6, 0x0f, 0x1b, 0x98, 0xeb, 0xff, 0x10, 0x6b, 0xdc, 0xb8, 0xa5,
   405  	0xfa, 0xce, 0x17, 0x70, 0x4b, 0xc7, 0x1f, 0xe2, 0x90, 0x48, 0xda, 0xf2, 0xd0, 0x39, 0x5d, 0xd3,
   406  	0xb6, 0x86, 0x9e, 0xec, 0xdf, 0xa5, 0x34, 0xc9, 0x5a, 0x06, 0xd5, 0x0f, 0x13, 0x3f, 0x68, 0xe8,
   407  	0x28, 0xaf, 0xb5, 0x71, 0x60, 0xed, 0x49, 0x4f, 0xd1, 0x23, 0xf4, 0xf2, 0xfe, 0x8f, 0xbd, 0x8d,
   408  	0x76, 0x7b, 0x1b, 0xfd, 0xdd, 0xdb, 0xe8, 0x6b, 0x6e, 0x77, 0xbe, 0xe7, 0x36, 0xda, 0xe5, 0x76,
   409  	0xe7, 0x57, 0x6e, 0x77, 0x3e, 0xde, 0x50, 0x5f, 0xe9, 0xc7, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff,
   410  	0x8f, 0x3f, 0x55, 0xb6, 0xfa, 0x05, 0x00, 0x00,
   411  }
   412  
   413  // Reference imports to suppress errors if they are not otherwise used.
   414  var _ context.Context
   415  var _ grpc.ClientConn
   416  
   417  // This is a compile-time assertion to ensure that this generated file
   418  // is compatible with the grpc package it is being compiled against.
   419  const _ = grpc.SupportPackageIsVersion4
   420  
   421  // PolicyServiceClient is the client API for PolicyService service.
   422  //
   423  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   424  type PolicyServiceClient interface {
   425  	PolicySetup(ctx context.Context, in *PolicyRequestMessage, opts ...grpc.CallOption) (*PolicyResultMessage, error)
   426  	PolicyUpdate(ctx context.Context, in *PolicyRequestMessage, opts ...grpc.CallOption) (*PolicyResultMessage, error)
   427  	PolicyDelete(ctx context.Context, in *PolicyRequestMessage, opts ...grpc.CallOption) (*PolicyResultMessage, error)
   428  	PolicyQuery(ctx context.Context, in *PolicyRequestMessage, opts ...grpc.CallOption) (*PolicyResultMessage, error)
   429  	PolicyStatus(ctx context.Context, opts ...grpc.CallOption) (PolicyService_PolicyStatusClient, error)
   430  }
   431  
   432  type policyServiceClient struct {
   433  	cc *grpc.ClientConn
   434  }
   435  
   436  func NewPolicyServiceClient(cc *grpc.ClientConn) PolicyServiceClient {
   437  	return &policyServiceClient{cc}
   438  }
   439  
   440  func (c *policyServiceClient) PolicySetup(ctx context.Context, in *PolicyRequestMessage, opts ...grpc.CallOption) (*PolicyResultMessage, error) {
   441  	out := new(PolicyResultMessage)
   442  	err := c.cc.Invoke(ctx, "/onos.a1t.a1.PolicyService/PolicySetup", in, out, opts...)
   443  	if err != nil {
   444  		return nil, err
   445  	}
   446  	return out, nil
   447  }
   448  
   449  func (c *policyServiceClient) PolicyUpdate(ctx context.Context, in *PolicyRequestMessage, opts ...grpc.CallOption) (*PolicyResultMessage, error) {
   450  	out := new(PolicyResultMessage)
   451  	err := c.cc.Invoke(ctx, "/onos.a1t.a1.PolicyService/PolicyUpdate", in, out, opts...)
   452  	if err != nil {
   453  		return nil, err
   454  	}
   455  	return out, nil
   456  }
   457  
   458  func (c *policyServiceClient) PolicyDelete(ctx context.Context, in *PolicyRequestMessage, opts ...grpc.CallOption) (*PolicyResultMessage, error) {
   459  	out := new(PolicyResultMessage)
   460  	err := c.cc.Invoke(ctx, "/onos.a1t.a1.PolicyService/PolicyDelete", in, out, opts...)
   461  	if err != nil {
   462  		return nil, err
   463  	}
   464  	return out, nil
   465  }
   466  
   467  func (c *policyServiceClient) PolicyQuery(ctx context.Context, in *PolicyRequestMessage, opts ...grpc.CallOption) (*PolicyResultMessage, error) {
   468  	out := new(PolicyResultMessage)
   469  	err := c.cc.Invoke(ctx, "/onos.a1t.a1.PolicyService/PolicyQuery", in, out, opts...)
   470  	if err != nil {
   471  		return nil, err
   472  	}
   473  	return out, nil
   474  }
   475  
   476  func (c *policyServiceClient) PolicyStatus(ctx context.Context, opts ...grpc.CallOption) (PolicyService_PolicyStatusClient, error) {
   477  	stream, err := c.cc.NewStream(ctx, &_PolicyService_serviceDesc.Streams[0], "/onos.a1t.a1.PolicyService/PolicyStatus", opts...)
   478  	if err != nil {
   479  		return nil, err
   480  	}
   481  	x := &policyServicePolicyStatusClient{stream}
   482  	return x, nil
   483  }
   484  
   485  type PolicyService_PolicyStatusClient interface {
   486  	Send(*PolicyAckMessage) error
   487  	Recv() (*PolicyStatusMessage, error)
   488  	grpc.ClientStream
   489  }
   490  
   491  type policyServicePolicyStatusClient struct {
   492  	grpc.ClientStream
   493  }
   494  
   495  func (x *policyServicePolicyStatusClient) Send(m *PolicyAckMessage) error {
   496  	return x.ClientStream.SendMsg(m)
   497  }
   498  
   499  func (x *policyServicePolicyStatusClient) Recv() (*PolicyStatusMessage, error) {
   500  	m := new(PolicyStatusMessage)
   501  	if err := x.ClientStream.RecvMsg(m); err != nil {
   502  		return nil, err
   503  	}
   504  	return m, nil
   505  }
   506  
   507  // PolicyServiceServer is the server API for PolicyService service.
   508  type PolicyServiceServer interface {
   509  	PolicySetup(context.Context, *PolicyRequestMessage) (*PolicyResultMessage, error)
   510  	PolicyUpdate(context.Context, *PolicyRequestMessage) (*PolicyResultMessage, error)
   511  	PolicyDelete(context.Context, *PolicyRequestMessage) (*PolicyResultMessage, error)
   512  	PolicyQuery(context.Context, *PolicyRequestMessage) (*PolicyResultMessage, error)
   513  	PolicyStatus(PolicyService_PolicyStatusServer) error
   514  }
   515  
   516  // UnimplementedPolicyServiceServer can be embedded to have forward compatible implementations.
   517  type UnimplementedPolicyServiceServer struct {
   518  }
   519  
   520  func (*UnimplementedPolicyServiceServer) PolicySetup(ctx context.Context, req *PolicyRequestMessage) (*PolicyResultMessage, error) {
   521  	return nil, status.Errorf(codes.Unimplemented, "method PolicySetup not implemented")
   522  }
   523  func (*UnimplementedPolicyServiceServer) PolicyUpdate(ctx context.Context, req *PolicyRequestMessage) (*PolicyResultMessage, error) {
   524  	return nil, status.Errorf(codes.Unimplemented, "method PolicyUpdate not implemented")
   525  }
   526  func (*UnimplementedPolicyServiceServer) PolicyDelete(ctx context.Context, req *PolicyRequestMessage) (*PolicyResultMessage, error) {
   527  	return nil, status.Errorf(codes.Unimplemented, "method PolicyDelete not implemented")
   528  }
   529  func (*UnimplementedPolicyServiceServer) PolicyQuery(ctx context.Context, req *PolicyRequestMessage) (*PolicyResultMessage, error) {
   530  	return nil, status.Errorf(codes.Unimplemented, "method PolicyQuery not implemented")
   531  }
   532  func (*UnimplementedPolicyServiceServer) PolicyStatus(srv PolicyService_PolicyStatusServer) error {
   533  	return status.Errorf(codes.Unimplemented, "method PolicyStatus not implemented")
   534  }
   535  
   536  func RegisterPolicyServiceServer(s *grpc.Server, srv PolicyServiceServer) {
   537  	s.RegisterService(&_PolicyService_serviceDesc, srv)
   538  }
   539  
   540  func _PolicyService_PolicySetup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   541  	in := new(PolicyRequestMessage)
   542  	if err := dec(in); err != nil {
   543  		return nil, err
   544  	}
   545  	if interceptor == nil {
   546  		return srv.(PolicyServiceServer).PolicySetup(ctx, in)
   547  	}
   548  	info := &grpc.UnaryServerInfo{
   549  		Server:     srv,
   550  		FullMethod: "/onos.a1t.a1.PolicyService/PolicySetup",
   551  	}
   552  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   553  		return srv.(PolicyServiceServer).PolicySetup(ctx, req.(*PolicyRequestMessage))
   554  	}
   555  	return interceptor(ctx, in, info, handler)
   556  }
   557  
   558  func _PolicyService_PolicyUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   559  	in := new(PolicyRequestMessage)
   560  	if err := dec(in); err != nil {
   561  		return nil, err
   562  	}
   563  	if interceptor == nil {
   564  		return srv.(PolicyServiceServer).PolicyUpdate(ctx, in)
   565  	}
   566  	info := &grpc.UnaryServerInfo{
   567  		Server:     srv,
   568  		FullMethod: "/onos.a1t.a1.PolicyService/PolicyUpdate",
   569  	}
   570  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   571  		return srv.(PolicyServiceServer).PolicyUpdate(ctx, req.(*PolicyRequestMessage))
   572  	}
   573  	return interceptor(ctx, in, info, handler)
   574  }
   575  
   576  func _PolicyService_PolicyDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   577  	in := new(PolicyRequestMessage)
   578  	if err := dec(in); err != nil {
   579  		return nil, err
   580  	}
   581  	if interceptor == nil {
   582  		return srv.(PolicyServiceServer).PolicyDelete(ctx, in)
   583  	}
   584  	info := &grpc.UnaryServerInfo{
   585  		Server:     srv,
   586  		FullMethod: "/onos.a1t.a1.PolicyService/PolicyDelete",
   587  	}
   588  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   589  		return srv.(PolicyServiceServer).PolicyDelete(ctx, req.(*PolicyRequestMessage))
   590  	}
   591  	return interceptor(ctx, in, info, handler)
   592  }
   593  
   594  func _PolicyService_PolicyQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   595  	in := new(PolicyRequestMessage)
   596  	if err := dec(in); err != nil {
   597  		return nil, err
   598  	}
   599  	if interceptor == nil {
   600  		return srv.(PolicyServiceServer).PolicyQuery(ctx, in)
   601  	}
   602  	info := &grpc.UnaryServerInfo{
   603  		Server:     srv,
   604  		FullMethod: "/onos.a1t.a1.PolicyService/PolicyQuery",
   605  	}
   606  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   607  		return srv.(PolicyServiceServer).PolicyQuery(ctx, req.(*PolicyRequestMessage))
   608  	}
   609  	return interceptor(ctx, in, info, handler)
   610  }
   611  
   612  func _PolicyService_PolicyStatus_Handler(srv interface{}, stream grpc.ServerStream) error {
   613  	return srv.(PolicyServiceServer).PolicyStatus(&policyServicePolicyStatusServer{stream})
   614  }
   615  
   616  type PolicyService_PolicyStatusServer interface {
   617  	Send(*PolicyStatusMessage) error
   618  	Recv() (*PolicyAckMessage, error)
   619  	grpc.ServerStream
   620  }
   621  
   622  type policyServicePolicyStatusServer struct {
   623  	grpc.ServerStream
   624  }
   625  
   626  func (x *policyServicePolicyStatusServer) Send(m *PolicyStatusMessage) error {
   627  	return x.ServerStream.SendMsg(m)
   628  }
   629  
   630  func (x *policyServicePolicyStatusServer) Recv() (*PolicyAckMessage, error) {
   631  	m := new(PolicyAckMessage)
   632  	if err := x.ServerStream.RecvMsg(m); err != nil {
   633  		return nil, err
   634  	}
   635  	return m, nil
   636  }
   637  
   638  var _PolicyService_serviceDesc = grpc.ServiceDesc{
   639  	ServiceName: "onos.a1t.a1.PolicyService",
   640  	HandlerType: (*PolicyServiceServer)(nil),
   641  	Methods: []grpc.MethodDesc{
   642  		{
   643  			MethodName: "PolicySetup",
   644  			Handler:    _PolicyService_PolicySetup_Handler,
   645  		},
   646  		{
   647  			MethodName: "PolicyUpdate",
   648  			Handler:    _PolicyService_PolicyUpdate_Handler,
   649  		},
   650  		{
   651  			MethodName: "PolicyDelete",
   652  			Handler:    _PolicyService_PolicyDelete_Handler,
   653  		},
   654  		{
   655  			MethodName: "PolicyQuery",
   656  			Handler:    _PolicyService_PolicyQuery_Handler,
   657  		},
   658  	},
   659  	Streams: []grpc.StreamDesc{
   660  		{
   661  			StreamName:    "PolicyStatus",
   662  			Handler:       _PolicyService_PolicyStatus_Handler,
   663  			ServerStreams: true,
   664  			ClientStreams: true,
   665  		},
   666  	},
   667  	Metadata: "onos/a1t/a1/policy.proto",
   668  }
   669  
   670  func (m *PolicyType) Marshal() (dAtA []byte, err error) {
   671  	size := m.Size()
   672  	dAtA = make([]byte, size)
   673  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   674  	if err != nil {
   675  		return nil, err
   676  	}
   677  	return dAtA[:n], nil
   678  }
   679  
   680  func (m *PolicyType) MarshalTo(dAtA []byte) (int, error) {
   681  	size := m.Size()
   682  	return m.MarshalToSizedBuffer(dAtA[:size])
   683  }
   684  
   685  func (m *PolicyType) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   686  	i := len(dAtA)
   687  	_ = i
   688  	var l int
   689  	_ = l
   690  	if len(m.Version) > 0 {
   691  		i -= len(m.Version)
   692  		copy(dAtA[i:], m.Version)
   693  		i = encodeVarintPolicy(dAtA, i, uint64(len(m.Version)))
   694  		i--
   695  		dAtA[i] = 0x1a
   696  	}
   697  	if len(m.Name) > 0 {
   698  		i -= len(m.Name)
   699  		copy(dAtA[i:], m.Name)
   700  		i = encodeVarintPolicy(dAtA, i, uint64(len(m.Name)))
   701  		i--
   702  		dAtA[i] = 0x12
   703  	}
   704  	if len(m.Id) > 0 {
   705  		i -= len(m.Id)
   706  		copy(dAtA[i:], m.Id)
   707  		i = encodeVarintPolicy(dAtA, i, uint64(len(m.Id)))
   708  		i--
   709  		dAtA[i] = 0xa
   710  	}
   711  	return len(dAtA) - i, nil
   712  }
   713  
   714  func (m *PolicyRequestMessage) Marshal() (dAtA []byte, err error) {
   715  	size := m.Size()
   716  	dAtA = make([]byte, size)
   717  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   718  	if err != nil {
   719  		return nil, err
   720  	}
   721  	return dAtA[:n], nil
   722  }
   723  
   724  func (m *PolicyRequestMessage) MarshalTo(dAtA []byte) (int, error) {
   725  	size := m.Size()
   726  	return m.MarshalToSizedBuffer(dAtA[:size])
   727  }
   728  
   729  func (m *PolicyRequestMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   730  	i := len(dAtA)
   731  	_ = i
   732  	var l int
   733  	_ = l
   734  	if len(m.NotificationDestination) > 0 {
   735  		i -= len(m.NotificationDestination)
   736  		copy(dAtA[i:], m.NotificationDestination)
   737  		i = encodeVarintPolicy(dAtA, i, uint64(len(m.NotificationDestination)))
   738  		i--
   739  		dAtA[i] = 0x22
   740  	}
   741  	if m.Message != nil {
   742  		{
   743  			size, err := m.Message.MarshalToSizedBuffer(dAtA[:i])
   744  			if err != nil {
   745  				return 0, err
   746  			}
   747  			i -= size
   748  			i = encodeVarintPolicy(dAtA, i, uint64(size))
   749  		}
   750  		i--
   751  		dAtA[i] = 0x1a
   752  	}
   753  	if m.PolicyType != nil {
   754  		{
   755  			size, err := m.PolicyType.MarshalToSizedBuffer(dAtA[:i])
   756  			if err != nil {
   757  				return 0, err
   758  			}
   759  			i -= size
   760  			i = encodeVarintPolicy(dAtA, i, uint64(size))
   761  		}
   762  		i--
   763  		dAtA[i] = 0x12
   764  	}
   765  	if len(m.PolicyId) > 0 {
   766  		i -= len(m.PolicyId)
   767  		copy(dAtA[i:], m.PolicyId)
   768  		i = encodeVarintPolicy(dAtA, i, uint64(len(m.PolicyId)))
   769  		i--
   770  		dAtA[i] = 0xa
   771  	}
   772  	return len(dAtA) - i, nil
   773  }
   774  
   775  func (m *PolicyResultMessage) Marshal() (dAtA []byte, err error) {
   776  	size := m.Size()
   777  	dAtA = make([]byte, size)
   778  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   779  	if err != nil {
   780  		return nil, err
   781  	}
   782  	return dAtA[:n], nil
   783  }
   784  
   785  func (m *PolicyResultMessage) MarshalTo(dAtA []byte) (int, error) {
   786  	size := m.Size()
   787  	return m.MarshalToSizedBuffer(dAtA[:size])
   788  }
   789  
   790  func (m *PolicyResultMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   791  	i := len(dAtA)
   792  	_ = i
   793  	var l int
   794  	_ = l
   795  	if len(m.NotificationDestination) > 0 {
   796  		i -= len(m.NotificationDestination)
   797  		copy(dAtA[i:], m.NotificationDestination)
   798  		i = encodeVarintPolicy(dAtA, i, uint64(len(m.NotificationDestination)))
   799  		i--
   800  		dAtA[i] = 0x22
   801  	}
   802  	if m.Message != nil {
   803  		{
   804  			size, err := m.Message.MarshalToSizedBuffer(dAtA[:i])
   805  			if err != nil {
   806  				return 0, err
   807  			}
   808  			i -= size
   809  			i = encodeVarintPolicy(dAtA, i, uint64(size))
   810  		}
   811  		i--
   812  		dAtA[i] = 0x1a
   813  	}
   814  	if m.PolicyType != nil {
   815  		{
   816  			size, err := m.PolicyType.MarshalToSizedBuffer(dAtA[:i])
   817  			if err != nil {
   818  				return 0, err
   819  			}
   820  			i -= size
   821  			i = encodeVarintPolicy(dAtA, i, uint64(size))
   822  		}
   823  		i--
   824  		dAtA[i] = 0x12
   825  	}
   826  	if len(m.PolicyId) > 0 {
   827  		i -= len(m.PolicyId)
   828  		copy(dAtA[i:], m.PolicyId)
   829  		i = encodeVarintPolicy(dAtA, i, uint64(len(m.PolicyId)))
   830  		i--
   831  		dAtA[i] = 0xa
   832  	}
   833  	return len(dAtA) - i, nil
   834  }
   835  
   836  func (m *PolicyStatusMessage) Marshal() (dAtA []byte, err error) {
   837  	size := m.Size()
   838  	dAtA = make([]byte, size)
   839  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   840  	if err != nil {
   841  		return nil, err
   842  	}
   843  	return dAtA[:n], nil
   844  }
   845  
   846  func (m *PolicyStatusMessage) MarshalTo(dAtA []byte) (int, error) {
   847  	size := m.Size()
   848  	return m.MarshalToSizedBuffer(dAtA[:size])
   849  }
   850  
   851  func (m *PolicyStatusMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   852  	i := len(dAtA)
   853  	_ = i
   854  	var l int
   855  	_ = l
   856  	if len(m.NotificationDestination) > 0 {
   857  		i -= len(m.NotificationDestination)
   858  		copy(dAtA[i:], m.NotificationDestination)
   859  		i = encodeVarintPolicy(dAtA, i, uint64(len(m.NotificationDestination)))
   860  		i--
   861  		dAtA[i] = 0x22
   862  	}
   863  	if m.Message != nil {
   864  		{
   865  			size, err := m.Message.MarshalToSizedBuffer(dAtA[:i])
   866  			if err != nil {
   867  				return 0, err
   868  			}
   869  			i -= size
   870  			i = encodeVarintPolicy(dAtA, i, uint64(size))
   871  		}
   872  		i--
   873  		dAtA[i] = 0x1a
   874  	}
   875  	if m.PolicyType != nil {
   876  		{
   877  			size, err := m.PolicyType.MarshalToSizedBuffer(dAtA[:i])
   878  			if err != nil {
   879  				return 0, err
   880  			}
   881  			i -= size
   882  			i = encodeVarintPolicy(dAtA, i, uint64(size))
   883  		}
   884  		i--
   885  		dAtA[i] = 0x12
   886  	}
   887  	if len(m.PolicyId) > 0 {
   888  		i -= len(m.PolicyId)
   889  		copy(dAtA[i:], m.PolicyId)
   890  		i = encodeVarintPolicy(dAtA, i, uint64(len(m.PolicyId)))
   891  		i--
   892  		dAtA[i] = 0xa
   893  	}
   894  	return len(dAtA) - i, nil
   895  }
   896  
   897  func (m *PolicyAckMessage) Marshal() (dAtA []byte, err error) {
   898  	size := m.Size()
   899  	dAtA = make([]byte, size)
   900  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   901  	if err != nil {
   902  		return nil, err
   903  	}
   904  	return dAtA[:n], nil
   905  }
   906  
   907  func (m *PolicyAckMessage) MarshalTo(dAtA []byte) (int, error) {
   908  	size := m.Size()
   909  	return m.MarshalToSizedBuffer(dAtA[:size])
   910  }
   911  
   912  func (m *PolicyAckMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   913  	i := len(dAtA)
   914  	_ = i
   915  	var l int
   916  	_ = l
   917  	if len(m.NotificationDestination) > 0 {
   918  		i -= len(m.NotificationDestination)
   919  		copy(dAtA[i:], m.NotificationDestination)
   920  		i = encodeVarintPolicy(dAtA, i, uint64(len(m.NotificationDestination)))
   921  		i--
   922  		dAtA[i] = 0x22
   923  	}
   924  	if m.Message != nil {
   925  		{
   926  			size, err := m.Message.MarshalToSizedBuffer(dAtA[:i])
   927  			if err != nil {
   928  				return 0, err
   929  			}
   930  			i -= size
   931  			i = encodeVarintPolicy(dAtA, i, uint64(size))
   932  		}
   933  		i--
   934  		dAtA[i] = 0x1a
   935  	}
   936  	if m.PolicyType != nil {
   937  		{
   938  			size, err := m.PolicyType.MarshalToSizedBuffer(dAtA[:i])
   939  			if err != nil {
   940  				return 0, err
   941  			}
   942  			i -= size
   943  			i = encodeVarintPolicy(dAtA, i, uint64(size))
   944  		}
   945  		i--
   946  		dAtA[i] = 0x12
   947  	}
   948  	if len(m.PolicyId) > 0 {
   949  		i -= len(m.PolicyId)
   950  		copy(dAtA[i:], m.PolicyId)
   951  		i = encodeVarintPolicy(dAtA, i, uint64(len(m.PolicyId)))
   952  		i--
   953  		dAtA[i] = 0xa
   954  	}
   955  	return len(dAtA) - i, nil
   956  }
   957  
   958  func encodeVarintPolicy(dAtA []byte, offset int, v uint64) int {
   959  	offset -= sovPolicy(v)
   960  	base := offset
   961  	for v >= 1<<7 {
   962  		dAtA[offset] = uint8(v&0x7f | 0x80)
   963  		v >>= 7
   964  		offset++
   965  	}
   966  	dAtA[offset] = uint8(v)
   967  	return base
   968  }
   969  func (m *PolicyType) Size() (n int) {
   970  	if m == nil {
   971  		return 0
   972  	}
   973  	var l int
   974  	_ = l
   975  	l = len(m.Id)
   976  	if l > 0 {
   977  		n += 1 + l + sovPolicy(uint64(l))
   978  	}
   979  	l = len(m.Name)
   980  	if l > 0 {
   981  		n += 1 + l + sovPolicy(uint64(l))
   982  	}
   983  	l = len(m.Version)
   984  	if l > 0 {
   985  		n += 1 + l + sovPolicy(uint64(l))
   986  	}
   987  	return n
   988  }
   989  
   990  func (m *PolicyRequestMessage) Size() (n int) {
   991  	if m == nil {
   992  		return 0
   993  	}
   994  	var l int
   995  	_ = l
   996  	l = len(m.PolicyId)
   997  	if l > 0 {
   998  		n += 1 + l + sovPolicy(uint64(l))
   999  	}
  1000  	if m.PolicyType != nil {
  1001  		l = m.PolicyType.Size()
  1002  		n += 1 + l + sovPolicy(uint64(l))
  1003  	}
  1004  	if m.Message != nil {
  1005  		l = m.Message.Size()
  1006  		n += 1 + l + sovPolicy(uint64(l))
  1007  	}
  1008  	l = len(m.NotificationDestination)
  1009  	if l > 0 {
  1010  		n += 1 + l + sovPolicy(uint64(l))
  1011  	}
  1012  	return n
  1013  }
  1014  
  1015  func (m *PolicyResultMessage) Size() (n int) {
  1016  	if m == nil {
  1017  		return 0
  1018  	}
  1019  	var l int
  1020  	_ = l
  1021  	l = len(m.PolicyId)
  1022  	if l > 0 {
  1023  		n += 1 + l + sovPolicy(uint64(l))
  1024  	}
  1025  	if m.PolicyType != nil {
  1026  		l = m.PolicyType.Size()
  1027  		n += 1 + l + sovPolicy(uint64(l))
  1028  	}
  1029  	if m.Message != nil {
  1030  		l = m.Message.Size()
  1031  		n += 1 + l + sovPolicy(uint64(l))
  1032  	}
  1033  	l = len(m.NotificationDestination)
  1034  	if l > 0 {
  1035  		n += 1 + l + sovPolicy(uint64(l))
  1036  	}
  1037  	return n
  1038  }
  1039  
  1040  func (m *PolicyStatusMessage) Size() (n int) {
  1041  	if m == nil {
  1042  		return 0
  1043  	}
  1044  	var l int
  1045  	_ = l
  1046  	l = len(m.PolicyId)
  1047  	if l > 0 {
  1048  		n += 1 + l + sovPolicy(uint64(l))
  1049  	}
  1050  	if m.PolicyType != nil {
  1051  		l = m.PolicyType.Size()
  1052  		n += 1 + l + sovPolicy(uint64(l))
  1053  	}
  1054  	if m.Message != nil {
  1055  		l = m.Message.Size()
  1056  		n += 1 + l + sovPolicy(uint64(l))
  1057  	}
  1058  	l = len(m.NotificationDestination)
  1059  	if l > 0 {
  1060  		n += 1 + l + sovPolicy(uint64(l))
  1061  	}
  1062  	return n
  1063  }
  1064  
  1065  func (m *PolicyAckMessage) Size() (n int) {
  1066  	if m == nil {
  1067  		return 0
  1068  	}
  1069  	var l int
  1070  	_ = l
  1071  	l = len(m.PolicyId)
  1072  	if l > 0 {
  1073  		n += 1 + l + sovPolicy(uint64(l))
  1074  	}
  1075  	if m.PolicyType != nil {
  1076  		l = m.PolicyType.Size()
  1077  		n += 1 + l + sovPolicy(uint64(l))
  1078  	}
  1079  	if m.Message != nil {
  1080  		l = m.Message.Size()
  1081  		n += 1 + l + sovPolicy(uint64(l))
  1082  	}
  1083  	l = len(m.NotificationDestination)
  1084  	if l > 0 {
  1085  		n += 1 + l + sovPolicy(uint64(l))
  1086  	}
  1087  	return n
  1088  }
  1089  
  1090  func sovPolicy(x uint64) (n int) {
  1091  	return (math_bits.Len64(x|1) + 6) / 7
  1092  }
  1093  func sozPolicy(x uint64) (n int) {
  1094  	return sovPolicy(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1095  }
  1096  func (m *PolicyType) Unmarshal(dAtA []byte) error {
  1097  	l := len(dAtA)
  1098  	iNdEx := 0
  1099  	for iNdEx < l {
  1100  		preIndex := iNdEx
  1101  		var wire uint64
  1102  		for shift := uint(0); ; shift += 7 {
  1103  			if shift >= 64 {
  1104  				return ErrIntOverflowPolicy
  1105  			}
  1106  			if iNdEx >= l {
  1107  				return io.ErrUnexpectedEOF
  1108  			}
  1109  			b := dAtA[iNdEx]
  1110  			iNdEx++
  1111  			wire |= uint64(b&0x7F) << shift
  1112  			if b < 0x80 {
  1113  				break
  1114  			}
  1115  		}
  1116  		fieldNum := int32(wire >> 3)
  1117  		wireType := int(wire & 0x7)
  1118  		if wireType == 4 {
  1119  			return fmt.Errorf("proto: PolicyType: wiretype end group for non-group")
  1120  		}
  1121  		if fieldNum <= 0 {
  1122  			return fmt.Errorf("proto: PolicyType: illegal tag %d (wire type %d)", fieldNum, wire)
  1123  		}
  1124  		switch fieldNum {
  1125  		case 1:
  1126  			if wireType != 2 {
  1127  				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  1128  			}
  1129  			var stringLen uint64
  1130  			for shift := uint(0); ; shift += 7 {
  1131  				if shift >= 64 {
  1132  					return ErrIntOverflowPolicy
  1133  				}
  1134  				if iNdEx >= l {
  1135  					return io.ErrUnexpectedEOF
  1136  				}
  1137  				b := dAtA[iNdEx]
  1138  				iNdEx++
  1139  				stringLen |= uint64(b&0x7F) << shift
  1140  				if b < 0x80 {
  1141  					break
  1142  				}
  1143  			}
  1144  			intStringLen := int(stringLen)
  1145  			if intStringLen < 0 {
  1146  				return ErrInvalidLengthPolicy
  1147  			}
  1148  			postIndex := iNdEx + intStringLen
  1149  			if postIndex < 0 {
  1150  				return ErrInvalidLengthPolicy
  1151  			}
  1152  			if postIndex > l {
  1153  				return io.ErrUnexpectedEOF
  1154  			}
  1155  			m.Id = string(dAtA[iNdEx:postIndex])
  1156  			iNdEx = postIndex
  1157  		case 2:
  1158  			if wireType != 2 {
  1159  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  1160  			}
  1161  			var stringLen uint64
  1162  			for shift := uint(0); ; shift += 7 {
  1163  				if shift >= 64 {
  1164  					return ErrIntOverflowPolicy
  1165  				}
  1166  				if iNdEx >= l {
  1167  					return io.ErrUnexpectedEOF
  1168  				}
  1169  				b := dAtA[iNdEx]
  1170  				iNdEx++
  1171  				stringLen |= uint64(b&0x7F) << shift
  1172  				if b < 0x80 {
  1173  					break
  1174  				}
  1175  			}
  1176  			intStringLen := int(stringLen)
  1177  			if intStringLen < 0 {
  1178  				return ErrInvalidLengthPolicy
  1179  			}
  1180  			postIndex := iNdEx + intStringLen
  1181  			if postIndex < 0 {
  1182  				return ErrInvalidLengthPolicy
  1183  			}
  1184  			if postIndex > l {
  1185  				return io.ErrUnexpectedEOF
  1186  			}
  1187  			m.Name = string(dAtA[iNdEx:postIndex])
  1188  			iNdEx = postIndex
  1189  		case 3:
  1190  			if wireType != 2 {
  1191  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  1192  			}
  1193  			var stringLen uint64
  1194  			for shift := uint(0); ; shift += 7 {
  1195  				if shift >= 64 {
  1196  					return ErrIntOverflowPolicy
  1197  				}
  1198  				if iNdEx >= l {
  1199  					return io.ErrUnexpectedEOF
  1200  				}
  1201  				b := dAtA[iNdEx]
  1202  				iNdEx++
  1203  				stringLen |= uint64(b&0x7F) << shift
  1204  				if b < 0x80 {
  1205  					break
  1206  				}
  1207  			}
  1208  			intStringLen := int(stringLen)
  1209  			if intStringLen < 0 {
  1210  				return ErrInvalidLengthPolicy
  1211  			}
  1212  			postIndex := iNdEx + intStringLen
  1213  			if postIndex < 0 {
  1214  				return ErrInvalidLengthPolicy
  1215  			}
  1216  			if postIndex > l {
  1217  				return io.ErrUnexpectedEOF
  1218  			}
  1219  			m.Version = string(dAtA[iNdEx:postIndex])
  1220  			iNdEx = postIndex
  1221  		default:
  1222  			iNdEx = preIndex
  1223  			skippy, err := skipPolicy(dAtA[iNdEx:])
  1224  			if err != nil {
  1225  				return err
  1226  			}
  1227  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1228  				return ErrInvalidLengthPolicy
  1229  			}
  1230  			if (iNdEx + skippy) > l {
  1231  				return io.ErrUnexpectedEOF
  1232  			}
  1233  			iNdEx += skippy
  1234  		}
  1235  	}
  1236  
  1237  	if iNdEx > l {
  1238  		return io.ErrUnexpectedEOF
  1239  	}
  1240  	return nil
  1241  }
  1242  func (m *PolicyRequestMessage) Unmarshal(dAtA []byte) error {
  1243  	l := len(dAtA)
  1244  	iNdEx := 0
  1245  	for iNdEx < l {
  1246  		preIndex := iNdEx
  1247  		var wire uint64
  1248  		for shift := uint(0); ; shift += 7 {
  1249  			if shift >= 64 {
  1250  				return ErrIntOverflowPolicy
  1251  			}
  1252  			if iNdEx >= l {
  1253  				return io.ErrUnexpectedEOF
  1254  			}
  1255  			b := dAtA[iNdEx]
  1256  			iNdEx++
  1257  			wire |= uint64(b&0x7F) << shift
  1258  			if b < 0x80 {
  1259  				break
  1260  			}
  1261  		}
  1262  		fieldNum := int32(wire >> 3)
  1263  		wireType := int(wire & 0x7)
  1264  		if wireType == 4 {
  1265  			return fmt.Errorf("proto: PolicyRequestMessage: wiretype end group for non-group")
  1266  		}
  1267  		if fieldNum <= 0 {
  1268  			return fmt.Errorf("proto: PolicyRequestMessage: illegal tag %d (wire type %d)", fieldNum, wire)
  1269  		}
  1270  		switch fieldNum {
  1271  		case 1:
  1272  			if wireType != 2 {
  1273  				return fmt.Errorf("proto: wrong wireType = %d for field PolicyId", wireType)
  1274  			}
  1275  			var stringLen uint64
  1276  			for shift := uint(0); ; shift += 7 {
  1277  				if shift >= 64 {
  1278  					return ErrIntOverflowPolicy
  1279  				}
  1280  				if iNdEx >= l {
  1281  					return io.ErrUnexpectedEOF
  1282  				}
  1283  				b := dAtA[iNdEx]
  1284  				iNdEx++
  1285  				stringLen |= uint64(b&0x7F) << shift
  1286  				if b < 0x80 {
  1287  					break
  1288  				}
  1289  			}
  1290  			intStringLen := int(stringLen)
  1291  			if intStringLen < 0 {
  1292  				return ErrInvalidLengthPolicy
  1293  			}
  1294  			postIndex := iNdEx + intStringLen
  1295  			if postIndex < 0 {
  1296  				return ErrInvalidLengthPolicy
  1297  			}
  1298  			if postIndex > l {
  1299  				return io.ErrUnexpectedEOF
  1300  			}
  1301  			m.PolicyId = string(dAtA[iNdEx:postIndex])
  1302  			iNdEx = postIndex
  1303  		case 2:
  1304  			if wireType != 2 {
  1305  				return fmt.Errorf("proto: wrong wireType = %d for field PolicyType", wireType)
  1306  			}
  1307  			var msglen int
  1308  			for shift := uint(0); ; shift += 7 {
  1309  				if shift >= 64 {
  1310  					return ErrIntOverflowPolicy
  1311  				}
  1312  				if iNdEx >= l {
  1313  					return io.ErrUnexpectedEOF
  1314  				}
  1315  				b := dAtA[iNdEx]
  1316  				iNdEx++
  1317  				msglen |= int(b&0x7F) << shift
  1318  				if b < 0x80 {
  1319  					break
  1320  				}
  1321  			}
  1322  			if msglen < 0 {
  1323  				return ErrInvalidLengthPolicy
  1324  			}
  1325  			postIndex := iNdEx + msglen
  1326  			if postIndex < 0 {
  1327  				return ErrInvalidLengthPolicy
  1328  			}
  1329  			if postIndex > l {
  1330  				return io.ErrUnexpectedEOF
  1331  			}
  1332  			if m.PolicyType == nil {
  1333  				m.PolicyType = &PolicyType{}
  1334  			}
  1335  			if err := m.PolicyType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1336  				return err
  1337  			}
  1338  			iNdEx = postIndex
  1339  		case 3:
  1340  			if wireType != 2 {
  1341  				return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  1342  			}
  1343  			var msglen int
  1344  			for shift := uint(0); ; shift += 7 {
  1345  				if shift >= 64 {
  1346  					return ErrIntOverflowPolicy
  1347  				}
  1348  				if iNdEx >= l {
  1349  					return io.ErrUnexpectedEOF
  1350  				}
  1351  				b := dAtA[iNdEx]
  1352  				iNdEx++
  1353  				msglen |= int(b&0x7F) << shift
  1354  				if b < 0x80 {
  1355  					break
  1356  				}
  1357  			}
  1358  			if msglen < 0 {
  1359  				return ErrInvalidLengthPolicy
  1360  			}
  1361  			postIndex := iNdEx + msglen
  1362  			if postIndex < 0 {
  1363  				return ErrInvalidLengthPolicy
  1364  			}
  1365  			if postIndex > l {
  1366  				return io.ErrUnexpectedEOF
  1367  			}
  1368  			if m.Message == nil {
  1369  				m.Message = &RequestMessage{}
  1370  			}
  1371  			if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1372  				return err
  1373  			}
  1374  			iNdEx = postIndex
  1375  		case 4:
  1376  			if wireType != 2 {
  1377  				return fmt.Errorf("proto: wrong wireType = %d for field NotificationDestination", wireType)
  1378  			}
  1379  			var stringLen uint64
  1380  			for shift := uint(0); ; shift += 7 {
  1381  				if shift >= 64 {
  1382  					return ErrIntOverflowPolicy
  1383  				}
  1384  				if iNdEx >= l {
  1385  					return io.ErrUnexpectedEOF
  1386  				}
  1387  				b := dAtA[iNdEx]
  1388  				iNdEx++
  1389  				stringLen |= uint64(b&0x7F) << shift
  1390  				if b < 0x80 {
  1391  					break
  1392  				}
  1393  			}
  1394  			intStringLen := int(stringLen)
  1395  			if intStringLen < 0 {
  1396  				return ErrInvalidLengthPolicy
  1397  			}
  1398  			postIndex := iNdEx + intStringLen
  1399  			if postIndex < 0 {
  1400  				return ErrInvalidLengthPolicy
  1401  			}
  1402  			if postIndex > l {
  1403  				return io.ErrUnexpectedEOF
  1404  			}
  1405  			m.NotificationDestination = string(dAtA[iNdEx:postIndex])
  1406  			iNdEx = postIndex
  1407  		default:
  1408  			iNdEx = preIndex
  1409  			skippy, err := skipPolicy(dAtA[iNdEx:])
  1410  			if err != nil {
  1411  				return err
  1412  			}
  1413  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1414  				return ErrInvalidLengthPolicy
  1415  			}
  1416  			if (iNdEx + skippy) > l {
  1417  				return io.ErrUnexpectedEOF
  1418  			}
  1419  			iNdEx += skippy
  1420  		}
  1421  	}
  1422  
  1423  	if iNdEx > l {
  1424  		return io.ErrUnexpectedEOF
  1425  	}
  1426  	return nil
  1427  }
  1428  func (m *PolicyResultMessage) Unmarshal(dAtA []byte) error {
  1429  	l := len(dAtA)
  1430  	iNdEx := 0
  1431  	for iNdEx < l {
  1432  		preIndex := iNdEx
  1433  		var wire uint64
  1434  		for shift := uint(0); ; shift += 7 {
  1435  			if shift >= 64 {
  1436  				return ErrIntOverflowPolicy
  1437  			}
  1438  			if iNdEx >= l {
  1439  				return io.ErrUnexpectedEOF
  1440  			}
  1441  			b := dAtA[iNdEx]
  1442  			iNdEx++
  1443  			wire |= uint64(b&0x7F) << shift
  1444  			if b < 0x80 {
  1445  				break
  1446  			}
  1447  		}
  1448  		fieldNum := int32(wire >> 3)
  1449  		wireType := int(wire & 0x7)
  1450  		if wireType == 4 {
  1451  			return fmt.Errorf("proto: PolicyResultMessage: wiretype end group for non-group")
  1452  		}
  1453  		if fieldNum <= 0 {
  1454  			return fmt.Errorf("proto: PolicyResultMessage: illegal tag %d (wire type %d)", fieldNum, wire)
  1455  		}
  1456  		switch fieldNum {
  1457  		case 1:
  1458  			if wireType != 2 {
  1459  				return fmt.Errorf("proto: wrong wireType = %d for field PolicyId", wireType)
  1460  			}
  1461  			var stringLen uint64
  1462  			for shift := uint(0); ; shift += 7 {
  1463  				if shift >= 64 {
  1464  					return ErrIntOverflowPolicy
  1465  				}
  1466  				if iNdEx >= l {
  1467  					return io.ErrUnexpectedEOF
  1468  				}
  1469  				b := dAtA[iNdEx]
  1470  				iNdEx++
  1471  				stringLen |= uint64(b&0x7F) << shift
  1472  				if b < 0x80 {
  1473  					break
  1474  				}
  1475  			}
  1476  			intStringLen := int(stringLen)
  1477  			if intStringLen < 0 {
  1478  				return ErrInvalidLengthPolicy
  1479  			}
  1480  			postIndex := iNdEx + intStringLen
  1481  			if postIndex < 0 {
  1482  				return ErrInvalidLengthPolicy
  1483  			}
  1484  			if postIndex > l {
  1485  				return io.ErrUnexpectedEOF
  1486  			}
  1487  			m.PolicyId = string(dAtA[iNdEx:postIndex])
  1488  			iNdEx = postIndex
  1489  		case 2:
  1490  			if wireType != 2 {
  1491  				return fmt.Errorf("proto: wrong wireType = %d for field PolicyType", wireType)
  1492  			}
  1493  			var msglen int
  1494  			for shift := uint(0); ; shift += 7 {
  1495  				if shift >= 64 {
  1496  					return ErrIntOverflowPolicy
  1497  				}
  1498  				if iNdEx >= l {
  1499  					return io.ErrUnexpectedEOF
  1500  				}
  1501  				b := dAtA[iNdEx]
  1502  				iNdEx++
  1503  				msglen |= int(b&0x7F) << shift
  1504  				if b < 0x80 {
  1505  					break
  1506  				}
  1507  			}
  1508  			if msglen < 0 {
  1509  				return ErrInvalidLengthPolicy
  1510  			}
  1511  			postIndex := iNdEx + msglen
  1512  			if postIndex < 0 {
  1513  				return ErrInvalidLengthPolicy
  1514  			}
  1515  			if postIndex > l {
  1516  				return io.ErrUnexpectedEOF
  1517  			}
  1518  			if m.PolicyType == nil {
  1519  				m.PolicyType = &PolicyType{}
  1520  			}
  1521  			if err := m.PolicyType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1522  				return err
  1523  			}
  1524  			iNdEx = postIndex
  1525  		case 3:
  1526  			if wireType != 2 {
  1527  				return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  1528  			}
  1529  			var msglen int
  1530  			for shift := uint(0); ; shift += 7 {
  1531  				if shift >= 64 {
  1532  					return ErrIntOverflowPolicy
  1533  				}
  1534  				if iNdEx >= l {
  1535  					return io.ErrUnexpectedEOF
  1536  				}
  1537  				b := dAtA[iNdEx]
  1538  				iNdEx++
  1539  				msglen |= int(b&0x7F) << shift
  1540  				if b < 0x80 {
  1541  					break
  1542  				}
  1543  			}
  1544  			if msglen < 0 {
  1545  				return ErrInvalidLengthPolicy
  1546  			}
  1547  			postIndex := iNdEx + msglen
  1548  			if postIndex < 0 {
  1549  				return ErrInvalidLengthPolicy
  1550  			}
  1551  			if postIndex > l {
  1552  				return io.ErrUnexpectedEOF
  1553  			}
  1554  			if m.Message == nil {
  1555  				m.Message = &ResultMessage{}
  1556  			}
  1557  			if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1558  				return err
  1559  			}
  1560  			iNdEx = postIndex
  1561  		case 4:
  1562  			if wireType != 2 {
  1563  				return fmt.Errorf("proto: wrong wireType = %d for field NotificationDestination", wireType)
  1564  			}
  1565  			var stringLen uint64
  1566  			for shift := uint(0); ; shift += 7 {
  1567  				if shift >= 64 {
  1568  					return ErrIntOverflowPolicy
  1569  				}
  1570  				if iNdEx >= l {
  1571  					return io.ErrUnexpectedEOF
  1572  				}
  1573  				b := dAtA[iNdEx]
  1574  				iNdEx++
  1575  				stringLen |= uint64(b&0x7F) << shift
  1576  				if b < 0x80 {
  1577  					break
  1578  				}
  1579  			}
  1580  			intStringLen := int(stringLen)
  1581  			if intStringLen < 0 {
  1582  				return ErrInvalidLengthPolicy
  1583  			}
  1584  			postIndex := iNdEx + intStringLen
  1585  			if postIndex < 0 {
  1586  				return ErrInvalidLengthPolicy
  1587  			}
  1588  			if postIndex > l {
  1589  				return io.ErrUnexpectedEOF
  1590  			}
  1591  			m.NotificationDestination = string(dAtA[iNdEx:postIndex])
  1592  			iNdEx = postIndex
  1593  		default:
  1594  			iNdEx = preIndex
  1595  			skippy, err := skipPolicy(dAtA[iNdEx:])
  1596  			if err != nil {
  1597  				return err
  1598  			}
  1599  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1600  				return ErrInvalidLengthPolicy
  1601  			}
  1602  			if (iNdEx + skippy) > l {
  1603  				return io.ErrUnexpectedEOF
  1604  			}
  1605  			iNdEx += skippy
  1606  		}
  1607  	}
  1608  
  1609  	if iNdEx > l {
  1610  		return io.ErrUnexpectedEOF
  1611  	}
  1612  	return nil
  1613  }
  1614  func (m *PolicyStatusMessage) Unmarshal(dAtA []byte) error {
  1615  	l := len(dAtA)
  1616  	iNdEx := 0
  1617  	for iNdEx < l {
  1618  		preIndex := iNdEx
  1619  		var wire uint64
  1620  		for shift := uint(0); ; shift += 7 {
  1621  			if shift >= 64 {
  1622  				return ErrIntOverflowPolicy
  1623  			}
  1624  			if iNdEx >= l {
  1625  				return io.ErrUnexpectedEOF
  1626  			}
  1627  			b := dAtA[iNdEx]
  1628  			iNdEx++
  1629  			wire |= uint64(b&0x7F) << shift
  1630  			if b < 0x80 {
  1631  				break
  1632  			}
  1633  		}
  1634  		fieldNum := int32(wire >> 3)
  1635  		wireType := int(wire & 0x7)
  1636  		if wireType == 4 {
  1637  			return fmt.Errorf("proto: PolicyStatusMessage: wiretype end group for non-group")
  1638  		}
  1639  		if fieldNum <= 0 {
  1640  			return fmt.Errorf("proto: PolicyStatusMessage: illegal tag %d (wire type %d)", fieldNum, wire)
  1641  		}
  1642  		switch fieldNum {
  1643  		case 1:
  1644  			if wireType != 2 {
  1645  				return fmt.Errorf("proto: wrong wireType = %d for field PolicyId", wireType)
  1646  			}
  1647  			var stringLen uint64
  1648  			for shift := uint(0); ; shift += 7 {
  1649  				if shift >= 64 {
  1650  					return ErrIntOverflowPolicy
  1651  				}
  1652  				if iNdEx >= l {
  1653  					return io.ErrUnexpectedEOF
  1654  				}
  1655  				b := dAtA[iNdEx]
  1656  				iNdEx++
  1657  				stringLen |= uint64(b&0x7F) << shift
  1658  				if b < 0x80 {
  1659  					break
  1660  				}
  1661  			}
  1662  			intStringLen := int(stringLen)
  1663  			if intStringLen < 0 {
  1664  				return ErrInvalidLengthPolicy
  1665  			}
  1666  			postIndex := iNdEx + intStringLen
  1667  			if postIndex < 0 {
  1668  				return ErrInvalidLengthPolicy
  1669  			}
  1670  			if postIndex > l {
  1671  				return io.ErrUnexpectedEOF
  1672  			}
  1673  			m.PolicyId = string(dAtA[iNdEx:postIndex])
  1674  			iNdEx = postIndex
  1675  		case 2:
  1676  			if wireType != 2 {
  1677  				return fmt.Errorf("proto: wrong wireType = %d for field PolicyType", wireType)
  1678  			}
  1679  			var msglen int
  1680  			for shift := uint(0); ; shift += 7 {
  1681  				if shift >= 64 {
  1682  					return ErrIntOverflowPolicy
  1683  				}
  1684  				if iNdEx >= l {
  1685  					return io.ErrUnexpectedEOF
  1686  				}
  1687  				b := dAtA[iNdEx]
  1688  				iNdEx++
  1689  				msglen |= int(b&0x7F) << shift
  1690  				if b < 0x80 {
  1691  					break
  1692  				}
  1693  			}
  1694  			if msglen < 0 {
  1695  				return ErrInvalidLengthPolicy
  1696  			}
  1697  			postIndex := iNdEx + msglen
  1698  			if postIndex < 0 {
  1699  				return ErrInvalidLengthPolicy
  1700  			}
  1701  			if postIndex > l {
  1702  				return io.ErrUnexpectedEOF
  1703  			}
  1704  			if m.PolicyType == nil {
  1705  				m.PolicyType = &PolicyType{}
  1706  			}
  1707  			if err := m.PolicyType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1708  				return err
  1709  			}
  1710  			iNdEx = postIndex
  1711  		case 3:
  1712  			if wireType != 2 {
  1713  				return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  1714  			}
  1715  			var msglen int
  1716  			for shift := uint(0); ; shift += 7 {
  1717  				if shift >= 64 {
  1718  					return ErrIntOverflowPolicy
  1719  				}
  1720  				if iNdEx >= l {
  1721  					return io.ErrUnexpectedEOF
  1722  				}
  1723  				b := dAtA[iNdEx]
  1724  				iNdEx++
  1725  				msglen |= int(b&0x7F) << shift
  1726  				if b < 0x80 {
  1727  					break
  1728  				}
  1729  			}
  1730  			if msglen < 0 {
  1731  				return ErrInvalidLengthPolicy
  1732  			}
  1733  			postIndex := iNdEx + msglen
  1734  			if postIndex < 0 {
  1735  				return ErrInvalidLengthPolicy
  1736  			}
  1737  			if postIndex > l {
  1738  				return io.ErrUnexpectedEOF
  1739  			}
  1740  			if m.Message == nil {
  1741  				m.Message = &StatusMessage{}
  1742  			}
  1743  			if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1744  				return err
  1745  			}
  1746  			iNdEx = postIndex
  1747  		case 4:
  1748  			if wireType != 2 {
  1749  				return fmt.Errorf("proto: wrong wireType = %d for field NotificationDestination", wireType)
  1750  			}
  1751  			var stringLen uint64
  1752  			for shift := uint(0); ; shift += 7 {
  1753  				if shift >= 64 {
  1754  					return ErrIntOverflowPolicy
  1755  				}
  1756  				if iNdEx >= l {
  1757  					return io.ErrUnexpectedEOF
  1758  				}
  1759  				b := dAtA[iNdEx]
  1760  				iNdEx++
  1761  				stringLen |= uint64(b&0x7F) << shift
  1762  				if b < 0x80 {
  1763  					break
  1764  				}
  1765  			}
  1766  			intStringLen := int(stringLen)
  1767  			if intStringLen < 0 {
  1768  				return ErrInvalidLengthPolicy
  1769  			}
  1770  			postIndex := iNdEx + intStringLen
  1771  			if postIndex < 0 {
  1772  				return ErrInvalidLengthPolicy
  1773  			}
  1774  			if postIndex > l {
  1775  				return io.ErrUnexpectedEOF
  1776  			}
  1777  			m.NotificationDestination = string(dAtA[iNdEx:postIndex])
  1778  			iNdEx = postIndex
  1779  		default:
  1780  			iNdEx = preIndex
  1781  			skippy, err := skipPolicy(dAtA[iNdEx:])
  1782  			if err != nil {
  1783  				return err
  1784  			}
  1785  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1786  				return ErrInvalidLengthPolicy
  1787  			}
  1788  			if (iNdEx + skippy) > l {
  1789  				return io.ErrUnexpectedEOF
  1790  			}
  1791  			iNdEx += skippy
  1792  		}
  1793  	}
  1794  
  1795  	if iNdEx > l {
  1796  		return io.ErrUnexpectedEOF
  1797  	}
  1798  	return nil
  1799  }
  1800  func (m *PolicyAckMessage) Unmarshal(dAtA []byte) error {
  1801  	l := len(dAtA)
  1802  	iNdEx := 0
  1803  	for iNdEx < l {
  1804  		preIndex := iNdEx
  1805  		var wire uint64
  1806  		for shift := uint(0); ; shift += 7 {
  1807  			if shift >= 64 {
  1808  				return ErrIntOverflowPolicy
  1809  			}
  1810  			if iNdEx >= l {
  1811  				return io.ErrUnexpectedEOF
  1812  			}
  1813  			b := dAtA[iNdEx]
  1814  			iNdEx++
  1815  			wire |= uint64(b&0x7F) << shift
  1816  			if b < 0x80 {
  1817  				break
  1818  			}
  1819  		}
  1820  		fieldNum := int32(wire >> 3)
  1821  		wireType := int(wire & 0x7)
  1822  		if wireType == 4 {
  1823  			return fmt.Errorf("proto: PolicyAckMessage: wiretype end group for non-group")
  1824  		}
  1825  		if fieldNum <= 0 {
  1826  			return fmt.Errorf("proto: PolicyAckMessage: illegal tag %d (wire type %d)", fieldNum, wire)
  1827  		}
  1828  		switch fieldNum {
  1829  		case 1:
  1830  			if wireType != 2 {
  1831  				return fmt.Errorf("proto: wrong wireType = %d for field PolicyId", wireType)
  1832  			}
  1833  			var stringLen uint64
  1834  			for shift := uint(0); ; shift += 7 {
  1835  				if shift >= 64 {
  1836  					return ErrIntOverflowPolicy
  1837  				}
  1838  				if iNdEx >= l {
  1839  					return io.ErrUnexpectedEOF
  1840  				}
  1841  				b := dAtA[iNdEx]
  1842  				iNdEx++
  1843  				stringLen |= uint64(b&0x7F) << shift
  1844  				if b < 0x80 {
  1845  					break
  1846  				}
  1847  			}
  1848  			intStringLen := int(stringLen)
  1849  			if intStringLen < 0 {
  1850  				return ErrInvalidLengthPolicy
  1851  			}
  1852  			postIndex := iNdEx + intStringLen
  1853  			if postIndex < 0 {
  1854  				return ErrInvalidLengthPolicy
  1855  			}
  1856  			if postIndex > l {
  1857  				return io.ErrUnexpectedEOF
  1858  			}
  1859  			m.PolicyId = string(dAtA[iNdEx:postIndex])
  1860  			iNdEx = postIndex
  1861  		case 2:
  1862  			if wireType != 2 {
  1863  				return fmt.Errorf("proto: wrong wireType = %d for field PolicyType", wireType)
  1864  			}
  1865  			var msglen int
  1866  			for shift := uint(0); ; shift += 7 {
  1867  				if shift >= 64 {
  1868  					return ErrIntOverflowPolicy
  1869  				}
  1870  				if iNdEx >= l {
  1871  					return io.ErrUnexpectedEOF
  1872  				}
  1873  				b := dAtA[iNdEx]
  1874  				iNdEx++
  1875  				msglen |= int(b&0x7F) << shift
  1876  				if b < 0x80 {
  1877  					break
  1878  				}
  1879  			}
  1880  			if msglen < 0 {
  1881  				return ErrInvalidLengthPolicy
  1882  			}
  1883  			postIndex := iNdEx + msglen
  1884  			if postIndex < 0 {
  1885  				return ErrInvalidLengthPolicy
  1886  			}
  1887  			if postIndex > l {
  1888  				return io.ErrUnexpectedEOF
  1889  			}
  1890  			if m.PolicyType == nil {
  1891  				m.PolicyType = &PolicyType{}
  1892  			}
  1893  			if err := m.PolicyType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1894  				return err
  1895  			}
  1896  			iNdEx = postIndex
  1897  		case 3:
  1898  			if wireType != 2 {
  1899  				return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  1900  			}
  1901  			var msglen int
  1902  			for shift := uint(0); ; shift += 7 {
  1903  				if shift >= 64 {
  1904  					return ErrIntOverflowPolicy
  1905  				}
  1906  				if iNdEx >= l {
  1907  					return io.ErrUnexpectedEOF
  1908  				}
  1909  				b := dAtA[iNdEx]
  1910  				iNdEx++
  1911  				msglen |= int(b&0x7F) << shift
  1912  				if b < 0x80 {
  1913  					break
  1914  				}
  1915  			}
  1916  			if msglen < 0 {
  1917  				return ErrInvalidLengthPolicy
  1918  			}
  1919  			postIndex := iNdEx + msglen
  1920  			if postIndex < 0 {
  1921  				return ErrInvalidLengthPolicy
  1922  			}
  1923  			if postIndex > l {
  1924  				return io.ErrUnexpectedEOF
  1925  			}
  1926  			if m.Message == nil {
  1927  				m.Message = &AckMessage{}
  1928  			}
  1929  			if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1930  				return err
  1931  			}
  1932  			iNdEx = postIndex
  1933  		case 4:
  1934  			if wireType != 2 {
  1935  				return fmt.Errorf("proto: wrong wireType = %d for field NotificationDestination", wireType)
  1936  			}
  1937  			var stringLen uint64
  1938  			for shift := uint(0); ; shift += 7 {
  1939  				if shift >= 64 {
  1940  					return ErrIntOverflowPolicy
  1941  				}
  1942  				if iNdEx >= l {
  1943  					return io.ErrUnexpectedEOF
  1944  				}
  1945  				b := dAtA[iNdEx]
  1946  				iNdEx++
  1947  				stringLen |= uint64(b&0x7F) << shift
  1948  				if b < 0x80 {
  1949  					break
  1950  				}
  1951  			}
  1952  			intStringLen := int(stringLen)
  1953  			if intStringLen < 0 {
  1954  				return ErrInvalidLengthPolicy
  1955  			}
  1956  			postIndex := iNdEx + intStringLen
  1957  			if postIndex < 0 {
  1958  				return ErrInvalidLengthPolicy
  1959  			}
  1960  			if postIndex > l {
  1961  				return io.ErrUnexpectedEOF
  1962  			}
  1963  			m.NotificationDestination = string(dAtA[iNdEx:postIndex])
  1964  			iNdEx = postIndex
  1965  		default:
  1966  			iNdEx = preIndex
  1967  			skippy, err := skipPolicy(dAtA[iNdEx:])
  1968  			if err != nil {
  1969  				return err
  1970  			}
  1971  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1972  				return ErrInvalidLengthPolicy
  1973  			}
  1974  			if (iNdEx + skippy) > l {
  1975  				return io.ErrUnexpectedEOF
  1976  			}
  1977  			iNdEx += skippy
  1978  		}
  1979  	}
  1980  
  1981  	if iNdEx > l {
  1982  		return io.ErrUnexpectedEOF
  1983  	}
  1984  	return nil
  1985  }
  1986  func skipPolicy(dAtA []byte) (n int, err error) {
  1987  	l := len(dAtA)
  1988  	iNdEx := 0
  1989  	depth := 0
  1990  	for iNdEx < l {
  1991  		var wire uint64
  1992  		for shift := uint(0); ; shift += 7 {
  1993  			if shift >= 64 {
  1994  				return 0, ErrIntOverflowPolicy
  1995  			}
  1996  			if iNdEx >= l {
  1997  				return 0, io.ErrUnexpectedEOF
  1998  			}
  1999  			b := dAtA[iNdEx]
  2000  			iNdEx++
  2001  			wire |= (uint64(b) & 0x7F) << shift
  2002  			if b < 0x80 {
  2003  				break
  2004  			}
  2005  		}
  2006  		wireType := int(wire & 0x7)
  2007  		switch wireType {
  2008  		case 0:
  2009  			for shift := uint(0); ; shift += 7 {
  2010  				if shift >= 64 {
  2011  					return 0, ErrIntOverflowPolicy
  2012  				}
  2013  				if iNdEx >= l {
  2014  					return 0, io.ErrUnexpectedEOF
  2015  				}
  2016  				iNdEx++
  2017  				if dAtA[iNdEx-1] < 0x80 {
  2018  					break
  2019  				}
  2020  			}
  2021  		case 1:
  2022  			iNdEx += 8
  2023  		case 2:
  2024  			var length int
  2025  			for shift := uint(0); ; shift += 7 {
  2026  				if shift >= 64 {
  2027  					return 0, ErrIntOverflowPolicy
  2028  				}
  2029  				if iNdEx >= l {
  2030  					return 0, io.ErrUnexpectedEOF
  2031  				}
  2032  				b := dAtA[iNdEx]
  2033  				iNdEx++
  2034  				length |= (int(b) & 0x7F) << shift
  2035  				if b < 0x80 {
  2036  					break
  2037  				}
  2038  			}
  2039  			if length < 0 {
  2040  				return 0, ErrInvalidLengthPolicy
  2041  			}
  2042  			iNdEx += length
  2043  		case 3:
  2044  			depth++
  2045  		case 4:
  2046  			if depth == 0 {
  2047  				return 0, ErrUnexpectedEndOfGroupPolicy
  2048  			}
  2049  			depth--
  2050  		case 5:
  2051  			iNdEx += 4
  2052  		default:
  2053  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2054  		}
  2055  		if iNdEx < 0 {
  2056  			return 0, ErrInvalidLengthPolicy
  2057  		}
  2058  		if depth == 0 {
  2059  			return iNdEx, nil
  2060  		}
  2061  	}
  2062  	return 0, io.ErrUnexpectedEOF
  2063  }
  2064  
  2065  var (
  2066  	ErrInvalidLengthPolicy        = fmt.Errorf("proto: negative length found during unmarshaling")
  2067  	ErrIntOverflowPolicy          = fmt.Errorf("proto: integer overflow")
  2068  	ErrUnexpectedEndOfGroupPolicy = fmt.Errorf("proto: unexpected end of group")
  2069  )