github.com/CyCoreSystems/ari@v4.8.4+incompatible/ari.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: ari.proto
     3  
     4  /*
     5  	Package ari is a generated protocol buffer package.
     6  
     7  	It is generated from these files:
     8  		ari.proto
     9  
    10  	It has these top-level messages:
    11  		Key
    12  		CallerID
    13  		ChannelData
    14  		DialplanCEP
    15  */
    16  package ari
    17  
    18  import proto "github.com/gogo/protobuf/proto"
    19  import fmt "fmt"
    20  import math "math"
    21  import _ "github.com/gogo/protobuf/gogoproto"
    22  import google_protobuf1 "github.com/gogo/protobuf/types"
    23  
    24  import io "io"
    25  
    26  // Reference imports to suppress errors if they are not otherwise used.
    27  var _ = proto.Marshal
    28  var _ = fmt.Errorf
    29  var _ = math.Inf
    30  
    31  // This is a compile-time assertion to ensure that this generated file
    32  // is compatible with the proto package it is being compiled against.
    33  // A compilation error at this line likely means your copy of the
    34  // proto package needs to be updated.
    35  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    36  
    37  // Key identifies a unique resource in the system
    38  type Key struct {
    39  	// Kind indicates the type of resource the Key points to.  e.g., "channel",
    40  	// "bridge", etc.
    41  	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
    42  	// ID indicates the unique identifier of the resource
    43  	ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
    44  	// Node indicates the unique identifier of the Asterisk node on which the
    45  	// resource exists or will be created
    46  	Node string `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"`
    47  	// Dialog indicates a named scope of the resource, for receiving events
    48  	Dialog string `protobuf:"bytes,4,opt,name=dialog,proto3" json:"dialog,omitempty"`
    49  	// App indiciates the ARI application that this key is bound to.
    50  	App string `protobuf:"bytes,5,opt,name=app,proto3" json:"app,omitempty"`
    51  }
    52  
    53  func (m *Key) Reset()                    { *m = Key{} }
    54  func (*Key) ProtoMessage()               {}
    55  func (*Key) Descriptor() ([]byte, []int) { return fileDescriptorAri, []int{0} }
    56  
    57  func (m *Key) GetKind() string {
    58  	if m != nil {
    59  		return m.Kind
    60  	}
    61  	return ""
    62  }
    63  
    64  func (m *Key) GetID() string {
    65  	if m != nil {
    66  		return m.ID
    67  	}
    68  	return ""
    69  }
    70  
    71  func (m *Key) GetNode() string {
    72  	if m != nil {
    73  		return m.Node
    74  	}
    75  	return ""
    76  }
    77  
    78  func (m *Key) GetDialog() string {
    79  	if m != nil {
    80  		return m.Dialog
    81  	}
    82  	return ""
    83  }
    84  
    85  func (m *Key) GetApp() string {
    86  	if m != nil {
    87  		return m.App
    88  	}
    89  	return ""
    90  }
    91  
    92  // CallerID describes the name and number which identifies the caller to other endpoints
    93  type CallerID struct {
    94  	// Name is the name of the party
    95  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    96  	// Number is the number of the party
    97  	Number string `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"`
    98  }
    99  
   100  func (m *CallerID) Reset()                    { *m = CallerID{} }
   101  func (*CallerID) ProtoMessage()               {}
   102  func (*CallerID) Descriptor() ([]byte, []int) { return fileDescriptorAri, []int{1} }
   103  
   104  func (m *CallerID) GetName() string {
   105  	if m != nil {
   106  		return m.Name
   107  	}
   108  	return ""
   109  }
   110  
   111  func (m *CallerID) GetNumber() string {
   112  	if m != nil {
   113  		return m.Number
   114  	}
   115  	return ""
   116  }
   117  
   118  // ChannelData describes the data for a specific channel
   119  type ChannelData struct {
   120  	// Key is the key of the channel
   121  	Key *Key `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
   122  	// Id is the unique ID for this channel (AMI-style)
   123  	ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
   124  	// Name is the name of this channel (tect/name-id)
   125  	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
   126  	// State is the current state of the channel
   127  	State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
   128  	// Accountcode is the account code assigned to the channel
   129  	Accountcode string `protobuf:"bytes,5,opt,name=accountcode,proto3" json:"accountcode,omitempty"`
   130  	// Caller is the callerID of the calling endpoint
   131  	Caller *CallerID `protobuf:"bytes,6,opt,name=caller" json:"caller,omitempty"`
   132  	// Connected is the callerID of the connected line, if applicable
   133  	Connected *CallerID `protobuf:"bytes,7,opt,name=connected" json:"connected,omitempty"`
   134  	// Creationtime is the time at which the channel was created
   135  	Creationtime *google_protobuf1.Timestamp `protobuf:"bytes,8,opt,name=creationtime" json:"creationtime,omitempty"`
   136  	// Dialplan is the current location of the channel in the dialplan
   137  	Dialplan *DialplanCEP `protobuf:"bytes,9,opt,name=dialplan" json:"dialplan,omitempty"`
   138  	// Language is the default spoken language for this channel
   139  	Language string `protobuf:"bytes,10,opt,name=language,proto3" json:"language,omitempty"`
   140  	// ChannelVars is the list of channel variables set on this channel
   141  	ChannelVars map[string]string `protobuf:"bytes,11,rep,name=channelvars" json:"channelvars,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   142  }
   143  
   144  func (m *ChannelData) Reset()                    { *m = ChannelData{} }
   145  func (m *ChannelData) String() string            { return proto.CompactTextString(m) }
   146  func (*ChannelData) ProtoMessage()               {}
   147  func (*ChannelData) Descriptor() ([]byte, []int) { return fileDescriptorAri, []int{2} }
   148  
   149  func (m *ChannelData) GetKey() *Key {
   150  	if m != nil {
   151  		return m.Key
   152  	}
   153  	return nil
   154  }
   155  
   156  func (m *ChannelData) GetID() string {
   157  	if m != nil {
   158  		return m.ID
   159  	}
   160  	return ""
   161  }
   162  
   163  func (m *ChannelData) GetName() string {
   164  	if m != nil {
   165  		return m.Name
   166  	}
   167  	return ""
   168  }
   169  
   170  func (m *ChannelData) GetState() string {
   171  	if m != nil {
   172  		return m.State
   173  	}
   174  	return ""
   175  }
   176  
   177  func (m *ChannelData) GetAccountcode() string {
   178  	if m != nil {
   179  		return m.Accountcode
   180  	}
   181  	return ""
   182  }
   183  
   184  func (m *ChannelData) GetCaller() *CallerID {
   185  	if m != nil {
   186  		return m.Caller
   187  	}
   188  	return nil
   189  }
   190  
   191  func (m *ChannelData) GetConnected() *CallerID {
   192  	if m != nil {
   193  		return m.Connected
   194  	}
   195  	return nil
   196  }
   197  
   198  func (m *ChannelData) GetCreationtime() *google_protobuf1.Timestamp {
   199  	if m != nil {
   200  		return m.Creationtime
   201  	}
   202  	return nil
   203  }
   204  
   205  func (m *ChannelData) GetDialplan() *DialplanCEP {
   206  	if m != nil {
   207  		return m.Dialplan
   208  	}
   209  	return nil
   210  }
   211  
   212  func (m *ChannelData) GetLanguage() string {
   213  	if m != nil {
   214  		return m.Language
   215  	}
   216  	return ""
   217  }
   218  
   219  func (m *ChannelData) GetChannelVars() map[string]string {
   220  	if m != nil {
   221  		return m.ChannelVars
   222  	}
   223  	return nil
   224  }
   225  
   226  // Dialplan describes a location in the Asterisk dialplan
   227  type DialplanCEP struct {
   228  	// Context describes the section in the dialplan
   229  	Context string `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
   230  	// Exten describes the label in the section of the dialplan
   231  	Exten string `protobuf:"bytes,2,opt,name=exten,proto3" json:"exten,omitempty"`
   232  	// Priority indicates the index at the label in the section of the dialplan
   233  	Priority int64 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"`
   234  }
   235  
   236  func (m *DialplanCEP) Reset()                    { *m = DialplanCEP{} }
   237  func (m *DialplanCEP) String() string            { return proto.CompactTextString(m) }
   238  func (*DialplanCEP) ProtoMessage()               {}
   239  func (*DialplanCEP) Descriptor() ([]byte, []int) { return fileDescriptorAri, []int{3} }
   240  
   241  func (m *DialplanCEP) GetContext() string {
   242  	if m != nil {
   243  		return m.Context
   244  	}
   245  	return ""
   246  }
   247  
   248  func (m *DialplanCEP) GetExten() string {
   249  	if m != nil {
   250  		return m.Exten
   251  	}
   252  	return ""
   253  }
   254  
   255  func (m *DialplanCEP) GetPriority() int64 {
   256  	if m != nil {
   257  		return m.Priority
   258  	}
   259  	return 0
   260  }
   261  
   262  func init() {
   263  	proto.RegisterType((*Key)(nil), "asterisk.ari.Key")
   264  	proto.RegisterType((*CallerID)(nil), "asterisk.ari.CallerID")
   265  	proto.RegisterType((*ChannelData)(nil), "asterisk.ari.ChannelData")
   266  	proto.RegisterType((*DialplanCEP)(nil), "asterisk.ari.DialplanCEP")
   267  }
   268  func (m *Key) Marshal() (dAtA []byte, err error) {
   269  	size := m.Size()
   270  	dAtA = make([]byte, size)
   271  	n, err := m.MarshalTo(dAtA)
   272  	if err != nil {
   273  		return nil, err
   274  	}
   275  	return dAtA[:n], nil
   276  }
   277  
   278  func (m *Key) MarshalTo(dAtA []byte) (int, error) {
   279  	var i int
   280  	_ = i
   281  	var l int
   282  	_ = l
   283  	if len(m.Kind) > 0 {
   284  		dAtA[i] = 0xa
   285  		i++
   286  		i = encodeVarintAri(dAtA, i, uint64(len(m.Kind)))
   287  		i += copy(dAtA[i:], m.Kind)
   288  	}
   289  	if len(m.ID) > 0 {
   290  		dAtA[i] = 0x12
   291  		i++
   292  		i = encodeVarintAri(dAtA, i, uint64(len(m.ID)))
   293  		i += copy(dAtA[i:], m.ID)
   294  	}
   295  	if len(m.Node) > 0 {
   296  		dAtA[i] = 0x1a
   297  		i++
   298  		i = encodeVarintAri(dAtA, i, uint64(len(m.Node)))
   299  		i += copy(dAtA[i:], m.Node)
   300  	}
   301  	if len(m.Dialog) > 0 {
   302  		dAtA[i] = 0x22
   303  		i++
   304  		i = encodeVarintAri(dAtA, i, uint64(len(m.Dialog)))
   305  		i += copy(dAtA[i:], m.Dialog)
   306  	}
   307  	if len(m.App) > 0 {
   308  		dAtA[i] = 0x2a
   309  		i++
   310  		i = encodeVarintAri(dAtA, i, uint64(len(m.App)))
   311  		i += copy(dAtA[i:], m.App)
   312  	}
   313  	return i, nil
   314  }
   315  
   316  func (m *CallerID) Marshal() (dAtA []byte, err error) {
   317  	size := m.Size()
   318  	dAtA = make([]byte, size)
   319  	n, err := m.MarshalTo(dAtA)
   320  	if err != nil {
   321  		return nil, err
   322  	}
   323  	return dAtA[:n], nil
   324  }
   325  
   326  func (m *CallerID) MarshalTo(dAtA []byte) (int, error) {
   327  	var i int
   328  	_ = i
   329  	var l int
   330  	_ = l
   331  	if len(m.Name) > 0 {
   332  		dAtA[i] = 0xa
   333  		i++
   334  		i = encodeVarintAri(dAtA, i, uint64(len(m.Name)))
   335  		i += copy(dAtA[i:], m.Name)
   336  	}
   337  	if len(m.Number) > 0 {
   338  		dAtA[i] = 0x12
   339  		i++
   340  		i = encodeVarintAri(dAtA, i, uint64(len(m.Number)))
   341  		i += copy(dAtA[i:], m.Number)
   342  	}
   343  	return i, nil
   344  }
   345  
   346  func (m *ChannelData) Marshal() (dAtA []byte, err error) {
   347  	size := m.Size()
   348  	dAtA = make([]byte, size)
   349  	n, err := m.MarshalTo(dAtA)
   350  	if err != nil {
   351  		return nil, err
   352  	}
   353  	return dAtA[:n], nil
   354  }
   355  
   356  func (m *ChannelData) MarshalTo(dAtA []byte) (int, error) {
   357  	var i int
   358  	_ = i
   359  	var l int
   360  	_ = l
   361  	if m.Key != nil {
   362  		dAtA[i] = 0xa
   363  		i++
   364  		i = encodeVarintAri(dAtA, i, uint64(m.Key.Size()))
   365  		n1, err := m.Key.MarshalTo(dAtA[i:])
   366  		if err != nil {
   367  			return 0, err
   368  		}
   369  		i += n1
   370  	}
   371  	if len(m.ID) > 0 {
   372  		dAtA[i] = 0x12
   373  		i++
   374  		i = encodeVarintAri(dAtA, i, uint64(len(m.ID)))
   375  		i += copy(dAtA[i:], m.ID)
   376  	}
   377  	if len(m.Name) > 0 {
   378  		dAtA[i] = 0x1a
   379  		i++
   380  		i = encodeVarintAri(dAtA, i, uint64(len(m.Name)))
   381  		i += copy(dAtA[i:], m.Name)
   382  	}
   383  	if len(m.State) > 0 {
   384  		dAtA[i] = 0x22
   385  		i++
   386  		i = encodeVarintAri(dAtA, i, uint64(len(m.State)))
   387  		i += copy(dAtA[i:], m.State)
   388  	}
   389  	if len(m.Accountcode) > 0 {
   390  		dAtA[i] = 0x2a
   391  		i++
   392  		i = encodeVarintAri(dAtA, i, uint64(len(m.Accountcode)))
   393  		i += copy(dAtA[i:], m.Accountcode)
   394  	}
   395  	if m.Caller != nil {
   396  		dAtA[i] = 0x32
   397  		i++
   398  		i = encodeVarintAri(dAtA, i, uint64(m.Caller.Size()))
   399  		n2, err := m.Caller.MarshalTo(dAtA[i:])
   400  		if err != nil {
   401  			return 0, err
   402  		}
   403  		i += n2
   404  	}
   405  	if m.Connected != nil {
   406  		dAtA[i] = 0x3a
   407  		i++
   408  		i = encodeVarintAri(dAtA, i, uint64(m.Connected.Size()))
   409  		n3, err := m.Connected.MarshalTo(dAtA[i:])
   410  		if err != nil {
   411  			return 0, err
   412  		}
   413  		i += n3
   414  	}
   415  	if m.Creationtime != nil {
   416  		dAtA[i] = 0x42
   417  		i++
   418  		i = encodeVarintAri(dAtA, i, uint64(m.Creationtime.Size()))
   419  		n4, err := m.Creationtime.MarshalTo(dAtA[i:])
   420  		if err != nil {
   421  			return 0, err
   422  		}
   423  		i += n4
   424  	}
   425  	if m.Dialplan != nil {
   426  		dAtA[i] = 0x4a
   427  		i++
   428  		i = encodeVarintAri(dAtA, i, uint64(m.Dialplan.Size()))
   429  		n5, err := m.Dialplan.MarshalTo(dAtA[i:])
   430  		if err != nil {
   431  			return 0, err
   432  		}
   433  		i += n5
   434  	}
   435  	if len(m.Language) > 0 {
   436  		dAtA[i] = 0x52
   437  		i++
   438  		i = encodeVarintAri(dAtA, i, uint64(len(m.Language)))
   439  		i += copy(dAtA[i:], m.Language)
   440  	}
   441  	if len(m.ChannelVars) > 0 {
   442  		for k, _ := range m.ChannelVars {
   443  			dAtA[i] = 0x5a
   444  			i++
   445  			v := m.ChannelVars[k]
   446  			mapSize := 1 + len(k) + sovAri(uint64(len(k))) + 1 + len(v) + sovAri(uint64(len(v)))
   447  			i = encodeVarintAri(dAtA, i, uint64(mapSize))
   448  			dAtA[i] = 0xa
   449  			i++
   450  			i = encodeVarintAri(dAtA, i, uint64(len(k)))
   451  			i += copy(dAtA[i:], k)
   452  			dAtA[i] = 0x12
   453  			i++
   454  			i = encodeVarintAri(dAtA, i, uint64(len(v)))
   455  			i += copy(dAtA[i:], v)
   456  		}
   457  	}
   458  	return i, nil
   459  }
   460  
   461  func (m *DialplanCEP) Marshal() (dAtA []byte, err error) {
   462  	size := m.Size()
   463  	dAtA = make([]byte, size)
   464  	n, err := m.MarshalTo(dAtA)
   465  	if err != nil {
   466  		return nil, err
   467  	}
   468  	return dAtA[:n], nil
   469  }
   470  
   471  func (m *DialplanCEP) MarshalTo(dAtA []byte) (int, error) {
   472  	var i int
   473  	_ = i
   474  	var l int
   475  	_ = l
   476  	if len(m.Context) > 0 {
   477  		dAtA[i] = 0xa
   478  		i++
   479  		i = encodeVarintAri(dAtA, i, uint64(len(m.Context)))
   480  		i += copy(dAtA[i:], m.Context)
   481  	}
   482  	if len(m.Exten) > 0 {
   483  		dAtA[i] = 0x12
   484  		i++
   485  		i = encodeVarintAri(dAtA, i, uint64(len(m.Exten)))
   486  		i += copy(dAtA[i:], m.Exten)
   487  	}
   488  	if m.Priority != 0 {
   489  		dAtA[i] = 0x18
   490  		i++
   491  		i = encodeVarintAri(dAtA, i, uint64(m.Priority))
   492  	}
   493  	return i, nil
   494  }
   495  
   496  func encodeFixed64Ari(dAtA []byte, offset int, v uint64) int {
   497  	dAtA[offset] = uint8(v)
   498  	dAtA[offset+1] = uint8(v >> 8)
   499  	dAtA[offset+2] = uint8(v >> 16)
   500  	dAtA[offset+3] = uint8(v >> 24)
   501  	dAtA[offset+4] = uint8(v >> 32)
   502  	dAtA[offset+5] = uint8(v >> 40)
   503  	dAtA[offset+6] = uint8(v >> 48)
   504  	dAtA[offset+7] = uint8(v >> 56)
   505  	return offset + 8
   506  }
   507  func encodeFixed32Ari(dAtA []byte, offset int, v uint32) int {
   508  	dAtA[offset] = uint8(v)
   509  	dAtA[offset+1] = uint8(v >> 8)
   510  	dAtA[offset+2] = uint8(v >> 16)
   511  	dAtA[offset+3] = uint8(v >> 24)
   512  	return offset + 4
   513  }
   514  func encodeVarintAri(dAtA []byte, offset int, v uint64) int {
   515  	for v >= 1<<7 {
   516  		dAtA[offset] = uint8(v&0x7f | 0x80)
   517  		v >>= 7
   518  		offset++
   519  	}
   520  	dAtA[offset] = uint8(v)
   521  	return offset + 1
   522  }
   523  func (m *Key) Size() (n int) {
   524  	var l int
   525  	_ = l
   526  	l = len(m.Kind)
   527  	if l > 0 {
   528  		n += 1 + l + sovAri(uint64(l))
   529  	}
   530  	l = len(m.ID)
   531  	if l > 0 {
   532  		n += 1 + l + sovAri(uint64(l))
   533  	}
   534  	l = len(m.Node)
   535  	if l > 0 {
   536  		n += 1 + l + sovAri(uint64(l))
   537  	}
   538  	l = len(m.Dialog)
   539  	if l > 0 {
   540  		n += 1 + l + sovAri(uint64(l))
   541  	}
   542  	l = len(m.App)
   543  	if l > 0 {
   544  		n += 1 + l + sovAri(uint64(l))
   545  	}
   546  	return n
   547  }
   548  
   549  func (m *CallerID) Size() (n int) {
   550  	var l int
   551  	_ = l
   552  	l = len(m.Name)
   553  	if l > 0 {
   554  		n += 1 + l + sovAri(uint64(l))
   555  	}
   556  	l = len(m.Number)
   557  	if l > 0 {
   558  		n += 1 + l + sovAri(uint64(l))
   559  	}
   560  	return n
   561  }
   562  
   563  func (m *ChannelData) Size() (n int) {
   564  	var l int
   565  	_ = l
   566  	if m.Key != nil {
   567  		l = m.Key.Size()
   568  		n += 1 + l + sovAri(uint64(l))
   569  	}
   570  	l = len(m.ID)
   571  	if l > 0 {
   572  		n += 1 + l + sovAri(uint64(l))
   573  	}
   574  	l = len(m.Name)
   575  	if l > 0 {
   576  		n += 1 + l + sovAri(uint64(l))
   577  	}
   578  	l = len(m.State)
   579  	if l > 0 {
   580  		n += 1 + l + sovAri(uint64(l))
   581  	}
   582  	l = len(m.Accountcode)
   583  	if l > 0 {
   584  		n += 1 + l + sovAri(uint64(l))
   585  	}
   586  	if m.Caller != nil {
   587  		l = m.Caller.Size()
   588  		n += 1 + l + sovAri(uint64(l))
   589  	}
   590  	if m.Connected != nil {
   591  		l = m.Connected.Size()
   592  		n += 1 + l + sovAri(uint64(l))
   593  	}
   594  	if m.Creationtime != nil {
   595  		l = m.Creationtime.Size()
   596  		n += 1 + l + sovAri(uint64(l))
   597  	}
   598  	if m.Dialplan != nil {
   599  		l = m.Dialplan.Size()
   600  		n += 1 + l + sovAri(uint64(l))
   601  	}
   602  	l = len(m.Language)
   603  	if l > 0 {
   604  		n += 1 + l + sovAri(uint64(l))
   605  	}
   606  	if len(m.ChannelVars) > 0 {
   607  		for k, v := range m.ChannelVars {
   608  			_ = k
   609  			_ = v
   610  			mapEntrySize := 1 + len(k) + sovAri(uint64(len(k))) + 1 + len(v) + sovAri(uint64(len(v)))
   611  			n += mapEntrySize + 1 + sovAri(uint64(mapEntrySize))
   612  		}
   613  	}
   614  	return n
   615  }
   616  
   617  func (m *DialplanCEP) Size() (n int) {
   618  	var l int
   619  	_ = l
   620  	l = len(m.Context)
   621  	if l > 0 {
   622  		n += 1 + l + sovAri(uint64(l))
   623  	}
   624  	l = len(m.Exten)
   625  	if l > 0 {
   626  		n += 1 + l + sovAri(uint64(l))
   627  	}
   628  	if m.Priority != 0 {
   629  		n += 1 + sovAri(uint64(m.Priority))
   630  	}
   631  	return n
   632  }
   633  
   634  func sovAri(x uint64) (n int) {
   635  	for {
   636  		n++
   637  		x >>= 7
   638  		if x == 0 {
   639  			break
   640  		}
   641  	}
   642  	return n
   643  }
   644  func sozAri(x uint64) (n int) {
   645  	return sovAri(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   646  }
   647  func (m *Key) Unmarshal(dAtA []byte) error {
   648  	l := len(dAtA)
   649  	iNdEx := 0
   650  	for iNdEx < l {
   651  		preIndex := iNdEx
   652  		var wire uint64
   653  		for shift := uint(0); ; shift += 7 {
   654  			if shift >= 64 {
   655  				return ErrIntOverflowAri
   656  			}
   657  			if iNdEx >= l {
   658  				return io.ErrUnexpectedEOF
   659  			}
   660  			b := dAtA[iNdEx]
   661  			iNdEx++
   662  			wire |= (uint64(b) & 0x7F) << shift
   663  			if b < 0x80 {
   664  				break
   665  			}
   666  		}
   667  		fieldNum := int32(wire >> 3)
   668  		wireType := int(wire & 0x7)
   669  		if wireType == 4 {
   670  			return fmt.Errorf("proto: Key: wiretype end group for non-group")
   671  		}
   672  		if fieldNum <= 0 {
   673  			return fmt.Errorf("proto: Key: illegal tag %d (wire type %d)", fieldNum, wire)
   674  		}
   675  		switch fieldNum {
   676  		case 1:
   677  			if wireType != 2 {
   678  				return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
   679  			}
   680  			var stringLen uint64
   681  			for shift := uint(0); ; shift += 7 {
   682  				if shift >= 64 {
   683  					return ErrIntOverflowAri
   684  				}
   685  				if iNdEx >= l {
   686  					return io.ErrUnexpectedEOF
   687  				}
   688  				b := dAtA[iNdEx]
   689  				iNdEx++
   690  				stringLen |= (uint64(b) & 0x7F) << shift
   691  				if b < 0x80 {
   692  					break
   693  				}
   694  			}
   695  			intStringLen := int(stringLen)
   696  			if intStringLen < 0 {
   697  				return ErrInvalidLengthAri
   698  			}
   699  			postIndex := iNdEx + intStringLen
   700  			if postIndex > l {
   701  				return io.ErrUnexpectedEOF
   702  			}
   703  			m.Kind = string(dAtA[iNdEx:postIndex])
   704  			iNdEx = postIndex
   705  		case 2:
   706  			if wireType != 2 {
   707  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
   708  			}
   709  			var stringLen uint64
   710  			for shift := uint(0); ; shift += 7 {
   711  				if shift >= 64 {
   712  					return ErrIntOverflowAri
   713  				}
   714  				if iNdEx >= l {
   715  					return io.ErrUnexpectedEOF
   716  				}
   717  				b := dAtA[iNdEx]
   718  				iNdEx++
   719  				stringLen |= (uint64(b) & 0x7F) << shift
   720  				if b < 0x80 {
   721  					break
   722  				}
   723  			}
   724  			intStringLen := int(stringLen)
   725  			if intStringLen < 0 {
   726  				return ErrInvalidLengthAri
   727  			}
   728  			postIndex := iNdEx + intStringLen
   729  			if postIndex > l {
   730  				return io.ErrUnexpectedEOF
   731  			}
   732  			m.ID = string(dAtA[iNdEx:postIndex])
   733  			iNdEx = postIndex
   734  		case 3:
   735  			if wireType != 2 {
   736  				return fmt.Errorf("proto: wrong wireType = %d for field Node", wireType)
   737  			}
   738  			var stringLen uint64
   739  			for shift := uint(0); ; shift += 7 {
   740  				if shift >= 64 {
   741  					return ErrIntOverflowAri
   742  				}
   743  				if iNdEx >= l {
   744  					return io.ErrUnexpectedEOF
   745  				}
   746  				b := dAtA[iNdEx]
   747  				iNdEx++
   748  				stringLen |= (uint64(b) & 0x7F) << shift
   749  				if b < 0x80 {
   750  					break
   751  				}
   752  			}
   753  			intStringLen := int(stringLen)
   754  			if intStringLen < 0 {
   755  				return ErrInvalidLengthAri
   756  			}
   757  			postIndex := iNdEx + intStringLen
   758  			if postIndex > l {
   759  				return io.ErrUnexpectedEOF
   760  			}
   761  			m.Node = string(dAtA[iNdEx:postIndex])
   762  			iNdEx = postIndex
   763  		case 4:
   764  			if wireType != 2 {
   765  				return fmt.Errorf("proto: wrong wireType = %d for field Dialog", wireType)
   766  			}
   767  			var stringLen uint64
   768  			for shift := uint(0); ; shift += 7 {
   769  				if shift >= 64 {
   770  					return ErrIntOverflowAri
   771  				}
   772  				if iNdEx >= l {
   773  					return io.ErrUnexpectedEOF
   774  				}
   775  				b := dAtA[iNdEx]
   776  				iNdEx++
   777  				stringLen |= (uint64(b) & 0x7F) << shift
   778  				if b < 0x80 {
   779  					break
   780  				}
   781  			}
   782  			intStringLen := int(stringLen)
   783  			if intStringLen < 0 {
   784  				return ErrInvalidLengthAri
   785  			}
   786  			postIndex := iNdEx + intStringLen
   787  			if postIndex > l {
   788  				return io.ErrUnexpectedEOF
   789  			}
   790  			m.Dialog = string(dAtA[iNdEx:postIndex])
   791  			iNdEx = postIndex
   792  		case 5:
   793  			if wireType != 2 {
   794  				return fmt.Errorf("proto: wrong wireType = %d for field App", wireType)
   795  			}
   796  			var stringLen uint64
   797  			for shift := uint(0); ; shift += 7 {
   798  				if shift >= 64 {
   799  					return ErrIntOverflowAri
   800  				}
   801  				if iNdEx >= l {
   802  					return io.ErrUnexpectedEOF
   803  				}
   804  				b := dAtA[iNdEx]
   805  				iNdEx++
   806  				stringLen |= (uint64(b) & 0x7F) << shift
   807  				if b < 0x80 {
   808  					break
   809  				}
   810  			}
   811  			intStringLen := int(stringLen)
   812  			if intStringLen < 0 {
   813  				return ErrInvalidLengthAri
   814  			}
   815  			postIndex := iNdEx + intStringLen
   816  			if postIndex > l {
   817  				return io.ErrUnexpectedEOF
   818  			}
   819  			m.App = string(dAtA[iNdEx:postIndex])
   820  			iNdEx = postIndex
   821  		default:
   822  			iNdEx = preIndex
   823  			skippy, err := skipAri(dAtA[iNdEx:])
   824  			if err != nil {
   825  				return err
   826  			}
   827  			if skippy < 0 {
   828  				return ErrInvalidLengthAri
   829  			}
   830  			if (iNdEx + skippy) > l {
   831  				return io.ErrUnexpectedEOF
   832  			}
   833  			iNdEx += skippy
   834  		}
   835  	}
   836  
   837  	if iNdEx > l {
   838  		return io.ErrUnexpectedEOF
   839  	}
   840  	return nil
   841  }
   842  func (m *CallerID) Unmarshal(dAtA []byte) error {
   843  	l := len(dAtA)
   844  	iNdEx := 0
   845  	for iNdEx < l {
   846  		preIndex := iNdEx
   847  		var wire uint64
   848  		for shift := uint(0); ; shift += 7 {
   849  			if shift >= 64 {
   850  				return ErrIntOverflowAri
   851  			}
   852  			if iNdEx >= l {
   853  				return io.ErrUnexpectedEOF
   854  			}
   855  			b := dAtA[iNdEx]
   856  			iNdEx++
   857  			wire |= (uint64(b) & 0x7F) << shift
   858  			if b < 0x80 {
   859  				break
   860  			}
   861  		}
   862  		fieldNum := int32(wire >> 3)
   863  		wireType := int(wire & 0x7)
   864  		if wireType == 4 {
   865  			return fmt.Errorf("proto: CallerID: wiretype end group for non-group")
   866  		}
   867  		if fieldNum <= 0 {
   868  			return fmt.Errorf("proto: CallerID: illegal tag %d (wire type %d)", fieldNum, wire)
   869  		}
   870  		switch fieldNum {
   871  		case 1:
   872  			if wireType != 2 {
   873  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
   874  			}
   875  			var stringLen uint64
   876  			for shift := uint(0); ; shift += 7 {
   877  				if shift >= 64 {
   878  					return ErrIntOverflowAri
   879  				}
   880  				if iNdEx >= l {
   881  					return io.ErrUnexpectedEOF
   882  				}
   883  				b := dAtA[iNdEx]
   884  				iNdEx++
   885  				stringLen |= (uint64(b) & 0x7F) << shift
   886  				if b < 0x80 {
   887  					break
   888  				}
   889  			}
   890  			intStringLen := int(stringLen)
   891  			if intStringLen < 0 {
   892  				return ErrInvalidLengthAri
   893  			}
   894  			postIndex := iNdEx + intStringLen
   895  			if postIndex > l {
   896  				return io.ErrUnexpectedEOF
   897  			}
   898  			m.Name = string(dAtA[iNdEx:postIndex])
   899  			iNdEx = postIndex
   900  		case 2:
   901  			if wireType != 2 {
   902  				return fmt.Errorf("proto: wrong wireType = %d for field Number", wireType)
   903  			}
   904  			var stringLen uint64
   905  			for shift := uint(0); ; shift += 7 {
   906  				if shift >= 64 {
   907  					return ErrIntOverflowAri
   908  				}
   909  				if iNdEx >= l {
   910  					return io.ErrUnexpectedEOF
   911  				}
   912  				b := dAtA[iNdEx]
   913  				iNdEx++
   914  				stringLen |= (uint64(b) & 0x7F) << shift
   915  				if b < 0x80 {
   916  					break
   917  				}
   918  			}
   919  			intStringLen := int(stringLen)
   920  			if intStringLen < 0 {
   921  				return ErrInvalidLengthAri
   922  			}
   923  			postIndex := iNdEx + intStringLen
   924  			if postIndex > l {
   925  				return io.ErrUnexpectedEOF
   926  			}
   927  			m.Number = string(dAtA[iNdEx:postIndex])
   928  			iNdEx = postIndex
   929  		default:
   930  			iNdEx = preIndex
   931  			skippy, err := skipAri(dAtA[iNdEx:])
   932  			if err != nil {
   933  				return err
   934  			}
   935  			if skippy < 0 {
   936  				return ErrInvalidLengthAri
   937  			}
   938  			if (iNdEx + skippy) > l {
   939  				return io.ErrUnexpectedEOF
   940  			}
   941  			iNdEx += skippy
   942  		}
   943  	}
   944  
   945  	if iNdEx > l {
   946  		return io.ErrUnexpectedEOF
   947  	}
   948  	return nil
   949  }
   950  func (m *ChannelData) Unmarshal(dAtA []byte) error {
   951  	l := len(dAtA)
   952  	iNdEx := 0
   953  	for iNdEx < l {
   954  		preIndex := iNdEx
   955  		var wire uint64
   956  		for shift := uint(0); ; shift += 7 {
   957  			if shift >= 64 {
   958  				return ErrIntOverflowAri
   959  			}
   960  			if iNdEx >= l {
   961  				return io.ErrUnexpectedEOF
   962  			}
   963  			b := dAtA[iNdEx]
   964  			iNdEx++
   965  			wire |= (uint64(b) & 0x7F) << shift
   966  			if b < 0x80 {
   967  				break
   968  			}
   969  		}
   970  		fieldNum := int32(wire >> 3)
   971  		wireType := int(wire & 0x7)
   972  		if wireType == 4 {
   973  			return fmt.Errorf("proto: ChannelData: wiretype end group for non-group")
   974  		}
   975  		if fieldNum <= 0 {
   976  			return fmt.Errorf("proto: ChannelData: illegal tag %d (wire type %d)", fieldNum, wire)
   977  		}
   978  		switch fieldNum {
   979  		case 1:
   980  			if wireType != 2 {
   981  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
   982  			}
   983  			var msglen int
   984  			for shift := uint(0); ; shift += 7 {
   985  				if shift >= 64 {
   986  					return ErrIntOverflowAri
   987  				}
   988  				if iNdEx >= l {
   989  					return io.ErrUnexpectedEOF
   990  				}
   991  				b := dAtA[iNdEx]
   992  				iNdEx++
   993  				msglen |= (int(b) & 0x7F) << shift
   994  				if b < 0x80 {
   995  					break
   996  				}
   997  			}
   998  			if msglen < 0 {
   999  				return ErrInvalidLengthAri
  1000  			}
  1001  			postIndex := iNdEx + msglen
  1002  			if postIndex > l {
  1003  				return io.ErrUnexpectedEOF
  1004  			}
  1005  			if m.Key == nil {
  1006  				m.Key = &Key{}
  1007  			}
  1008  			if err := m.Key.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1009  				return err
  1010  			}
  1011  			iNdEx = postIndex
  1012  		case 2:
  1013  			if wireType != 2 {
  1014  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  1015  			}
  1016  			var stringLen uint64
  1017  			for shift := uint(0); ; shift += 7 {
  1018  				if shift >= 64 {
  1019  					return ErrIntOverflowAri
  1020  				}
  1021  				if iNdEx >= l {
  1022  					return io.ErrUnexpectedEOF
  1023  				}
  1024  				b := dAtA[iNdEx]
  1025  				iNdEx++
  1026  				stringLen |= (uint64(b) & 0x7F) << shift
  1027  				if b < 0x80 {
  1028  					break
  1029  				}
  1030  			}
  1031  			intStringLen := int(stringLen)
  1032  			if intStringLen < 0 {
  1033  				return ErrInvalidLengthAri
  1034  			}
  1035  			postIndex := iNdEx + intStringLen
  1036  			if postIndex > l {
  1037  				return io.ErrUnexpectedEOF
  1038  			}
  1039  			m.ID = string(dAtA[iNdEx:postIndex])
  1040  			iNdEx = postIndex
  1041  		case 3:
  1042  			if wireType != 2 {
  1043  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  1044  			}
  1045  			var stringLen uint64
  1046  			for shift := uint(0); ; shift += 7 {
  1047  				if shift >= 64 {
  1048  					return ErrIntOverflowAri
  1049  				}
  1050  				if iNdEx >= l {
  1051  					return io.ErrUnexpectedEOF
  1052  				}
  1053  				b := dAtA[iNdEx]
  1054  				iNdEx++
  1055  				stringLen |= (uint64(b) & 0x7F) << shift
  1056  				if b < 0x80 {
  1057  					break
  1058  				}
  1059  			}
  1060  			intStringLen := int(stringLen)
  1061  			if intStringLen < 0 {
  1062  				return ErrInvalidLengthAri
  1063  			}
  1064  			postIndex := iNdEx + intStringLen
  1065  			if postIndex > l {
  1066  				return io.ErrUnexpectedEOF
  1067  			}
  1068  			m.Name = string(dAtA[iNdEx:postIndex])
  1069  			iNdEx = postIndex
  1070  		case 4:
  1071  			if wireType != 2 {
  1072  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  1073  			}
  1074  			var stringLen uint64
  1075  			for shift := uint(0); ; shift += 7 {
  1076  				if shift >= 64 {
  1077  					return ErrIntOverflowAri
  1078  				}
  1079  				if iNdEx >= l {
  1080  					return io.ErrUnexpectedEOF
  1081  				}
  1082  				b := dAtA[iNdEx]
  1083  				iNdEx++
  1084  				stringLen |= (uint64(b) & 0x7F) << shift
  1085  				if b < 0x80 {
  1086  					break
  1087  				}
  1088  			}
  1089  			intStringLen := int(stringLen)
  1090  			if intStringLen < 0 {
  1091  				return ErrInvalidLengthAri
  1092  			}
  1093  			postIndex := iNdEx + intStringLen
  1094  			if postIndex > l {
  1095  				return io.ErrUnexpectedEOF
  1096  			}
  1097  			m.State = string(dAtA[iNdEx:postIndex])
  1098  			iNdEx = postIndex
  1099  		case 5:
  1100  			if wireType != 2 {
  1101  				return fmt.Errorf("proto: wrong wireType = %d for field Accountcode", wireType)
  1102  			}
  1103  			var stringLen uint64
  1104  			for shift := uint(0); ; shift += 7 {
  1105  				if shift >= 64 {
  1106  					return ErrIntOverflowAri
  1107  				}
  1108  				if iNdEx >= l {
  1109  					return io.ErrUnexpectedEOF
  1110  				}
  1111  				b := dAtA[iNdEx]
  1112  				iNdEx++
  1113  				stringLen |= (uint64(b) & 0x7F) << shift
  1114  				if b < 0x80 {
  1115  					break
  1116  				}
  1117  			}
  1118  			intStringLen := int(stringLen)
  1119  			if intStringLen < 0 {
  1120  				return ErrInvalidLengthAri
  1121  			}
  1122  			postIndex := iNdEx + intStringLen
  1123  			if postIndex > l {
  1124  				return io.ErrUnexpectedEOF
  1125  			}
  1126  			m.Accountcode = string(dAtA[iNdEx:postIndex])
  1127  			iNdEx = postIndex
  1128  		case 6:
  1129  			if wireType != 2 {
  1130  				return fmt.Errorf("proto: wrong wireType = %d for field Caller", wireType)
  1131  			}
  1132  			var msglen int
  1133  			for shift := uint(0); ; shift += 7 {
  1134  				if shift >= 64 {
  1135  					return ErrIntOverflowAri
  1136  				}
  1137  				if iNdEx >= l {
  1138  					return io.ErrUnexpectedEOF
  1139  				}
  1140  				b := dAtA[iNdEx]
  1141  				iNdEx++
  1142  				msglen |= (int(b) & 0x7F) << shift
  1143  				if b < 0x80 {
  1144  					break
  1145  				}
  1146  			}
  1147  			if msglen < 0 {
  1148  				return ErrInvalidLengthAri
  1149  			}
  1150  			postIndex := iNdEx + msglen
  1151  			if postIndex > l {
  1152  				return io.ErrUnexpectedEOF
  1153  			}
  1154  			if m.Caller == nil {
  1155  				m.Caller = &CallerID{}
  1156  			}
  1157  			if err := m.Caller.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1158  				return err
  1159  			}
  1160  			iNdEx = postIndex
  1161  		case 7:
  1162  			if wireType != 2 {
  1163  				return fmt.Errorf("proto: wrong wireType = %d for field Connected", wireType)
  1164  			}
  1165  			var msglen int
  1166  			for shift := uint(0); ; shift += 7 {
  1167  				if shift >= 64 {
  1168  					return ErrIntOverflowAri
  1169  				}
  1170  				if iNdEx >= l {
  1171  					return io.ErrUnexpectedEOF
  1172  				}
  1173  				b := dAtA[iNdEx]
  1174  				iNdEx++
  1175  				msglen |= (int(b) & 0x7F) << shift
  1176  				if b < 0x80 {
  1177  					break
  1178  				}
  1179  			}
  1180  			if msglen < 0 {
  1181  				return ErrInvalidLengthAri
  1182  			}
  1183  			postIndex := iNdEx + msglen
  1184  			if postIndex > l {
  1185  				return io.ErrUnexpectedEOF
  1186  			}
  1187  			if m.Connected == nil {
  1188  				m.Connected = &CallerID{}
  1189  			}
  1190  			if err := m.Connected.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1191  				return err
  1192  			}
  1193  			iNdEx = postIndex
  1194  		case 8:
  1195  			if wireType != 2 {
  1196  				return fmt.Errorf("proto: wrong wireType = %d for field Creationtime", wireType)
  1197  			}
  1198  			var msglen int
  1199  			for shift := uint(0); ; shift += 7 {
  1200  				if shift >= 64 {
  1201  					return ErrIntOverflowAri
  1202  				}
  1203  				if iNdEx >= l {
  1204  					return io.ErrUnexpectedEOF
  1205  				}
  1206  				b := dAtA[iNdEx]
  1207  				iNdEx++
  1208  				msglen |= (int(b) & 0x7F) << shift
  1209  				if b < 0x80 {
  1210  					break
  1211  				}
  1212  			}
  1213  			if msglen < 0 {
  1214  				return ErrInvalidLengthAri
  1215  			}
  1216  			postIndex := iNdEx + msglen
  1217  			if postIndex > l {
  1218  				return io.ErrUnexpectedEOF
  1219  			}
  1220  			if m.Creationtime == nil {
  1221  				m.Creationtime = &google_protobuf1.Timestamp{}
  1222  			}
  1223  			if err := m.Creationtime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1224  				return err
  1225  			}
  1226  			iNdEx = postIndex
  1227  		case 9:
  1228  			if wireType != 2 {
  1229  				return fmt.Errorf("proto: wrong wireType = %d for field Dialplan", wireType)
  1230  			}
  1231  			var msglen int
  1232  			for shift := uint(0); ; shift += 7 {
  1233  				if shift >= 64 {
  1234  					return ErrIntOverflowAri
  1235  				}
  1236  				if iNdEx >= l {
  1237  					return io.ErrUnexpectedEOF
  1238  				}
  1239  				b := dAtA[iNdEx]
  1240  				iNdEx++
  1241  				msglen |= (int(b) & 0x7F) << shift
  1242  				if b < 0x80 {
  1243  					break
  1244  				}
  1245  			}
  1246  			if msglen < 0 {
  1247  				return ErrInvalidLengthAri
  1248  			}
  1249  			postIndex := iNdEx + msglen
  1250  			if postIndex > l {
  1251  				return io.ErrUnexpectedEOF
  1252  			}
  1253  			if m.Dialplan == nil {
  1254  				m.Dialplan = &DialplanCEP{}
  1255  			}
  1256  			if err := m.Dialplan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1257  				return err
  1258  			}
  1259  			iNdEx = postIndex
  1260  		case 10:
  1261  			if wireType != 2 {
  1262  				return fmt.Errorf("proto: wrong wireType = %d for field Language", wireType)
  1263  			}
  1264  			var stringLen uint64
  1265  			for shift := uint(0); ; shift += 7 {
  1266  				if shift >= 64 {
  1267  					return ErrIntOverflowAri
  1268  				}
  1269  				if iNdEx >= l {
  1270  					return io.ErrUnexpectedEOF
  1271  				}
  1272  				b := dAtA[iNdEx]
  1273  				iNdEx++
  1274  				stringLen |= (uint64(b) & 0x7F) << shift
  1275  				if b < 0x80 {
  1276  					break
  1277  				}
  1278  			}
  1279  			intStringLen := int(stringLen)
  1280  			if intStringLen < 0 {
  1281  				return ErrInvalidLengthAri
  1282  			}
  1283  			postIndex := iNdEx + intStringLen
  1284  			if postIndex > l {
  1285  				return io.ErrUnexpectedEOF
  1286  			}
  1287  			m.Language = string(dAtA[iNdEx:postIndex])
  1288  			iNdEx = postIndex
  1289  		case 11:
  1290  			if wireType != 2 {
  1291  				return fmt.Errorf("proto: wrong wireType = %d for field ChannelVars", wireType)
  1292  			}
  1293  			var msglen int
  1294  			for shift := uint(0); ; shift += 7 {
  1295  				if shift >= 64 {
  1296  					return ErrIntOverflowAri
  1297  				}
  1298  				if iNdEx >= l {
  1299  					return io.ErrUnexpectedEOF
  1300  				}
  1301  				b := dAtA[iNdEx]
  1302  				iNdEx++
  1303  				msglen |= (int(b) & 0x7F) << shift
  1304  				if b < 0x80 {
  1305  					break
  1306  				}
  1307  			}
  1308  			if msglen < 0 {
  1309  				return ErrInvalidLengthAri
  1310  			}
  1311  			postIndex := iNdEx + msglen
  1312  			if postIndex > l {
  1313  				return io.ErrUnexpectedEOF
  1314  			}
  1315  			if m.ChannelVars == nil {
  1316  				m.ChannelVars = make(map[string]string)
  1317  			}
  1318  			var mapkey string
  1319  			var mapvalue string
  1320  			for iNdEx < postIndex {
  1321  				entryPreIndex := iNdEx
  1322  				var wire uint64
  1323  				for shift := uint(0); ; shift += 7 {
  1324  					if shift >= 64 {
  1325  						return ErrIntOverflowAri
  1326  					}
  1327  					if iNdEx >= l {
  1328  						return io.ErrUnexpectedEOF
  1329  					}
  1330  					b := dAtA[iNdEx]
  1331  					iNdEx++
  1332  					wire |= (uint64(b) & 0x7F) << shift
  1333  					if b < 0x80 {
  1334  						break
  1335  					}
  1336  				}
  1337  				fieldNum := int32(wire >> 3)
  1338  				if fieldNum == 1 {
  1339  					var stringLenmapkey uint64
  1340  					for shift := uint(0); ; shift += 7 {
  1341  						if shift >= 64 {
  1342  							return ErrIntOverflowAri
  1343  						}
  1344  						if iNdEx >= l {
  1345  							return io.ErrUnexpectedEOF
  1346  						}
  1347  						b := dAtA[iNdEx]
  1348  						iNdEx++
  1349  						stringLenmapkey |= (uint64(b) & 0x7F) << shift
  1350  						if b < 0x80 {
  1351  							break
  1352  						}
  1353  					}
  1354  					intStringLenmapkey := int(stringLenmapkey)
  1355  					if intStringLenmapkey < 0 {
  1356  						return ErrInvalidLengthAri
  1357  					}
  1358  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  1359  					if postStringIndexmapkey > l {
  1360  						return io.ErrUnexpectedEOF
  1361  					}
  1362  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  1363  					iNdEx = postStringIndexmapkey
  1364  				} else if fieldNum == 2 {
  1365  					var stringLenmapvalue uint64
  1366  					for shift := uint(0); ; shift += 7 {
  1367  						if shift >= 64 {
  1368  							return ErrIntOverflowAri
  1369  						}
  1370  						if iNdEx >= l {
  1371  							return io.ErrUnexpectedEOF
  1372  						}
  1373  						b := dAtA[iNdEx]
  1374  						iNdEx++
  1375  						stringLenmapvalue |= (uint64(b) & 0x7F) << shift
  1376  						if b < 0x80 {
  1377  							break
  1378  						}
  1379  					}
  1380  					intStringLenmapvalue := int(stringLenmapvalue)
  1381  					if intStringLenmapvalue < 0 {
  1382  						return ErrInvalidLengthAri
  1383  					}
  1384  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  1385  					if postStringIndexmapvalue > l {
  1386  						return io.ErrUnexpectedEOF
  1387  					}
  1388  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  1389  					iNdEx = postStringIndexmapvalue
  1390  				} else {
  1391  					iNdEx = entryPreIndex
  1392  					skippy, err := skipAri(dAtA[iNdEx:])
  1393  					if err != nil {
  1394  						return err
  1395  					}
  1396  					if skippy < 0 {
  1397  						return ErrInvalidLengthAri
  1398  					}
  1399  					if (iNdEx + skippy) > postIndex {
  1400  						return io.ErrUnexpectedEOF
  1401  					}
  1402  					iNdEx += skippy
  1403  				}
  1404  			}
  1405  			m.ChannelVars[mapkey] = mapvalue
  1406  			iNdEx = postIndex
  1407  		default:
  1408  			iNdEx = preIndex
  1409  			skippy, err := skipAri(dAtA[iNdEx:])
  1410  			if err != nil {
  1411  				return err
  1412  			}
  1413  			if skippy < 0 {
  1414  				return ErrInvalidLengthAri
  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 *DialplanCEP) 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 ErrIntOverflowAri
  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: DialplanCEP: wiretype end group for non-group")
  1452  		}
  1453  		if fieldNum <= 0 {
  1454  			return fmt.Errorf("proto: DialplanCEP: 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 Context", wireType)
  1460  			}
  1461  			var stringLen uint64
  1462  			for shift := uint(0); ; shift += 7 {
  1463  				if shift >= 64 {
  1464  					return ErrIntOverflowAri
  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 ErrInvalidLengthAri
  1479  			}
  1480  			postIndex := iNdEx + intStringLen
  1481  			if postIndex > l {
  1482  				return io.ErrUnexpectedEOF
  1483  			}
  1484  			m.Context = string(dAtA[iNdEx:postIndex])
  1485  			iNdEx = postIndex
  1486  		case 2:
  1487  			if wireType != 2 {
  1488  				return fmt.Errorf("proto: wrong wireType = %d for field Exten", wireType)
  1489  			}
  1490  			var stringLen uint64
  1491  			for shift := uint(0); ; shift += 7 {
  1492  				if shift >= 64 {
  1493  					return ErrIntOverflowAri
  1494  				}
  1495  				if iNdEx >= l {
  1496  					return io.ErrUnexpectedEOF
  1497  				}
  1498  				b := dAtA[iNdEx]
  1499  				iNdEx++
  1500  				stringLen |= (uint64(b) & 0x7F) << shift
  1501  				if b < 0x80 {
  1502  					break
  1503  				}
  1504  			}
  1505  			intStringLen := int(stringLen)
  1506  			if intStringLen < 0 {
  1507  				return ErrInvalidLengthAri
  1508  			}
  1509  			postIndex := iNdEx + intStringLen
  1510  			if postIndex > l {
  1511  				return io.ErrUnexpectedEOF
  1512  			}
  1513  			m.Exten = string(dAtA[iNdEx:postIndex])
  1514  			iNdEx = postIndex
  1515  		case 3:
  1516  			if wireType != 0 {
  1517  				return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType)
  1518  			}
  1519  			m.Priority = 0
  1520  			for shift := uint(0); ; shift += 7 {
  1521  				if shift >= 64 {
  1522  					return ErrIntOverflowAri
  1523  				}
  1524  				if iNdEx >= l {
  1525  					return io.ErrUnexpectedEOF
  1526  				}
  1527  				b := dAtA[iNdEx]
  1528  				iNdEx++
  1529  				m.Priority |= (int64(b) & 0x7F) << shift
  1530  				if b < 0x80 {
  1531  					break
  1532  				}
  1533  			}
  1534  		default:
  1535  			iNdEx = preIndex
  1536  			skippy, err := skipAri(dAtA[iNdEx:])
  1537  			if err != nil {
  1538  				return err
  1539  			}
  1540  			if skippy < 0 {
  1541  				return ErrInvalidLengthAri
  1542  			}
  1543  			if (iNdEx + skippy) > l {
  1544  				return io.ErrUnexpectedEOF
  1545  			}
  1546  			iNdEx += skippy
  1547  		}
  1548  	}
  1549  
  1550  	if iNdEx > l {
  1551  		return io.ErrUnexpectedEOF
  1552  	}
  1553  	return nil
  1554  }
  1555  func skipAri(dAtA []byte) (n int, err error) {
  1556  	l := len(dAtA)
  1557  	iNdEx := 0
  1558  	for iNdEx < l {
  1559  		var wire uint64
  1560  		for shift := uint(0); ; shift += 7 {
  1561  			if shift >= 64 {
  1562  				return 0, ErrIntOverflowAri
  1563  			}
  1564  			if iNdEx >= l {
  1565  				return 0, io.ErrUnexpectedEOF
  1566  			}
  1567  			b := dAtA[iNdEx]
  1568  			iNdEx++
  1569  			wire |= (uint64(b) & 0x7F) << shift
  1570  			if b < 0x80 {
  1571  				break
  1572  			}
  1573  		}
  1574  		wireType := int(wire & 0x7)
  1575  		switch wireType {
  1576  		case 0:
  1577  			for shift := uint(0); ; shift += 7 {
  1578  				if shift >= 64 {
  1579  					return 0, ErrIntOverflowAri
  1580  				}
  1581  				if iNdEx >= l {
  1582  					return 0, io.ErrUnexpectedEOF
  1583  				}
  1584  				iNdEx++
  1585  				if dAtA[iNdEx-1] < 0x80 {
  1586  					break
  1587  				}
  1588  			}
  1589  			return iNdEx, nil
  1590  		case 1:
  1591  			iNdEx += 8
  1592  			return iNdEx, nil
  1593  		case 2:
  1594  			var length int
  1595  			for shift := uint(0); ; shift += 7 {
  1596  				if shift >= 64 {
  1597  					return 0, ErrIntOverflowAri
  1598  				}
  1599  				if iNdEx >= l {
  1600  					return 0, io.ErrUnexpectedEOF
  1601  				}
  1602  				b := dAtA[iNdEx]
  1603  				iNdEx++
  1604  				length |= (int(b) & 0x7F) << shift
  1605  				if b < 0x80 {
  1606  					break
  1607  				}
  1608  			}
  1609  			iNdEx += length
  1610  			if length < 0 {
  1611  				return 0, ErrInvalidLengthAri
  1612  			}
  1613  			return iNdEx, nil
  1614  		case 3:
  1615  			for {
  1616  				var innerWire uint64
  1617  				var start int = iNdEx
  1618  				for shift := uint(0); ; shift += 7 {
  1619  					if shift >= 64 {
  1620  						return 0, ErrIntOverflowAri
  1621  					}
  1622  					if iNdEx >= l {
  1623  						return 0, io.ErrUnexpectedEOF
  1624  					}
  1625  					b := dAtA[iNdEx]
  1626  					iNdEx++
  1627  					innerWire |= (uint64(b) & 0x7F) << shift
  1628  					if b < 0x80 {
  1629  						break
  1630  					}
  1631  				}
  1632  				innerWireType := int(innerWire & 0x7)
  1633  				if innerWireType == 4 {
  1634  					break
  1635  				}
  1636  				next, err := skipAri(dAtA[start:])
  1637  				if err != nil {
  1638  					return 0, err
  1639  				}
  1640  				iNdEx = start + next
  1641  			}
  1642  			return iNdEx, nil
  1643  		case 4:
  1644  			return iNdEx, nil
  1645  		case 5:
  1646  			iNdEx += 4
  1647  			return iNdEx, nil
  1648  		default:
  1649  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1650  		}
  1651  	}
  1652  	panic("unreachable")
  1653  }
  1654  
  1655  var (
  1656  	ErrInvalidLengthAri = fmt.Errorf("proto: negative length found during unmarshaling")
  1657  	ErrIntOverflowAri   = fmt.Errorf("proto: integer overflow")
  1658  )
  1659  
  1660  func init() { proto.RegisterFile("ari.proto", fileDescriptorAri) }
  1661  
  1662  var fileDescriptorAri = []byte{
  1663  	// 526 bytes of a gzipped FileDescriptorProto
  1664  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0xcd, 0x6a, 0xdb, 0x40,
  1665  	0x10, 0xae, 0x2c, 0xdb, 0xb1, 0x47, 0x81, 0x26, 0x4b, 0x30, 0x5b, 0x1f, 0x6c, 0xe3, 0x5e, 0x42,
  1666  	0xa1, 0x0a, 0xa4, 0x2d, 0x94, 0x50, 0x72, 0xb0, 0x9d, 0x43, 0xc8, 0xa5, 0x88, 0x52, 0x68, 0xa1,
  1667  	0x87, 0xb1, 0xb4, 0x55, 0x16, 0xcb, 0xbb, 0x62, 0xb5, 0x0a, 0xf1, 0x9b, 0xf4, 0xd8, 0x27, 0xe8,
  1668  	0x73, 0xf4, 0xd8, 0x27, 0x08, 0xc5, 0x4f, 0x12, 0x76, 0x57, 0xf2, 0x4f, 0x0e, 0xb9, 0xcd, 0x37,
  1669  	0xfa, 0xbe, 0x99, 0xfd, 0xf4, 0x0d, 0x74, 0x51, 0xf1, 0x30, 0x57, 0x52, 0x4b, 0x72, 0x88, 0x85,
  1670  	0x66, 0x8a, 0x17, 0x8b, 0x10, 0x15, 0xef, 0xbf, 0x4d, 0xb9, 0xbe, 0x2d, 0xe7, 0x61, 0x2c, 0x97,
  1671  	0x67, 0xa9, 0x4c, 0xe5, 0x99, 0x25, 0xcd, 0xcb, 0x9f, 0x16, 0x59, 0x60, 0x2b, 0x27, 0xee, 0x0f,
  1672  	0x53, 0x29, 0xd3, 0x8c, 0x6d, 0x59, 0x9a, 0x2f, 0x59, 0xa1, 0x71, 0x99, 0x3b, 0xc2, 0xb8, 0x04,
  1673  	0xff, 0x86, 0xad, 0x08, 0x81, 0xe6, 0x82, 0x8b, 0x84, 0x7a, 0x23, 0xef, 0xb4, 0x1b, 0xd9, 0x9a,
  1674  	0xf4, 0xa0, 0xc1, 0x13, 0xda, 0x30, 0x9d, 0x49, 0x7b, 0xfd, 0x30, 0x6c, 0x5c, 0xcf, 0xa2, 0x06,
  1675  	0x4f, 0x0c, 0x57, 0xc8, 0x84, 0x51, 0xdf, 0x71, 0x4d, 0x4d, 0x7a, 0xd0, 0x4e, 0x38, 0x66, 0x32,
  1676  	0xa5, 0x4d, 0xdb, 0xad, 0x10, 0x39, 0x02, 0x1f, 0xf3, 0x9c, 0xb6, 0x6c, 0xd3, 0x94, 0x17, 0xcd,
  1677  	0x5f, 0xbf, 0x87, 0x2f, 0xc6, 0x9f, 0xa0, 0x33, 0xc5, 0x2c, 0x63, 0xea, 0x7a, 0x66, 0xe7, 0xe1,
  1678  	0x92, 0xd5, 0xbb, 0x4d, 0x6d, 0xe6, 0x89, 0x72, 0x39, 0x67, 0xca, 0xed, 0x8f, 0x2a, 0x54, 0xa9,
  1679  	0xff, 0x34, 0x21, 0x98, 0xde, 0xa2, 0x10, 0x2c, 0x9b, 0xa1, 0x46, 0xf2, 0x1a, 0xfc, 0x05, 0x5b,
  1680  	0xd9, 0x01, 0xc1, 0xf9, 0x71, 0xb8, 0xfb, 0xc3, 0xc2, 0x1b, 0xb6, 0x8a, 0xcc, 0xd7, 0x67, 0xed,
  1681  	0x98, 0xf5, 0xfe, 0xce, 0xfa, 0x13, 0x68, 0x15, 0x1a, 0x35, 0xab, 0xdc, 0x38, 0x40, 0x46, 0x10,
  1682  	0x60, 0x1c, 0xcb, 0x52, 0xe8, 0xd8, 0xf8, 0x77, 0xa6, 0x76, 0x5b, 0x24, 0x84, 0x76, 0x6c, 0x6d,
  1683  	0xd1, 0xb6, 0x7d, 0x4b, 0x6f, 0xff, 0x2d, 0xb5, 0xe5, 0xa8, 0x62, 0x91, 0xf7, 0xd0, 0x8d, 0xa5,
  1684  	0x10, 0x2c, 0xd6, 0x2c, 0xa1, 0x07, 0xcf, 0x4a, 0xb6, 0x44, 0x72, 0x09, 0x87, 0xb1, 0x62, 0xa8,
  1685  	0xb9, 0x14, 0x26, 0x4e, 0xda, 0xb1, 0xc2, 0x7e, 0xe8, 0xb2, 0x0e, 0xeb, 0xac, 0xc3, 0x2f, 0x75,
  1686  	0xd6, 0xd1, 0x1e, 0x9f, 0x7c, 0x80, 0x8e, 0x89, 0x27, 0xcf, 0x50, 0xd0, 0xae, 0xd5, 0xbe, 0xda,
  1687  	0x5f, 0x3a, 0xab, 0xbe, 0x4e, 0xaf, 0x3e, 0x47, 0x1b, 0x2a, 0xe9, 0x43, 0x27, 0x43, 0x91, 0x96,
  1688  	0x98, 0x32, 0x0a, 0xd6, 0xfb, 0x06, 0x93, 0x1f, 0x10, 0xc4, 0x2e, 0x90, 0x3b, 0x54, 0x05, 0x0d,
  1689  	0x46, 0xfe, 0x69, 0x70, 0xfe, 0xe6, 0x89, 0x95, 0x6d, 0x62, 0x75, 0x6d, 0xc8, 0x57, 0x42, 0xab,
  1690  	0xd5, 0xe4, 0xe5, 0xfa, 0x61, 0x58, 0x67, 0xfa, 0x15, 0x55, 0x11, 0xed, 0xce, 0xeb, 0x5f, 0xc2,
  1691  	0xd1, 0x53, 0x85, 0x39, 0xad, 0x3a, 0xf4, 0xae, 0x4b, 0xf8, 0x04, 0x5a, 0x77, 0x98, 0x95, 0xac,
  1692  	0xba, 0x19, 0x07, 0x2e, 0x1a, 0x1f, 0xbd, 0xf1, 0x37, 0x08, 0x76, 0x3c, 0x11, 0x0a, 0x07, 0xb1,
  1693  	0x14, 0x9a, 0xdd, 0xeb, 0x4a, 0x5e, 0x43, 0x33, 0x82, 0xdd, 0x6b, 0x26, 0xea, 0x11, 0x16, 0x18,
  1694  	0xe7, 0xb9, 0xe2, 0x52, 0x71, 0xbd, 0xb2, 0x67, 0xe2, 0x47, 0x1b, 0x3c, 0x39, 0xfe, 0xbb, 0x1e,
  1695  	0x78, 0xff, 0xd6, 0x03, 0xef, 0xff, 0x7a, 0xe0, 0x7d, 0xf7, 0x51, 0xf1, 0x79, 0xdb, 0x26, 0xf0,
  1696  	0xee, 0x31, 0x00, 0x00, 0xff, 0xff, 0x98, 0xd4, 0xd1, 0x20, 0xc5, 0x03, 0x00, 0x00,
  1697  }