Class: GroupCallRoute

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb

Constant Summary collapse

TOKEN =
1
CSCF =
2
MIX =
3
HOSTMID =
4
CAPABILITIES =
5
PROTO =
6
VOIPADDRESS =
7
VOIPUDPPORT =
8
VOIPTCPPORT =
9
FROMZONE =
10
COMMPARAM =
11
POLARISADDRESS =
12
POLARISUDPPORT =
13
POLARISZONE =
14
ORIONADDRESS =
15
FIELDS =
{
  TOKEN => {:type => ::Thrift::Types::STRING, :name => 'token'},
  CSCF => {:type => ::Thrift::Types::STRUCT, :name => 'cscf', :class => ::CallHost},
  MIX => {:type => ::Thrift::Types::STRUCT, :name => 'mix', :class => ::CallHost},
  HOSTMID => {:type => ::Thrift::Types::STRING, :name => 'hostMid'},
  CAPABILITIES => {:type => ::Thrift::Types::LIST, :name => 'capabilities', :element => {:type => ::Thrift::Types::STRING}},
  PROTO => {:type => ::Thrift::Types::I32, :name => 'proto', :enum_class => ::P0_a_e_a_b_ic},
  VOIPADDRESS => {:type => ::Thrift::Types::STRING, :name => 'voipAddress'},
  VOIPUDPPORT => {:type => ::Thrift::Types::I32, :name => 'voipUdpPort'},
  VOIPTCPPORT => {:type => ::Thrift::Types::I32, :name => 'voipTcpPort'},
  FROMZONE => {:type => ::Thrift::Types::STRING, :name => 'fromZone'},
  COMMPARAM => {:type => ::Thrift::Types::STRING, :name => 'commParam'},
  POLARISADDRESS => {:type => ::Thrift::Types::STRING, :name => 'polarisAddress'},
  POLARISUDPPORT => {:type => ::Thrift::Types::I32, :name => 'polarisUdpPort'},
  POLARISZONE => {:type => ::Thrift::Types::STRING, :name => 'polarisZone'},
  ORIONADDRESS => {:type => ::Thrift::Types::STRING, :name => 'orionAddress'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



16552
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16552

def struct_fields; FIELDS; end

#validateObject



16554
16555
16556
16557
16558
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16554

def validate
  unless @proto.nil? || ::P0_a_e_a_b_ic::VALID_VALUES.include?(@proto)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field proto!')
  end
end