hexsha
stringlengths
40
40
size
int64
5
1.05M
ext
stringclasses
98 values
lang
stringclasses
21 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
118
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
118
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
134k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
135
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
1.05M
avg_line_length
float64
1
1.03M
max_line_length
int64
2
1.03M
alphanum_fraction
float64
0
1
f56a5382085c59996a13a27ce304677aefeef908
3,282
sql
SQL
utils/Teme/Tema6-PSGBD/Ex1/Ghergheluca_Eduard_B3_6_1.sql
procateodor/IngineriaProgramarii-B3-Proiect
a25fd065d30c1d2c8797707950fc89728110910c
[ "MIT" ]
2
2020-07-22T16:37:25.000Z
2020-08-15T00:22:23.000Z
utils/Teme/Tema6-PSGBD/Ex1/Ghergheluca_Eduard_B3_6_1.sql
procateodor/IngineriaProgramarii-B3-Proiect
a25fd065d30c1d2c8797707950fc89728110910c
[ "MIT" ]
1
2018-04-10T07:25:26.000Z
2018-04-10T07:25:26.000Z
utils/Teme/Tema6-PSGBD/Ex1/Ghergheluca_Eduard_B3_6_1.sql
procateodor/IngineriaProgramarii-B3-Proiect
a25fd065d30c1d2c8797707950fc89728110910c
[ "MIT" ]
2
2019-03-03T12:19:39.000Z
2022-01-10T15:01:48.000Z
set serveroutput on; drop table masini; create table masini(serie integer, cars masina); / --drop type masina; CREATE OR REPLACE TYPE masina AS OBJECT ( nume varchar2(15), tara varchar2(15), an_fabricatie integer, culoare varchar2(15), member procedure afiseaza_nume, member procedure afiseaza_culoare, not final member procedure afiseaza_statut, member procedure afiseaza_date (tara varchar2, culoare varchar2), member procedure afiseaza_date (id integer, an integer), map member function compara_an return number, constructor function masina(nume varchar2, tara varchar2, culoare varchar2) return self as result )NOT FINAL; / CREATE OR REPLACE TYPE BODY masina AS constructor function masina(nume varchar2, tara varchar2, culoare varchar2) return self as result as begin self.nume := nume; self.tara := tara; self.culoare := culoare; return; end; member procedure afiseaza_date(tara varchar2, culoare varchar2) is begin dbms_output.put_line('tara este '||tara||' iar culoarea este '||culoare); end afiseaza_date; member procedure afiseaza_date(id integer, an integer) is begin dbms_output.put_line('id-ul este '||id||' iar anul fabricatiei este '||an); end afiseaza_date; member procedure afiseaza_nume is begin dbms_output.put_line(self.nume); end afiseaza_nume; member procedure afiseaza_culoare is begin dbms_output.put_line(self.culoare); end afiseaza_culoare; map member function compara_an return number is begin return self.an_fabricatie; end compara_an; member procedure afiseaza_statut is begin dbms_output.put_line('masina noua'); end afiseaza_statut; END; / --drop type masini_secondhand; create or replace type masini_secondhand under masina ( overriding member procedure afiseaza_statut --overriding member procedure afiseaza_culoare ); / create or replace type body masini_secondhand as overriding member procedure afiseaza_statut is begin dbms_output.put_line('masina second hand'); end afiseaza_statut; end; / declare mobil masina; mobil1 masina; mobil2 masina; mobil3 masina; mobil4 masina; vechitura masini_secondhand; vechitura2 masini_secondhand; begin mobil := masina('mertan', 'rucania', 'alb'); mobil.afiseaza_nume; mobil.afiseaza_culoare; mobil.afiseaza_statut; vechitura := masini_secondhand('dacia','venezuelea', 1942, 'verde'); vechitura2 := masini_secondhand('dacia','venezuelea', 2000, 'verde'); vechitura.afiseaza_statut; mobil.afiseaza_date('anglia', 'verde'); mobil.afiseaza_date(120,1950); mobil1 := masina('dacia','romania', 1990, 'verde'); mobil2 := masina('bmw', 'germania', 1992, 'negru'); mobil3 := masina('vw', 'germania', 1993, 'alb'); mobil4 := masina('volvo', 'suedia', 1994, 'portocaliu'); insert into masini values (120, mobil1); insert into masini values (121, mobil2); insert into masini values (122, mobil3); insert into masini values (123, mobil4); insert into masini values (124, vechitura); insert into masini values (125, vechitura2); --select* from masini order by cars desc; end;
26.682927
104
0.704753
9c9b61e56e8b4e5fd32c142e69c333462bf6a8e8
34,652
lua
Lua
resources/Wireshark/WiresharkDissectorFoo/test/lua/tvb.lua
joshis1/C_Programming
4a8003321251448a167bfca0b595c5eeab88608d
[ "MIT" ]
2
2020-09-11T05:51:42.000Z
2020-12-31T11:42:02.000Z
resources/Wireshark/WiresharkDissectorFoo/test/lua/tvb.lua
joshis1/C_Programming
4a8003321251448a167bfca0b595c5eeab88608d
[ "MIT" ]
null
null
null
resources/Wireshark/WiresharkDissectorFoo/test/lua/tvb.lua
joshis1/C_Programming
4a8003321251448a167bfca0b595c5eeab88608d
[ "MIT" ]
null
null
null
---------------------------------------- -- script-name: tvb.lua -- This tests the Tvb/TvbRange and proto_add_XXX_item API. ---------------------------------------- ------------- general test helper funcs ------------ local FRAME = "frame" local OTHER = "other" local total_tests = 0 local function getTotal() return total_tests end local packet_counts = {} local function incPktCount(name) if not packet_counts[name] then packet_counts[name] = 1 else packet_counts[name] = packet_counts[name] + 1 end end local function getPktCount(name) return packet_counts[name] or 0 end local passed = {} local function setPassed(name) if not passed[name] then passed[name] = 1 else passed[name] = passed[name] + 1 end total_tests = total_tests + 1 end local fail_count = 0 local function setFailed(name) fail_count = fail_count + 1 total_tests = total_tests + 1 end -- expected number of runs per type -- -- CHANGE THIS TO MATCH HOW MANY TESTS THERE ARE -- -- The number of tests in a specific category (other than FRAME) is the -- number of times execute() is called by any function below testing(). -- From the user's perspective, it can be calculated with the following -- formula: -- -- N = number of execute() you call + -- number of verifyFields() * (1 + number of fields) + -- number of verifyResults() * (1 + 2 * number of values) -- local taptests = { [FRAME]=4, [OTHER]=335 } local function getResults() print("\n-----------------------------\n") for k,v in pairs(taptests) do -- each frame run executes the same test again, so multiply by #frames if k ~= "frame" and v ~= 0 then v = (v * taptests.frame) end if v ~= 0 and passed[k] ~= v then print("Something didn't run or ran too much... tests failed!") print("Dissector type " .. k .. " expected: " .. v .. " (" .. ( v / taptests.frame) .. ")" .. ", but got: " .. tostring(passed[k]) .. " (" .. (tonumber(passed[k] or 0) / taptests.frame) .. ")" ) return false end end print("All tests passed!\n\n") return true end local function testing(type,...) print("\n-------- Testing " .. tostring(...) .. " ---- for packet # " .. getPktCount(type) .. " --------\n") end local function execute(type,name, ...) io.stdout:write("test --> "..name.."-"..getTotal().."-"..getPktCount(type).."...") local results = { ... } if #results > 0 and results[1] == true then setPassed(type) io.stdout:write("passed\n") return true else setFailed(type) io.stdout:write("failed!\n") if #results > 1 then print("Got the following error: '" .. tostring(results[2]) .. "'") end error(name.." test failed!") end end --------- -- the following are so we can use pcall (which needs a function to call) local function callFunc(func,...) func(...) end local function callObjFuncGetter(vart,varn,tobj,name,...) vart[varn] = tobj[name](...) end local function setValue(tobj,name,value) tobj[name] = value end local function getValue(tobj,name) local foo = tobj[name] end ------------- test script ------------ ---------------------------------- -- modify original test function for now, kinda sorta local orig_execute = execute execute = function (...) return orig_execute(OTHER,...) end ---------------------------------------- -- creates a Proto object for our testing local test_proto = Proto("test","Test Protocol") local numinits = 0 function test_proto.init() numinits = numinits + 1 if numinits == 2 then getResults() end end ---------------------------------------- -- a table of all of our Protocol's fields range_string = { { 0, 200, "The first part" }, { 201, 233, "The second part" }, { 234, 255, "The last part" }, } local testfield = { basic = { STRING = ProtoField.string ("test.basic.string", "Basic string"), BOOLEAN = ProtoField.bool ("test.basic.boolean", "Basic boolean", 16, {"yes","no"}, 0x0001), UINT8 = ProtoField.uint8 ("test.basic.uint8", "Basic uint8 with range string", base.RANGE_STRING, range_string ), UINT16 = ProtoField.uint16 ("test.basic.uint16", "Basic uint16"), UINT32 = ProtoField.uint32 ("test.basic.uint32", "Basic uint32 test with a unit string", base.UINT_STRING, { "femtoFarads" }), INT24 = ProtoField.int24 ("test.basic.uint24", "Basic uint24"), BYTES = ProtoField.bytes ("test.basic.bytes", "Basic Bytes"), UINT_BYTES = ProtoField.ubytes ("test.basic.ubytes", "Basic Uint Bytes"), OID = ProtoField.oid ("test.basic.oid", "Basic OID"), REL_OID = ProtoField.rel_oid("test.basic.rel_oid", "Basic Relative OID"), ABSOLUTE_LOCAL = ProtoField.absolute_time("test.basic.absolute.local","Basic absolute local"), ABSOLUTE_UTC = ProtoField.absolute_time("test.basic.absolute.utc", "Basic absolute utc", base.UTC), IPv4 = ProtoField.ipv4 ("test.basic.ipv4", "Basic ipv4 address"), IPv6 = ProtoField.ipv6 ("test.basic.ipv6", "Basic ipv6 address"), ETHER = ProtoField.ether ("test.basic.ether", "Basic ethernet address"), -- GUID = ProtoField.guid ("test.basic.guid", "Basic GUID"), }, time = { ABSOLUTE_LOCAL = ProtoField.absolute_time("test.time.absolute.local","Time absolute local"), ABSOLUTE_UTC = ProtoField.absolute_time("test.time.absolute.utc", "Time absolute utc", base.UTC), }, bytes = { BYTES = ProtoField.bytes ("test.bytes.bytes", "Bytes"), UINT_BYTES = ProtoField.ubytes ("test.bytes.ubytes", "Uint Bytes"), OID = ProtoField.oid ("test.bytes.oid", "OID"), REL_OID = ProtoField.rel_oid("test.bytes.rel_oid", "Relative OID"), -- GUID = ProtoField.guid ("test.bytes.guid", "GUID"), }, } -- create a flat array table of the above that can be registered local pfields = {} for _,t in pairs(testfield) do for k,v in pairs(t) do pfields[#pfields+1] = v end end -- register them test_proto.fields = pfields print("test_proto ProtoFields registered") local getfield = { basic = { STRING = Field.new ("test.basic.string"), BOOLEAN = Field.new ("test.basic.boolean"), UINT8 = Field.new ("test.basic.uint8"), UINT16 = Field.new ("test.basic.uint16"), INT24 = Field.new ("test.basic.uint24"), BYTES = Field.new ("test.basic.bytes"), UINT_BYTES = Field.new ("test.basic.ubytes"), OID = Field.new ("test.basic.oid"), REL_OID = Field.new ("test.basic.rel_oid"), ABSOLUTE_LOCAL = Field.new ("test.basic.absolute.local"), ABSOLUTE_UTC = Field.new ("test.basic.absolute.utc"), IPv4 = Field.new ("test.basic.ipv4"), IPv6 = Field.new ("test.basic.ipv6"), ETHER = Field.new ("test.basic.ether"), -- GUID = Field.new ("test.basic.guid"), }, time = { ABSOLUTE_LOCAL = Field.new ("test.time.absolute.local"), ABSOLUTE_UTC = Field.new ("test.time.absolute.utc"), }, bytes = { BYTES = Field.new ("test.bytes.bytes"), UINT_BYTES = Field.new ("test.bytes.ubytes"), OID = Field.new ("test.bytes.oid"), REL_OID = Field.new ("test.bytes.rel_oid"), -- GUID = Field.new ("test.bytes.guid"), }, } print("test_proto Fields created") local function addMatchFields(match_fields, ... ) match_fields[#match_fields + 1] = { ... } end local function getFieldInfos(name) local base, field = name:match("([^.]+)%.(.+)") if not base or not field then error("failed to get base.field from '" .. name .. "'") end local t = { getfield[base][field]() } return t end local function verifyFields(name, match_fields) local finfos = getFieldInfos(name) execute ("verify-fields-size-" .. name, #finfos == #match_fields, "#finfos=" .. #finfos .. ", #match_fields=" .. #match_fields) for i, t in ipairs(match_fields) do if type(t) ~= 'table' then error("verifyFields didn't get a table inside the matches table") end if #t ~= 1 then error("verifyFields matches table's table is not size 1") end local result = finfos[i]() local value = t[1] print( name .. " got:", "\n\tfinfos [" .. i .. "]='" .. tostring( result ) .. "'", "\n\tmatches[" .. i .. "]='" .. tostring( value ) .. "'" ) execute ( "verify-fields-value-" .. name .. "-" .. i, result == value ) end end local function addMatchValues(match_values, ... ) match_values[#match_values + 1] = { ... } end local function addMatchFieldValues(match_fields, match_values, match_both, ...) addMatchFields(match_fields, match_both) addMatchValues(match_values, match_both, ...) end local result_values = {} local function resetResults() result_values = {} end local function treeAddPField(...) local t = { pcall ( TreeItem.add_packet_field, ... ) } if t[1] == nil then return nil, t[2] end -- it gives back a TreeItem, then the results if typeof(t[2]) ~= 'TreeItem' then return nil, "did not get a TreeItem returned from TreeItem.add_packet_field, ".. "got a '" .. typeof(t[2]) .."'" end if #t ~= 4 then return nil, "did not get 3 return values from TreeItem.add_packet_field" end result_values[#result_values + 1] = { t[3], t[4] } return true end local function verifyResults(name, match_values) execute ("verify-results-size-" .. name, #result_values == #match_values, "#result_values=" .. #result_values .. ", #match_values=" .. #match_values) for j, t in ipairs(match_values) do if type(t) ~= 'table' then error("verifyResults didn't get a table inside the matches table") end for i, match in ipairs(t) do local r = result_values[j][i] print( name .. " got:", "\n\tresults[" .. j .. "][" .. i .. "]='" .. tostring( r ) .. "'", "\n\tmatches[" .. j .. "][" .. i .. "]='" .. tostring( match ) .. "'" ) local result_type, match_type if type(match) == 'userdata' then match_type = typeof(match) else match_type = type(match) end if type(r) == 'userdata' then result_type = typeof(r) else result_type = type(r) end execute ( "verify-results-type-" .. name .. "-" .. i, result_type == match_type ) execute ( "verify-results-value-" .. name .. "-" .. i, r == match ) end end end -- Compute the difference in seconds between local time and UTC -- from http://lua-users.org/wiki/TimeZone local function get_timezone() local now = os.time() return os.difftime(now, os.time(os.date("!*t", now))) end local timezone = get_timezone() print ("timezone = " .. timezone) ---------------------------------------- -- The following creates the callback function for the dissector. -- The 'tvbuf' is a Tvb object, 'pktinfo' is a Pinfo object, and 'root' is a TreeItem object. function test_proto.dissector(tvbuf,pktinfo,root) incPktCount(FRAME) incPktCount(OTHER) testing(OTHER, "Basic string") local tree = root:add(test_proto, tvbuf:range(0,tvbuf:len())) -- create a fake Tvb to use for testing local teststring = "this is the string for the first test" local bytearray = ByteArray.new(teststring, true) local tvb_string = bytearray:tvb("Basic string") local function callTreeAdd(tree,...) tree:add(...) end local string_match_fields = {} execute ("basic-tvb_get_string", tvb_string:range():string() == teststring ) execute ("basic-string", tree:add(testfield.basic.STRING, tvb_string:range(0,tvb_string:len())) ~= nil ) addMatchFields(string_match_fields, teststring) execute ("basic-string", pcall (callTreeAdd, tree, testfield.basic.STRING, tvb_string:range() ) ) addMatchFields(string_match_fields, teststring) verifyFields("basic.STRING", string_match_fields) ---------------------------------------- testing(OTHER, "Basic boolean") local barray_bytes_hex = "00FF00018000" local barray_bytes = ByteArray.new(barray_bytes_hex) local tvb_bytes = barray_bytes:tvb("Basic bytes") local bool_match_fields = {} execute ("basic-boolean", pcall (callTreeAdd, tree, testfield.basic.BOOLEAN, tvb_bytes:range(0,2)) ) addMatchFields(bool_match_fields, true) execute ("basic-boolean", pcall (callTreeAdd, tree, testfield.basic.BOOLEAN, tvb_bytes:range(2,2)) ) addMatchFields(bool_match_fields, true) execute ("basic-boolean", pcall (callTreeAdd, tree, testfield.basic.BOOLEAN, tvb_bytes:range(4,2)) ) addMatchFields(bool_match_fields, false) verifyFields("basic.BOOLEAN", bool_match_fields ) ---------------------------------------- testing(OTHER, "Basic uint16") local uint16_match_fields = {} execute ("basic-uint16", pcall (callTreeAdd, tree, testfield.basic.UINT16, tvb_bytes:range(0,2)) ) addMatchFields(uint16_match_fields, 255) execute ("basic-uint16", pcall (callTreeAdd, tree, testfield.basic.UINT16, tvb_bytes:range(2,2)) ) addMatchFields(uint16_match_fields, 1) execute ("basic-uint16", pcall (callTreeAdd, tree, testfield.basic.UINT16, tvb_bytes:range(4,2)) ) addMatchFields(uint16_match_fields, 32768) verifyFields("basic.UINT16", uint16_match_fields) ---------------------------------------- testing(OTHER, "Basic uint16-le") local function callTreeAddLE(tree,...) tree:add_le(...) end execute ("basic-uint16-le", pcall (callTreeAddLE, tree, testfield.basic.UINT16, tvb_bytes:range(0,2)) ) addMatchFields(uint16_match_fields, 65280) execute ("basic-uint16-le", pcall (callTreeAddLE, tree, testfield.basic.UINT16, tvb_bytes:range(2,2)) ) addMatchFields(uint16_match_fields, 256) execute ("basic-uint16-le", pcall (callTreeAddLE, tree, testfield.basic.UINT16, tvb_bytes:range(4,2)) ) addMatchFields(uint16_match_fields, 128) verifyFields("basic.UINT16", uint16_match_fields) ---------------------------------------- testing(OTHER, "Basic int24") local int24_match_fields = {} execute ("basic-int24", pcall (callTreeAdd, tree, testfield.basic.INT24, tvb_bytes:range(0,3)) ) addMatchFields(int24_match_fields, 65280) execute ("basic-int24", pcall (callTreeAdd, tree, testfield.basic.INT24, tvb_bytes:range(3,3)) ) addMatchFields(int24_match_fields, 98304) verifyFields("basic.INT24", int24_match_fields) ---------------------------------------- testing(OTHER, "Basic int24-le") execute ("basic-int24", pcall (callTreeAddLE, tree, testfield.basic.INT24, tvb_bytes:range(0,3)) ) addMatchFields(int24_match_fields, 65280) execute ("basic-int24", pcall (callTreeAddLE, tree, testfield.basic.INT24, tvb_bytes:range(3,3)) ) addMatchFields(int24_match_fields, 32769) verifyFields("basic.INT24", int24_match_fields) ---------------------------------------- testing(OTHER, "Basic bytes") local bytes_match_fields = {} execute ("basic-tvb_get_string_bytes", string.lower(tostring(tvb_bytes:range():bytes())) == string.lower(barray_bytes_hex)) execute ("basic-bytes", pcall (callTreeAdd, tree, testfield.basic.BYTES, tvb_bytes:range()) ) addMatchFields(bytes_match_fields, barray_bytes) -- TODO: it's silly that tree:add_packet_field() requires an encoding argument -- need to fix that separately in a bug fix execute ("add_pfield-bytes", treeAddPField(tree, testfield.basic.BYTES, tvb_bytes:range(), ENC_BIG_ENDIAN)) addMatchFields(bytes_match_fields, barray_bytes) verifyFields("basic.BYTES", bytes_match_fields) ---------------------------------------- testing(OTHER, "Basic uint bytes") local len_string = string.format("%02x", barray_bytes:len()) local barray_uint_bytes = ByteArray.new(len_string) .. barray_bytes local tvb_uint_bytes = barray_uint_bytes:tvb("Basic UINT_BYTES") local uint_bytes_match_fields = {} execute ("basic-uint-bytes", pcall (callTreeAdd, tree, testfield.basic.UINT_BYTES, tvb_uint_bytes:range(0,1)) ) addMatchFields(uint_bytes_match_fields, barray_bytes) execute ("add_pfield-uint-bytes", treeAddPField(tree, testfield.basic.UINT_BYTES, tvb_uint_bytes:range(0,1), ENC_BIG_ENDIAN) ) addMatchFields(uint_bytes_match_fields, barray_bytes) verifyFields("basic.UINT_BYTES", uint_bytes_match_fields) ---------------------------------------- testing(OTHER, "Basic OID") -- note: the tvb being dissected and compared isn't actually a valid OID. -- tree:add() and tree:add_packet-field() don't care about its validity right now. local oid_match_fields = {} execute ("basic-oid", pcall(callTreeAdd, tree, testfield.basic.OID, tvb_bytes:range()) ) addMatchFields(oid_match_fields, barray_bytes) execute ("add_pfield-oid", treeAddPField(tree, testfield.basic.OID, tvb_bytes:range(), ENC_BIG_ENDIAN) ) addMatchFields(oid_match_fields, barray_bytes) verifyFields("basic.OID", oid_match_fields) ---------------------------------------- testing(OTHER, "Basic REL_OID") -- note: the tvb being dissected and compared isn't actually a valid OID. -- tree:add() and tree:add_packet-field() don't care about its validity right now. local rel_oid_match_fields = {} execute ("basic-rel-oid", pcall(callTreeAdd, tree, testfield.basic.REL_OID, tvb_bytes:range())) addMatchFields(rel_oid_match_fields, barray_bytes) execute ("add_pfield-rel_oid", treeAddPField(tree, testfield.basic.REL_OID, tvb_bytes:range(), ENC_BIG_ENDIAN) ) addMatchFields(rel_oid_match_fields, barray_bytes) verifyFields("basic.REL_OID", rel_oid_match_fields) -- TODO: a FT_GUID is not really a ByteArray, so we can't simply treat it as one -- local barray_guid = ByteArray.new("00FF0001 80001234 567890AB CDEF00FF") -- local tvb_guid = barray_guid:tvb("Basic GUID") -- local guid_match_fields = {} -- execute ("basic-guid", pcall(callTreeAdd, tree, testfield.basic.GUID, tvb_guid:range()) ) -- addMatchFields(guid_match_fields, barray_guid) -- execute ("add_pfield-guid", treeAddPField(tree, testfield.basic.GUID, -- tvb_guid:range(), ENC_BIG_ENDIAN) ) -- addMatchFields(guid_match_fields, barray_guid) -- verifyFields("basic.GUID", guid_match_fields) ---------------------------------------- testing(OTHER, "tree:add ipv6") local tvb = ByteArray.new("20010db8 00000000 0000ff00 00428329"):tvb("IPv6") local IPv6 = testfield.basic.IPv6 local ipv6_match_fields = {} execute ("ipv6", pcall (callTreeAdd, tree, IPv6, tvb:range(0,16))) addMatchFields(ipv6_match_fields, Address.ipv6('2001:0db8:0000:0000:0000:ff00:0042:8329')) verifyFields("basic.IPv6", ipv6_match_fields) ---------------------------------------- testing(OTHER, "tree:add ipv4") local tvb = ByteArray.new("7f000001"):tvb("IPv4") local IPv4 = testfield.basic.IPv4 local ipv4_match_fields = {} execute ("ipv4", pcall (callTreeAdd, tree, IPv4, tvb:range(0,4))) addMatchFields(ipv4_match_fields, Address.ip('127.0.0.1')) -- TODO: currently, tree:add_le only works for numeric values, not IPv4 -- addresses. Test this in the future. -- execute ("ipv4", pcall (callTreeAddLE, tree, IPv4, tvb:range(0,4))) -- addMatchFields(ipv4_match_fields, Address.ip('1.0.0.127')) verifyFields("basic.IPv4", ipv4_match_fields) ---------------------------------------- testing(OTHER, "tree:add ether") local tvb = ByteArray.new("010203040506"):tvb("Ether") local tvb0 = ByteArray.new("000000000000"):tvb("Ether0") local ether = testfield.basic.ETHER local ether_match_fields = {} execute ("ether", pcall (callTreeAdd, tree, ether, tvb:range(0,6))) addMatchFields(ether_match_fields, Address.ether('01:02:03:04:05:06')) execute ("ether0", pcall (callTreeAdd, tree, ether, tvb0:range(0,6))) addMatchFields(ether_match_fields, Address.ether('11:22:33')) verifyFields("basic.ETHER", ether_match_fields) ---------------------------------------- testing(OTHER, "tree:add_packet_field Bytes") resetResults() bytes_match_fields = {} local bytes_match_values = {} -- something to make this easier to read local function addMatch(...) addMatchFieldValues(bytes_match_fields, bytes_match_values, ...) end local bytesstring1 = "deadbeef0123456789DEADBEEFabcdef" local bytesstring = ByteArray.new(bytesstring1) -- the binary version of above, for comparing local bytestvb1 = ByteArray.new(bytesstring1, true):tvb("Bytes hex-string 1") local bytesstring2 = " de:ad:be:ef:01:23:45:67:89:DE:AD:BE:EF:ab:cd:ef" local bytestvb2 = ByteArray.new(bytesstring2 .. "-f0-00 foobar", true):tvb("Bytes hex-string 2") local bytestvb1_decode = bytestvb1:range():bytes(ENC_STR_HEX + ENC_SEP_NONE + ENC_SEP_COLON + ENC_SEP_DASH) execute ("tvb_get_string_bytes", string.lower(tostring(bytestvb1_decode)) == string.lower(tostring(bytesstring1))) execute ("add_pfield-bytes1", treeAddPField(tree, testfield.bytes.BYTES, bytestvb1:range(), ENC_STR_HEX + ENC_SEP_NONE + ENC_SEP_COLON + ENC_SEP_DASH)) addMatch(bytesstring, string.len(bytesstring1)) execute ("add_pfield-bytes2", treeAddPField(tree, testfield.bytes.BYTES, bytestvb2:range(), ENC_STR_HEX + ENC_SEP_NONE + ENC_SEP_COLON + ENC_SEP_DASH)) addMatch(bytesstring, string.len(bytesstring2)) verifyResults("add_pfield-bytes", bytes_match_values) verifyFields("bytes.BYTES", bytes_match_fields) ---------------------------------------- testing(OTHER, "tree:add_packet_field OID") resetResults() bytes_match_fields = {} bytes_match_values = {} execute ("add_pfield-oid1", treeAddPField(tree, testfield.bytes.OID, bytestvb1:range(), ENC_STR_HEX + ENC_SEP_NONE + ENC_SEP_COLON + ENC_SEP_DASH)) addMatch(bytesstring, string.len(bytesstring1)) execute ("add_pfield-oid2", treeAddPField(tree, testfield.bytes.OID, bytestvb2:range(), ENC_STR_HEX + ENC_SEP_NONE + ENC_SEP_COLON + ENC_SEP_DASH)) addMatch(bytesstring, string.len(bytesstring2)) verifyResults("add_pfield-oid", bytes_match_values) verifyFields("bytes.OID", bytes_match_fields) ---------------------------------------- testing(OTHER, "tree:add_packet_field REL_OID") resetResults() bytes_match_fields = {} bytes_match_values = {} execute ("add_pfield-rel_oid1", treeAddPField(tree, testfield.bytes.REL_OID, bytestvb1:range(), ENC_STR_HEX + ENC_SEP_NONE + ENC_SEP_COLON + ENC_SEP_DASH)) addMatch(bytesstring, string.len(bytesstring1)) execute ("add_pfield-rel_oid2", treeAddPField(tree, testfield.bytes.REL_OID, bytestvb2:range(), ENC_STR_HEX + ENC_SEP_NONE + ENC_SEP_COLON + ENC_SEP_DASH)) addMatch(bytesstring, string.len(bytesstring2)) verifyResults("add_pfield-rel_oid", bytes_match_values) verifyFields("bytes.REL_OID", bytes_match_fields) ---------------------------------------- testing(OTHER, "tree:add Time") local tvb = ByteArray.new("00000000 00000000 0000FF0F 00FF000F"):tvb("Time") local ALOCAL = testfield.time.ABSOLUTE_LOCAL local alocal_match_fields = {} execute ("time-local", pcall (callTreeAdd, tree, ALOCAL, tvb:range(0,8)) ) addMatchFields(alocal_match_fields, NSTime()) execute ("time-local", pcall (callTreeAdd, tree, ALOCAL, tvb:range(8,8)) ) addMatchFields(alocal_match_fields, NSTime( 0x0000FF0F, 0x00FF000F) ) execute ("time-local-le", pcall (callTreeAddLE, tree, ALOCAL, tvb:range(0,8)) ) addMatchFields(alocal_match_fields, NSTime()) execute ("time-local-le", pcall (callTreeAddLE, tree, ALOCAL, tvb:range(8,8)) ) addMatchFields(alocal_match_fields, NSTime( 0x0FFF0000, 0x0F00FF00 ) ) verifyFields("time.ABSOLUTE_LOCAL", alocal_match_fields) local AUTC = testfield.time.ABSOLUTE_UTC local autc_match_fields = {} execute ("time-utc", pcall (callTreeAdd, tree, AUTC, tvb:range(0,8)) ) addMatchFields(autc_match_fields, NSTime()) execute ("time-utc", pcall (callTreeAdd, tree, AUTC, tvb:range(8,8)) ) addMatchFields(autc_match_fields, NSTime( 0x0000FF0F, 0x00FF000F) ) execute ("time-utc-le", pcall (callTreeAddLE, tree, AUTC, tvb:range(0,8)) ) addMatchFields(autc_match_fields, NSTime()) execute ("time-utc-le", pcall (callTreeAddLE, tree, AUTC, tvb:range(8,8)) ) addMatchFields(autc_match_fields, NSTime( 0x0FFF0000, 0x0F00FF00 ) ) verifyFields("time.ABSOLUTE_UTC", autc_match_fields ) ---------------------------------------- testing(OTHER, "tree:add_packet_field Time bytes") resetResults() local autc_match_values = {} -- something to make this easier to read addMatch = function(...) addMatchFieldValues(autc_match_fields, autc_match_values, ...) end -- tree:add_packet_field(ALOCAL, tvb:range(0,8), ENC_BIG_ENDIAN) execute ("add_pfield-time-bytes-local", treeAddPField ( tree, AUTC, tvb:range(0,8), ENC_BIG_ENDIAN) ) addMatch( NSTime(), 8) execute ("add_pfield-time-bytes-local", treeAddPField ( tree, AUTC, tvb:range(8,8), ENC_BIG_ENDIAN) ) addMatch( NSTime( 0x0000FF0F, 0x00FF000F), 8) execute ("add_pfield-time-bytes-local-le", treeAddPField ( tree, AUTC, tvb:range(0,8), ENC_LITTLE_ENDIAN) ) addMatch( NSTime(), 8) execute ("add_pfield-time-bytes-local-le", treeAddPField ( tree, AUTC, tvb:range(8,8), ENC_LITTLE_ENDIAN) ) addMatch( NSTime( 0x0FFF0000, 0x0F00FF00 ), 8) verifyFields("time.ABSOLUTE_UTC", autc_match_fields) verifyResults("add_pfield-time-bytes-local", autc_match_values) ---------------------------------------- testing(OTHER, "tree:add_packet_field Time string ENC_ISO_8601_DATE_TIME") resetResults() autc_match_values = {} local datetimestring1 = "2013-03-01T22:14:48+00:00" -- this is 1362176088 seconds epoch time local tvb1 = ByteArray.new(datetimestring1, true):tvb("Date_Time string 1") local datetimestring2 = " 2013-03-01T17:14:48+05:00" -- this is 1362176088 seconds epoch time local tvb2 = ByteArray.new(datetimestring2 .. " foobar", true):tvb("Date_Time string 2") local datetimestring3 = " 2013-03-01T16:44+05:30" -- this is 1362176040 seconds epoch time local tvb3 = ByteArray.new(datetimestring3, true):tvb("Date_Time string 3") local datetimestring4 = "2013-03-02T01:44:00-03:30" -- this is 1362176040 seconds epoch time local tvb4 = ByteArray.new(datetimestring4, true):tvb("Date_Time string 4") local datetimestring5 = "2013-03-01T22:14:48Z" -- this is 1362176088 seconds epoch time local tvb5 = ByteArray.new(datetimestring5, true):tvb("Date_Time string 5") local datetimestring6 = "2013-03-01T22:14Z" -- this is 1362176040 seconds epoch time local tvb6 = ByteArray.new(datetimestring6, true):tvb("Date_Time string 6") execute ("add_pfield-datetime-local", treeAddPField ( tree, AUTC, tvb1:range(), ENC_ISO_8601_DATE_TIME) ) addMatch( NSTime( 1362176088, 0), string.len(datetimestring1)) execute ("add_pfield-datetime-local", treeAddPField ( tree, AUTC, tvb2:range(), ENC_ISO_8601_DATE_TIME) ) addMatch( NSTime( 1362176088, 0), string.len(datetimestring2)) execute ("add_pfield-datetime-local", treeAddPField ( tree, AUTC, tvb3:range(), ENC_ISO_8601_DATE_TIME) ) addMatch( NSTime( 1362176040, 0), string.len(datetimestring3)) execute ("add_pfield-datetime-local", treeAddPField ( tree, AUTC, tvb4:range(), ENC_ISO_8601_DATE_TIME) ) addMatch( NSTime( 1362176040, 0), string.len(datetimestring4)) execute ("add_pfield-datetime-local", treeAddPField ( tree, AUTC, tvb5:range(), ENC_ISO_8601_DATE_TIME) ) addMatch( NSTime( 1362176088, 0), string.len(datetimestring5)) execute ("add_pfield-datetime-local", treeAddPField ( tree, AUTC, tvb6:range(), ENC_ISO_8601_DATE_TIME) ) addMatch( NSTime( 1362176040, 0), string.len(datetimestring6)) verifyFields("time.ABSOLUTE_UTC", autc_match_fields) verifyResults("add_pfield-datetime-local", autc_match_values) ---------------------------------------- testing(OTHER, "tree:add_packet_field Time string ENC_ISO_8601_DATE") resetResults() autc_match_values = {} local datestring1 = "2013-03-01" -- this is 1362096000 seconds epoch time local d_tvb1 = ByteArray.new(datestring1, true):tvb("Date string 1") local datestring2 = " 2013-03-01" -- this is 1362096000 seconds epoch time local d_tvb2 = ByteArray.new(datestring2 .. " foobar", true):tvb("Date string 2") execute ("add_pfield-date-local", treeAddPField ( tree, AUTC, d_tvb1:range(), ENC_ISO_8601_DATE) ) addMatch( NSTime( 1362096000, 0), string.len(datestring1)) execute ("add_pfield-date-local", treeAddPField ( tree, AUTC, d_tvb2:range(), ENC_ISO_8601_DATE) ) addMatch( NSTime( 1362096000, 0), string.len(datestring2)) verifyFields("time.ABSOLUTE_UTC", autc_match_fields) verifyResults("add_pfield-date-local", autc_match_values) ---------------------------------------- testing(OTHER, "tree:add_packet_field Time string ENC_ISO_8601_TIME") resetResults() autc_match_values = {} local timestring1 = "22:14:48" -- this is 80088 seconds local t_tvb1 = ByteArray.new(timestring1, true):tvb("Time string 1") local timestring2 = " 22:14:48" -- this is 80088 seconds local t_tvb2 = ByteArray.new(timestring2 .. " foobar", true):tvb("Time string 2") local now = os.date("!*t") now.hour = 22 now.min = 14 now.sec = 48 local timebase = os.time( now ) timebase = timebase + timezone print ("timebase = " .. tostring(timebase) .. ", timezone=" .. timezone) execute ("add_pfield-time-local", treeAddPField ( tree, AUTC, t_tvb1:range(), ENC_ISO_8601_TIME) ) addMatch( NSTime( timebase, 0), string.len(timestring1)) execute ("add_pfield-time-local", treeAddPField ( tree, AUTC, t_tvb2:range(), ENC_ISO_8601_TIME) ) addMatch( NSTime( timebase, 0), string.len(timestring2)) verifyFields("time.ABSOLUTE_UTC", autc_match_fields) verifyResults("add_pfield-time-local", autc_match_values) ---------------------------------------- testing(OTHER, "tree:add_packet_field Time string ENC_RFC_822") resetResults() autc_match_values = {} local rfc822string1 = "Fri, 01 Mar 13 22:14:48 GMT" -- this is 1362176088 seconds epoch time local rfc822_tvb1 = ByteArray.new(rfc822string1, true):tvb("RFC 822 Time string 1") local rfc822string2 = " Fri, 01 Mar 13 22:14:48 GMT" -- this is 1362176088 seconds epoch time local rfc822_tvb2 = ByteArray.new(rfc822string2 .. " foobar", true):tvb("RFC 822 Time string 2") execute ("add_pfield-time-local", treeAddPField ( tree, AUTC, rfc822_tvb1:range(), ENC_RFC_822) ) addMatch( NSTime( 1362176088, 0), string.len(rfc822string1)) execute ("add_pfield-time-local", treeAddPField ( tree, AUTC, rfc822_tvb2:range(), ENC_RFC_822) ) addMatch( NSTime( 1362176088, 0), string.len(rfc822string2)) verifyFields("time.ABSOLUTE_UTC", autc_match_fields) verifyResults("add_pfield-rfc822-local", autc_match_values) ---------------------------------------- testing(OTHER, "tree:add_packet_field Time string ENC_RFC_1123") resetResults() autc_match_values = {} local rfc1123string1 = "Fri, 01 Mar 2013 22:14:48 GMT" -- this is 1362176088 seconds epoch time local rfc1123_tvb1 = ByteArray.new(rfc1123string1, true):tvb("RFC 1123 Time string 1") local rfc1123string2 = " Fri, 01 Mar 2013 22:14:48 GMT" -- this is 1362176088 seconds epoch time local rfc1123_tvb2 = ByteArray.new(rfc1123string2 .. " foobar", true):tvb("RFC 1123 Time string 2") execute ("add_pfield-time-local", treeAddPField ( tree, AUTC, rfc1123_tvb1:range(), ENC_RFC_1123) ) addMatch( NSTime( 1362176088, 0), string.len(rfc1123string1)) execute ("add_pfield-time-local", treeAddPField ( tree, AUTC, rfc1123_tvb2:range(), ENC_RFC_1123) ) addMatch( NSTime( 1362176088, 0), string.len(rfc1123string2)) verifyFields("time.ABSOLUTE_UTC", autc_match_fields) verifyResults("add_pfield-rfc1123-local", autc_match_values) ---------------------------------------- setPassed(FRAME) end ---------------------------------------- -- we want to have our protocol dissection invoked for a specific UDP port, -- so get the udp dissector table and add our protocol to it DissectorTable.get("udp.port"):add(65333, test_proto) DissectorTable.get("udp.port"):add(65346, test_proto) print("test_proto dissector registered")
38.891134
143
0.621061
84485368c3f01141408d4dcba053237af0511e66
444
html
HTML
resources/posts/my-fourth-post.html
Polivaresc/code-blog
51160180b74600c230f580ad29bae8d3d92b9a03
[ "MIT" ]
null
null
null
resources/posts/my-fourth-post.html
Polivaresc/code-blog
51160180b74600c230f580ad29bae8d3d92b9a03
[ "MIT" ]
null
null
null
resources/posts/my-fourth-post.html
Polivaresc/code-blog
51160180b74600c230f580ad29bae8d3d92b9a03
[ "MIT" ]
null
null
null
--- title: My Fourth Post slug: my-fourth-post excerpt: Lorem ipsum dolor sit amet, consectetur adipisicing elit. date: 2021-05-26 --- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aliquam beatae consequuntur debitis dicta, earum enim error exercitationem fuga fugiat impedit in ipsam iste magni minima minus molestiae mollitia neque nisi odio officiis optio placeat possimus quibusdam vitae voluptate voluptatem!</p>
49.333333
307
0.808559
1be51b12d7c0bde385d35f26caec16057dff0343
250
asm
Assembly
programs/oeis/110/A110139.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/110/A110139.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/110/A110139.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A110139: Floor(n/2)^floor(n/2). ; 1,1,1,1,4,4,27,27,256,256,3125,3125,46656,46656,823543,823543,16777216,16777216,387420489,387420489,10000000000,10000000000,285311670611,285311670611,8916100448256,8916100448256,302875106592253 div $0,2 pow $0,$0
41.666667
195
0.792
83e6f586b9deac77a43d7952b60f4c75ff7bcfb9
1,715
go
Go
router.go
oujia/gobase-demo
b767739008a8e2398504699b6fd51061c5eb6a22
[ "MIT" ]
null
null
null
router.go
oujia/gobase-demo
b767739008a8e2398504699b6fd51061c5eb6a22
[ "MIT" ]
null
null
null
router.go
oujia/gobase-demo
b767739008a8e2398504699b6fd51061c5eb6a22
[ "MIT" ]
null
null
null
package main import ( "net/http" "github.com/gin-gonic/gin" "github.com/oujia/gobase-demo/controller" "github.com/oujia/gobase" "github.com/oujia/gobase-demo/config" ) var routers = gobase.Routers{ gobase.Router{ http.MethodGet, "/gobase/get", func(c *gin.Context) { gobase.NewResponse(gobase.CODE_NORMAL_ERROR, gin.H{ "test": 123, "foo": "bar", "call_id": c.Request.Header.Get("call_id"), }).SendBy(c) }, }, gobase.Router{ http.MethodPost, "gobase/post", func(c *gin.Context) { gobase.NewResponseWithMSG(gobase.CODE_SUCCESS, nil,"测试成功").SendBy(c) }, }, gobase.Router{ http.MethodGet, "gobase/remote", func(c *gin.Context) { dwHttp := &gobase.DwHttp{c, config.DwLog} resp, err := dwHttp.SimpleGet("http://www.duowan.com") if err != nil { gobase.NewResponseWithMSG(gobase.CODE_REQUEST_TIMEOUT, nil, err.Error()).SendBy(c) } else { gobase.NewResponse(gobase.CODE_SUCCESS, resp).SendBy(c) } }, }, gobase.Router{ http.MethodGet, "gobase/hdPrize", controller.HDPrize, }, gobase.Router{ http.MethodGet, "gobase/hdPrizeOne", controller.HDPrizeOne, }, gobase.Router{ http.MethodGet, "loc/episodeTest", controller.EpisodeTest, }, gobase.Router{ http.MethodGet, "loc/testCount", controller.TestGetCount, }, gobase.Router{ http.MethodGet, "loc/testUpdate", controller.TestUpdate, }, gobase.Router{ http.MethodGet, "loc/testDel", controller.TestDel, }, gobase.Router{ http.MethodGet, "loc/testAdd", controller.TestAdd, }, gobase.Router{ http.MethodGet, "loc/testAdds", controller.TestAdds, }, gobase.Router{ http.MethodGet, "r2m/testGetRow", controller.TestR2MGetRow, }, }
19.055556
86
0.676385
05cf414a48a769eb3ab79909ce9970923807594e
8,487
swift
Swift
LD_DYProject/LD_DYProject/Classes/Live/Controller/RoomViewController.swift
Buliceli/LD_DYProject
a54d21a054546f2c095d885a36114e2a519465a0
[ "Apache-2.0" ]
null
null
null
LD_DYProject/LD_DYProject/Classes/Live/Controller/RoomViewController.swift
Buliceli/LD_DYProject
a54d21a054546f2c095d885a36114e2a519465a0
[ "Apache-2.0" ]
null
null
null
LD_DYProject/LD_DYProject/Classes/Live/Controller/RoomViewController.swift
Buliceli/LD_DYProject
a54d21a054546f2c095d885a36114e2a519465a0
[ "Apache-2.0" ]
null
null
null
// // RoomViewController.swift // LD_DYProject // // Created by 李洞洞 on 2020/5/3. // Copyright © 2020 李洞洞. All rights reserved. // import UIKit private let kChatToolsViewHeight : CGFloat = 44 private let kGiftlistViewHeight : CGFloat = kScreenH * 0.5 private let kChatContentViewHeight : CGFloat = 200 class RoomViewController: UIViewController,Emitterable { @IBOutlet weak var bgImageView: UIImageView! @IBOutlet weak var msgBtn: UIButton! @IBOutlet weak var shareBtn: UIButton! @IBOutlet weak var giftBtn: UIButton! @IBOutlet weak var moreBtn: UIButton! @IBOutlet weak var lastBtn: UIButton! fileprivate lazy var chatToolsView: ChatToolsView = ChatToolsView.loadFromNib() fileprivate lazy var giftListView : GiftListView = GiftListView.loadFromNib() fileprivate lazy var chatContentView : ChatContentView = ChatContentView.loadFromNib() fileprivate lazy var giftContentView: LDGiftContainerView = LDGiftContainerView() fileprivate lazy var socket: LDSocket = LDSocket(addr: "192.168.0.126", port: 7777) fileprivate var heartBeatTimer : Timer? override func viewDidLoad() { super.viewDidLoad() //1.设置UI界面 setupUI() // 2.监听键盘的通知 NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChangeFrame(_:)), name: UIResponder.keyboardWillChangeFrameNotification, object: nil) //3.连接聊天服务器 if socket.connectServer() { print("连接成功") socket.startReadMsg() addHeartBeatTimer() socket.sendJoinRoom() socket.delegate = self } } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) navigationController?.setNavigationBarHidden(true, animated: true) } override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) navigationController?.setNavigationBarHidden(false, animated: true) } } //MARK: - 设置UI extension RoomViewController { fileprivate func setupUI(){ setupBlurView() setupBottomView() setupSendGiftView() } fileprivate func setupBlurView(){ let blur = UIBlurEffect(style: .dark) let blurView = UIVisualEffectView(effect: blur) blurView.autoresizingMask = [.flexibleWidth,.flexibleHeight] blurView.frame = bgImageView.bounds //blurView.frame = CGRect(x: 0, y: 0, width: kScreenW, height: kScreenH) bgImageView.isUserInteractionEnabled = true blurView.isUserInteractionEnabled = true bgImageView.addSubview(blurView) } fileprivate func setupBottomView(){ // 0.设置Chat内容的View chatContentView.frame = CGRect(x: 0, y: view.bounds.height - 44 - kChatContentViewHeight, width: view.bounds.width, height: kChatContentViewHeight) chatContentView.autoresizingMask = [.flexibleWidth, .flexibleTopMargin] view.addSubview(chatContentView) // 1.设置chatToolsView chatToolsView.frame = CGRect(x: 0, y: view.bounds.height, width: view.bounds.width, height: kChatToolsViewHeight) chatToolsView.autoresizingMask = [.flexibleTopMargin, .flexibleWidth] chatToolsView.delegate = self view.addSubview(chatToolsView) //2.设置giftListView giftListView.frame = CGRect(x: 0, y: view.bounds.height, width: view.bounds.width, height: kGiftlistViewHeight) giftListView.autoresizingMask = [.flexibleTopMargin, .flexibleWidth] view.addSubview(giftListView) giftListView.delegate = self } fileprivate func setupSendGiftView(){ giftContentView.frame = CGRect(x: 0, y: kScreenH - 55 - 90 - 300, width: 250, height: 90) giftContentView.backgroundColor = UIColor.lightGray view.addSubview(giftContentView) } } //MARK: - 事件监听 extension RoomViewController{ @IBAction func exitBtnClick(){ navigationController?.popViewController(animated: true) } override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { chatToolsView.inputTextFiled.resignFirstResponder() UIView.animate(withDuration: 0.25, animations: { self.giftListView.frame.origin.y = kScreenH }) // let gift1 = LDGiftModel(senderName: "LDD", senderURL: "icon1", giftName: "火箭", giftURL: "prop_f") // giftContentView.showGiftModel(gift1) } @IBAction func bottomMenuClick(_ sender: UIButton){ print("--------------\(sender.tag)") switch sender.tag { case 1: print("消息") //chatToolsView.inputTextFiled.becomeFirstResponder() case 2: print("分享") case 3: print("礼物") UIView.animate(withDuration: 0.25, animations: { self.giftListView.frame.origin.y = kScreenH - kGiftlistViewHeight }) case 4: print("更多") case 5: print("...") sender.isSelected = !sender.isSelected let point = CGPoint(x: sender.center.x, y: view.bounds.height - sender.bounds.height * 0.5) sender.isSelected ? startEmittering(point) : stopEmittering() default: fatalError("未处理按钮") } } } //MARK: - 监听键盘的弹出 extension RoomViewController { @objc fileprivate func keyboardWillChangeFrame(_ note : Notification) { let duration = note.userInfo![UIResponder.keyboardAnimationDurationUserInfoKey] as! Double let endFrame = (note.userInfo![UIResponder.keyboardFrameEndUserInfoKey] as! NSValue).cgRectValue let inputViewY = endFrame.origin.y - kChatToolsViewHeight UIView.animate(withDuration: duration) { UIView.setAnimationCurve(UIView.AnimationCurve(rawValue: 7)!) let endY = inputViewY == (kScreenH - kChatToolsViewHeight) ? kScreenH : inputViewY //self.chatToolsView.frame.origin.y = endY self.chatToolsView.frame = CGRect(x: 0, y: endY, width: kScreenW, height: kChatToolsViewHeight) let contentEndY = inputViewY == (kScreenH - kChatToolsViewHeight) ? (kScreenH - kChatContentViewHeight - 44) : endY - kChatContentViewHeight self.chatContentView.frame = CGRect(x: 0, y: contentEndY, width: kScreenW, height: kChatContentViewHeight) } } } //MARK: -监听用户输入的内容 extension RoomViewController: ChatToolsViewDelegate,GiftListViewDelegate{ func giftListView(giftView: GiftListView, giftModel: GiftModel) { socket.sendGiftMsg(giftName: giftModel.subject, giftURL: giftModel.img2, giftCount: "1") } func chatToolsView(toolView: ChatToolsView, message: String) { socket.sendTextMsg(message: message) } } //MARK: - 给服务器发送心跳包 extension RoomViewController{ fileprivate func addHeartBeatTimer() { heartBeatTimer = Timer(fireAt: Date(), interval: 9, target: self, selector: #selector(sendHeartBeat), userInfo: nil, repeats: true) RunLoop.main.add(heartBeatTimer!, forMode: .common) } @objc fileprivate func sendHeartBeat() { socket.sendHeartBeat() } } //MARK: - 接收聊天服务器返回的消息 extension RoomViewController: LDSocketDelegate{ func socket(_ socket: LDSocket, joinRoom user: UserInfo) { print("\(String(describing: user.name)) 进入房间") chatContentView.insertMsg(AttrStringGenerator.generateJoinLeaveRoom(user.name, true)) } func socket(_ socket: LDSocket, leaveRoom user: UserInfo) { print("\(String(describing: user.name)) 离开房间") chatContentView.insertMsg(AttrStringGenerator.generateJoinLeaveRoom(user.name, false)) } func socket(_ socket: LDSocket, chatMsg: TextMessage) { print("\(String(describing: chatMsg.user.name)): \(String(describing: chatMsg.text))") // 1.通过富文本生成器, 生产需要的富文本 let chatMsgMAttr = AttrStringGenerator.generateTextMessage(chatMsg.user.name, chatMsg.text) // 2.将文本的属性字符串插入到内容View中 chatContentView.insertMsg(chatMsgMAttr) } func socket(_ socket: LDSocket, giftMsg: GiftMessage) { print("\(String(describing: giftMsg.user.name)) 赠送 \(String(describing: giftMsg.giftname)) \(String(describing: giftMsg.giftUrl))") // 1.通过富文本生成器, 生产需要的富文本 let giftMsgAttr = AttrStringGenerator.generateGiftMessage(giftMsg.giftname, giftMsg.giftUrl, giftMsg.user.name) // 2.将文本的属性字符串插入到内容View中 chatContentView.insertMsg(giftMsgAttr) } }
41.4
170
0.677035
6cd58b122c8557db5638fb666733c1de95f330ee
6,524
go
Go
generated/go/uisp/client/server/get_nms_update_log_responses.go
byxorna/nycmesh-tool
6de789c6eb76052169de0a10851f17c1ff2edbd5
[ "Apache-2.0" ]
1
2022-01-26T00:46:38.000Z
2022-01-26T00:46:38.000Z
generated/go/uisp/client/server/get_nms_update_log_responses.go
byxorna/nycmesh-tool
6de789c6eb76052169de0a10851f17c1ff2edbd5
[ "Apache-2.0" ]
3
2022-02-10T17:48:55.000Z
2022-03-04T20:37:45.000Z
generated/go/uisp/client/server/get_nms_update_log_responses.go
byxorna/nycmesh-tool
6de789c6eb76052169de0a10851f17c1ff2edbd5
[ "Apache-2.0" ]
null
null
null
// Code generated by go-swagger; DO NOT EDIT. package server // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/byxorna/nycmesh-tool/generated/go/uisp/models" ) // GetNmsUpdateLogReader is a Reader for the GetNmsUpdateLog structure. type GetNmsUpdateLogReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *GetNmsUpdateLogReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewGetNmsUpdateLogOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 401: result := NewGetNmsUpdateLogUnauthorized() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result case 403: result := NewGetNmsUpdateLogForbidden() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result case 500: result := NewGetNmsUpdateLogInternalServerError() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result case 503: result := NewGetNmsUpdateLogServiceUnavailable() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) } } // NewGetNmsUpdateLogOK creates a GetNmsUpdateLogOK with default headers values func NewGetNmsUpdateLogOK() *GetNmsUpdateLogOK { return &GetNmsUpdateLogOK{} } /* GetNmsUpdateLogOK describes a response with status code 200, with default header values. Successful */ type GetNmsUpdateLogOK struct { Payload string } func (o *GetNmsUpdateLogOK) Error() string { return fmt.Sprintf("[GET /nms/update/log][%d] getNmsUpdateLogOK %+v", 200, o.Payload) } func (o *GetNmsUpdateLogOK) GetPayload() string { return o.Payload } func (o *GetNmsUpdateLogOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { return err } return nil } // NewGetNmsUpdateLogUnauthorized creates a GetNmsUpdateLogUnauthorized with default headers values func NewGetNmsUpdateLogUnauthorized() *GetNmsUpdateLogUnauthorized { return &GetNmsUpdateLogUnauthorized{} } /* GetNmsUpdateLogUnauthorized describes a response with status code 401, with default header values. Unauthorized */ type GetNmsUpdateLogUnauthorized struct { Payload *models.Error } func (o *GetNmsUpdateLogUnauthorized) Error() string { return fmt.Sprintf("[GET /nms/update/log][%d] getNmsUpdateLogUnauthorized %+v", 401, o.Payload) } func (o *GetNmsUpdateLogUnauthorized) GetPayload() *models.Error { return o.Payload } func (o *GetNmsUpdateLogUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewGetNmsUpdateLogForbidden creates a GetNmsUpdateLogForbidden with default headers values func NewGetNmsUpdateLogForbidden() *GetNmsUpdateLogForbidden { return &GetNmsUpdateLogForbidden{} } /* GetNmsUpdateLogForbidden describes a response with status code 403, with default header values. Forbidden */ type GetNmsUpdateLogForbidden struct { Payload *models.Error } func (o *GetNmsUpdateLogForbidden) Error() string { return fmt.Sprintf("[GET /nms/update/log][%d] getNmsUpdateLogForbidden %+v", 403, o.Payload) } func (o *GetNmsUpdateLogForbidden) GetPayload() *models.Error { return o.Payload } func (o *GetNmsUpdateLogForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewGetNmsUpdateLogInternalServerError creates a GetNmsUpdateLogInternalServerError with default headers values func NewGetNmsUpdateLogInternalServerError() *GetNmsUpdateLogInternalServerError { return &GetNmsUpdateLogInternalServerError{} } /* GetNmsUpdateLogInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ type GetNmsUpdateLogInternalServerError struct { Payload *models.Error } func (o *GetNmsUpdateLogInternalServerError) Error() string { return fmt.Sprintf("[GET /nms/update/log][%d] getNmsUpdateLogInternalServerError %+v", 500, o.Payload) } func (o *GetNmsUpdateLogInternalServerError) GetPayload() *models.Error { return o.Payload } func (o *GetNmsUpdateLogInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewGetNmsUpdateLogServiceUnavailable creates a GetNmsUpdateLogServiceUnavailable with default headers values func NewGetNmsUpdateLogServiceUnavailable() *GetNmsUpdateLogServiceUnavailable { return &GetNmsUpdateLogServiceUnavailable{} } /* GetNmsUpdateLogServiceUnavailable describes a response with status code 503, with default header values. Service Unavailable */ type GetNmsUpdateLogServiceUnavailable struct { Payload *models.Error } func (o *GetNmsUpdateLogServiceUnavailable) Error() string { return fmt.Sprintf("[GET /nms/update/log][%d] getNmsUpdateLogServiceUnavailable %+v", 503, o.Payload) } func (o *GetNmsUpdateLogServiceUnavailable) GetPayload() *models.Error { return o.Payload } func (o *GetNmsUpdateLogServiceUnavailable) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
29.926606
167
0.767474
bf41b6224cefa2df9ee21648233d372b685d8c53
1,226
asm
Assembly
5-BookVersion.asm
TheRealCatherine/MakingGamesForAtari2600-MADS
a8f4863b0ca9796eea9cb20a3bed65b948733643
[ "BSD-3-Clause" ]
null
null
null
5-BookVersion.asm
TheRealCatherine/MakingGamesForAtari2600-MADS
a8f4863b0ca9796eea9cb20a3bed65b948733643
[ "BSD-3-Clause" ]
null
null
null
5-BookVersion.asm
TheRealCatherine/MakingGamesForAtari2600-MADS
a8f4863b0ca9796eea9cb20a3bed65b948733643
[ "BSD-3-Clause" ]
null
null
null
;@com.wudsn.ide.asm.hardware=ATARI2600 icl "vcs.asm" icl "macro.asm" opt h-f+l+ ;Create plain 4k ROM file org $f000 ;start code at $f000 .proc Cart BGColor = $81; ;declare local (to Cart procedure) variable BGColor at memory address $81 Start Clean_Start ;macro to safely clear memory and TIA NextFrame lda #2 ;same as binary #%00000010 sta VBLANK ;turn on VBLANK sta VSYNC ;turn on VSYNC sta WSYNC ;first scanline sta WSYNC ;second scanline sta WSYNC ;third scanline lda #0 sta VSYNC ;turn off VSYNC ldx #37 ;count 37 scanlines LVBLank sta WSYNC ;wait for next scanline dex ;decrement X bne LVBlank ;loop while X != 0 lda #0 sta VBLANK ;turn off VBLANK ldx #192 ;count 192 scanlines ldy BGColor ;load the background color from RAM LVScan sty COLUBK ;set the background color sta WSYNC ;wait for the next scanline iny ;increment the background color dex ;decrement X bne LVSCAN ;loop while X != 0 lda #2 sta VBLANK ;turn on VBLANK again ldx #30 ;count 30 scanlines LVOver sta WSYNC ;wait for next scanline dex ;decrement X bne LVOver ;loop while X != 0 dec BGColor jmp NextFrame .endp org $fffc .word Cart.Start .word $ffff
20.779661
90
0.700653
0cdf83ec2ee6735ac3ecbd989380ce0f87917a5d
102
py
Python
api/queries/models.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
3
2019-05-15T09:30:39.000Z
2020-04-22T16:14:23.000Z
api/queries/models.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
85
2019-04-24T10:39:35.000Z
2022-03-21T14:52:12.000Z
api/queries/models.py
django-doctor/lite-api
1ba278ba22ebcbb977dd7c31dd3701151cd036bf
[ "MIT" ]
1
2021-01-17T11:12:19.000Z
2021-01-17T11:12:19.000Z
from api.cases.models import Case class Query(Case): """ Base query class """ pass
10.2
33
0.588235
413bcdeddfec44d02c4f26767e66d0c3f3d3f062
1,024
c
C
ft_stradd.c
jdhaisne/libft
a098c24fdac3b64a9db3638c0420a24e12f7b41c
[ "MIT" ]
null
null
null
ft_stradd.c
jdhaisne/libft
a098c24fdac3b64a9db3638c0420a24e12f7b41c
[ "MIT" ]
null
null
null
ft_stradd.c
jdhaisne/libft
a098c24fdac3b64a9db3638c0420a24e12f7b41c
[ "MIT" ]
null
null
null
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_stradd.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jdhaisne <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/04/06 10:58:27 by jdhaisne #+# #+# */ /* Updated: 2016/04/06 10:58:36 by jdhaisne ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" char *ft_stradd(char *s1, char *s2) { char *tmp; tmp = ft_strjoin(s1, s2); ft_strdel(&s1); return (tmp); }
44.521739
80
0.171875
4c11e4b2a767ae6aca7c85e5087f2101494e8be4
1,258
php
PHP
themes/default/views/blog/post/_view.php
BioSin/yupe
5b5857d6b6726c81cd356d2bc2845976e0775992
[ "BSD-3-Clause" ]
1
2021-08-23T05:58:37.000Z
2021-08-23T05:58:37.000Z
themes/default/views/blog/post/_view.php
BioSin/yupe
5b5857d6b6726c81cd356d2bc2845976e0775992
[ "BSD-3-Clause" ]
null
null
null
themes/default/views/blog/post/_view.php
BioSin/yupe
5b5857d6b6726c81cd356d2bc2845976e0775992
[ "BSD-3-Clause" ]
null
null
null
<div class="post"> <div class="title"> <?php echo CHtml::link(CHtml::encode($data->title), array('/blog/post/show/', 'slug' => $data->slug)); ?> </div> <div class="author"> <?php echo Yii::t('blog', 'Опубликовал'); ?>: <b><?php echo CHtml::link($data->createUser->nick_name, array('/user/people/userInfo', 'username' => $data->createUser->nick_name)); ?></b> <?php echo Yii::t('blog', 'в блоге'); ?>: "<?php echo CHtml::link($data->blog->name, array('/blog/blog/show/', 'slug' => $data->blog->slug)); ?>" <?php echo Yii::t('blog', 'дата'); ?>: <?php echo Yii::app()->getDateFormatter()->formatDateTime($data->publish_date, "short", "short"); ?> </div> <div class="content"> <p><?php echo $data->quote; ?></p> </div> <div class="nav"> <?php echo Yii::t('blog', 'Теги'); ?>: <?php if (($tags = $data->getTags()) != array()) { foreach ($tags as &$tag) { $tag = CHtml::encode($tag); echo CHtml::link($tag, array('/posts/', 'tag' => $tag)).' '; } unset($tag); } else echo Yii::t('blog', 'тегов нет'); ?> </div> </div>
37
147
0.472973
53d616cf5fde5ae6b2ccf9df80ae10194d7ee16d
571
dart
Dart
examples/flutter_punk_api/lib/app.dart
nartawak/rx_state
24705ef83525d3e04efd9ab12e44ea7817b9365c
[ "MIT" ]
null
null
null
examples/flutter_punk_api/lib/app.dart
nartawak/rx_state
24705ef83525d3e04efd9ab12e44ea7817b9365c
[ "MIT" ]
null
null
null
examples/flutter_punk_api/lib/app.dart
nartawak/rx_state
24705ef83525d3e04efd9ab12e44ea7817b9365c
[ "MIT" ]
null
null
null
import 'package:flutter/material.dart'; import 'punkapi_theme.dart'; import 'routes/detail/detail_route.dart'; import 'routes/master/master_route.dart'; class PunkApiApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: lightTheme, darkTheme: darkTheme, initialRoute: MasterRoute.routeName, routes: <String, WidgetBuilder>{ MasterRoute.routeName: (_) => const MasterRoute(), DetailRoute.routeName: (_) => DetailRoute(), }, ); } }
25.954545
58
0.683012
2a7bdd0620e7fabaa9491d09216494208fce6884
6,299
java
Java
src/main/java/com/qualixium/playnb/filetype/routes/lexer/RoutesLanguageHierarchy.java
Knitter/nb-playframework
84b92f14a1abfc94fd0dffdeeb61874cae47f8d2
[ "Apache-2.0" ]
8
2016-10-15T19:58:04.000Z
2017-12-04T17:29:46.000Z
src/main/java/com/qualixium/playnb/filetype/routes/lexer/RoutesLanguageHierarchy.java
Knitter/nb-playframework
84b92f14a1abfc94fd0dffdeeb61874cae47f8d2
[ "Apache-2.0" ]
7
2016-10-15T17:25:10.000Z
2017-09-25T22:07:26.000Z
src/main/java/com/qualixium/playnb/filetype/routes/lexer/RoutesLanguageHierarchy.java
Knitter/nb-playframework
84b92f14a1abfc94fd0dffdeeb61874cae47f8d2
[ "Apache-2.0" ]
4
2017-03-31T21:45:28.000Z
2018-10-02T07:36:47.000Z
package com.qualixium.playnb.filetype.routes.lexer; import com.qualixium.playnb.filetype.routes.RoutesLanguage; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import org.netbeans.spi.lexer.LanguageHierarchy; import org.netbeans.spi.lexer.Lexer; import org.netbeans.spi.lexer.LexerRestartInfo; /** * * @author pedro */ public class RoutesLanguageHierarchy extends LanguageHierarchy<RoutesTokenId> { private static List<RoutesTokenId> tokens; private static Map<Integer, RoutesTokenId> idToToken; private static void init() { tokens = Arrays.<RoutesTokenId>asList(new RoutesTokenId[]{ new RoutesTokenId("EOF", "whitespace", 0), new RoutesTokenId("WHITESPACE", "whitespace", 1), new RoutesTokenId("SINGLE_LINE_COMMENT", "comment", 2), new RoutesTokenId("GET", "keyword", 3), new RoutesTokenId("HEAD", "keyword", 4), new RoutesTokenId("POST", "keyword", 5), new RoutesTokenId("PUT", "keyword", 6), new RoutesTokenId("DELETE", "keyword", 7), new RoutesTokenId("TRACE", "keyword", 8), new RoutesTokenId("OPTIONS", "keyword", 9), new RoutesTokenId("CONNECT", "keyword", 10), new RoutesTokenId("PATCH", "keyword", 11), new RoutesTokenId("BOOLEAN", "keyword", 12), new RoutesTokenId("BYTE", "keyword", 13), new RoutesTokenId("CHAR", "keyword", 14), new RoutesTokenId("FALSE", "keyword", 15), new RoutesTokenId("FLOAT", "keyword", 16), new RoutesTokenId("INT", "keyword", 17), new RoutesTokenId("LONG", "keyword", 18), new RoutesTokenId("SHORT", "keyword", 19), new RoutesTokenId("TRUE", "keyword", 20), new RoutesTokenId("INTEGER_LITERAL", "literal", 21), new RoutesTokenId("DECIMAL_LITERAL", "literal", 22), new RoutesTokenId("HEX_LITERAL", "literal", 23), new RoutesTokenId("OCTAL_LITERAL", "literal", 24), new RoutesTokenId("FLOATING_POINT_LITERAL", "literal", 25), new RoutesTokenId("DECIMAL_FLOATING_POINT_LITERAL", "literal", 26), new RoutesTokenId("DECIMAL_EXPONENT", "number", 27), new RoutesTokenId("HEXADECIMAL_FLOATING_POINT_LITERAL", "literal", 28), new RoutesTokenId("HEXADECIMAL_EXPONENT", "number", 29), new RoutesTokenId("CHARACTER_LITERAL", "literal", 30), new RoutesTokenId("STRING_LITERAL", "literal", 31), new RoutesTokenId("IDENTIFIER", "identifier", 32), new RoutesTokenId("LETTER", "literal", 33), new RoutesTokenId("PART_LETTER", "literal", 34), new RoutesTokenId("LPAREN", "operator", 35), new RoutesTokenId("RPAREN", "operator", 36), new RoutesTokenId("LBRACE", "operator", 37), new RoutesTokenId("RBRACE", "operator", 38), new RoutesTokenId("LBRACKET", "operator", 39), new RoutesTokenId("RBRACKET", "operator", 40), new RoutesTokenId("SEMICOLON", "operator", 41), new RoutesTokenId("COMMA", "operator", 42), new RoutesTokenId("DOT", "operator", 43), new RoutesTokenId("AT", "operator", 44), new RoutesTokenId("ASSIGN", "operator", 45), new RoutesTokenId("LT", "operator", 46), new RoutesTokenId("BANG", "operator", 47), new RoutesTokenId("TILDE", "operator", 48), new RoutesTokenId("HOOK", "operator", 49), new RoutesTokenId("COLON", "operator", 50), new RoutesTokenId("EQ", "operator", 51), new RoutesTokenId("LE", "operator", 52), new RoutesTokenId("GE", "operator", 53), new RoutesTokenId("NE", "operator", 54), new RoutesTokenId("SC_OR", "operator", 55), new RoutesTokenId("SC_AND", "operator", 56), new RoutesTokenId("INCR", "operator", 57), new RoutesTokenId("DECR", "operator", 58), new RoutesTokenId("PLUS", "operator", 59), new RoutesTokenId("MINUS", "operator", 60), new RoutesTokenId("STAR", "operator", 61), new RoutesTokenId("SLASH", "operator", 62), new RoutesTokenId("BIT_AND", "operator", 63), new RoutesTokenId("BIT_OR", "operator", 64), new RoutesTokenId("XOR", "operator", 65), new RoutesTokenId("REM", "operator", 66), new RoutesTokenId("LSHIFT", "operator", 67), new RoutesTokenId("PLUSASSIGN", "operator", 68), new RoutesTokenId("MINUSASSIGN", "operator", 69), new RoutesTokenId("STARASSIGN", "operator", 70), new RoutesTokenId("SLASHASSIGN", "operator", 71), new RoutesTokenId("ANDASSIGN", "operator", 72), new RoutesTokenId("ORASSIGN", "operator", 73), new RoutesTokenId("XORASSIGN", "operator", 74), new RoutesTokenId("REMASSIGN", "operator", 75), new RoutesTokenId("LSHIFTASSIGN", "operator", 76), new RoutesTokenId("RSIGNEDSHIFTASSIGN", "operator", 77), new RoutesTokenId("RUNSIGNEDSHIFTASSIGN", "operator", 78), new RoutesTokenId("ELLIPSIS", "operator", 79), new RoutesTokenId("RUNSIGNEDSHIFT", "operator", 80), new RoutesTokenId("RSIGNEDSHIFT", "operator", 81), new RoutesTokenId("GT", "operator", 82),}); idToToken = new HashMap<>(); for (RoutesTokenId token : tokens) { idToToken.put(token.ordinal(), token); } } static synchronized RoutesTokenId getToken(int id) { if (idToToken == null) { init(); } return idToToken.get(id); } @Override protected synchronized Collection<RoutesTokenId> createTokenIds() { if (tokens == null) { init(); } return tokens; } @Override protected synchronized Lexer<RoutesTokenId> createLexer(LexerRestartInfo<RoutesTokenId> info) { return new RoutesLexer(info); } @Override protected String mimeType() { return RoutesLanguage.MIME_TYPE; } }
45.316547
99
0.596285
fbd41e156cbfa76c6471c7e30e692340d9202452
503
java
Java
src/test/java/org/sedgewick/algorithms/part_one/week_two/question_two/StackWithMaxTest.java
GorchakovIgor/sedgewick-algorithms-coursera
0f32aa25fed9016b984431799a2a5b89f1f269b8
[ "MIT" ]
1
2020-11-30T15:07:49.000Z
2020-11-30T15:07:49.000Z
src/test/java/org/sedgewick/algorithms/part_one/week_two/question_two/StackWithMaxTest.java
vot-developer/sedgewick-algorithms-coursera
8fbe27837cdb22feb89c3a1fa9175e4b31000e9c
[ "MIT" ]
null
null
null
src/test/java/org/sedgewick/algorithms/part_one/week_two/question_two/StackWithMaxTest.java
vot-developer/sedgewick-algorithms-coursera
8fbe27837cdb22feb89c3a1fa9175e4b31000e9c
[ "MIT" ]
null
null
null
package org.sedgewick.algorithms.part_one.week_two.question_two; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; class StackWithMaxTest { @Test void getMax() { StackWithMax stack = new StackWithMax(); stack.push(1); stack.push(0); stack.push(3); assertEquals(3, stack.getMax()); assertEquals(3, stack.pop()); assertEquals(1, stack.getMax()); assertEquals(0, stack.top()); } }
25.15
64
0.644135
89dc0693f4a7754279c5c6a20713865221180242
685
sql
SQL
wycms/modules/message/install/message.sql
lanling1213/lanlin
62f404def5d226ba97922c5f0814fdc69ad5c8e7
[ "BSD-2-Clause" ]
null
null
null
wycms/modules/message/install/message.sql
lanling1213/lanlin
62f404def5d226ba97922c5f0814fdc69ad5c8e7
[ "BSD-2-Clause" ]
null
null
null
wycms/modules/message/install/message.sql
lanling1213/lanlin
62f404def5d226ba97922c5f0814fdc69ad5c8e7
[ "BSD-2-Clause" ]
null
null
null
DROP TABLE IF EXISTS `wy_message`; CREATE TABLE `wy_message` ( `messageid` int(10) unsigned NOT NULL AUTO_INCREMENT, `send_from_id` char(30) NOT NULL DEFAULT '0', `send_to_id` char(30) NOT NULL DEFAULT '0', `folder` enum('all','inbox','outbox') NOT NULL, `status` tinyint(1) unsigned NOT NULL DEFAULT '0', `message_time` int(10) unsigned NOT NULL DEFAULT '0', `subject` char(80) DEFAULT NULL, `content` text NOT NULL, `replyid` int(10) unsigned NOT NULL DEFAULT '0', `del_type` tinyint(1) unsigned DEFAULT '0', PRIMARY KEY (`messageid`), KEY `msgtoid` (`send_to_id`,`folder`), KEY `replyid` (`replyid`), KEY `folder` (`send_from_id`,`folder`) ) TYPE=MyISAM;
40.294118
55
0.687591
dddca264acf020d6fe18b652d9694ad3264a65e5
1,592
php
PHP
plugins/opCommunityTopicPlugin/apps/mobile_frontend/modules/communityTopic/templates/showSuccess.php
sunglen/op3c
b3c512148089b839e19a4a379e3b142374899706
[ "Apache-2.0" ]
null
null
null
plugins/opCommunityTopicPlugin/apps/mobile_frontend/modules/communityTopic/templates/showSuccess.php
sunglen/op3c
b3c512148089b839e19a4a379e3b142374899706
[ "Apache-2.0" ]
null
null
null
plugins/opCommunityTopicPlugin/apps/mobile_frontend/modules/communityTopic/templates/showSuccess.php
sunglen/op3c
b3c512148089b839e19a4a379e3b142374899706
[ "Apache-2.0" ]
null
null
null
<?php $acl = opCommunityTopicAclBuilder::buildResource($communityTopic, array($sf_user->getMember())) ?> <?php op_mobile_page_title($community->getName(), $communityTopic->getName()) ?> <?php echo op_within_page_link() ?> <?php echo op_format_date($communityTopic->getCreatedAt(), 'MM/dd HH:mm') ?> <?php if ($communityTopic->getMemberId() === $sf_user->getMemberId()): ?> <?php endif; ?><br> <?php if ($communityTopic->getMember() && $communityTopic->getMember()->getName()): ?> <?php echo link_to($communityTopic->getMember()->getName(), 'member/profile?id='.$communityTopic->getMember()->getId()) ?> <?php endif; ?> <?php if ($communityTopic->isEditable($sf_user->getMemberId())): ?> &nbsp;[<?php echo link_to(__('Edit'), '@communityTopic_edit?id='.$communityTopic->getId()) ?>] <?php endif ?> <br> <?php echo nl2br($communityTopic->getBody()) ?><br> <?php include_component('communityTopicComment', 'list', array('communityTopic' => $communityTopic)) ?> <?php echo op_within_page_link('') ?> <?php if ($acl->isAllowed($sf_user->getMemberId(), null, 'addComment')): ?> <hr color="<?php echo $op_color['core_color_11'] ?>"> <?php $options['url'] = url_for('communityTopic_comment_create', $communityTopic); $options['button'] = __('Post'); $options['isMultipart'] = true; op_include_form('formTopicComment', $form, $options); ?> <?php endif; ?> <hr color="<?php echo $op_color['core_color_11'] ?>"> <?php echo link_to(__('Topic List'), '@communityTopic_list_community?id='.$community->getId()) ?><br> <?php echo link_to(__('Community Top'), 'community/home?id='.$community->getId()) ?>
48.242424
122
0.687186
3662c0738445f7f88b6f6e32c480695c322a8657
3,349
swift
Swift
Day 20/main.swift
juliand665/AoC-2018
e39f58ca4c30a14097ea207cac9b43b21de2009a
[ "MIT" ]
null
null
null
Day 20/main.swift
juliand665/AoC-2018
e39f58ca4c30a14097ea207cac9b43b21de2009a
[ "MIT" ]
null
null
null
Day 20/main.swift
juliand665/AoC-2018
e39f58ca4c30a14097ea207cac9b43b21de2009a
[ "MIT" ]
null
null
null
import AoC_Helpers import SimpleParser import Collections import HandyOperators import Darwin extension Direction { init?(rawCardinal: Character) { switch rawCardinal { case "N": self = .up case "E": self = .right case "S": self = .down case "W": self = .left default: return nil } } var cardinal: String { switch self { case .up: return "N" case .right: return "E" case .down: return "S" case .left: return "W" } } } enum Part: CustomStringConvertible { case single(Direction) case multiple([Path]) var description: String { switch self { case .single(let direction): return direction.cardinal case .multiple(let paths): return "(" + paths.map(description(for:)).joined(separator: "|") + ")" } } } func description<S: Sequence>(for path: S) -> String where S.Element == Part { path.map(String.init).joined() } typealias Path = [Part] typealias Subpath = Path.SubSequence var parser = Parser(reading: input()) parser.consume("^") func readDisjunction() -> [Path] { Array(sequence(state: ()) { _ in switch parser.next! { case ")": parser.consume(")") return nil case "|": parser.consume("|") fallthrough default: return readPath() } }) } func readPath() -> Path { Array(sequence(state: ()) { _ in switch parser.next! { case "|", ")", "$": return nil default: return readPart() } }) } func readPart() -> Part { switch parser.consumeNext() { case "(": return .multiple(readDisjunction()) case let raw: return .single(Direction(rawCardinal: raw)!) } } let path = readPath() parser.consume("$") print("path parsed!") print(description(for: path)) let start = Vector2.zero struct Map { var connections: [Vector2: DirectionSet] = [:] mutating func addConnection(from position: Vector2, in direction: Direction) { connections[position, default: []].insert(.init(direction)) } static func + (lhs: Self, rhs: Self) -> Self { .init(connections: lhs.connections.merging(rhs.connections) { $0.union($1) }) } } func explore(_ path: Path) -> Map { var map = Map() func explore(_ path: Path, from startPositions: Set<Vector2>) -> Set<Vector2> { path.reduce(startPositions) { positions, part in switch part { case .single(let direction): return Set(positions.map { position in let next = position + direction.offset map.addConnection(from: position, in: direction) map.addConnection(from: next, in: direction.opposite) return next }) case .multiple(let paths): return paths .map { explore($0, from: positions) } .reduce([]) { $0.union($1) } } } } let endPositions = explore(path, from: [start]) print(endPositions.count, "unique end positions") return map } let map = explore(path) let connections = map.connections print(connections.count, "rooms identified") var depths: [Vector2: Int] = [start: 0] var toSearch: Deque<Vector2> = [start] while let start = toSearch.popFirst() { let depth = depths[start]! for direction in Direction.allCases where connections[start]!.contains(.init(direction)) { let neighbor = start + direction.offset guard depths[neighbor] == nil else { continue } depths[neighbor] = depth + 1 toSearch.append(neighbor) } } print("max depth:", depths.values.max()!) print("depth >= 1000:", depths.values.count { $0 >= 1000 })
22.032895
91
0.662287
891c68ae22c0176542879bfe86f0c533daedec80
1,299
swift
Swift
deeper/Sources/Services/Daum Search/DaumSearchService.swift
statios/deeper
8720943b008c1ec975838e43652cdd0983ddd1b1
[ "MIT" ]
null
null
null
deeper/Sources/Services/Daum Search/DaumSearchService.swift
statios/deeper
8720943b008c1ec975838e43652cdd0983ddd1b1
[ "MIT" ]
null
null
null
deeper/Sources/Services/Daum Search/DaumSearchService.swift
statios/deeper
8720943b008c1ec975838e43652cdd0983ddd1b1
[ "MIT" ]
null
null
null
// // DaumSearchService.swift // deeper // // Created by KIHYUN SO on 2021/02/28. // import Foundation import RxSwift import RxMoya import Moya import UIKit protocol DaumSearchServiceType { var provider: NetworkProvider<DaumSearchAPI> { get } func request<T: Codable>( to router: DaumSearchAPI, type: T.Type ) -> Single<T> } extension DaumSearchServiceType { func request<T: Codable>( to router: DaumSearchAPI, type: T.Type ) -> Single<T> { return provider.rx.request(router) .filterErrorAndShowAlert() .map(T.self) } } class DaumSearchService: DaumSearchServiceType { let provider = NetworkProvider<DaumSearchAPI>() } extension PrimitiveSequence where Trait == SingleTrait, Element == Response { func filterErrorAndShowAlert() -> Single<Element> { return flatMap { response in if !(200...299).contains(response.statusCode) { do { let failure = try JSONDecoder().decode(DaumSearchError.self, from: response.data) UIApplication.shared.windows .first { $0.isKeyWindow }? .rootViewController? .showAlert(message: failure.message) } catch let error { return .error(error) } return .never() } return .just(response) } } }
23.196429
91
0.65204
94d5844d75b3a014a40e0e8d2e247cc1bb1741cf
296
dart
Dart
lib/utils/price.util.dart
srvaz/aog
04003688ed5201a4bb27280a317df92bc2c097aa
[ "MIT" ]
null
null
null
lib/utils/price.util.dart
srvaz/aog
04003688ed5201a4bb27280a317df92bc2c097aa
[ "MIT" ]
null
null
null
lib/utils/price.util.dart
srvaz/aog
04003688ed5201a4bb27280a317df92bc2c097aa
[ "MIT" ]
null
null
null
enum Fuel { alc, gas, } class PriceUtils { final double alcPrice; final double gasPrice; PriceUtils({ this.alcPrice, this.gasPrice, }); double calculateFuelRatio() => alcPrice / gasPrice; Fuel winningFuel() => this.calculateFuelRatio() >= 0.7 ? Fuel.gas : Fuel.alc; }
15.578947
79
0.655405
3d748c8180f893edd3583c47bdd13ea152f5fc1e
11,456
rs
Rust
components/sup/src/manager/service/supervisor.rs
Themodestduckling/habitat
9d936ea6692ca7eb3d6bae78fb6b4ca0ab893194
[ "Apache-2.0" ]
null
null
null
components/sup/src/manager/service/supervisor.rs
Themodestduckling/habitat
9d936ea6692ca7eb3d6bae78fb6b4ca0ab893194
[ "Apache-2.0" ]
null
null
null
components/sup/src/manager/service/supervisor.rs
Themodestduckling/habitat
9d936ea6692ca7eb3d6bae78fb6b4ca0ab893194
[ "Apache-2.0" ]
null
null
null
/// Supervise a service. /// /// The Supervisor is responsible for running any services we are asked to start. It handles /// spawning the new process, watching for failure, and ensuring the service is either up or /// down. If the process dies, the Supervisor will restart it. use super::{terminator, ProcessState}; use crate::error::{Error, Result, SupError}; use futures::{future, Future}; use habitat_common::{outputln, templating::package::Pkg, types::UserInfo}; #[cfg(unix)] use habitat_core::os::users; use habitat_core::{fs, os::process::{self, Pid}, service::ServiceGroup}; use habitat_launcher_client::LauncherCli; use serde::{ser::SerializeStruct, Serialize, Serializer}; use std::{fs::File, io::{BufRead, BufReader, Write}, path::{Path, PathBuf}, result}; use time::Timespec; static LOGKEY: &'static str = "SV"; #[derive(Debug)] pub struct Supervisor { pub preamble: String, pub state: ProcessState, pub state_entered: Timespec, pid: Option<Pid>, pid_file: PathBuf, } impl Supervisor { pub fn new(service_group: &ServiceGroup) -> Supervisor { Supervisor { preamble: service_group.to_string(), state: ProcessState::Down, state_entered: time::get_time(), pid: None, pid_file: fs::svc_pid_file(service_group.service()), } } /// Check if the child process is running pub fn check_process(&mut self) -> bool { let pid = match self.pid { Some(pid) => Some(pid), None => { if self.pid_file.exists() { Some(read_pid(&self.pid_file).unwrap()) } else { None } } }; if let Some(pid) = pid { if process::is_alive(pid) { self.change_state(ProcessState::Up); self.pid = Some(pid); return true; } } debug!("Could not find a live process with pid {:?}", self.pid); self.change_state(ProcessState::Down); self.cleanup_pidfile(); self.pid = None; false } // NOTE: the &self argument is only used to get access to // self.preamble, and even then only for Linux :/ #[cfg(unix)] fn user_info(&self, pkg: &Pkg) -> Result<UserInfo> { if users::can_run_services_as_svc_user() { // We have the ability to run services as a user / group other // than ourselves, so they better exist let uid = users::get_uid_by_name(&pkg.svc_user) .ok_or(sup_error!(Error::UserNotFound(pkg.svc_user.to_string(),)))?; let gid = users::get_gid_by_name(&pkg.svc_group) .ok_or(sup_error!(Error::GroupNotFound(pkg.svc_group.to_string(),)))?; Ok(UserInfo { username: Some(pkg.svc_user.clone()), uid: Some(uid), groupname: Some(pkg.svc_group.clone()), gid: Some(gid), }) } else { // We DO NOT have the ability to run as other users! Also // note that we legitimately may not have a username or // groupname. let username = users::get_effective_username(); let uid = users::get_effective_uid(); let groupname = users::get_effective_groupname(); let gid = users::get_effective_gid(); let name_for_logging = username.clone() .unwrap_or_else(|| format!("anonymous [UID={}]", uid)); outputln!(preamble self.preamble, "Current user ({}) lacks sufficient capabilites to \ run services as a different user; running as self!", name_for_logging); Ok(UserInfo { username, uid: Some(uid), groupname, gid: Some(gid) }) } } #[cfg(windows)] fn user_info(&self, pkg: &Pkg) -> Result<UserInfo> { // Windows only really has usernames, not groups and other // IDs. // // Note that the Windows Supervisor does not yet have a // corresponding "non-root" behavior, as the Linux version // does; services run as the service user. Ok(UserInfo { username: Some(pkg.svc_user.clone()), ..Default::default() }) } pub fn start(&mut self, pkg: &Pkg, group: &ServiceGroup, launcher: &LauncherCli, svc_password: Option<&str>) -> Result<()> { let user_info = self.user_info(&pkg)?; outputln!(preamble self.preamble, "Starting service as user={}, group={}", user_info.username.as_ref().map_or("<anonymous>", String::as_str), user_info.groupname.as_ref().map_or("<anonymous>", String::as_str) ); // In the interests of having as little logic in the Launcher // as possible, and to support cloud-native uses of the // Supervisor, in which the user running the Supervisor // doesn't necessarily have a username (or groupname), we only // pass the Launcher the bare minimum it needs to launch a // service. // // For Linux, that amounts to the UID and GID to run the // process as. // // For Windows, it's the name of the service user (no // "non-root" behavior there, yet). // // To support backwards compatibility, however, we must still // pass along values for the username and groupname; older // Launcher versions on Linux (and current Windows versions) // will use these, while newer versions will prefer the UID // and GID, ignoring the names. let pid = launcher.spawn(&group, &pkg.svc_run, user_info, svc_password, // Windows optional (*pkg.env).clone())?; self.pid = Some(pid); self.create_pidfile()?; self.change_state(ProcessState::Up); Ok(()) } pub fn status(&self) -> (bool, String) { let status = format!("{}: {} for {}", self.preamble, self.state, time::get_time() - self.state_entered); let healthy = match self.state { ProcessState::Up => true, ProcessState::Down => false, }; (healthy, status) } /// Returns a future that stops a service asynchronously. pub fn stop(&self) -> impl Future<Item = (), Error = SupError> { // TODO (CM): we should really just keep the service // group around AS a service group let service_group = self.preamble.clone(); if let Some(pid) = self.pid { let pid_file = self.pid_file.clone(); future::Either::A(terminator::terminate_service(pid, service_group).and_then( |_shutdown_method| { Supervisor::cleanup_pidfile_future(pid_file); Ok(()) }, )) } else { // Not quite sure how we'd get down here without a PID... warn!("Attempted to stop {}, but we have no PID!", service_group); future::Either::B(future::ok(())) } } pub fn restart(&mut self, pkg: &Pkg, group: &ServiceGroup, launcher: &LauncherCli, svc_password: Option<&str>) -> Result<()> { match self.pid { Some(pid) => { match launcher.restart(pid) { Ok(pid) => { self.pid = Some(pid); self.create_pidfile()?; self.change_state(ProcessState::Up); Ok(()) } Err(err) => { self.cleanup_pidfile(); self.change_state(ProcessState::Down); Err(sup_error!(Error::Launcher(err))) } } } None => self.start(pkg, group, launcher, svc_password), } } /// Create a PID file for a running service fn create_pidfile(&self) -> Result<()> { match self.pid { Some(pid) => { debug!("Creating PID file for child {} -> {}", self.pid_file.display(), pid); let mut f = File::create(&self.pid_file)?; write!(f, "{}", pid)?; Ok(()) } None => Ok(()), } } /// Remove a pidfile for this package if it exists. /// Do NOT fail if there is an error removing the PIDFILE fn cleanup_pidfile(&self) { Self::cleanup_pidfile_future(self.pid_file.clone()); } // This is just a different way to model `cleanup_pidfile` that's // amenable to use in a future. Hopefully these two can be // consolidated in the (ahem) future. fn cleanup_pidfile_future(pid_file: PathBuf) { debug!("Attempting to clean up pid file {}", pid_file.display()); match std::fs::remove_file(pid_file) { Ok(_) => debug!("Removed pid file"), Err(e) => debug!("Error removing pid file: {}, continuing", e), } } fn change_state(&mut self, state: ProcessState) { if self.state == state { return; } self.state = state; self.state_entered = time::get_time(); } } impl Serialize for Supervisor { fn serialize<S>(&self, serializer: S) -> result::Result<S::Ok, S::Error> where S: Serializer { let mut strukt = serializer.serialize_struct("supervisor", 5)?; strukt.serialize_field("pid", &self.pid)?; strukt.serialize_field("state", &self.state)?; strukt.serialize_field("state_entered", &self.state_entered.sec)?; strukt.end() } } fn read_pid<T>(pid_file: T) -> Result<Pid> where T: AsRef<Path> { match File::open(pid_file.as_ref()) { Ok(file) => { let reader = BufReader::new(file); match reader.lines().next() { Some(Ok(line)) => { match line.parse::<Pid>() { Ok(pid) => Ok(pid), Err(_) => { Err(sup_error!(Error::PidFileCorrupt(pid_file.as_ref().to_path_buf()))) } } } _ => Err(sup_error!(Error::PidFileCorrupt(pid_file.as_ref().to_path_buf()))), } } Err(err) => { Err(sup_error!(Error::PidFileIO(pid_file.as_ref() .to_path_buf(), err))) } } }
37.194805
99
0.501746
ccfd7a538365e0a01d57436b56b5ebc811066be1
14,611
swift
Swift
Shared/SCNText2D.swift
shipyard-games/SCNText2D
88f0b4da36072e6a9537b88eab54df9b5f3893cb
[ "MIT" ]
6
2020-03-17T15:52:35.000Z
2020-06-25T14:59:41.000Z
Shared/SCNText2D.swift
tsharju/SCNText2D
88f0b4da36072e6a9537b88eab54df9b5f3893cb
[ "MIT" ]
3
2019-04-17T08:23:52.000Z
2020-06-03T09:53:36.000Z
Shared/SCNText2D.swift
shipyard-games/SCNText2D
88f0b4da36072e6a9537b88eab54df9b5f3893cb
[ "MIT" ]
1
2021-06-21T07:53:25.000Z
2021-06-21T07:53:25.000Z
// // SCNText2D.swift // SCNText2D // // Created by Teemu Harju on 10/02/2019. // import Foundation import SceneKit import Metal import MetalKit public class SCNText2D { public struct SDFParams { let smoothing: Float let fontWidth: Float let outlineWidth: Float let shadowWidth: Float let shadowOffset: float2 let fontColor: float4 let outlineColor: float4 let shadowColor: float4 public init(smoothing: Float, fontWidth: Float, outlineWidth: Float, shadowWidth: Float, shadowOffset: float2, fontColor: float4, outlineColor: float4, shadowColor: float4) { self.smoothing = smoothing self.fontWidth = fontWidth self.outlineWidth = outlineWidth self.shadowWidth = shadowWidth self.shadowOffset = shadowOffset self.fontColor = fontColor self.outlineColor = outlineColor self.shadowColor = shadowColor } } private struct Vertex { var x, y, z: Float var u, v: Float } public typealias Color = float4 public enum TextAlignment { case left case right case centered } private static let library: MTLLibrary = { guard let device = MTLCreateSystemDefaultDevice() else { fatalError( "Failed to get the system's default Metal device." ) } let shaderLibraryUrl = Bundle(for: SCNText2D.self).url(forResource: "SCNText2D-Shaders", withExtension: "metallib")! return try! device.makeLibrary(URL: shaderLibraryUrl) }() private static var textureCache = [String: MTLTexture]() private static var metricsCache = [String: FontMetrics]() private static var atlasCache = [String: AtlasData]() private static var materialCache = [String: SCNMaterial]() public static func load(font fontName: String, bundle: Bundle, fontConfig: SDFParams) { guard let device = MTLCreateSystemDefaultDevice() else { fatalError( "Failed to get the system's default Metal device." ) } SCNText2D.loadFontMetrics(for: fontName, bundle: bundle) SCNText2D.loadTexture(for: fontName, bundle: bundle, using: device) SCNText2D.loadAtlasData(for: fontName, bundle: bundle) let shaderProgram = SCNProgram() shaderProgram.vertexFunctionName = "sdfTextVertex" switch (fontConfig.outlineColor[3], fontConfig.shadowColor[3]) { case (_, let shadow) where shadow > 0.0: shaderProgram.fragmentFunctionName = "sdfTextOutlineShadowFragment" case (let outline, _) where outline > 0.0: shaderProgram.fragmentFunctionName = "sdfTextOutlineFragment" default: shaderProgram.fragmentFunctionName = "sdfTextFragment" } shaderProgram.isOpaque = false shaderProgram.library = library guard let texture = textureCache[fontName] else { fatalError("Font '\(fontName)' not loaded. No texture found.") } var fontConfig = fontConfig let textureMaterialProperty = SCNMaterialProperty(contents: texture) let fontConfigData = Data(bytes: &fontConfig, count: MemoryLayout<SDFParams>.size) let material = SCNMaterial() material.name = "SDFText2D::\(fontName)" material.program = shaderProgram material.setValue(textureMaterialProperty, forKey: "fontTexture") material.setValue(fontConfigData, forKey: "params") SCNText2D.materialCache[fontName] = material } public static func create(from string: String, withFontNamed fontName: String, scale: Float = 1.0, lineSpacing: Float = 1.0, alignment: TextAlignment = .centered) -> SCNGeometry { guard let fontMetrics = SCNText2D.metricsCache[fontName] else { fatalError("Font '\(fontName)' not loaded. No font metrics found.") } guard let atlasData = SCNText2D.atlasCache[fontName] else { fatalError("Font '\(fontName)' not loaded. No atlas data found.") } let geometry = buildGeometry(string, fontMetrics, atlasData, alignment, scale, lineSpacing) if let material = SCNText2D.materialCache[fontName] { geometry.materials = [material] } return geometry } public static func clone(fontNamed fontName: String, toFontNamed newFontName: String, using fontConfig: SDFParams) { guard let texture = textureCache[fontName], let metrics = metricsCache[fontName], let atlas = atlasCache[fontName], let material = materialCache[fontName] else { fatalError("Trying to clone a font that does not exist. fontName=\(fontName)") } // Use same texture, metrics and atlas for new font textureCache[newFontName] = texture metricsCache[newFontName] = metrics atlasCache[newFontName] = atlas // Create new material using the new font config. guard let newMaterial = material.copy() as? SCNMaterial else { fatalError("Failed to copy material.") } newMaterial.program = SCNProgram() newMaterial.program?.library = library newMaterial.program?.vertexFunctionName = "sdfTextVertex" newMaterial.program?.isOpaque = false switch (fontConfig.outlineColor[3], fontConfig.shadowColor[3]) { case (_, let shadow) where shadow > 0.0: newMaterial.program?.fragmentFunctionName = "sdfTextOutlineShadowFragment" case (let outline, _) where outline > 0.0: newMaterial.program?.fragmentFunctionName = "sdfTextOutlineFragment" default: newMaterial.program?.fragmentFunctionName = "sdfTextFragment" } var fontConfig = fontConfig let fontConfigData = Data(bytes: &fontConfig, count: MemoryLayout<SDFParams>.size) newMaterial.setValue(fontConfigData, forKey: "params") materialCache[newFontName] = newMaterial } private static func buildGeometry(_ string: String, _ fontMetrics: FontMetrics, _ atlasData: AtlasData, _ alignment: TextAlignment, _ scale: Float, _ lineSpacing: Float) -> SCNGeometry { let lines = string.unicodeScalars.split(separator: Unicode.Scalar("\n")) let textureWidth = atlasData.meta.width let textureHeight = atlasData.meta.height var cursorX: Float = 0.0 var cursorY: Float = 0.0 var vertices = [Vertex]() var lineVertices = [Vertex]() var indices = [UInt16]() var minX: Float = Float.infinity var minY: Float = Float.infinity var maxX: Float = -Float.infinity var maxY: Float = -Float.infinity for line in lines { var lineMaxYOffset: Float = -Float.infinity for (i, char) in line.enumerated() { guard let glyph = fontMetrics.glyphData["\(char)"] else { cursorX += fontMetrics.spaceAdvance * scale continue } let uvKey = String(format: "0x%04X", char.value).lowercased() guard let uvData = atlasData.frames[uvKey] else { fatalError("No UV-coordinates for character '\(char)'!") } if (i > 0) { let strIndex = string.index(string.startIndex, offsetBy: i - 1) let kernChar = String(string[strIndex]) let kernVal = glyph.kernings[kernChar] ?? 0.0 if (kernVal != 0.0 && (kernVal < -0.001 || kernVal > 0.001)) { cursorX += kernVal * scale; } } let glyphWidth = glyph.bboxWidth * scale; let glyphHeight = glyph.bboxHeight * scale; let glyphBearingX = glyph.bearingX * scale; let glyphBearingY = glyph.bearingY * scale; let glyphAdvanceX = glyph.advanceX * scale; let x = cursorX + glyphBearingX; let y = cursorY + glyphBearingY; let z = Float(i) * 0.001 let lineYOffset = glyphBearingY - glyphHeight if lineYOffset < 0.0 { // below baseline if lineYOffset < lineMaxYOffset { lineMaxYOffset = lineYOffset } } if y > maxY { maxY = y} if x < minX { minX = x } if (y - glyphHeight) < minY { minY = y - glyphHeight } if (x + glyphWidth) > maxX { maxX = x + glyphWidth } let w = uvData["w"]! / textureWidth let h = uvData["h"]! / textureHeight let s0 = uvData["x"]! / textureWidth let t0 = uvData["y"]! / textureHeight let s1 = s0 + w let t1 = t0 + h let v1 = Vertex(x: x, y: y - glyphHeight, z: z, u: s0, v: t1) let v2 = Vertex(x: x + glyphWidth, y: y - glyphHeight, z: z, u: s1, v: t1) let v3 = Vertex(x: x, y: y, z: z, u: s0, v: t0) let v4 = Vertex(x: x + glyphWidth, y: y, z: z, u: s1, v: t0) lineVertices.append(v1) lineVertices.append(v2) lineVertices.append(v3) lineVertices.append(v4) let curidx = UInt16(vertices.count + i * 4) indices.append(curidx + 0) indices.append(curidx + 1) indices.append(curidx + 2) // first triangle indices.append(curidx + 1) indices.append(curidx + 3) indices.append(curidx + 2) // second triangle cursorX += glyphAdvanceX } cursorY -= fontMetrics.height * scale * lineSpacing alignLine(&lineVertices, withAlignment: alignment, lineWidth: cursorX) vertices.append(contentsOf: lineVertices) cursorX = 0 lineVertices = [] } // Center align the vertices vertically let width = maxX - minX vertices = vertices.map { (vertex: Vertex) in var vertex = vertex switch (alignment) { case .centered: break // already aligned per line case .left: vertex.x -= width / 2 case .right: vertex.x += width / 2 } return vertex } let indicesData = Data(bytes: &indices, count: MemoryLayout<UInt16>.size * indices.count) let element = SCNGeometryElement(data: indicesData, primitiveType: .triangles, primitiveCount: indices.count / 3, bytesPerIndex: MemoryLayout<UInt16>.size) let verticesData = Data(bytes: &vertices, count: MemoryLayout<Vertex>.size * vertices.count) let vertexSource = SCNGeometrySource(data: verticesData, semantic: .vertex, vectorCount: vertices.count, usesFloatComponents: true, componentsPerVector: 3, bytesPerComponent: MemoryLayout<Float>.size, dataOffset: 0, dataStride: MemoryLayout<Vertex>.size) let uvSource = SCNGeometrySource(data: verticesData, semantic: .texcoord, vectorCount: vertices.count, usesFloatComponents: true, componentsPerVector: 2, bytesPerComponent: MemoryLayout<Float>.size, dataOffset: MemoryLayout<Float>.size * 3, dataStride: MemoryLayout<Vertex>.size) let geometry = SCNGeometry(sources: [vertexSource, uvSource], elements: [element]) return geometry } private static func alignLine(_ lineVertices: inout [Vertex], withAlignment alignment: TextAlignment, lineWidth: Float) { switch (alignment) { case .centered: lineVertices = lineVertices.map { (vertex: Vertex) -> Vertex in var vertex = vertex vertex.x -= lineWidth / 2 return vertex } case .left: // we keep the lines first glyph starting at zero and center the geometry once it is complete break case .right: // we move the last glyphs position to zero so we can do right alignment once the geometry is complete lineVertices = lineVertices.map { (vertex: Vertex) -> Vertex in var vertex = vertex vertex.x -= lineWidth return vertex } } } private static func loadTexture(for fontNamed: String, bundle: Bundle, using device: MTLDevice) { let textureLoader = MTKTextureLoader(device: device) let textureLoaderOptions: [MTKTextureLoader.Option: Any] = [ .SRGB : false ] let mdlTexture = MDLTexture(named: "\(fontNamed).png", bundle: bundle)! let texture = try! textureLoader.newTexture(texture: mdlTexture, options: textureLoaderOptions) SCNText2D.textureCache[fontNamed] = texture } private static func loadFontMetrics(for fontNamed: String, bundle: Bundle) { let jsonURL = bundle.url(forResource: fontNamed, withExtension: "json")! let jsonData = try! Data(contentsOf: jsonURL) let metrics = try! JSONDecoder().decode(FontMetrics.self, from: jsonData) SCNText2D.metricsCache[fontNamed] = metrics } private static func loadAtlasData(for fontNamed: String, bundle: Bundle) { let atlasDataURL = bundle.url(forResource: fontNamed, withExtension: "plist")! let atlas = try! PropertyListDecoder().decode(AtlasData.self, from: Data(contentsOf: atlasDataURL)) SCNText2D.atlasCache[fontNamed] = atlas } }
40.812849
190
0.568065
fb266325e78087e3416e93723e9e6a6c6b659304
2,325
h
C
sources/fs/fuse/mt_fuse.h
fuldaros/paperplane_kernel_wileyfox-spark
bea244880d2de50f4ad14bb6fa5777652232c033
[ "Apache-2.0" ]
2
2018-03-09T23:59:27.000Z
2018-04-01T07:58:39.000Z
sources/fs/fuse/mt_fuse.h
fuldaros/paperplane_kernel_wileyfox-spark
bea244880d2de50f4ad14bb6fa5777652232c033
[ "Apache-2.0" ]
null
null
null
sources/fs/fuse/mt_fuse.h
fuldaros/paperplane_kernel_wileyfox-spark
bea244880d2de50f4ad14bb6fa5777652232c033
[ "Apache-2.0" ]
3
2017-06-24T20:23:09.000Z
2018-03-25T04:30:11.000Z
/* FUSE: file io log Copyright (C) 2015 Perry Hsu <perry.hsu@mediatek.com> This program can be distributed under the terms of the GNU GPL. See the file COPYING. */ #ifndef _FS_MT_FUSE_H #define _FS_MT_FUSE_H #include <linux/fuse.h> #include <linux/fs.h> void fuse_request_send_background_ex(struct fuse_conn *fc, struct fuse_req *req, __u32 size); void fuse_request_send_ex(struct fuse_conn *fc, struct fuse_req *req, __u32 size); #if defined(CONFIG_FUSE_IO_LOG) /* IO log is only enabled in eng load */ #include <linux/sched.h> #include <linux/kthread.h> /* max number of access traces in one log */ #define FUSE_IOLOG_MAX 12 /* kernel log print buffer size */ #define FUSE_IOLOG_BUFLEN 512 /* latency time between logs */ #define FUSE_IOLOG_LATENCY 1 /* max number of logs in the ring buffer */ #define FUSE_IOLOG_RINGBUF_MAX 120 void fuse_time_diff(struct timespec *start, struct timespec *end, struct timespec *diff); void fuse_iolog_add(__u32 io_bytes, int type, struct timespec *start, struct timespec *end); __u32 fuse_iolog_timeus_diff(struct timespec *start, struct timespec *end); void fuse_iolog_exit(void); void fuse_iolog_init(void); /* access trace statistic */ struct fuse_rw_info { __u32 count; __u32 bytes; __u32 us; }; /* access trace */ struct fuse_proc_info { pid_t pid; __u32 valid; int misc_type; struct fuse_rw_info read; struct fuse_rw_info write; struct fuse_rw_info misc; }; /* data container for timing macros */ struct fuse_iolog_t { struct timespec _tstart, _tend; __u32 size; unsigned int opcode; }; /* log entry of ring buffer */ struct fuse_proc_log { uint64_t time; struct fuse_proc_info info[FUSE_IOLOG_MAX]; }; #define FUSE_IOLOG_INIT(iobytes, type) struct fuse_iolog_t _iolog = { .size = iobytes, .opcode = type } #define FUSE_IOLOG_START() get_monotonic_boottime(&_iolog._tstart) #define FUSE_IOLOG_END() get_monotonic_boottime(&_iolog._tend) #define FUSE_IOLOG_US() fuse_iolog_timeus_diff(&_iolog._tstart, &_iolog._tend) #define FUSE_IOLOG_PRINT() fuse_iolog_add(_iolog.size, _iolog.opcode, &_iolog._tstart, &_iolog._tend) #else #define FUSE_IOLOG_INIT(...) #define FUSE_IOLOG_START(...) #define FUSE_IOLOG_END(...) #define FUSE_IOLOG_PRINT(...) #define fuse_iolog_init(...) #define fuse_iolog_exit(...) #endif #endif
24.21875
105
0.752688
5a13d0881ab6df703699429e21122d8ed8c1270a
2,415
swift
Swift
Tests/AceLayoutTests/Helpers/Assertions.swift
jrsaruo/AceLayout
6f8ef9fe2a3d97fe64b34f2eeefe6147828793ba
[ "MIT" ]
null
null
null
Tests/AceLayoutTests/Helpers/Assertions.swift
jrsaruo/AceLayout
6f8ef9fe2a3d97fe64b34f2eeefe6147828793ba
[ "MIT" ]
8
2021-12-31T16:23:07.000Z
2022-03-19T10:50:30.000Z
Tests/AceLayoutTests/Helpers/Assertions.swift
jrsaruo/AceLayout
6f8ef9fe2a3d97fe64b34f2eeefe6147828793ba
[ "MIT" ]
null
null
null
// // Assertions.swift // // // Created by Yusaku Nishi on 2021/12/13. // import XCTest import AceLayout func assertEqual(_ constraints1: [NSLayoutConstraint], _ constraints2: [NSLayoutConstraint], file: StaticString = #file, line: UInt = #line) { XCTAssertEqual(constraints1.count, constraints2.count, "count", file: file, line: line) for (constraint1, constraint2) in zip(constraints1, constraints2) { assertEqual(constraint1.firstItem, constraint2.firstItem, message: "constraint1.firstItem is not equal to constraint2.firstItem", file: file, line: line) assertEqual(constraint1.secondItem, constraint2.secondItem, message: "constraint1.secondItem is not equal to constraint2.secondItem", file: file, line: line) XCTAssertEqual(constraint1.isActive, constraint2.isActive, "isActive", file: file, line: line) XCTAssertEqual(constraint1.firstAttribute, constraint2.firstAttribute, "firstAttribute", file: file, line: line) XCTAssertEqual(constraint1.secondAttribute, constraint2.secondAttribute, "secondAttribute", file: file, line: line) XCTAssertEqual(constraint1.relation, constraint2.relation, "relation", file: file, line: line) XCTAssertEqual(constraint1.multiplier, constraint2.multiplier, "multiplier", file: file, line: line) XCTAssertEqual(constraint1.constant, constraint2.constant, "constant", file: file, line: line) XCTAssertEqual(constraint1.priority, constraint2.priority, "priority", file: file, line: line) } } private func assertEqual(_ layoutItem1: AnyObject?, _ layoutItem2: AnyObject?, message: @autoclosure () -> String = "", file: StaticString = #file, line: UInt = #line) { switch (layoutItem1, layoutItem2) { case let (view1 as AL.View?, view2 as AL.View?): XCTAssertEqual(view1, view2, message(), file: file, line: line) case let (layoutGuide1 as AL.LayoutGuide?, layoutGuide2 as AL.LayoutGuide?): XCTAssertEqual(layoutGuide1, layoutGuide2, message(), file: file, line: line) default: XCTAssert(false, message(), file: file, line: line) } }
47.352941
123
0.633954
e44c98e843abd3207c4b51405a7a0f149598662a
1,076
asm
Assembly
programs/oeis/047/A047325.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/047/A047325.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047325.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A047325: Numbers that are congruent to {1, 2, 5, 6} mod 7. ; 1,2,5,6,8,9,12,13,15,16,19,20,22,23,26,27,29,30,33,34,36,37,40,41,43,44,47,48,50,51,54,55,57,58,61,62,64,65,68,69,71,72,75,76,78,79,82,83,85,86,89,90,92,93,96,97,99,100,103,104,106,107,110,111,113,114,117,118,120,121,124,125,127,128,131,132,134,135,138,139,141,142,145,146,148,149,152,153,155,156,159,160,162,163,166,167,169,170,173,174,176,177,180,181,183,184,187,188,190,191,194,195,197,198,201,202,204,205,208,209,211,212,215,216,218,219,222,223,225,226,229,230,232,233,236,237,239,240,243,244,246,247,250,251,253,254,257,258,260,261,264,265,267,268,271,272,274,275,278,279,281,282,285,286,288,289,292,293,295,296,299,300,302,303,306,307,309,310,313,314,316,317,320,321,323,324,327,328,330,331,334,335,337,338,341,342,344,345,348,349,351,352,355,356,358,359,362,363,365,366,369,370,372,373,376,377,379,380,383,384,386,387,390,391,393,394,397,398,400,401,404,405,407,408,411,412,414,415,418,419,421,422,425,426,428,429,432,433,435,436 add $0,2 mov $2,$0 div $0,2 mul $0,3 div $0,2 mov $1,$0 add $1,$2 sub $1,2
89.666667
938
0.712825
e02aabfa5c379bfcf5395a9e613a435156ea5fb3
447
swift
Swift
CarBooking/Classes/Extensions/Date.swift
omiz/CarBooking
bf733d2a0ce115c6da4ac8c57f5d1edfedd5f5c5
[ "MIT" ]
null
null
null
CarBooking/Classes/Extensions/Date.swift
omiz/CarBooking
bf733d2a0ce115c6da4ac8c57f5d1edfedd5f5c5
[ "MIT" ]
null
null
null
CarBooking/Classes/Extensions/Date.swift
omiz/CarBooking
bf733d2a0ce115c6da4ac8c57f5d1edfedd5f5c5
[ "MIT" ]
null
null
null
// // Date.swift // CarBooking // // Created by Omar Allaham on 10/20/17. // Copyright © 2017 Omar Allaham. All rights reserved. // import Foundation extension Date { var formatted: String { let formatter = DateFormatter() formatter.dateStyle = .medium formatter.timeStyle = .short formatter.doesRelativeDateFormatting = true return formatter.string(from: self) } }
19.434783
55
0.615213
c7cf69968090cbcfcb99fe62256936d46d3fef76
20,203
py
Python
gmso/tests/test_forcefield.py
justinGilmer/gmso
8f58b22e49bc55623e200bddfb779917ec5d9d6e
[ "MIT" ]
1
2020-02-28T21:14:35.000Z
2020-02-28T21:14:35.000Z
gmso/tests/test_forcefield.py
justinGilmer/gmso
8f58b22e49bc55623e200bddfb779917ec5d9d6e
[ "MIT" ]
2
2020-05-23T03:46:54.000Z
2020-05-23T03:50:05.000Z
gmso/tests/test_forcefield.py
justinGilmer/gmso
8f58b22e49bc55623e200bddfb779917ec5d9d6e
[ "MIT" ]
1
2021-05-17T14:50:26.000Z
2021-05-17T14:50:26.000Z
import lxml import pytest import unyt as u from lxml.etree import DocumentInvalid from sympy import sympify from gmso.core.forcefield import ForceField from gmso.exceptions import ( ForceFieldParseError, MissingAtomTypesError, MissingPotentialError, ) from gmso.tests.base_test import BaseTest from gmso.tests.utils import allclose_units_mixed, get_path class TestForceField(BaseTest): @pytest.fixture def ff(self): return ForceField(get_path("ff-example0.xml")) @pytest.fixture def named_groups_ff(self): return ForceField(get_path("ff-example1.xml")) @pytest.fixture def opls_ethane_foyer(self): return ForceField( get_path(filename=get_path("oplsaa-ethane_foyer.xml")) ) def test_ff_name_version_from_xml(self, ff): assert ff.name == "ForceFieldOne" assert ff.version == "0.4.1" def test_scaling_factors_from_xml(self, ff): assert ff.scaling_factors["nonBonded14Scale"] == 0.67 assert ff.scaling_factors["electrostatics14Scale"] == 0.5 @pytest.mark.parametrize( "unit_name,unit_value", [ ("energy", u.Unit(u.K * u.kb)), ("mass", u.gram / u.mol), ("temperature", u.K), ("charge", u.coulomb), ("angle", u.rad), ("time", u.ps), ("distance", u.nm), ], ) def test_units_from_xml(self, ff, unit_name, unit_value): assert len(ff.units.keys()) == 7 assert ff.units[unit_name] == unit_value def test_ff_atomtypes_from_xml(self, ff): assert len(ff.atom_types) == 3 assert "Ar" in ff.atom_types assert "Xe" in ff.atom_types assert sympify("r") in ff.atom_types["Ar"].independent_variables assert ff.atom_types["Ar"].parameters["A"] == u.unyt_quantity( 0.1, u.kcal / u.mol ) assert ff.atom_types["Ar"].parameters["B"] == u.unyt_quantity(4.0, u.nm) assert ff.atom_types["Ar"].parameters["C"] == u.unyt_quantity( 0.5, u.kcal / u.mol * u.nm ** 6 ) assert ff.atom_types["Ar"].mass == u.unyt_quantity(39.948, u.amu) assert ff.atom_types["Ar"].charge == u.unyt_quantity(0.0, u.coulomb) assert ff.atom_types["Ar"].description == "Argon atom" assert ff.atom_types["Ar"].definition == "Ar" assert ff.atom_types["Ar"].expression == sympify( "(A*exp(-B/r) - C/r**6)" ) assert sympify("r") in ff.atom_types["Xe"].independent_variables assert "A" in ff.atom_types["Xe"].parameters assert ff.atom_types["Xe"].parameters["A"] == u.unyt_quantity( 0.2, u.kcal / u.mol ) assert ff.atom_types["Xe"].parameters["B"] == u.unyt_quantity(5.0, u.nm) assert ff.atom_types["Xe"].parameters["C"] == u.unyt_quantity( 0.3, u.kcal / u.mol * u.nm ** 6 ) assert ff.atom_types["Xe"].mass == u.unyt_quantity(131.293, u.amu) assert ff.atom_types["Xe"].charge == u.unyt_quantity(0.0, u.coulomb) assert ff.atom_types["Xe"].description == "Xenon atom" assert ff.atom_types["Xe"].definition == "Xe" assert ff.atom_types["Xe"].expression == sympify( "(A*exp(-B/r) - C/r**6)" ) assert ff.atom_types["Li"].charge == u.unyt_quantity(1.0, u.coulomb) def test_ff_bondtypes_from_xml(self, ff): assert len(ff.bond_types) == 2 assert "Ar~Ar" in ff.bond_types assert "Xe~Xe" in ff.bond_types assert sympify("r") in ff.bond_types["Ar~Ar"].independent_variables assert ff.bond_types["Ar~Ar"].parameters["r_eq"] == u.unyt_quantity( 10.0, u.nm ) assert ff.bond_types["Ar~Ar"].parameters["k"] == u.unyt_quantity( 10000, u.kJ / u.mol ) assert ff.bond_types["Ar~Ar"].member_types == ("Ar", "Ar") assert sympify("r") in ff.bond_types["Xe~Xe"].independent_variables assert ff.bond_types["Xe~Xe"].parameters["r_eq"] == u.unyt_quantity( 10.0, u.nm ) assert ff.bond_types["Xe~Xe"].parameters["k"] == u.unyt_quantity( 20000, u.kJ / u.mol ) assert ff.bond_types["Xe~Xe"].member_types == ("Xe", "Xe") def test_ff_angletypes_from_xml(self, ff): assert len(ff.angle_types) == 2 assert "Ar~Ar~Ar" in ff.angle_types assert "Xe~Xe~Xe" in ff.angle_types assert sympify("r") in ff.angle_types["Ar~Ar~Ar"].independent_variables assert ff.angle_types["Ar~Ar~Ar"].parameters["r_eq"] == u.unyt_quantity( 10.0, u.nm ) assert ff.angle_types["Ar~Ar~Ar"].parameters["z"] == u.unyt_quantity( 100, u.kJ / u.mol ) assert ff.angle_types["Ar~Ar~Ar"].member_types == ("Ar", "Ar", "Ar") assert sympify("r") in ff.angle_types["Xe~Xe~Xe"].independent_variables assert ff.angle_types["Xe~Xe~Xe"].parameters["r_eq"] == u.unyt_quantity( 10.0, u.nm ) assert ff.angle_types["Xe~Xe~Xe"].parameters["z"] == u.unyt_quantity( 20, u.kJ / u.mol ) assert ff.angle_types["Xe~Xe~Xe"].member_classes == ("Xe", "Xe", "Xe") def test_ff_dihedraltypes_from_xml(self, ff): assert len(ff.dihedral_types) == 2 assert "Xe~Xe~Xe~Xe" in ff.dihedral_types assert "Ar~Ar~Ar~Ar" in ff.dihedral_types assert ( sympify("r") in ff.dihedral_types["Ar~Ar~Ar~Ar"].independent_variables ) assert ff.dihedral_types["Ar~Ar~Ar~Ar"].parameters[ "r_eq" ] == u.unyt_quantity(10.0, u.nm) assert ff.dihedral_types["Ar~Ar~Ar~Ar"].parameters[ "z" ] == u.unyt_quantity(100, u.kJ / u.mol) assert ff.dihedral_types["Ar~Ar~Ar~Ar"].member_classes == ( "Ar", "Ar", "Ar", "Ar", ) assert ( sympify("r") in ff.dihedral_types["Xe~Xe~Xe~Xe"].independent_variables ) assert ff.dihedral_types["Xe~Xe~Xe~Xe"].parameters[ "r_eq" ] == u.unyt_quantity(10.0, u.nm) assert ff.dihedral_types["Xe~Xe~Xe~Xe"].parameters[ "z" ] == u.unyt_quantity(20, u.kJ / u.mol) assert ff.dihedral_types["Xe~Xe~Xe~Xe"].member_classes == ( "Xe", "Xe", "Xe", "Xe", ) def test_ff_impropertypes_from_xml(self, ff): assert len(ff.improper_types) == 1 assert "Xe~Xe~Xe~Xe" in ff.improper_types assert ( sympify("r") in ff.improper_types["Xe~Xe~Xe~Xe"].independent_variables ) assert ff.improper_types["Xe~Xe~Xe~Xe"].parameters[ "r_eq" ] == u.unyt_quantity(10.0, u.nm) assert ff.improper_types["Xe~Xe~Xe~Xe"].parameters[ "z" ] == u.unyt_quantity(20, u.kJ / u.mol) assert ff.improper_types["Xe~Xe~Xe~Xe"].member_types == ( "Xe", "Xe", "Xe", "Xe", ) def test_ff_pairpotentialtypes_from_xml(self, ff): assert len(ff.pairpotential_types) == 1 assert "Xe~Xe" in ff.pairpotential_types assert ( sympify("r") in ff.pairpotential_types["Xe~Xe"].independent_variables ) assert ff.pairpotential_types["Xe~Xe"].parameters[ "sigma" ] == u.unyt_quantity(10.0, u.nm) assert ff.pairpotential_types["Xe~Xe"].parameters[ "k" ] == u.unyt_quantity(0.1, u.kJ / u.mol) assert ff.pairpotential_types["Xe~Xe"].member_types == ("Xe", "Xe") def test_ff_charmm_xml(self): charm_ff = ForceField(get_path("trimmed_charmm.xml")) assert charm_ff.name == "topologyCharmm" assert "*~CS~SS~*" in charm_ff.dihedral_types # Test list of parameters assert isinstance( charm_ff.dihedral_types["*~CE1~CE1~*"].parameters["k"], list ) # This ensures that even though the parameters is a list, they can be hashed (by equality checks) assert ( charm_ff.dihedral_types["*~CE1~CE1~*"] == charm_ff.dihedral_types["*~CE1~CE1~*"] ) assert len(charm_ff.dihedral_types["*~CE1~CE1~*"].parameters["k"]) == 2 # Test Correct Parameter Values assert charm_ff.dihedral_types["*~CE1~CE1~*"].parameters["k"] == [ u.unyt_quantity(0.6276, u.kJ), u.unyt_quantity(35.564, u.kJ), ] def test_non_unique_params(self): with pytest.raises(DocumentInvalid): ForceField(get_path("ff-example-nonunique-params.xml")) def test_missing_params(self): with pytest.raises(ForceFieldParseError): ForceField(get_path("ff-example-missing-parameter.xml")) def test_elementary_charge_to_coulomb(self, ff): elementary_charge = ff.atom_types["Li"].charge.to(u.elementary_charge) assert elementary_charge.units == u.Unit(u.elementary_charge) def test_atomclass_groups_charm_buck_ff(self): ff = ForceField(get_path("opls_charmm_buck.xml")) assert len(ff.atom_class_groups["CT"]) == 2 def test_ff_periodic_dihedrals_from_alphanumeric_symbols(self): ff = ForceField(get_path("opls_charmm_buck.xml")) assert "A" in ff.atom_types["buck_O"].parameters with pytest.raises(TypeError): assert len( ff.dihedral_types["opls_140~*~*~opls_140"].parameters["c0"] ) assert len(ff.dihedral_types["NH2~CT1~C~O"].parameters["delta"]) == 1 def test_ff_from_etree(self): ff_etree = lxml.etree.parse(get_path("opls_charmm_buck.xml")) ff = ForceField(ff_etree) assert ff def test_ff_from_etree_iterable(self): ff_etrees = [ lxml.etree.parse(get_path("opls_charmm_buck.xml")), lxml.etree.parse(get_path("trimmed_charmm.xml")), ] ff = ForceField(ff_etrees) assert ff def test_ff_mixed_type_error(self): with pytest.raises(TypeError): ff = ForceField([5, "20"]) def test_named_potential_groups(self, named_groups_ff): assert named_groups_ff.potential_groups["BuckinghamPotential"] assert ( named_groups_ff.angle_types["Xe~Xe~Xe"] in named_groups_ff.potential_groups["HarmonicAngle"].values() ) assert len(named_groups_ff.potential_groups["BuckinghamPotential"]) == 3 assert len(named_groups_ff.potential_groups["HarmonicBond"]) == 2 assert len(named_groups_ff.potential_groups["HarmonicAngle"]) == 2 assert len(named_groups_ff.potential_groups["PeriodicProper"]) == 2 assert len(named_groups_ff.potential_groups["RBProper"]) == 1 assert len(named_groups_ff.potential_groups["LJ"]) == 1 def test_potential_types_by_expression(self, named_groups_ff): atom_types_grouped_by_expression = ( named_groups_ff.group_atom_types_by_expression() ) bond_types_grouped_by_expression = ( named_groups_ff.group_bond_types_by_expression() ) angle_types_grouped_by_expression = ( named_groups_ff.group_angle_types_by_expression() ) dihedral_types_grouped_by_expression = ( named_groups_ff.group_dihedral_types_by_expression() ) improper_types_grouped_by_expression = ( named_groups_ff.group_improper_types_by_expression() ) pairpotential_types_grouped_by_expression = ( named_groups_ff.group_pairpotential_types_by_expression() ) assert ( len(atom_types_grouped_by_expression["A*exp(-B/r) - C/r**6"]) == 3 ) assert len(bond_types_grouped_by_expression["0.5*k*(r - r_eq)**2"]) == 2 assert ( len(angle_types_grouped_by_expression["0.5*z*(r - r_eq)**2"]) == 2 ) assert ( len(dihedral_types_grouped_by_expression["0.5*z*(r - r_eq)**2"]) == 2 ) assert ( len(improper_types_grouped_by_expression["0.5*z*(r - r_eq)**2"]) == 1 ) assert ( len( pairpotential_types_grouped_by_expression[ "4*k*(-sigma**6/r**6 + sigma**12/r**12)" ] ) == 1 ) def test_forcefield_missing_atom_types(self): with pytest.raises(MissingAtomTypesError): ff = ForceField( get_path(filename=get_path("ff_missing_atom_types.xml")) ) def test_forcefield_missing_atom_types_non_strict(self): ff = ForceField( get_path(filename=get_path("ff_missing_atom_types.xml")), strict=False, ) def test_forcefeld_get_potential_atom_type(self, opls_ethane_foyer): at = opls_ethane_foyer.get_potential("atom_type", key=["opls_135"]) assert at.expression == sympify( "ep * ((sigma/r)**12 - (sigma/r)**6) + q / (e0 * r)" ) params = at.parameters assert "ep" in params assert "sigma" in params assert "e0" in params assert sympify("r") in at.independent_variables assert allclose_units_mixed( params.values(), [ 0.276144 * u.kJ / u.mol, 0.35 * u.nm, 8.8542e-12 * u.Unit("A**2*s**4/(kg*m**3)"), -0.18 * u.C, ], ) def test_forcefield_get_parameters_atom_type(self, opls_ethane_foyer): params = opls_ethane_foyer.get_parameters("atom_type", key=["opls_140"]) assert allclose_units_mixed( params.values(), [ 0.12552 * u.kJ / u.mol, 0.25 * u.nm, 8.8542e-12 * u.Unit("A**2*s**4/(kg*m**3)"), 0.06 * u.C, ], ) def test_forcefield_get_parameters_atom_type_copy(self, opls_ethane_foyer): params = opls_ethane_foyer.get_parameters( "atom_type", key=["opls_140"], copy=False ) params_copy = opls_ethane_foyer.get_parameters( "atom_type", key=["opls_140"], copy=True ) assert allclose_units_mixed(params.values(), params_copy.values()) def test_forcefield_get_potential_bond_type(self, opls_ethane_foyer): bt = opls_ethane_foyer.get_potential( "bond_type", key=["opls_135", "opls_140"] ) assert bt.name == "BondType-Harmonic-2" params = bt.parameters assert "k" in params assert "r_eq" in params assert sympify("r") in bt.independent_variables assert allclose_units_mixed( params.values(), [284512.0 * u.kJ / u.nm ** 2, 0.109 * u.nm] ) def test_forcefield_get_potential_bond_type_reversed( self, opls_ethane_foyer ): assert opls_ethane_foyer.get_potential( "bond_type", ["opls_135", "opls_140"] ) == opls_ethane_foyer.get_potential( "bond_type", ["opls_140", "opls_135"] ) def test_forcefield_get_parameters_bond_type(self, opls_ethane_foyer): params = opls_ethane_foyer.get_parameters( "bond_type", key=["opls_135", "opls_135"] ) assert allclose_units_mixed( params.values(), [224262.4 * u.kJ / u.nm ** 2, 0.1529 * u.nm] ) def test_forcefield_get_potential_angle_type(self, opls_ethane_foyer): at = opls_ethane_foyer.get_potential( "angle_type", key=["opls_135", "opls_135", "opls_140"] ) assert at.name == "AngleType-Harmonic-1" params = at.parameters assert "k" in params assert "theta_eq" in params assert sympify("theta") in at.independent_variables assert allclose_units_mixed( params.values(), [313.8 * u.kJ / u.radian ** 2, 1.932079482 * u.radian], ) def test_forcefield_get_potential_angle_type_reversed( self, opls_ethane_foyer ): assert opls_ethane_foyer.get_potential( "angle_type", ["opls_135", "opls_135", "opls_140"] ) == opls_ethane_foyer.get_potential( "angle_type", ["opls_140", "opls_135", "opls_135"] ) def test_forcefield_get_parameters_angle_type(self, opls_ethane_foyer): params = opls_ethane_foyer.get_parameters( "angle_type", key=["opls_140", "opls_135", "opls_140"] ) assert allclose_units_mixed( params.values(), [276.144 * u.kJ / u.radian ** 2, 1.8814649337 * u.radian], ) def test_forcefield_get_potential_dihedral_type(self, opls_ethane_foyer): dt = opls_ethane_foyer.get_potential( "dihedral_type", key=["opls_140", "opls_135", "opls_135", "opls_140"], ) assert dt.name == "DihedralType-RB-Proper-1" params = dt.parameters assert "c0" in params assert "c1" in params assert "c2" in params assert "c3" in params assert "c4" in params assert "c5" in params assert sympify("phi") in dt.independent_variables assert allclose_units_mixed( params.values(), [0.6276, 1.8828, 0.0, -2.5104, 0.0, 0.0] * u.kJ / u.mol, ) def test_forcefield_get_parameters_dihedral_type(self, opls_ethane_foyer): params = opls_ethane_foyer.get_parameters( "dihedral_type", key=["opls_140", "opls_135", "opls_135", "opls_140"], ) assert allclose_units_mixed( params.values(), [0.6276, 1.8828, 0.0, -2.5104, 0.0, 0.0] * u.kJ / u.mol, ) def test_forcefield_get_potential_non_exisistent_group( self, opls_ethane_foyer ): with pytest.raises(ValueError): opls_ethane_foyer.get_potential("non_group", ["a", "b", "c"]) def test_forcefield_get_potential_non_string_key(self, opls_ethane_foyer): with pytest.raises(TypeError): opls_ethane_foyer.get_potential("atom_type", key=[111]) def test_get_atom_type_missing(self, opls_ethane_foyer): with pytest.raises(MissingPotentialError): opls_ethane_foyer._get_atom_type("opls_359", warn=False) with pytest.warns(UserWarning): opls_ethane_foyer._get_atom_type("opls_359", warn=True) def test_get_bond_type_missing(self, opls_ethane_foyer): with pytest.raises(MissingPotentialError): opls_ethane_foyer._get_bond_type( ["opls_359", "opls_600"], warn=False ) with pytest.warns(UserWarning): opls_ethane_foyer._get_bond_type( ["opls_359", "opls_600"], warn=True ) def test_get_angle_type_missing(self, opls_ethane_foyer): with pytest.raises(MissingPotentialError): opls_ethane_foyer._get_angle_type( ["opls_359", "opls_600", "opls_700"], warn=False ) with pytest.warns(UserWarning): opls_ethane_foyer._get_angle_type( ["opls_359", "opls_600", "opls_700"], warn=True ) def test_get_dihedral_type_missing(self, opls_ethane_foyer): with pytest.raises(MissingPotentialError): opls_ethane_foyer._get_dihedral_type( ["opls_359", "opls_600", "opls_700", "opls_800"], warn=False ) with pytest.warns(UserWarning): opls_ethane_foyer._get_dihedral_type( ["opls_359", "opls_600", "opls_700", "opls_800"], warn=True ) def test_get_improper_type_missing(self, opls_ethane_foyer): with pytest.raises(MissingPotentialError): opls_ethane_foyer._get_improper_type( ["opls_359", "opls_600", "opls_700", "opls_800"], warn=False ) with pytest.warns(UserWarning): opls_ethane_foyer._get_improper_type( ["opls_359", "opls_600", "opls_700", "opls_800"], warn=True )
36.271095
105
0.593575
5776f7b0e4732c6ac4a7c0dd5d2701ff00cf506c
539
swift
Swift
DeclarativeUI/Classes/UI/FontIcon.swift
Holistic-Apps-LTDA/DeclarativeUI
70dc37430b1c00e7888ffc09d095317296d69969
[ "MIT" ]
1
2022-03-21T15:42:23.000Z
2022-03-21T15:42:23.000Z
DeclarativeUI/Classes/UI/FontIcon.swift
Holistic-Apps-LTDA/DeclarativeUI
70dc37430b1c00e7888ffc09d095317296d69969
[ "MIT" ]
null
null
null
DeclarativeUI/Classes/UI/FontIcon.swift
Holistic-Apps-LTDA/DeclarativeUI
70dc37430b1c00e7888ffc09d095317296d69969
[ "MIT" ]
null
null
null
public struct FontIcon: Hashable { public let name: String public let unicode: String public let font: Font public init(name: String, unicode: String, font: Font) { self.name = name self.unicode = unicode self.font = font } public static let empty = FontIcon(name: "Empty", unicode: "", font: .systemFont(ofSize: 15)) public static func icon(_ unicode: String) -> FontIcon { return FontIcon(name: "Custom", unicode: unicode, font: .systemFont(ofSize: 15)) } }
29.944444
97
0.625232
56b2d67d4158f06f7dfb211dd72158a67f104a09
2,813
ts
TypeScript
modules/json/src/lib/parser/streaming-json-parser.ts
nreese/loaders.gl
88bec59eb3f3b06bce3dd873af47f945868c81a6
[ "Apache-2.0" ]
291
2020-04-16T15:06:04.000Z
2022-03-25T03:04:39.000Z
modules/json/src/lib/parser/streaming-json-parser.ts
nreese/loaders.gl
88bec59eb3f3b06bce3dd873af47f945868c81a6
[ "Apache-2.0" ]
592
2018-12-08T01:09:15.000Z
2020-04-13T21:14:18.000Z
modules/json/src/lib/parser/streaming-json-parser.ts
nreese/loaders.gl
88bec59eb3f3b06bce3dd873af47f945868c81a6
[ "Apache-2.0" ]
99
2020-04-15T14:19:21.000Z
2022-03-30T14:48:11.000Z
import {default as JSONParser} from './json-parser'; import JSONPath from '../jsonpath/jsonpath'; /** * The `StreamingJSONParser` looks for the first array in the JSON structure. * and emits an array of chunks */ export default class StreamingJSONParser extends JSONParser { private jsonPaths: JSONPath[]; private streamingJsonPath: JSONPath | null = null; private streamingArray: any[] | null = null; private topLevelObject: object | null = null; constructor(options: {[key: string]: any} = {}) { super({ onopenarray: () => { if (!this.streamingArray) { if (this._matchJSONPath()) { // @ts-ignore this.streamingJsonPath = this.getJsonPath().clone(); this.streamingArray = []; this._openArray(this.streamingArray as []); return; } } this._openArray(); }, // Redefine onopenarray to inject value for top-level object onopenobject: (name) => { if (!this.topLevelObject) { this.topLevelObject = {}; this._openObject(this.topLevelObject); } else { this._openObject({}); } if (typeof name !== 'undefined') { this.parser.emit('onkey', name); } } }); const jsonpaths = options.jsonpaths || []; this.jsonPaths = jsonpaths.map((jsonpath) => new JSONPath(jsonpath)); } /** * write REDEFINITION * - super.write() chunk to parser * - get the contents (so far) of "topmost-level" array as batch of rows * - clear top-level array * - return the batch of rows\ */ write(chunk) { super.write(chunk); let array: any[] = []; if (this.streamingArray) { array = [...this.streamingArray]; this.streamingArray.length = 0; } return array; } /** * Returns a partially formed result object * Useful for returning the "wrapper" object when array is not top level * e.g. GeoJSON */ getPartialResult() { return this.topLevelObject; } getStreamingJsonPath() { return this.streamingJsonPath; } getStreamingJsonPathAsString() { return this.streamingJsonPath && this.streamingJsonPath.toString(); } getJsonPath() { return this.jsonpath; } // PRIVATE METHODS /** * Checks is this.getJsonPath matches the jsonpaths provided in options */ _matchJSONPath() { const currentPath = this.getJsonPath(); // console.debug(`Testing JSONPath`, currentPath); // Backwards compatibility, match any array // TODO implement using wildcard once that is supported if (this.jsonPaths.length === 0) { return true; } for (const jsonPath of this.jsonPaths) { if (jsonPath.equals(currentPath)) { return true; } } return false; } }
25.807339
77
0.611802
045b25e1fa4c83311934e27b85be412b68a55668
1,286
java
Java
test/itertools/iterator/PeekableIteratorTest.java
jelsas/JavaItertools
4bf9caec7e79348b1e84444fcbcc074ab644b58f
[ "Apache-2.0" ]
1
2016-03-18T11:31:45.000Z
2016-03-18T11:31:45.000Z
test/itertools/iterator/PeekableIteratorTest.java
jelsas/JavaItertools
4bf9caec7e79348b1e84444fcbcc074ab644b58f
[ "Apache-2.0" ]
null
null
null
test/itertools/iterator/PeekableIteratorTest.java
jelsas/JavaItertools
4bf9caec7e79348b1e84444fcbcc074ab644b58f
[ "Apache-2.0" ]
null
null
null
/* Copyright 2010 Jonathan L. Elsas Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package itertools.iterator; import static org.junit.Assert.*; import java.util.Iterator; import itertools.Itertools; import org.junit.Test; public class PeekableIteratorTest { @Test public void testPeekableIterator() { Iterator<Integer> it = Itertools.count().iterator(); it = Itertools.slice(it, 0, 100, 1).iterator(); PeekableIterator<Integer> pit = new PeekableIterator<Integer>(it); int i; for (i = 0; i < 100; ++i) { assertTrue(pit.hasNext()); assertEquals(i, pit.peek().intValue()); assertEquals(i, pit.next().intValue()); if (i < 100 - 1) assertEquals(i + 1, pit.peek().intValue()); } assertFalse(pit.hasNext()); } }
27.956522
75
0.694401
1004069e91647c7ea791044181a8f847b04465be
526
asm
Assembly
programs/oeis/081/A081304.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/081/A081304.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/081/A081304.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A081304: Number of numbers m <= n with prime factors less than 2*spf(m), where spf(m) is the smallest prime factor of m (A020639). ; 1,2,3,4,5,6,7,8,9,9,10,11,12,12,13,14,15,16,17,17,17,17,18,19,20,20,21,21,22,22,23,24,24,24,25,26,27,27,27,27,28,28,29,29,30,30,31,32,33,33,33,33,34,35,35,35,35,35,36,36,37,37,37,38,38,38,39,39,39,39,40,41,42 mov $1,$0 seq $1,81305 ; Number of numbers m <= n with at least one prime factor greater than 2*spf(m), where spf(m) is the smallest prime factor of m (A020639). sub $0,$1 add $0,1
65.75
210
0.678707
8eff52e9407138a63521243e0fadd726c2469d14
4,772
dart
Dart
lib/src/auth/auth.dart
rockerhieu/grpc-dart
706c07ef378a5a4ebd2bfb35b465bf11d3845f91
[ "Apache-2.0" ]
null
null
null
lib/src/auth/auth.dart
rockerhieu/grpc-dart
706c07ef378a5a4ebd2bfb35b465bf11d3845f91
[ "Apache-2.0" ]
1
2022-02-02T20:16:00.000Z
2022-02-02T20:16:00.000Z
lib/src/auth/auth.dart
CDNA-Technologies/grpc-dart
e42a6589e59cde6732ca895ec57aa79475bdad48
[ "Apache-2.0" ]
null
null
null
// Copyright (c) 2018, the gRPC project authors. Please see the AUTHORS file // for details. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. import 'dart:async'; import 'dart:convert'; import 'package:googleapis_auth/auth.dart' as auth; import 'package:http/http.dart' as http; import '../client/call.dart'; import 'rsa.dart'; const _tokenExpirationThreshold = Duration(seconds: 30); abstract class BaseAuthenticator { auth.AccessToken? _accessToken; late String _lastUri; var _lastUriSet = false; Future<void> authenticate(Map<String, String> metadata, String uri) async { if (_accessToken == null || _accessToken!.hasExpired || !_lastUriSet || uri != _lastUri) { await obtainAccessCredentials(uri); _lastUri = uri; _lastUriSet = true; } final auth = '${_accessToken!.type} ${_accessToken!.data}'; metadata['authorization'] = auth; if (_tokenExpiresSoon) { // Token is about to expire. Extend it prematurely. obtainAccessCredentials(_lastUri).catchError((_) {}); } } bool get _tokenExpiresSoon => _accessToken!.expiry .subtract(_tokenExpirationThreshold) .isBefore(DateTime.now().toUtc()); CallOptions get toCallOptions => CallOptions(providers: [authenticate]); Future<void> obtainAccessCredentials(String uri); } abstract class HttpBasedAuthenticator extends BaseAuthenticator { Future<void>? _call; @override Future<void> obtainAccessCredentials(String uri) { if (_call == null) { final authClient = http.Client(); _call = obtainCredentialsWithClient(authClient, uri).then((credentials) { _accessToken = credentials.accessToken; _call = null; authClient.close(); }); } return _call!; } Future<auth.AccessCredentials> obtainCredentialsWithClient( http.Client client, String uri); } class JwtServiceAccountAuthenticator extends BaseAuthenticator { auth.ServiceAccountCredentials _serviceAccountCredentials; String? _projectId; String? _keyId; JwtServiceAccountAuthenticator.fromJson( Map<String, dynamic> serviceAccountJson) : _serviceAccountCredentials = auth.ServiceAccountCredentials.fromJson(serviceAccountJson), _projectId = serviceAccountJson['project_id'], _keyId = serviceAccountJson['private_key_id']; factory JwtServiceAccountAuthenticator(String serviceAccountJsonString) => JwtServiceAccountAuthenticator.fromJson( jsonDecode(serviceAccountJsonString)); String? get projectId => _projectId; @override Future<void> obtainAccessCredentials(String uri) async { _accessToken = _jwtTokenFor(_serviceAccountCredentials, _keyId, uri); } } // TODO(jakobr): Expose in googleapis_auth. auth.AccessToken _jwtTokenFor( auth.ServiceAccountCredentials credentials, String? keyId, String uri, {String? user, List<String>? scopes}) { // Subtracting 20 seconds from current timestamp to allow for clock skew among // servers. final timestamp = (DateTime.now().toUtc().millisecondsSinceEpoch ~/ 1000) - 20; final expiry = timestamp + 3600; final header = <String, String>{'alg': 'RS256', 'typ': 'JWT'}; if (keyId != null) { header['kid'] = keyId; } final claims = <String, dynamic>{ 'iss': credentials.email, 'aud': uri, 'exp': expiry, 'iat': timestamp, 'sub': user ?? credentials.email }; if (scopes != null) { claims['scope'] = scopes.join(' '); } final headerBase64 = _base64url(ascii.encode(jsonEncode(header))); final claimsBase64 = _base64url(utf8.encode(jsonEncode(claims))); final data = '$headerBase64.$claimsBase64'; final key = credentials.privateRSAKey; // We convert to our internal version of RSAPrivateKey. See rsa.dart for more // explanation. final signer = RS256Signer(RSAPrivateKey( key.n, key.e, key.d, key.p, key.q, key.dmp1, key.dmq1, key.coeff)); final signature = signer.sign(ascii.encode(data)); final jwt = '$data.${_base64url(signature)}'; return auth.AccessToken('Bearer', jwt, DateTime.fromMillisecondsSinceEpoch(expiry * 1000, isUtc: true)); } String _base64url(List<int> bytes) { return base64Url.encode(bytes).replaceAll('=', ''); }
31.602649
80
0.705993
590447bdeddf2cad19e9ea8f1ec7ad6a5247f4c5
614
sql
SQL
SQL Examples/02 advanced/023802 Stored Procedures.sql
MassStreetUniversity/tutorial-transact-sql
89b6ffb7ae7242e7fbe6329247890c561e47ee79
[ "MIT" ]
1
2021-02-04T08:25:23.000Z
2021-02-04T08:25:23.000Z
SQL Examples/02 advanced/023802 Stored Procedures.sql
MassStreetUniversity/tutorial-transact-sql
89b6ffb7ae7242e7fbe6329247890c561e47ee79
[ "MIT" ]
null
null
null
SQL Examples/02 advanced/023802 Stored Procedures.sql
MassStreetUniversity/tutorial-transact-sql
89b6ffb7ae7242e7fbe6329247890c561e47ee79
[ "MIT" ]
null
null
null
USE demo GO DROP PROCEDURE IF EXISTS usp_LoadPersonTable GO CREATE PROCEDURE usp_LoadPersonTable AS BEGIN MERGE Person AS target USING ( SELECT PersonID, FirstName, LastName, SourceSystemKey FROM PersonStageTable ) AS source ON (target.SourceSystemKey = source.SourceSystemKey) WHEN NOT MATCHED THEN INSERT ( PersonID, FirstName, LastName, SourceSystemKey ) VALUES ( PersonID, FirstName, LastName, SourceSystemKey ) WHEN MATCHED THEN UPDATE SET target.PersonID = source.PersonID, target.FirstName = source.FirstName, target.LastName = source.LastName, target.SourceSystemKey = source.SourceSystemKey ; END
13.06383
52
0.812704
e9ef017ed500721fa26b7573dd10fddba524e0bc
12,762
go
Go
flowtest/routers/commentsRouter_controllers.go
3xxx/flow-vue.js
deda145265c2e9254267700e5195a57d53d72073
[ "Apache-2.0" ]
11
2019-03-11T05:46:21.000Z
2020-12-07T00:52:56.000Z
flowtest/routers/commentsRouter_controllers.go
3xxx/flow-vue.js
deda145265c2e9254267700e5195a57d53d72073
[ "Apache-2.0" ]
6
2019-03-18T14:02:53.000Z
2020-01-11T13:02:11.000Z
flowtest/routers/commentsRouter_controllers.go
3xxx/flow-vue.js
deda145265c2e9254267700e5195a57d53d72073
[ "Apache-2.0" ]
4
2019-06-12T01:28:27.000Z
2020-05-21T10:39:20.000Z
package routers import ( "github.com/astaxie/beego" "github.com/astaxie/beego/context/param" ) func init() { beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowAccessContext", Router: `/flowaccesscontext`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowAccessContextList", Router: `/flowaccesscontextlist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowAction", Router: `/flowaction`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowActionList", Router: `/flowactionlist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowDoc", Router: `/flowdoc`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowEvent", Router: `/flowdocevent`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowEventList", Router: `/flowdoceventlist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowDocList", Router: `/flowdoclist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowDocumentDetail", Router: `/flowdocumentdetail`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowDocumentList", Router: `/flowdocumentlist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowGroup", Router: `/flowgroup`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowGroupList", Router: `/flowgrouplist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowGroupRole", Router: `/flowgrouprole`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowGroupRoleList", Router: `/flowgrouprolelist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowGroupUsersList", Router: `/flowgroupuserslist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowNext", Router: `/flownext`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowNode", Router: `/flownode`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowNodeList", Router: `/flownodelist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowPermission", Router: `/flowpermission`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowRole", Router: `/flowrole`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowRoleList", Router: `/flowrolelist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowRolePermissionList", Router: `/flowrolepermissionlist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowState", Router: `/flowstate`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowStateList", Router: `/flowstatelist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowTransition", Router: `/flowtransition`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowTransitionList", Router: `/flowtransitionlist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowType", Router: `/flowtype`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowTypeDelete", Router: `/flowtypedelete`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowTypeList", Router: `/flowtypelist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowTypeUpdate", Router: `/flowtypeupdate`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowUser", Router: `/flowuser`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowUserGroup", Router: `/flowusergroup`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowUserList", Router: `/flowuserlist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowWorkflow", Router: `/flowworkflow`, AllowHTTPMethods: []string{"post"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "FlowWorkflowList", Router: `/flowworkflowlist`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"] = append(beego.GlobalControllerRouter["github.com/3xxx/flowtest/controllers:MainController"], beego.ControllerComments{ Method: "WorkFlow", Router: `/workflow`, AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Params: nil}) }
42.682274
178
0.763203
68596146ac85e9ff80edf716fff863c80ba4bb95
66
html
HTML
index.html
Okrajs/videosforyou.in
5df6d5c37c3cf5c9f0d065e506045893b0df385b
[ "MIT" ]
1
2015-05-26T19:34:13.000Z
2015-05-26T19:34:13.000Z
index.html
Okrajs/videosforyou.in
5df6d5c37c3cf5c9f0d065e506045893b0df385b
[ "MIT" ]
null
null
null
index.html
Okrajs/videosforyou.in
5df6d5c37c3cf5c9f0d065e506045893b0df385b
[ "MIT" ]
null
null
null
<h1>Hello World</h1> <p> I'm <code>videosforyou.in</code>. </p>
13.2
35
0.606061
4091478a1c6d446e76c8919f674a62ba486c2463
769
py
Python
tests/kmedoids/test_kmedoids.py
rayandrews/clustering-algorithm
14336545b11e25d7259b9f3e9314ea4a36674cc2
[ "MIT" ]
1
2021-11-03T21:14:08.000Z
2021-11-03T21:14:08.000Z
tests/kmedoids/test_kmedoids.py
rayandrews/cleverly
14336545b11e25d7259b9f3e9314ea4a36674cc2
[ "MIT" ]
null
null
null
tests/kmedoids/test_kmedoids.py
rayandrews/cleverly
14336545b11e25d7259b9f3e9314ea4a36674cc2
[ "MIT" ]
null
null
null
import unittest from numpy import ndarray, testing from ..context import iris_data, iris_target, check_model_exist, purity_score, print_in_test from cleverly.kmedoids.KMedoids import KMedoids class KMedoidsTestSuite(unittest.TestCase): """KMedoids test cases.""" @classmethod def setUpClass(self): self.filename = './tests/models/kmedoids.model' self.kmedoids = KMedoids( n_clusters=3) self.kmedoids.fit_predict(iris_data) def test_kmedois_return_labels_with_type_numpy_array(self): self.assertIsInstance(self.kmedoids.labels_, ndarray) print_in_test("KMedoids score: %f" % purity_score(iris_target, self.kmedoids.labels_)) if __name__ == '__main__': unittest.main()
28.481481
92
0.710013
23c8c56f1acc722a4497879efc5d7ecccf51bfd9
1,678
ps1
PowerShell
src/MsrcSecurityUpdates/Public/Set-MSRCApiKey.ps1
C0FFEEC0FFEE/MSRC-Microsoft-Security-Updates-API
e8f4d59f0b0876b7fd5ffd62c7a58a873c9cce14
[ "MIT" ]
null
null
null
src/MsrcSecurityUpdates/Public/Set-MSRCApiKey.ps1
C0FFEEC0FFEE/MSRC-Microsoft-Security-Updates-API
e8f4d59f0b0876b7fd5ffd62c7a58a873c9cce14
[ "MIT" ]
null
null
null
src/MsrcSecurityUpdates/Public/Set-MSRCApiKey.ps1
C0FFEEC0FFEE/MSRC-Microsoft-Security-Updates-API
e8f4d59f0b0876b7fd5ffd62c7a58a873c9cce14
[ "MIT" ]
1
2020-07-30T11:47:13.000Z
2020-07-30T11:47:13.000Z
#Requires -Version 3.0 Function Set-MSRCApiKey { [CmdletBinding(SupportsShouldProcess)] Param( [Parameter(Mandatory)] $ApiKey, [Parameter()] [System.Uri]$Proxy, [Parameter()] [ValidateNotNull()] [System.Management.Automation.PSCredential] [System.Management.Automation.Credential()] $ProxyCredential = [System.Management.Automation.PSCredential]::Empty ) Begin {} Process { if ($PSCmdlet.ShouldProcess($ApiKey,'Set item')) { $global:MSRCApiKey = $ApiKey Write-Verbose -Message "Successfully set your API Key required by cmdlets of this module. Calls to the MSRC APIs will now use your API key." # we also set other shared variables $global:msrcApiUrl = 'https://api.msrc.microsoft.com' Write-Verbose -Message "Successfully defined a msrcApiUrl global variable that points to $($global:msrcApiUrl)" $global:msrcApiVersion = 'api-version=2016-08-01' Write-Verbose -Message "Successfully defined a msrcApiVersion global variable that points to $($global:msrcApiVersion)" if ($ProxyCredential -ne [System.Management.Automation.PSCredential]::Empty) { $global:msrcProxyCredential = $ProxyCredential Write-Verbose -Message 'Successfully defined a msrcProxyCredential global variable' } if ($Proxy) { $global:msrcProxy = $Proxy Write-Verbose -Message "Successfully defined a msrcProxyCredential global variable that points to $($global:msrcProxy)" } if ($global:MSRCAdalAccessToken) { Remove-Variable -Name MSRCAdalAccessToken -Scope Global } } } End {} }
33.56
149
0.676996
c382a5e5b55f866a177329310fa5bba8b0b1bd6c
1,606
rs
Rust
tests/test_utils.rs
jblondin/piske
a989113f9fd62c733f6f1b5ce192248e69d28cd4
[ "MIT" ]
5
2017-11-26T03:53:01.000Z
2021-03-20T20:02:38.000Z
tests/test_utils.rs
jblondin/piske
a989113f9fd62c733f6f1b5ce192248e69d28cd4
[ "MIT" ]
null
null
null
tests/test_utils.rs
jblondin/piske
a989113f9fd62c733f6f1b5ce192248e69d28cd4
[ "MIT" ]
null
null
null
#![allow(dead_code)] extern crate tempfile; extern crate piske; use std::fs::File; use piske::value::Value; use piske::parse::program; use piske::visitor::{State, SymbolDefineVisitor, TypeComputationVisitor, EvaluateVisitor, TranspileVisitor}; pub fn expect_prog_with_state(prog: &str, val: Value, mut state: &mut State) { let ast = program(prog).unwrap(); SymbolDefineVisitor::visit(&ast, &mut state).unwrap(); TypeComputationVisitor::visit(&ast, &mut state).unwrap(); let evaluated = EvaluateVisitor::visit(&ast, &mut state); assert_eq!(evaluated, Ok(val)); } pub fn expect_prog(prog: &str, val: Value) { let mut state = State::default(); expect_prog_with_state(prog, val, &mut state); } pub fn examine_translated_source(prog: &str) { let mut state = State::default(); let ast = program(prog).unwrap(); SymbolDefineVisitor::visit(&ast, &mut state).unwrap(); TypeComputationVisitor::visit(&ast, &mut state).unwrap(); let translated = TranspileVisitor::visit(&ast, &mut state).unwrap(); println!("{}", translated.as_str()); } pub fn test_output(mut file: &File, expected: &str) { use std::io::{Read, Seek, SeekFrom}; let mut buffer = String::new(); file.seek(SeekFrom::Start(0)).unwrap(); file.read_to_string(&mut buffer).unwrap(); assert_eq!(&buffer, expected); } pub fn new_state_with_temp_output() -> (State, File) { let mut state = State::default(); let tempfile = tempfile::tempfile().unwrap(); let temp_clone = tempfile.try_clone().unwrap(); state.io.set_stdout(tempfile); (state, temp_clone) }
31.490196
89
0.681818
dfc5385bf30bbff13193a337a1a04891ec963a80
221
ts
TypeScript
projects/i18n/languages/vietnamese/addon-commerce.ts
limitofzero/taiga-ui
25f14d7447c213cbde35b846bb7633b51a332fe8
[ "Apache-2.0" ]
2,103
2020-09-25T17:41:57.000Z
2021-12-27T14:22:00.000Z
projects/i18n/languages/vietnamese/addon-commerce.ts
limitofzero/taiga-ui
25f14d7447c213cbde35b846bb7633b51a332fe8
[ "Apache-2.0" ]
747
2020-09-25T20:31:55.000Z
2021-12-27T15:06:57.000Z
projects/i18n/languages/vietnamese/addon-commerce.ts
limitofzero/taiga-ui
25f14d7447c213cbde35b846bb7633b51a332fe8
[ "Apache-2.0" ]
201
2020-09-26T17:47:59.000Z
2021-12-26T19:22:02.000Z
import {LanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_VIETNAMESE_LANGUAGE_ADDON_COMMERCE: LanguageCommerce = { cardNumber: ['Số thẻ', 'Số thẻ'], cardExpiry: ['Hết hạn', 'Ngày hết hạn'], };
31.571429
73
0.714932
0b67517486e91d69f9ba0a1be6a90a8c7366f494
507
py
Python
src/stations/datastructures.py
cwerner/st-folium-demo
31bfc3184e7e90d1901ab48fd0d4ee6026f97fe6
[ "Apache-2.0" ]
1
2021-03-19T11:10:04.000Z
2021-03-19T11:10:04.000Z
src/stations/datastructures.py
cwerner/st-folium-demo
31bfc3184e7e90d1901ab48fd0d4ee6026f97fe6
[ "Apache-2.0" ]
null
null
null
src/stations/datastructures.py
cwerner/st-folium-demo
31bfc3184e7e90d1901ab48fd0d4ee6026f97fe6
[ "Apache-2.0" ]
null
null
null
from enum import Enum # ifu ifu = {"name": "IFU", "geo_lat": 47.476180, "geo_lon": 11.063350} # tereno stations tereno_stations = [ {"name": "Fendth", "geo_lat": 47.83243, "geo_lon": 11.06111}, {"name": "Grasswang", "geo_lat": 47.57026, "geo_lon": 11.03189}, {"name": "Rottenbuch", "geo_lat": 47.73032, "geo_lon": 11.03189}, ] class RES(Enum): TENMIN = "10_minutes" HOURLY = "hourly" DAILY = "daily" @staticmethod def names(): return list(map(lambda c: c, RES))
23.045455
69
0.601578
8172856b27e90b8acd9580b1a5bf2a93c52e70a2
1,340
go
Go
service/group/logic/create_group.go
txchat/dtalk
cbacbfb48fda990f3160cb861e8b43669780cc6d
[ "MIT" ]
1
2022-03-24T08:13:10.000Z
2022-03-24T08:13:10.000Z
service/group/logic/create_group.go
txchat/dtalk
cbacbfb48fda990f3160cb861e8b43669780cc6d
[ "MIT" ]
null
null
null
service/group/logic/create_group.go
txchat/dtalk
cbacbfb48fda990f3160cb861e8b43669780cc6d
[ "MIT" ]
null
null
null
package logic import ( "context" pb "github.com/txchat/dtalk/service/group/api" "github.com/txchat/dtalk/service/group/model/biz" "github.com/txchat/dtalk/service/group/service" ) type CreateGroupLogic struct { ctx context.Context svc *service.Service } func NewCreateGroupLogic(ctx context.Context, svc *service.Service) *CreateGroupLogic { return &CreateGroupLogic{ ctx: ctx, svc: svc, } } // CreateGroup 创建群聊 func (l *CreateGroupLogic) CreateGroup(req *pb.CreateGroupReq) (*pb.CreateGroupResp, error) { var err error req.Owner.Id, err = FilteredMemberId(req.Owner.Id) if err != nil { return nil, err } group := &biz.GroupInfo{ GroupName: req.Name, GroupType: int32(req.GroupType), } owner := &biz.GroupMember{ GroupMemberId: req.Owner.Id, GroupMemberName: req.Owner.Name, } members := make([]*biz.GroupMember, 0, len(req.Members)) for _, member := range req.Members { if member.Id == owner.GroupMemberId { continue } member.Id, err = FilteredMemberId(member.Id) if err != nil { return nil, err } members = append(members, &biz.GroupMember{ GroupMemberId: member.Id, GroupMemberName: member.Name, }) } groupId, err := l.svc.CreateGroup(l.ctx, group, owner, members) if err != nil { return nil, err } return &pb.CreateGroupResp{ GroupId: groupId, }, nil }
20.30303
93
0.697761
8b6a69629d595a9b86b184365a44db0ee9d46db0
985,001
dart
Dart
third_party/googleapis/test/dialogflow/v3_test.dart
DisDis/dslideshow
58e9b2afbcd43c7c7f99a2382dd109bcef5c4185
[ "MIT" ]
1
2021-04-29T14:49:00.000Z
2021-04-29T14:49:00.000Z
third_party/googleapis/test/dialogflow/v3_test.dart
DisDis/dslideshow
58e9b2afbcd43c7c7f99a2382dd109bcef5c4185
[ "MIT" ]
null
null
null
third_party/googleapis/test/dialogflow/v3_test.dart
DisDis/dslideshow
58e9b2afbcd43c7c7f99a2382dd109bcef5c4185
[ "MIT" ]
1
2021-07-15T18:34:22.000Z
2021-07-15T18:34:22.000Z
// ignore_for_file: avoid_returning_null // ignore_for_file: camel_case_types // ignore_for_file: cascade_invocations // ignore_for_file: comment_references // ignore_for_file: file_names // ignore_for_file: library_names // ignore_for_file: lines_longer_than_80_chars // ignore_for_file: non_constant_identifier_names // ignore_for_file: prefer_expression_function_bodies // ignore_for_file: prefer_final_locals // ignore_for_file: prefer_interpolation_to_compose_strings // ignore_for_file: prefer_single_quotes // ignore_for_file: unnecessary_brace_in_string_interps // ignore_for_file: unnecessary_cast // ignore_for_file: unnecessary_lambdas // ignore_for_file: unnecessary_parenthesis // ignore_for_file: unnecessary_string_interpolations // ignore_for_file: unused_local_variable import 'dart:async' as async; import 'dart:convert' as convert; import 'dart:core' as core; import 'package:http/http.dart' as http; import 'package:test/test.dart' as unittest; import 'package:googleapis/dialogflow/v3.dart' as api; import '../test_shared.dart'; core.int buildCounterGoogleCloudDialogflowCxV3Agent = 0; api.GoogleCloudDialogflowCxV3Agent buildGoogleCloudDialogflowCxV3Agent() { var o = api.GoogleCloudDialogflowCxV3Agent(); buildCounterGoogleCloudDialogflowCxV3Agent++; if (buildCounterGoogleCloudDialogflowCxV3Agent < 3) { o.avatarUri = 'foo'; o.defaultLanguageCode = 'foo'; o.description = 'foo'; o.displayName = 'foo'; o.enableSpellCorrection = true; o.enableStackdriverLogging = true; o.name = 'foo'; o.securitySettings = 'foo'; o.speechToTextSettings = buildGoogleCloudDialogflowCxV3SpeechToTextSettings(); o.startFlow = 'foo'; o.timeZone = 'foo'; } buildCounterGoogleCloudDialogflowCxV3Agent--; return o; } void checkGoogleCloudDialogflowCxV3Agent(api.GoogleCloudDialogflowCxV3Agent o) { buildCounterGoogleCloudDialogflowCxV3Agent++; if (buildCounterGoogleCloudDialogflowCxV3Agent < 3) { unittest.expect( o.avatarUri!, unittest.equals('foo'), ); unittest.expect( o.defaultLanguageCode!, unittest.equals('foo'), ); unittest.expect( o.description!, unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect(o.enableSpellCorrection!, unittest.isTrue); unittest.expect(o.enableStackdriverLogging!, unittest.isTrue); unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect( o.securitySettings!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3SpeechToTextSettings(o.speechToTextSettings! as api.GoogleCloudDialogflowCxV3SpeechToTextSettings); unittest.expect( o.startFlow!, unittest.equals('foo'), ); unittest.expect( o.timeZone!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3Agent--; } core.List<api.GoogleCloudDialogflowCxV3FlowValidationResult> buildUnnamed105() { var o = <api.GoogleCloudDialogflowCxV3FlowValidationResult>[]; o.add(buildGoogleCloudDialogflowCxV3FlowValidationResult()); o.add(buildGoogleCloudDialogflowCxV3FlowValidationResult()); return o; } void checkUnnamed105( core.List<api.GoogleCloudDialogflowCxV3FlowValidationResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3FlowValidationResult( o[0] as api.GoogleCloudDialogflowCxV3FlowValidationResult); checkGoogleCloudDialogflowCxV3FlowValidationResult( o[1] as api.GoogleCloudDialogflowCxV3FlowValidationResult); } core.int buildCounterGoogleCloudDialogflowCxV3AgentValidationResult = 0; api.GoogleCloudDialogflowCxV3AgentValidationResult buildGoogleCloudDialogflowCxV3AgentValidationResult() { var o = api.GoogleCloudDialogflowCxV3AgentValidationResult(); buildCounterGoogleCloudDialogflowCxV3AgentValidationResult++; if (buildCounterGoogleCloudDialogflowCxV3AgentValidationResult < 3) { o.flowValidationResults = buildUnnamed105(); o.name = 'foo'; } buildCounterGoogleCloudDialogflowCxV3AgentValidationResult--; return o; } void checkGoogleCloudDialogflowCxV3AgentValidationResult( api.GoogleCloudDialogflowCxV3AgentValidationResult o) { buildCounterGoogleCloudDialogflowCxV3AgentValidationResult++; if (buildCounterGoogleCloudDialogflowCxV3AgentValidationResult < 3) { checkUnnamed105(o.flowValidationResults!); unittest.expect( o.name!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3AgentValidationResult--; } core.int buildCounterGoogleCloudDialogflowCxV3AudioInput = 0; api.GoogleCloudDialogflowCxV3AudioInput buildGoogleCloudDialogflowCxV3AudioInput() { var o = api.GoogleCloudDialogflowCxV3AudioInput(); buildCounterGoogleCloudDialogflowCxV3AudioInput++; if (buildCounterGoogleCloudDialogflowCxV3AudioInput < 3) { o.audio = 'foo'; o.config = buildGoogleCloudDialogflowCxV3InputAudioConfig(); } buildCounterGoogleCloudDialogflowCxV3AudioInput--; return o; } void checkGoogleCloudDialogflowCxV3AudioInput( api.GoogleCloudDialogflowCxV3AudioInput o) { buildCounterGoogleCloudDialogflowCxV3AudioInput++; if (buildCounterGoogleCloudDialogflowCxV3AudioInput < 3) { unittest.expect( o.audio!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3InputAudioConfig( o.config! as api.GoogleCloudDialogflowCxV3InputAudioConfig); } buildCounterGoogleCloudDialogflowCxV3AudioInput--; } core.List<core.String> buildUnnamed106() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed106(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest = 0; api.GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest buildGoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest() { var o = api.GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest(); buildCounterGoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest++; if (buildCounterGoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest < 3) { o.names = buildUnnamed106(); } buildCounterGoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest--; return o; } void checkGoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest( api.GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest o) { buildCounterGoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest++; if (buildCounterGoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest < 3) { checkUnnamed106(o.names!); } buildCounterGoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest--; } core.List<api.GoogleCloudDialogflowCxV3TestError> buildUnnamed107() { var o = <api.GoogleCloudDialogflowCxV3TestError>[]; o.add(buildGoogleCloudDialogflowCxV3TestError()); o.add(buildGoogleCloudDialogflowCxV3TestError()); return o; } void checkUnnamed107(core.List<api.GoogleCloudDialogflowCxV3TestError> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TestError( o[0] as api.GoogleCloudDialogflowCxV3TestError); checkGoogleCloudDialogflowCxV3TestError( o[1] as api.GoogleCloudDialogflowCxV3TestError); } core.int buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesMetadata = 0; api.GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata buildGoogleCloudDialogflowCxV3BatchRunTestCasesMetadata() { var o = api.GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata(); buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesMetadata++; if (buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesMetadata < 3) { o.errors = buildUnnamed107(); } buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesMetadata--; return o; } void checkGoogleCloudDialogflowCxV3BatchRunTestCasesMetadata( api.GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata o) { buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesMetadata++; if (buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesMetadata < 3) { checkUnnamed107(o.errors!); } buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesMetadata--; } core.List<core.String> buildUnnamed108() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed108(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesRequest = 0; api.GoogleCloudDialogflowCxV3BatchRunTestCasesRequest buildGoogleCloudDialogflowCxV3BatchRunTestCasesRequest() { var o = api.GoogleCloudDialogflowCxV3BatchRunTestCasesRequest(); buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesRequest++; if (buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesRequest < 3) { o.environment = 'foo'; o.testCases = buildUnnamed108(); } buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesRequest--; return o; } void checkGoogleCloudDialogflowCxV3BatchRunTestCasesRequest( api.GoogleCloudDialogflowCxV3BatchRunTestCasesRequest o) { buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesRequest++; if (buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesRequest < 3) { unittest.expect( o.environment!, unittest.equals('foo'), ); checkUnnamed108(o.testCases!); } buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesRequest--; } core.List<api.GoogleCloudDialogflowCxV3TestCaseResult> buildUnnamed109() { var o = <api.GoogleCloudDialogflowCxV3TestCaseResult>[]; o.add(buildGoogleCloudDialogflowCxV3TestCaseResult()); o.add(buildGoogleCloudDialogflowCxV3TestCaseResult()); return o; } void checkUnnamed109(core.List<api.GoogleCloudDialogflowCxV3TestCaseResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TestCaseResult( o[0] as api.GoogleCloudDialogflowCxV3TestCaseResult); checkGoogleCloudDialogflowCxV3TestCaseResult( o[1] as api.GoogleCloudDialogflowCxV3TestCaseResult); } core.int buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesResponse = 0; api.GoogleCloudDialogflowCxV3BatchRunTestCasesResponse buildGoogleCloudDialogflowCxV3BatchRunTestCasesResponse() { var o = api.GoogleCloudDialogflowCxV3BatchRunTestCasesResponse(); buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesResponse < 3) { o.results = buildUnnamed109(); } buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesResponse--; return o; } void checkGoogleCloudDialogflowCxV3BatchRunTestCasesResponse( api.GoogleCloudDialogflowCxV3BatchRunTestCasesResponse o) { buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesResponse < 3) { checkUnnamed109(o.results!); } buildCounterGoogleCloudDialogflowCxV3BatchRunTestCasesResponse--; } core.int buildCounterGoogleCloudDialogflowCxV3CalculateCoverageResponse = 0; api.GoogleCloudDialogflowCxV3CalculateCoverageResponse buildGoogleCloudDialogflowCxV3CalculateCoverageResponse() { var o = api.GoogleCloudDialogflowCxV3CalculateCoverageResponse(); buildCounterGoogleCloudDialogflowCxV3CalculateCoverageResponse++; if (buildCounterGoogleCloudDialogflowCxV3CalculateCoverageResponse < 3) { o.agent = 'foo'; o.intentCoverage = buildGoogleCloudDialogflowCxV3IntentCoverage(); o.routeGroupCoverage = buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage(); o.transitionCoverage = buildGoogleCloudDialogflowCxV3TransitionCoverage(); } buildCounterGoogleCloudDialogflowCxV3CalculateCoverageResponse--; return o; } void checkGoogleCloudDialogflowCxV3CalculateCoverageResponse( api.GoogleCloudDialogflowCxV3CalculateCoverageResponse o) { buildCounterGoogleCloudDialogflowCxV3CalculateCoverageResponse++; if (buildCounterGoogleCloudDialogflowCxV3CalculateCoverageResponse < 3) { unittest.expect( o.agent!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3IntentCoverage( o.intentCoverage! as api.GoogleCloudDialogflowCxV3IntentCoverage); checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage( o.routeGroupCoverage! as api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage); checkGoogleCloudDialogflowCxV3TransitionCoverage(o.transitionCoverage! as api.GoogleCloudDialogflowCxV3TransitionCoverage); } buildCounterGoogleCloudDialogflowCxV3CalculateCoverageResponse--; } core.int buildCounterGoogleCloudDialogflowCxV3ConversationTurn = 0; api.GoogleCloudDialogflowCxV3ConversationTurn buildGoogleCloudDialogflowCxV3ConversationTurn() { var o = api.GoogleCloudDialogflowCxV3ConversationTurn(); buildCounterGoogleCloudDialogflowCxV3ConversationTurn++; if (buildCounterGoogleCloudDialogflowCxV3ConversationTurn < 3) { o.userInput = buildGoogleCloudDialogflowCxV3ConversationTurnUserInput(); o.virtualAgentOutput = buildGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput(); } buildCounterGoogleCloudDialogflowCxV3ConversationTurn--; return o; } void checkGoogleCloudDialogflowCxV3ConversationTurn( api.GoogleCloudDialogflowCxV3ConversationTurn o) { buildCounterGoogleCloudDialogflowCxV3ConversationTurn++; if (buildCounterGoogleCloudDialogflowCxV3ConversationTurn < 3) { checkGoogleCloudDialogflowCxV3ConversationTurnUserInput( o.userInput! as api.GoogleCloudDialogflowCxV3ConversationTurnUserInput); checkGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput( o.virtualAgentOutput! as api.GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput); } buildCounterGoogleCloudDialogflowCxV3ConversationTurn--; } core.Map<core.String, core.Object> buildUnnamed110() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed110(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o['x']!) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect( casted1['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted1['bool'], unittest.equals(true), ); unittest.expect( casted1['string'], unittest.equals('foo'), ); var casted2 = (o['y']!) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect( casted2['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted2['bool'], unittest.equals(true), ); unittest.expect( casted2['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3ConversationTurnUserInput = 0; api.GoogleCloudDialogflowCxV3ConversationTurnUserInput buildGoogleCloudDialogflowCxV3ConversationTurnUserInput() { var o = api.GoogleCloudDialogflowCxV3ConversationTurnUserInput(); buildCounterGoogleCloudDialogflowCxV3ConversationTurnUserInput++; if (buildCounterGoogleCloudDialogflowCxV3ConversationTurnUserInput < 3) { o.injectedParameters = buildUnnamed110(); o.input = buildGoogleCloudDialogflowCxV3QueryInput(); o.isWebhookEnabled = true; } buildCounterGoogleCloudDialogflowCxV3ConversationTurnUserInput--; return o; } void checkGoogleCloudDialogflowCxV3ConversationTurnUserInput( api.GoogleCloudDialogflowCxV3ConversationTurnUserInput o) { buildCounterGoogleCloudDialogflowCxV3ConversationTurnUserInput++; if (buildCounterGoogleCloudDialogflowCxV3ConversationTurnUserInput < 3) { checkUnnamed110(o.injectedParameters!); checkGoogleCloudDialogflowCxV3QueryInput( o.input! as api.GoogleCloudDialogflowCxV3QueryInput); unittest.expect(o.isWebhookEnabled!, unittest.isTrue); } buildCounterGoogleCloudDialogflowCxV3ConversationTurnUserInput--; } core.Map<core.String, core.Object> buildUnnamed111() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed111(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o['x']!) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect( casted3['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted3['bool'], unittest.equals(true), ); unittest.expect( casted3['string'], unittest.equals('foo'), ); var casted4 = (o['y']!) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect( casted4['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted4['bool'], unittest.equals(true), ); unittest.expect( casted4['string'], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowCxV3TestRunDifference> buildUnnamed112() { var o = <api.GoogleCloudDialogflowCxV3TestRunDifference>[]; o.add(buildGoogleCloudDialogflowCxV3TestRunDifference()); o.add(buildGoogleCloudDialogflowCxV3TestRunDifference()); return o; } void checkUnnamed112( core.List<api.GoogleCloudDialogflowCxV3TestRunDifference> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TestRunDifference( o[0] as api.GoogleCloudDialogflowCxV3TestRunDifference); checkGoogleCloudDialogflowCxV3TestRunDifference( o[1] as api.GoogleCloudDialogflowCxV3TestRunDifference); } core.Map<core.String, core.Object> buildUnnamed113() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed113(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o['x']!) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect( casted5['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted5['bool'], unittest.equals(true), ); unittest.expect( casted5['string'], unittest.equals('foo'), ); var casted6 = (o['y']!) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect( casted6['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted6['bool'], unittest.equals(true), ); unittest.expect( casted6['string'], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowCxV3ResponseMessageText> buildUnnamed114() { var o = <api.GoogleCloudDialogflowCxV3ResponseMessageText>[]; o.add(buildGoogleCloudDialogflowCxV3ResponseMessageText()); o.add(buildGoogleCloudDialogflowCxV3ResponseMessageText()); return o; } void checkUnnamed114( core.List<api.GoogleCloudDialogflowCxV3ResponseMessageText> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ResponseMessageText( o[0] as api.GoogleCloudDialogflowCxV3ResponseMessageText); checkGoogleCloudDialogflowCxV3ResponseMessageText( o[1] as api.GoogleCloudDialogflowCxV3ResponseMessageText); } core.int buildCounterGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput = 0; api.GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput buildGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput() { var o = api.GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput(); buildCounterGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput++; if (buildCounterGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput < 3) { o.currentPage = buildGoogleCloudDialogflowCxV3Page(); o.diagnosticInfo = buildUnnamed111(); o.differences = buildUnnamed112(); o.sessionParameters = buildUnnamed113(); o.status = buildGoogleRpcStatus(); o.textResponses = buildUnnamed114(); o.triggeredIntent = buildGoogleCloudDialogflowCxV3Intent(); } buildCounterGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput--; return o; } void checkGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput( api.GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput o) { buildCounterGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput++; if (buildCounterGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput < 3) { checkGoogleCloudDialogflowCxV3Page( o.currentPage! as api.GoogleCloudDialogflowCxV3Page); checkUnnamed111(o.diagnosticInfo!); checkUnnamed112(o.differences!); checkUnnamed113(o.sessionParameters!); checkGoogleRpcStatus(o.status! as api.GoogleRpcStatus); checkUnnamed114(o.textResponses!); checkGoogleCloudDialogflowCxV3Intent( o.triggeredIntent! as api.GoogleCloudDialogflowCxV3Intent); } buildCounterGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput--; } core.int buildCounterGoogleCloudDialogflowCxV3CreateDocumentOperationMetadata = 0; api.GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata buildGoogleCloudDialogflowCxV3CreateDocumentOperationMetadata() { var o = api.GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata(); buildCounterGoogleCloudDialogflowCxV3CreateDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3CreateDocumentOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowCxV3CreateDocumentOperationMetadata--; return o; } void checkGoogleCloudDialogflowCxV3CreateDocumentOperationMetadata( api.GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata o) { buildCounterGoogleCloudDialogflowCxV3CreateDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3CreateDocumentOperationMetadata < 3) { checkGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata( o.genericMetadata! as api.GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowCxV3CreateDocumentOperationMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3CreateVersionOperationMetadata = 0; api.GoogleCloudDialogflowCxV3CreateVersionOperationMetadata buildGoogleCloudDialogflowCxV3CreateVersionOperationMetadata() { var o = api.GoogleCloudDialogflowCxV3CreateVersionOperationMetadata(); buildCounterGoogleCloudDialogflowCxV3CreateVersionOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3CreateVersionOperationMetadata < 3) { o.version = 'foo'; } buildCounterGoogleCloudDialogflowCxV3CreateVersionOperationMetadata--; return o; } void checkGoogleCloudDialogflowCxV3CreateVersionOperationMetadata( api.GoogleCloudDialogflowCxV3CreateVersionOperationMetadata o) { buildCounterGoogleCloudDialogflowCxV3CreateVersionOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3CreateVersionOperationMetadata < 3) { unittest.expect( o.version!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3CreateVersionOperationMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata = 0; api.GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata buildGoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata() { var o = api.GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata(); buildCounterGoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata--; return o; } void checkGoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata( api.GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata o) { buildCounterGoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata < 3) { checkGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata( o.genericMetadata! as api.GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3DetectIntentRequest = 0; api.GoogleCloudDialogflowCxV3DetectIntentRequest buildGoogleCloudDialogflowCxV3DetectIntentRequest() { var o = api.GoogleCloudDialogflowCxV3DetectIntentRequest(); buildCounterGoogleCloudDialogflowCxV3DetectIntentRequest++; if (buildCounterGoogleCloudDialogflowCxV3DetectIntentRequest < 3) { o.outputAudioConfig = buildGoogleCloudDialogflowCxV3OutputAudioConfig(); o.queryInput = buildGoogleCloudDialogflowCxV3QueryInput(); o.queryParams = buildGoogleCloudDialogflowCxV3QueryParameters(); } buildCounterGoogleCloudDialogflowCxV3DetectIntentRequest--; return o; } void checkGoogleCloudDialogflowCxV3DetectIntentRequest( api.GoogleCloudDialogflowCxV3DetectIntentRequest o) { buildCounterGoogleCloudDialogflowCxV3DetectIntentRequest++; if (buildCounterGoogleCloudDialogflowCxV3DetectIntentRequest < 3) { checkGoogleCloudDialogflowCxV3OutputAudioConfig( o.outputAudioConfig! as api.GoogleCloudDialogflowCxV3OutputAudioConfig); checkGoogleCloudDialogflowCxV3QueryInput( o.queryInput! as api.GoogleCloudDialogflowCxV3QueryInput); checkGoogleCloudDialogflowCxV3QueryParameters( o.queryParams! as api.GoogleCloudDialogflowCxV3QueryParameters); } buildCounterGoogleCloudDialogflowCxV3DetectIntentRequest--; } core.int buildCounterGoogleCloudDialogflowCxV3DetectIntentResponse = 0; api.GoogleCloudDialogflowCxV3DetectIntentResponse buildGoogleCloudDialogflowCxV3DetectIntentResponse() { var o = api.GoogleCloudDialogflowCxV3DetectIntentResponse(); buildCounterGoogleCloudDialogflowCxV3DetectIntentResponse++; if (buildCounterGoogleCloudDialogflowCxV3DetectIntentResponse < 3) { o.outputAudio = 'foo'; o.outputAudioConfig = buildGoogleCloudDialogflowCxV3OutputAudioConfig(); o.queryResult = buildGoogleCloudDialogflowCxV3QueryResult(); o.responseId = 'foo'; } buildCounterGoogleCloudDialogflowCxV3DetectIntentResponse--; return o; } void checkGoogleCloudDialogflowCxV3DetectIntentResponse( api.GoogleCloudDialogflowCxV3DetectIntentResponse o) { buildCounterGoogleCloudDialogflowCxV3DetectIntentResponse++; if (buildCounterGoogleCloudDialogflowCxV3DetectIntentResponse < 3) { unittest.expect( o.outputAudio!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3OutputAudioConfig( o.outputAudioConfig! as api.GoogleCloudDialogflowCxV3OutputAudioConfig); checkGoogleCloudDialogflowCxV3QueryResult( o.queryResult! as api.GoogleCloudDialogflowCxV3QueryResult); unittest.expect( o.responseId!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3DetectIntentResponse--; } core.int buildCounterGoogleCloudDialogflowCxV3DtmfInput = 0; api.GoogleCloudDialogflowCxV3DtmfInput buildGoogleCloudDialogflowCxV3DtmfInput() { var o = api.GoogleCloudDialogflowCxV3DtmfInput(); buildCounterGoogleCloudDialogflowCxV3DtmfInput++; if (buildCounterGoogleCloudDialogflowCxV3DtmfInput < 3) { o.digits = 'foo'; o.finishDigit = 'foo'; } buildCounterGoogleCloudDialogflowCxV3DtmfInput--; return o; } void checkGoogleCloudDialogflowCxV3DtmfInput( api.GoogleCloudDialogflowCxV3DtmfInput o) { buildCounterGoogleCloudDialogflowCxV3DtmfInput++; if (buildCounterGoogleCloudDialogflowCxV3DtmfInput < 3) { unittest.expect( o.digits!, unittest.equals('foo'), ); unittest.expect( o.finishDigit!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3DtmfInput--; } core.List<api.GoogleCloudDialogflowCxV3EntityTypeEntity> buildUnnamed115() { var o = <api.GoogleCloudDialogflowCxV3EntityTypeEntity>[]; o.add(buildGoogleCloudDialogflowCxV3EntityTypeEntity()); o.add(buildGoogleCloudDialogflowCxV3EntityTypeEntity()); return o; } void checkUnnamed115( core.List<api.GoogleCloudDialogflowCxV3EntityTypeEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3EntityTypeEntity( o[0] as api.GoogleCloudDialogflowCxV3EntityTypeEntity); checkGoogleCloudDialogflowCxV3EntityTypeEntity( o[1] as api.GoogleCloudDialogflowCxV3EntityTypeEntity); } core.List<api.GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase> buildUnnamed116() { var o = <api.GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase>[]; o.add(buildGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase()); o.add(buildGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase()); return o; } void checkUnnamed116( core.List<api.GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase( o[0] as api.GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase); checkGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase( o[1] as api.GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase); } core.int buildCounterGoogleCloudDialogflowCxV3EntityType = 0; api.GoogleCloudDialogflowCxV3EntityType buildGoogleCloudDialogflowCxV3EntityType() { var o = api.GoogleCloudDialogflowCxV3EntityType(); buildCounterGoogleCloudDialogflowCxV3EntityType++; if (buildCounterGoogleCloudDialogflowCxV3EntityType < 3) { o.autoExpansionMode = 'foo'; o.displayName = 'foo'; o.enableFuzzyExtraction = true; o.entities = buildUnnamed115(); o.excludedPhrases = buildUnnamed116(); o.kind = 'foo'; o.name = 'foo'; o.redact = true; } buildCounterGoogleCloudDialogflowCxV3EntityType--; return o; } void checkGoogleCloudDialogflowCxV3EntityType( api.GoogleCloudDialogflowCxV3EntityType o) { buildCounterGoogleCloudDialogflowCxV3EntityType++; if (buildCounterGoogleCloudDialogflowCxV3EntityType < 3) { unittest.expect( o.autoExpansionMode!, unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect(o.enableFuzzyExtraction!, unittest.isTrue); checkUnnamed115(o.entities!); checkUnnamed116(o.excludedPhrases!); unittest.expect( o.kind!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect(o.redact!, unittest.isTrue); } buildCounterGoogleCloudDialogflowCxV3EntityType--; } core.List<core.String> buildUnnamed117() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed117(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3EntityTypeEntity = 0; api.GoogleCloudDialogflowCxV3EntityTypeEntity buildGoogleCloudDialogflowCxV3EntityTypeEntity() { var o = api.GoogleCloudDialogflowCxV3EntityTypeEntity(); buildCounterGoogleCloudDialogflowCxV3EntityTypeEntity++; if (buildCounterGoogleCloudDialogflowCxV3EntityTypeEntity < 3) { o.synonyms = buildUnnamed117(); o.value = 'foo'; } buildCounterGoogleCloudDialogflowCxV3EntityTypeEntity--; return o; } void checkGoogleCloudDialogflowCxV3EntityTypeEntity( api.GoogleCloudDialogflowCxV3EntityTypeEntity o) { buildCounterGoogleCloudDialogflowCxV3EntityTypeEntity++; if (buildCounterGoogleCloudDialogflowCxV3EntityTypeEntity < 3) { checkUnnamed117(o.synonyms!); unittest.expect( o.value!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3EntityTypeEntity--; } core.int buildCounterGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase = 0; api.GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase buildGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase() { var o = api.GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase(); buildCounterGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase++; if (buildCounterGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase < 3) { o.value = 'foo'; } buildCounterGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase--; return o; } void checkGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase( api.GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase o) { buildCounterGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase++; if (buildCounterGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase < 3) { unittest.expect( o.value!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase--; } core.List<api.GoogleCloudDialogflowCxV3EnvironmentVersionConfig> buildUnnamed118() { var o = <api.GoogleCloudDialogflowCxV3EnvironmentVersionConfig>[]; o.add(buildGoogleCloudDialogflowCxV3EnvironmentVersionConfig()); o.add(buildGoogleCloudDialogflowCxV3EnvironmentVersionConfig()); return o; } void checkUnnamed118( core.List<api.GoogleCloudDialogflowCxV3EnvironmentVersionConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3EnvironmentVersionConfig( o[0] as api.GoogleCloudDialogflowCxV3EnvironmentVersionConfig); checkGoogleCloudDialogflowCxV3EnvironmentVersionConfig( o[1] as api.GoogleCloudDialogflowCxV3EnvironmentVersionConfig); } core.int buildCounterGoogleCloudDialogflowCxV3Environment = 0; api.GoogleCloudDialogflowCxV3Environment buildGoogleCloudDialogflowCxV3Environment() { var o = api.GoogleCloudDialogflowCxV3Environment(); buildCounterGoogleCloudDialogflowCxV3Environment++; if (buildCounterGoogleCloudDialogflowCxV3Environment < 3) { o.description = 'foo'; o.displayName = 'foo'; o.name = 'foo'; o.updateTime = 'foo'; o.versionConfigs = buildUnnamed118(); } buildCounterGoogleCloudDialogflowCxV3Environment--; return o; } void checkGoogleCloudDialogflowCxV3Environment( api.GoogleCloudDialogflowCxV3Environment o) { buildCounterGoogleCloudDialogflowCxV3Environment++; if (buildCounterGoogleCloudDialogflowCxV3Environment < 3) { unittest.expect( o.description!, unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect( o.updateTime!, unittest.equals('foo'), ); checkUnnamed118(o.versionConfigs!); } buildCounterGoogleCloudDialogflowCxV3Environment--; } core.int buildCounterGoogleCloudDialogflowCxV3EnvironmentVersionConfig = 0; api.GoogleCloudDialogflowCxV3EnvironmentVersionConfig buildGoogleCloudDialogflowCxV3EnvironmentVersionConfig() { var o = api.GoogleCloudDialogflowCxV3EnvironmentVersionConfig(); buildCounterGoogleCloudDialogflowCxV3EnvironmentVersionConfig++; if (buildCounterGoogleCloudDialogflowCxV3EnvironmentVersionConfig < 3) { o.version = 'foo'; } buildCounterGoogleCloudDialogflowCxV3EnvironmentVersionConfig--; return o; } void checkGoogleCloudDialogflowCxV3EnvironmentVersionConfig( api.GoogleCloudDialogflowCxV3EnvironmentVersionConfig o) { buildCounterGoogleCloudDialogflowCxV3EnvironmentVersionConfig++; if (buildCounterGoogleCloudDialogflowCxV3EnvironmentVersionConfig < 3) { unittest.expect( o.version!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3EnvironmentVersionConfig--; } core.int buildCounterGoogleCloudDialogflowCxV3EventHandler = 0; api.GoogleCloudDialogflowCxV3EventHandler buildGoogleCloudDialogflowCxV3EventHandler() { var o = api.GoogleCloudDialogflowCxV3EventHandler(); buildCounterGoogleCloudDialogflowCxV3EventHandler++; if (buildCounterGoogleCloudDialogflowCxV3EventHandler < 3) { o.event = 'foo'; o.name = 'foo'; o.targetFlow = 'foo'; o.targetPage = 'foo'; o.triggerFulfillment = buildGoogleCloudDialogflowCxV3Fulfillment(); } buildCounterGoogleCloudDialogflowCxV3EventHandler--; return o; } void checkGoogleCloudDialogflowCxV3EventHandler( api.GoogleCloudDialogflowCxV3EventHandler o) { buildCounterGoogleCloudDialogflowCxV3EventHandler++; if (buildCounterGoogleCloudDialogflowCxV3EventHandler < 3) { unittest.expect( o.event!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect( o.targetFlow!, unittest.equals('foo'), ); unittest.expect( o.targetPage!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3Fulfillment( o.triggerFulfillment! as api.GoogleCloudDialogflowCxV3Fulfillment); } buildCounterGoogleCloudDialogflowCxV3EventHandler--; } core.int buildCounterGoogleCloudDialogflowCxV3EventInput = 0; api.GoogleCloudDialogflowCxV3EventInput buildGoogleCloudDialogflowCxV3EventInput() { var o = api.GoogleCloudDialogflowCxV3EventInput(); buildCounterGoogleCloudDialogflowCxV3EventInput++; if (buildCounterGoogleCloudDialogflowCxV3EventInput < 3) { o.event = 'foo'; } buildCounterGoogleCloudDialogflowCxV3EventInput--; return o; } void checkGoogleCloudDialogflowCxV3EventInput( api.GoogleCloudDialogflowCxV3EventInput o) { buildCounterGoogleCloudDialogflowCxV3EventInput++; if (buildCounterGoogleCloudDialogflowCxV3EventInput < 3) { unittest.expect( o.event!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3EventInput--; } core.List<api.GoogleCloudDialogflowCxV3VariantsHistory> buildUnnamed119() { var o = <api.GoogleCloudDialogflowCxV3VariantsHistory>[]; o.add(buildGoogleCloudDialogflowCxV3VariantsHistory()); o.add(buildGoogleCloudDialogflowCxV3VariantsHistory()); return o; } void checkUnnamed119( core.List<api.GoogleCloudDialogflowCxV3VariantsHistory> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3VariantsHistory( o[0] as api.GoogleCloudDialogflowCxV3VariantsHistory); checkGoogleCloudDialogflowCxV3VariantsHistory( o[1] as api.GoogleCloudDialogflowCxV3VariantsHistory); } core.int buildCounterGoogleCloudDialogflowCxV3Experiment = 0; api.GoogleCloudDialogflowCxV3Experiment buildGoogleCloudDialogflowCxV3Experiment() { var o = api.GoogleCloudDialogflowCxV3Experiment(); buildCounterGoogleCloudDialogflowCxV3Experiment++; if (buildCounterGoogleCloudDialogflowCxV3Experiment < 3) { o.createTime = 'foo'; o.definition = buildGoogleCloudDialogflowCxV3ExperimentDefinition(); o.description = 'foo'; o.displayName = 'foo'; o.endTime = 'foo'; o.experimentLength = 'foo'; o.lastUpdateTime = 'foo'; o.name = 'foo'; o.result = buildGoogleCloudDialogflowCxV3ExperimentResult(); o.startTime = 'foo'; o.state = 'foo'; o.variantsHistory = buildUnnamed119(); } buildCounterGoogleCloudDialogflowCxV3Experiment--; return o; } void checkGoogleCloudDialogflowCxV3Experiment( api.GoogleCloudDialogflowCxV3Experiment o) { buildCounterGoogleCloudDialogflowCxV3Experiment++; if (buildCounterGoogleCloudDialogflowCxV3Experiment < 3) { unittest.expect( o.createTime!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3ExperimentDefinition( o.definition! as api.GoogleCloudDialogflowCxV3ExperimentDefinition); unittest.expect( o.description!, unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect( o.endTime!, unittest.equals('foo'), ); unittest.expect( o.experimentLength!, unittest.equals('foo'), ); unittest.expect( o.lastUpdateTime!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3ExperimentResult( o.result! as api.GoogleCloudDialogflowCxV3ExperimentResult); unittest.expect( o.startTime!, unittest.equals('foo'), ); unittest.expect( o.state!, unittest.equals('foo'), ); checkUnnamed119(o.variantsHistory!); } buildCounterGoogleCloudDialogflowCxV3Experiment--; } core.int buildCounterGoogleCloudDialogflowCxV3ExperimentDefinition = 0; api.GoogleCloudDialogflowCxV3ExperimentDefinition buildGoogleCloudDialogflowCxV3ExperimentDefinition() { var o = api.GoogleCloudDialogflowCxV3ExperimentDefinition(); buildCounterGoogleCloudDialogflowCxV3ExperimentDefinition++; if (buildCounterGoogleCloudDialogflowCxV3ExperimentDefinition < 3) { o.condition = 'foo'; o.versionVariants = buildGoogleCloudDialogflowCxV3VersionVariants(); } buildCounterGoogleCloudDialogflowCxV3ExperimentDefinition--; return o; } void checkGoogleCloudDialogflowCxV3ExperimentDefinition( api.GoogleCloudDialogflowCxV3ExperimentDefinition o) { buildCounterGoogleCloudDialogflowCxV3ExperimentDefinition++; if (buildCounterGoogleCloudDialogflowCxV3ExperimentDefinition < 3) { unittest.expect( o.condition!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3VersionVariants( o.versionVariants! as api.GoogleCloudDialogflowCxV3VersionVariants); } buildCounterGoogleCloudDialogflowCxV3ExperimentDefinition--; } core.List<api.GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics> buildUnnamed120() { var o = <api.GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics>[]; o.add(buildGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics()); o.add(buildGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics()); return o; } void checkUnnamed120( core.List<api.GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics( o[0] as api.GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics); checkGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics( o[1] as api.GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics); } core.int buildCounterGoogleCloudDialogflowCxV3ExperimentResult = 0; api.GoogleCloudDialogflowCxV3ExperimentResult buildGoogleCloudDialogflowCxV3ExperimentResult() { var o = api.GoogleCloudDialogflowCxV3ExperimentResult(); buildCounterGoogleCloudDialogflowCxV3ExperimentResult++; if (buildCounterGoogleCloudDialogflowCxV3ExperimentResult < 3) { o.lastUpdateTime = 'foo'; o.versionMetrics = buildUnnamed120(); } buildCounterGoogleCloudDialogflowCxV3ExperimentResult--; return o; } void checkGoogleCloudDialogflowCxV3ExperimentResult( api.GoogleCloudDialogflowCxV3ExperimentResult o) { buildCounterGoogleCloudDialogflowCxV3ExperimentResult++; if (buildCounterGoogleCloudDialogflowCxV3ExperimentResult < 3) { unittest.expect( o.lastUpdateTime!, unittest.equals('foo'), ); checkUnnamed120(o.versionMetrics!); } buildCounterGoogleCloudDialogflowCxV3ExperimentResult--; } core.int buildCounterGoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval = 0; api.GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval buildGoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval() { var o = api.GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval(); buildCounterGoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval++; if (buildCounterGoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval < 3) { o.confidenceLevel = 42.0; o.lowerBound = 42.0; o.ratio = 42.0; o.upperBound = 42.0; } buildCounterGoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval--; return o; } void checkGoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval( api.GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval o) { buildCounterGoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval++; if (buildCounterGoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval < 3) { unittest.expect( o.confidenceLevel!, unittest.equals(42.0), ); unittest.expect( o.lowerBound!, unittest.equals(42.0), ); unittest.expect( o.ratio!, unittest.equals(42.0), ); unittest.expect( o.upperBound!, unittest.equals(42.0), ); } buildCounterGoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval--; } core.int buildCounterGoogleCloudDialogflowCxV3ExperimentResultMetric = 0; api.GoogleCloudDialogflowCxV3ExperimentResultMetric buildGoogleCloudDialogflowCxV3ExperimentResultMetric() { var o = api.GoogleCloudDialogflowCxV3ExperimentResultMetric(); buildCounterGoogleCloudDialogflowCxV3ExperimentResultMetric++; if (buildCounterGoogleCloudDialogflowCxV3ExperimentResultMetric < 3) { o.confidenceInterval = buildGoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval(); o.count = 42.0; o.countType = 'foo'; o.ratio = 42.0; o.type = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ExperimentResultMetric--; return o; } void checkGoogleCloudDialogflowCxV3ExperimentResultMetric( api.GoogleCloudDialogflowCxV3ExperimentResultMetric o) { buildCounterGoogleCloudDialogflowCxV3ExperimentResultMetric++; if (buildCounterGoogleCloudDialogflowCxV3ExperimentResultMetric < 3) { checkGoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval( o.confidenceInterval! as api.GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval); unittest.expect( o.count!, unittest.equals(42.0), ); unittest.expect( o.countType!, unittest.equals('foo'), ); unittest.expect( o.ratio!, unittest.equals(42.0), ); unittest.expect( o.type!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ExperimentResultMetric--; } core.List<api.GoogleCloudDialogflowCxV3ExperimentResultMetric> buildUnnamed121() { var o = <api.GoogleCloudDialogflowCxV3ExperimentResultMetric>[]; o.add(buildGoogleCloudDialogflowCxV3ExperimentResultMetric()); o.add(buildGoogleCloudDialogflowCxV3ExperimentResultMetric()); return o; } void checkUnnamed121( core.List<api.GoogleCloudDialogflowCxV3ExperimentResultMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ExperimentResultMetric( o[0] as api.GoogleCloudDialogflowCxV3ExperimentResultMetric); checkGoogleCloudDialogflowCxV3ExperimentResultMetric( o[1] as api.GoogleCloudDialogflowCxV3ExperimentResultMetric); } core.int buildCounterGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics = 0; api.GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics buildGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics() { var o = api.GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics(); buildCounterGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics++; if (buildCounterGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics < 3) { o.metrics = buildUnnamed121(); o.sessionCount = 42; o.version = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics--; return o; } void checkGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics( api.GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics o) { buildCounterGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics++; if (buildCounterGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics < 3) { checkUnnamed121(o.metrics!); unittest.expect( o.sessionCount!, unittest.equals(42), ); unittest.expect( o.version!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics--; } core.int buildCounterGoogleCloudDialogflowCxV3ExportAgentRequest = 0; api.GoogleCloudDialogflowCxV3ExportAgentRequest buildGoogleCloudDialogflowCxV3ExportAgentRequest() { var o = api.GoogleCloudDialogflowCxV3ExportAgentRequest(); buildCounterGoogleCloudDialogflowCxV3ExportAgentRequest++; if (buildCounterGoogleCloudDialogflowCxV3ExportAgentRequest < 3) { o.agentUri = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ExportAgentRequest--; return o; } void checkGoogleCloudDialogflowCxV3ExportAgentRequest( api.GoogleCloudDialogflowCxV3ExportAgentRequest o) { buildCounterGoogleCloudDialogflowCxV3ExportAgentRequest++; if (buildCounterGoogleCloudDialogflowCxV3ExportAgentRequest < 3) { unittest.expect( o.agentUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ExportAgentRequest--; } core.int buildCounterGoogleCloudDialogflowCxV3ExportAgentResponse = 0; api.GoogleCloudDialogflowCxV3ExportAgentResponse buildGoogleCloudDialogflowCxV3ExportAgentResponse() { var o = api.GoogleCloudDialogflowCxV3ExportAgentResponse(); buildCounterGoogleCloudDialogflowCxV3ExportAgentResponse++; if (buildCounterGoogleCloudDialogflowCxV3ExportAgentResponse < 3) { o.agentContent = 'foo'; o.agentUri = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ExportAgentResponse--; return o; } void checkGoogleCloudDialogflowCxV3ExportAgentResponse( api.GoogleCloudDialogflowCxV3ExportAgentResponse o) { buildCounterGoogleCloudDialogflowCxV3ExportAgentResponse++; if (buildCounterGoogleCloudDialogflowCxV3ExportAgentResponse < 3) { unittest.expect( o.agentContent!, unittest.equals('foo'), ); unittest.expect( o.agentUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ExportAgentResponse--; } core.int buildCounterGoogleCloudDialogflowCxV3ExportTestCasesMetadata = 0; api.GoogleCloudDialogflowCxV3ExportTestCasesMetadata buildGoogleCloudDialogflowCxV3ExportTestCasesMetadata() { var o = api.GoogleCloudDialogflowCxV3ExportTestCasesMetadata(); buildCounterGoogleCloudDialogflowCxV3ExportTestCasesMetadata++; if (buildCounterGoogleCloudDialogflowCxV3ExportTestCasesMetadata < 3) {} buildCounterGoogleCloudDialogflowCxV3ExportTestCasesMetadata--; return o; } void checkGoogleCloudDialogflowCxV3ExportTestCasesMetadata( api.GoogleCloudDialogflowCxV3ExportTestCasesMetadata o) { buildCounterGoogleCloudDialogflowCxV3ExportTestCasesMetadata++; if (buildCounterGoogleCloudDialogflowCxV3ExportTestCasesMetadata < 3) {} buildCounterGoogleCloudDialogflowCxV3ExportTestCasesMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3ExportTestCasesRequest = 0; api.GoogleCloudDialogflowCxV3ExportTestCasesRequest buildGoogleCloudDialogflowCxV3ExportTestCasesRequest() { var o = api.GoogleCloudDialogflowCxV3ExportTestCasesRequest(); buildCounterGoogleCloudDialogflowCxV3ExportTestCasesRequest++; if (buildCounterGoogleCloudDialogflowCxV3ExportTestCasesRequest < 3) { o.dataFormat = 'foo'; o.filter = 'foo'; o.gcsUri = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ExportTestCasesRequest--; return o; } void checkGoogleCloudDialogflowCxV3ExportTestCasesRequest( api.GoogleCloudDialogflowCxV3ExportTestCasesRequest o) { buildCounterGoogleCloudDialogflowCxV3ExportTestCasesRequest++; if (buildCounterGoogleCloudDialogflowCxV3ExportTestCasesRequest < 3) { unittest.expect( o.dataFormat!, unittest.equals('foo'), ); unittest.expect( o.filter!, unittest.equals('foo'), ); unittest.expect( o.gcsUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ExportTestCasesRequest--; } core.int buildCounterGoogleCloudDialogflowCxV3ExportTestCasesResponse = 0; api.GoogleCloudDialogflowCxV3ExportTestCasesResponse buildGoogleCloudDialogflowCxV3ExportTestCasesResponse() { var o = api.GoogleCloudDialogflowCxV3ExportTestCasesResponse(); buildCounterGoogleCloudDialogflowCxV3ExportTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ExportTestCasesResponse < 3) { o.content = 'foo'; o.gcsUri = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ExportTestCasesResponse--; return o; } void checkGoogleCloudDialogflowCxV3ExportTestCasesResponse( api.GoogleCloudDialogflowCxV3ExportTestCasesResponse o) { buildCounterGoogleCloudDialogflowCxV3ExportTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ExportTestCasesResponse < 3) { unittest.expect( o.content!, unittest.equals('foo'), ); unittest.expect( o.gcsUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ExportTestCasesResponse--; } core.List<api.GoogleCloudDialogflowCxV3EventHandler> buildUnnamed122() { var o = <api.GoogleCloudDialogflowCxV3EventHandler>[]; o.add(buildGoogleCloudDialogflowCxV3EventHandler()); o.add(buildGoogleCloudDialogflowCxV3EventHandler()); return o; } void checkUnnamed122(core.List<api.GoogleCloudDialogflowCxV3EventHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3EventHandler( o[0] as api.GoogleCloudDialogflowCxV3EventHandler); checkGoogleCloudDialogflowCxV3EventHandler( o[1] as api.GoogleCloudDialogflowCxV3EventHandler); } core.List<api.GoogleCloudDialogflowCxV3TransitionRoute> buildUnnamed123() { var o = <api.GoogleCloudDialogflowCxV3TransitionRoute>[]; o.add(buildGoogleCloudDialogflowCxV3TransitionRoute()); o.add(buildGoogleCloudDialogflowCxV3TransitionRoute()); return o; } void checkUnnamed123( core.List<api.GoogleCloudDialogflowCxV3TransitionRoute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TransitionRoute( o[0] as api.GoogleCloudDialogflowCxV3TransitionRoute); checkGoogleCloudDialogflowCxV3TransitionRoute( o[1] as api.GoogleCloudDialogflowCxV3TransitionRoute); } core.int buildCounterGoogleCloudDialogflowCxV3Flow = 0; api.GoogleCloudDialogflowCxV3Flow buildGoogleCloudDialogflowCxV3Flow() { var o = api.GoogleCloudDialogflowCxV3Flow(); buildCounterGoogleCloudDialogflowCxV3Flow++; if (buildCounterGoogleCloudDialogflowCxV3Flow < 3) { o.description = 'foo'; o.displayName = 'foo'; o.eventHandlers = buildUnnamed122(); o.name = 'foo'; o.nluSettings = buildGoogleCloudDialogflowCxV3NluSettings(); o.transitionRoutes = buildUnnamed123(); } buildCounterGoogleCloudDialogflowCxV3Flow--; return o; } void checkGoogleCloudDialogflowCxV3Flow(api.GoogleCloudDialogflowCxV3Flow o) { buildCounterGoogleCloudDialogflowCxV3Flow++; if (buildCounterGoogleCloudDialogflowCxV3Flow < 3) { unittest.expect( o.description!, unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); checkUnnamed122(o.eventHandlers!); unittest.expect( o.name!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3NluSettings( o.nluSettings! as api.GoogleCloudDialogflowCxV3NluSettings); checkUnnamed123(o.transitionRoutes!); } buildCounterGoogleCloudDialogflowCxV3Flow--; } core.List<api.GoogleCloudDialogflowCxV3ValidationMessage> buildUnnamed124() { var o = <api.GoogleCloudDialogflowCxV3ValidationMessage>[]; o.add(buildGoogleCloudDialogflowCxV3ValidationMessage()); o.add(buildGoogleCloudDialogflowCxV3ValidationMessage()); return o; } void checkUnnamed124( core.List<api.GoogleCloudDialogflowCxV3ValidationMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ValidationMessage( o[0] as api.GoogleCloudDialogflowCxV3ValidationMessage); checkGoogleCloudDialogflowCxV3ValidationMessage( o[1] as api.GoogleCloudDialogflowCxV3ValidationMessage); } core.int buildCounterGoogleCloudDialogflowCxV3FlowValidationResult = 0; api.GoogleCloudDialogflowCxV3FlowValidationResult buildGoogleCloudDialogflowCxV3FlowValidationResult() { var o = api.GoogleCloudDialogflowCxV3FlowValidationResult(); buildCounterGoogleCloudDialogflowCxV3FlowValidationResult++; if (buildCounterGoogleCloudDialogflowCxV3FlowValidationResult < 3) { o.name = 'foo'; o.updateTime = 'foo'; o.validationMessages = buildUnnamed124(); } buildCounterGoogleCloudDialogflowCxV3FlowValidationResult--; return o; } void checkGoogleCloudDialogflowCxV3FlowValidationResult( api.GoogleCloudDialogflowCxV3FlowValidationResult o) { buildCounterGoogleCloudDialogflowCxV3FlowValidationResult++; if (buildCounterGoogleCloudDialogflowCxV3FlowValidationResult < 3) { unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect( o.updateTime!, unittest.equals('foo'), ); checkUnnamed124(o.validationMessages!); } buildCounterGoogleCloudDialogflowCxV3FlowValidationResult--; } core.List<api.GoogleCloudDialogflowCxV3FormParameter> buildUnnamed125() { var o = <api.GoogleCloudDialogflowCxV3FormParameter>[]; o.add(buildGoogleCloudDialogflowCxV3FormParameter()); o.add(buildGoogleCloudDialogflowCxV3FormParameter()); return o; } void checkUnnamed125(core.List<api.GoogleCloudDialogflowCxV3FormParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3FormParameter( o[0] as api.GoogleCloudDialogflowCxV3FormParameter); checkGoogleCloudDialogflowCxV3FormParameter( o[1] as api.GoogleCloudDialogflowCxV3FormParameter); } core.int buildCounterGoogleCloudDialogflowCxV3Form = 0; api.GoogleCloudDialogflowCxV3Form buildGoogleCloudDialogflowCxV3Form() { var o = api.GoogleCloudDialogflowCxV3Form(); buildCounterGoogleCloudDialogflowCxV3Form++; if (buildCounterGoogleCloudDialogflowCxV3Form < 3) { o.parameters = buildUnnamed125(); } buildCounterGoogleCloudDialogflowCxV3Form--; return o; } void checkGoogleCloudDialogflowCxV3Form(api.GoogleCloudDialogflowCxV3Form o) { buildCounterGoogleCloudDialogflowCxV3Form++; if (buildCounterGoogleCloudDialogflowCxV3Form < 3) { checkUnnamed125(o.parameters!); } buildCounterGoogleCloudDialogflowCxV3Form--; } core.int buildCounterGoogleCloudDialogflowCxV3FormParameter = 0; api.GoogleCloudDialogflowCxV3FormParameter buildGoogleCloudDialogflowCxV3FormParameter() { var o = api.GoogleCloudDialogflowCxV3FormParameter(); buildCounterGoogleCloudDialogflowCxV3FormParameter++; if (buildCounterGoogleCloudDialogflowCxV3FormParameter < 3) { o.defaultValue = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o.displayName = 'foo'; o.entityType = 'foo'; o.fillBehavior = buildGoogleCloudDialogflowCxV3FormParameterFillBehavior(); o.isList = true; o.redact = true; o.required = true; } buildCounterGoogleCloudDialogflowCxV3FormParameter--; return o; } void checkGoogleCloudDialogflowCxV3FormParameter( api.GoogleCloudDialogflowCxV3FormParameter o) { buildCounterGoogleCloudDialogflowCxV3FormParameter++; if (buildCounterGoogleCloudDialogflowCxV3FormParameter < 3) { var casted7 = (o.defaultValue!) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect( casted7['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted7['bool'], unittest.equals(true), ); unittest.expect( casted7['string'], unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect( o.entityType!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3FormParameterFillBehavior(o.fillBehavior! as api.GoogleCloudDialogflowCxV3FormParameterFillBehavior); unittest.expect(o.isList!, unittest.isTrue); unittest.expect(o.redact!, unittest.isTrue); unittest.expect(o.required!, unittest.isTrue); } buildCounterGoogleCloudDialogflowCxV3FormParameter--; } core.List<api.GoogleCloudDialogflowCxV3EventHandler> buildUnnamed126() { var o = <api.GoogleCloudDialogflowCxV3EventHandler>[]; o.add(buildGoogleCloudDialogflowCxV3EventHandler()); o.add(buildGoogleCloudDialogflowCxV3EventHandler()); return o; } void checkUnnamed126(core.List<api.GoogleCloudDialogflowCxV3EventHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3EventHandler( o[0] as api.GoogleCloudDialogflowCxV3EventHandler); checkGoogleCloudDialogflowCxV3EventHandler( o[1] as api.GoogleCloudDialogflowCxV3EventHandler); } core.int buildCounterGoogleCloudDialogflowCxV3FormParameterFillBehavior = 0; api.GoogleCloudDialogflowCxV3FormParameterFillBehavior buildGoogleCloudDialogflowCxV3FormParameterFillBehavior() { var o = api.GoogleCloudDialogflowCxV3FormParameterFillBehavior(); buildCounterGoogleCloudDialogflowCxV3FormParameterFillBehavior++; if (buildCounterGoogleCloudDialogflowCxV3FormParameterFillBehavior < 3) { o.initialPromptFulfillment = buildGoogleCloudDialogflowCxV3Fulfillment(); o.repromptEventHandlers = buildUnnamed126(); } buildCounterGoogleCloudDialogflowCxV3FormParameterFillBehavior--; return o; } void checkGoogleCloudDialogflowCxV3FormParameterFillBehavior( api.GoogleCloudDialogflowCxV3FormParameterFillBehavior o) { buildCounterGoogleCloudDialogflowCxV3FormParameterFillBehavior++; if (buildCounterGoogleCloudDialogflowCxV3FormParameterFillBehavior < 3) { checkGoogleCloudDialogflowCxV3Fulfillment(o.initialPromptFulfillment! as api.GoogleCloudDialogflowCxV3Fulfillment); checkUnnamed126(o.repromptEventHandlers!); } buildCounterGoogleCloudDialogflowCxV3FormParameterFillBehavior--; } core.int buildCounterGoogleCloudDialogflowCxV3FulfillIntentRequest = 0; api.GoogleCloudDialogflowCxV3FulfillIntentRequest buildGoogleCloudDialogflowCxV3FulfillIntentRequest() { var o = api.GoogleCloudDialogflowCxV3FulfillIntentRequest(); buildCounterGoogleCloudDialogflowCxV3FulfillIntentRequest++; if (buildCounterGoogleCloudDialogflowCxV3FulfillIntentRequest < 3) { o.match = buildGoogleCloudDialogflowCxV3Match(); o.matchIntentRequest = buildGoogleCloudDialogflowCxV3MatchIntentRequest(); o.outputAudioConfig = buildGoogleCloudDialogflowCxV3OutputAudioConfig(); } buildCounterGoogleCloudDialogflowCxV3FulfillIntentRequest--; return o; } void checkGoogleCloudDialogflowCxV3FulfillIntentRequest( api.GoogleCloudDialogflowCxV3FulfillIntentRequest o) { buildCounterGoogleCloudDialogflowCxV3FulfillIntentRequest++; if (buildCounterGoogleCloudDialogflowCxV3FulfillIntentRequest < 3) { checkGoogleCloudDialogflowCxV3Match( o.match! as api.GoogleCloudDialogflowCxV3Match); checkGoogleCloudDialogflowCxV3MatchIntentRequest(o.matchIntentRequest! as api.GoogleCloudDialogflowCxV3MatchIntentRequest); checkGoogleCloudDialogflowCxV3OutputAudioConfig( o.outputAudioConfig! as api.GoogleCloudDialogflowCxV3OutputAudioConfig); } buildCounterGoogleCloudDialogflowCxV3FulfillIntentRequest--; } core.int buildCounterGoogleCloudDialogflowCxV3FulfillIntentResponse = 0; api.GoogleCloudDialogflowCxV3FulfillIntentResponse buildGoogleCloudDialogflowCxV3FulfillIntentResponse() { var o = api.GoogleCloudDialogflowCxV3FulfillIntentResponse(); buildCounterGoogleCloudDialogflowCxV3FulfillIntentResponse++; if (buildCounterGoogleCloudDialogflowCxV3FulfillIntentResponse < 3) { o.outputAudio = 'foo'; o.outputAudioConfig = buildGoogleCloudDialogflowCxV3OutputAudioConfig(); o.queryResult = buildGoogleCloudDialogflowCxV3QueryResult(); o.responseId = 'foo'; } buildCounterGoogleCloudDialogflowCxV3FulfillIntentResponse--; return o; } void checkGoogleCloudDialogflowCxV3FulfillIntentResponse( api.GoogleCloudDialogflowCxV3FulfillIntentResponse o) { buildCounterGoogleCloudDialogflowCxV3FulfillIntentResponse++; if (buildCounterGoogleCloudDialogflowCxV3FulfillIntentResponse < 3) { unittest.expect( o.outputAudio!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3OutputAudioConfig( o.outputAudioConfig! as api.GoogleCloudDialogflowCxV3OutputAudioConfig); checkGoogleCloudDialogflowCxV3QueryResult( o.queryResult! as api.GoogleCloudDialogflowCxV3QueryResult); unittest.expect( o.responseId!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3FulfillIntentResponse--; } core.List<api.GoogleCloudDialogflowCxV3FulfillmentConditionalCases> buildUnnamed127() { var o = <api.GoogleCloudDialogflowCxV3FulfillmentConditionalCases>[]; o.add(buildGoogleCloudDialogflowCxV3FulfillmentConditionalCases()); o.add(buildGoogleCloudDialogflowCxV3FulfillmentConditionalCases()); return o; } void checkUnnamed127( core.List<api.GoogleCloudDialogflowCxV3FulfillmentConditionalCases> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3FulfillmentConditionalCases( o[0] as api.GoogleCloudDialogflowCxV3FulfillmentConditionalCases); checkGoogleCloudDialogflowCxV3FulfillmentConditionalCases( o[1] as api.GoogleCloudDialogflowCxV3FulfillmentConditionalCases); } core.List<api.GoogleCloudDialogflowCxV3ResponseMessage> buildUnnamed128() { var o = <api.GoogleCloudDialogflowCxV3ResponseMessage>[]; o.add(buildGoogleCloudDialogflowCxV3ResponseMessage()); o.add(buildGoogleCloudDialogflowCxV3ResponseMessage()); return o; } void checkUnnamed128( core.List<api.GoogleCloudDialogflowCxV3ResponseMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ResponseMessage( o[0] as api.GoogleCloudDialogflowCxV3ResponseMessage); checkGoogleCloudDialogflowCxV3ResponseMessage( o[1] as api.GoogleCloudDialogflowCxV3ResponseMessage); } core.List<api.GoogleCloudDialogflowCxV3FulfillmentSetParameterAction> buildUnnamed129() { var o = <api.GoogleCloudDialogflowCxV3FulfillmentSetParameterAction>[]; o.add(buildGoogleCloudDialogflowCxV3FulfillmentSetParameterAction()); o.add(buildGoogleCloudDialogflowCxV3FulfillmentSetParameterAction()); return o; } void checkUnnamed129( core.List<api.GoogleCloudDialogflowCxV3FulfillmentSetParameterAction> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3FulfillmentSetParameterAction( o[0] as api.GoogleCloudDialogflowCxV3FulfillmentSetParameterAction); checkGoogleCloudDialogflowCxV3FulfillmentSetParameterAction( o[1] as api.GoogleCloudDialogflowCxV3FulfillmentSetParameterAction); } core.int buildCounterGoogleCloudDialogflowCxV3Fulfillment = 0; api.GoogleCloudDialogflowCxV3Fulfillment buildGoogleCloudDialogflowCxV3Fulfillment() { var o = api.GoogleCloudDialogflowCxV3Fulfillment(); buildCounterGoogleCloudDialogflowCxV3Fulfillment++; if (buildCounterGoogleCloudDialogflowCxV3Fulfillment < 3) { o.conditionalCases = buildUnnamed127(); o.messages = buildUnnamed128(); o.setParameterActions = buildUnnamed129(); o.tag = 'foo'; o.webhook = 'foo'; } buildCounterGoogleCloudDialogflowCxV3Fulfillment--; return o; } void checkGoogleCloudDialogflowCxV3Fulfillment( api.GoogleCloudDialogflowCxV3Fulfillment o) { buildCounterGoogleCloudDialogflowCxV3Fulfillment++; if (buildCounterGoogleCloudDialogflowCxV3Fulfillment < 3) { checkUnnamed127(o.conditionalCases!); checkUnnamed128(o.messages!); checkUnnamed129(o.setParameterActions!); unittest.expect( o.tag!, unittest.equals('foo'), ); unittest.expect( o.webhook!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3Fulfillment--; } core.List<api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase> buildUnnamed130() { var o = <api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase>[]; o.add(buildGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase()); o.add(buildGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase()); return o; } void checkUnnamed130( core.List<api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase( o[0] as api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase); checkGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase( o[1] as api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase); } core.int buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCases = 0; api.GoogleCloudDialogflowCxV3FulfillmentConditionalCases buildGoogleCloudDialogflowCxV3FulfillmentConditionalCases() { var o = api.GoogleCloudDialogflowCxV3FulfillmentConditionalCases(); buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCases++; if (buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCases < 3) { o.cases = buildUnnamed130(); } buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCases--; return o; } void checkGoogleCloudDialogflowCxV3FulfillmentConditionalCases( api.GoogleCloudDialogflowCxV3FulfillmentConditionalCases o) { buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCases++; if (buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCases < 3) { checkUnnamed130(o.cases!); } buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCases--; } core.List< api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent> buildUnnamed131() { var o = < api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent>[]; o.add( buildGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent()); o.add( buildGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent()); return o; } void checkUnnamed131( core.List< api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent(o[0] as api .GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent); checkGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent(o[1] as api .GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent); } core.int buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase = 0; api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase buildGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase() { var o = api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase(); buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase++; if (buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase < 3) { o.caseContent = buildUnnamed131(); o.condition = 'foo'; } buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase--; return o; } void checkGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase( api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase o) { buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase++; if (buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase < 3) { checkUnnamed131(o.caseContent!); unittest.expect( o.condition!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase--; } core.int buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent = 0; api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent buildGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent() { var o = api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent(); buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent++; if (buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent < 3) { o.additionalCases = buildGoogleCloudDialogflowCxV3FulfillmentConditionalCases(); o.message = buildGoogleCloudDialogflowCxV3ResponseMessage(); } buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent--; return o; } void checkGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent( api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent o) { buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent++; if (buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent < 3) { checkGoogleCloudDialogflowCxV3FulfillmentConditionalCases(o.additionalCases! as api.GoogleCloudDialogflowCxV3FulfillmentConditionalCases); checkGoogleCloudDialogflowCxV3ResponseMessage( o.message! as api.GoogleCloudDialogflowCxV3ResponseMessage); } buildCounterGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent--; } core.int buildCounterGoogleCloudDialogflowCxV3FulfillmentSetParameterAction = 0; api.GoogleCloudDialogflowCxV3FulfillmentSetParameterAction buildGoogleCloudDialogflowCxV3FulfillmentSetParameterAction() { var o = api.GoogleCloudDialogflowCxV3FulfillmentSetParameterAction(); buildCounterGoogleCloudDialogflowCxV3FulfillmentSetParameterAction++; if (buildCounterGoogleCloudDialogflowCxV3FulfillmentSetParameterAction < 3) { o.parameter = 'foo'; o.value = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; } buildCounterGoogleCloudDialogflowCxV3FulfillmentSetParameterAction--; return o; } void checkGoogleCloudDialogflowCxV3FulfillmentSetParameterAction( api.GoogleCloudDialogflowCxV3FulfillmentSetParameterAction o) { buildCounterGoogleCloudDialogflowCxV3FulfillmentSetParameterAction++; if (buildCounterGoogleCloudDialogflowCxV3FulfillmentSetParameterAction < 3) { unittest.expect( o.parameter!, unittest.equals('foo'), ); var casted8 = (o.value!) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect( casted8['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted8['bool'], unittest.equals(true), ); unittest.expect( casted8['string'], unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3FulfillmentSetParameterAction--; } core.int buildCounterGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata = 0; api.GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata buildGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata() { var o = api.GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata(); buildCounterGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata < 3) { o.state = 'foo'; } buildCounterGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata--; return o; } void checkGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata( api.GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata o) { buildCounterGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata < 3) { unittest.expect( o.state!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata = 0; api.GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata buildGoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata() { var o = api.GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata(); buildCounterGoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata--; return o; } void checkGoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata( api.GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata o) { buildCounterGoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata < 3) { checkGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata( o.genericMetadata! as api.GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata--; } core.List<api.GoogleRpcStatus> buildUnnamed132() { var o = <api.GoogleRpcStatus>[]; o.add(buildGoogleRpcStatus()); o.add(buildGoogleRpcStatus()); return o; } void checkUnnamed132(core.List<api.GoogleRpcStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleRpcStatus(o[0] as api.GoogleRpcStatus); checkGoogleRpcStatus(o[1] as api.GoogleRpcStatus); } core.int buildCounterGoogleCloudDialogflowCxV3ImportDocumentsResponse = 0; api.GoogleCloudDialogflowCxV3ImportDocumentsResponse buildGoogleCloudDialogflowCxV3ImportDocumentsResponse() { var o = api.GoogleCloudDialogflowCxV3ImportDocumentsResponse(); buildCounterGoogleCloudDialogflowCxV3ImportDocumentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ImportDocumentsResponse < 3) { o.warnings = buildUnnamed132(); } buildCounterGoogleCloudDialogflowCxV3ImportDocumentsResponse--; return o; } void checkGoogleCloudDialogflowCxV3ImportDocumentsResponse( api.GoogleCloudDialogflowCxV3ImportDocumentsResponse o) { buildCounterGoogleCloudDialogflowCxV3ImportDocumentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ImportDocumentsResponse < 3) { checkUnnamed132(o.warnings!); } buildCounterGoogleCloudDialogflowCxV3ImportDocumentsResponse--; } core.List<api.GoogleCloudDialogflowCxV3TestCaseError> buildUnnamed133() { var o = <api.GoogleCloudDialogflowCxV3TestCaseError>[]; o.add(buildGoogleCloudDialogflowCxV3TestCaseError()); o.add(buildGoogleCloudDialogflowCxV3TestCaseError()); return o; } void checkUnnamed133(core.List<api.GoogleCloudDialogflowCxV3TestCaseError> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TestCaseError( o[0] as api.GoogleCloudDialogflowCxV3TestCaseError); checkGoogleCloudDialogflowCxV3TestCaseError( o[1] as api.GoogleCloudDialogflowCxV3TestCaseError); } core.int buildCounterGoogleCloudDialogflowCxV3ImportTestCasesMetadata = 0; api.GoogleCloudDialogflowCxV3ImportTestCasesMetadata buildGoogleCloudDialogflowCxV3ImportTestCasesMetadata() { var o = api.GoogleCloudDialogflowCxV3ImportTestCasesMetadata(); buildCounterGoogleCloudDialogflowCxV3ImportTestCasesMetadata++; if (buildCounterGoogleCloudDialogflowCxV3ImportTestCasesMetadata < 3) { o.errors = buildUnnamed133(); } buildCounterGoogleCloudDialogflowCxV3ImportTestCasesMetadata--; return o; } void checkGoogleCloudDialogflowCxV3ImportTestCasesMetadata( api.GoogleCloudDialogflowCxV3ImportTestCasesMetadata o) { buildCounterGoogleCloudDialogflowCxV3ImportTestCasesMetadata++; if (buildCounterGoogleCloudDialogflowCxV3ImportTestCasesMetadata < 3) { checkUnnamed133(o.errors!); } buildCounterGoogleCloudDialogflowCxV3ImportTestCasesMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3ImportTestCasesRequest = 0; api.GoogleCloudDialogflowCxV3ImportTestCasesRequest buildGoogleCloudDialogflowCxV3ImportTestCasesRequest() { var o = api.GoogleCloudDialogflowCxV3ImportTestCasesRequest(); buildCounterGoogleCloudDialogflowCxV3ImportTestCasesRequest++; if (buildCounterGoogleCloudDialogflowCxV3ImportTestCasesRequest < 3) { o.content = 'foo'; o.gcsUri = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ImportTestCasesRequest--; return o; } void checkGoogleCloudDialogflowCxV3ImportTestCasesRequest( api.GoogleCloudDialogflowCxV3ImportTestCasesRequest o) { buildCounterGoogleCloudDialogflowCxV3ImportTestCasesRequest++; if (buildCounterGoogleCloudDialogflowCxV3ImportTestCasesRequest < 3) { unittest.expect( o.content!, unittest.equals('foo'), ); unittest.expect( o.gcsUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ImportTestCasesRequest--; } core.List<core.String> buildUnnamed134() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed134(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3ImportTestCasesResponse = 0; api.GoogleCloudDialogflowCxV3ImportTestCasesResponse buildGoogleCloudDialogflowCxV3ImportTestCasesResponse() { var o = api.GoogleCloudDialogflowCxV3ImportTestCasesResponse(); buildCounterGoogleCloudDialogflowCxV3ImportTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ImportTestCasesResponse < 3) { o.names = buildUnnamed134(); } buildCounterGoogleCloudDialogflowCxV3ImportTestCasesResponse--; return o; } void checkGoogleCloudDialogflowCxV3ImportTestCasesResponse( api.GoogleCloudDialogflowCxV3ImportTestCasesResponse o) { buildCounterGoogleCloudDialogflowCxV3ImportTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ImportTestCasesResponse < 3) { checkUnnamed134(o.names!); } buildCounterGoogleCloudDialogflowCxV3ImportTestCasesResponse--; } core.List<core.String> buildUnnamed135() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed135(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3InputAudioConfig = 0; api.GoogleCloudDialogflowCxV3InputAudioConfig buildGoogleCloudDialogflowCxV3InputAudioConfig() { var o = api.GoogleCloudDialogflowCxV3InputAudioConfig(); buildCounterGoogleCloudDialogflowCxV3InputAudioConfig++; if (buildCounterGoogleCloudDialogflowCxV3InputAudioConfig < 3) { o.audioEncoding = 'foo'; o.enableWordInfo = true; o.model = 'foo'; o.modelVariant = 'foo'; o.phraseHints = buildUnnamed135(); o.sampleRateHertz = 42; o.singleUtterance = true; } buildCounterGoogleCloudDialogflowCxV3InputAudioConfig--; return o; } void checkGoogleCloudDialogflowCxV3InputAudioConfig( api.GoogleCloudDialogflowCxV3InputAudioConfig o) { buildCounterGoogleCloudDialogflowCxV3InputAudioConfig++; if (buildCounterGoogleCloudDialogflowCxV3InputAudioConfig < 3) { unittest.expect( o.audioEncoding!, unittest.equals('foo'), ); unittest.expect(o.enableWordInfo!, unittest.isTrue); unittest.expect( o.model!, unittest.equals('foo'), ); unittest.expect( o.modelVariant!, unittest.equals('foo'), ); checkUnnamed135(o.phraseHints!); unittest.expect( o.sampleRateHertz!, unittest.equals(42), ); unittest.expect(o.singleUtterance!, unittest.isTrue); } buildCounterGoogleCloudDialogflowCxV3InputAudioConfig--; } core.Map<core.String, core.String> buildUnnamed136() { var o = <core.String, core.String>{}; o['x'] = 'foo'; o['y'] = 'foo'; return o; } void checkUnnamed136(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o['x']!, unittest.equals('foo'), ); unittest.expect( o['y']!, unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowCxV3IntentParameter> buildUnnamed137() { var o = <api.GoogleCloudDialogflowCxV3IntentParameter>[]; o.add(buildGoogleCloudDialogflowCxV3IntentParameter()); o.add(buildGoogleCloudDialogflowCxV3IntentParameter()); return o; } void checkUnnamed137( core.List<api.GoogleCloudDialogflowCxV3IntentParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3IntentParameter( o[0] as api.GoogleCloudDialogflowCxV3IntentParameter); checkGoogleCloudDialogflowCxV3IntentParameter( o[1] as api.GoogleCloudDialogflowCxV3IntentParameter); } core.List<api.GoogleCloudDialogflowCxV3IntentTrainingPhrase> buildUnnamed138() { var o = <api.GoogleCloudDialogflowCxV3IntentTrainingPhrase>[]; o.add(buildGoogleCloudDialogflowCxV3IntentTrainingPhrase()); o.add(buildGoogleCloudDialogflowCxV3IntentTrainingPhrase()); return o; } void checkUnnamed138( core.List<api.GoogleCloudDialogflowCxV3IntentTrainingPhrase> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3IntentTrainingPhrase( o[0] as api.GoogleCloudDialogflowCxV3IntentTrainingPhrase); checkGoogleCloudDialogflowCxV3IntentTrainingPhrase( o[1] as api.GoogleCloudDialogflowCxV3IntentTrainingPhrase); } core.int buildCounterGoogleCloudDialogflowCxV3Intent = 0; api.GoogleCloudDialogflowCxV3Intent buildGoogleCloudDialogflowCxV3Intent() { var o = api.GoogleCloudDialogflowCxV3Intent(); buildCounterGoogleCloudDialogflowCxV3Intent++; if (buildCounterGoogleCloudDialogflowCxV3Intent < 3) { o.description = 'foo'; o.displayName = 'foo'; o.isFallback = true; o.labels = buildUnnamed136(); o.name = 'foo'; o.parameters = buildUnnamed137(); o.priority = 42; o.trainingPhrases = buildUnnamed138(); } buildCounterGoogleCloudDialogflowCxV3Intent--; return o; } void checkGoogleCloudDialogflowCxV3Intent( api.GoogleCloudDialogflowCxV3Intent o) { buildCounterGoogleCloudDialogflowCxV3Intent++; if (buildCounterGoogleCloudDialogflowCxV3Intent < 3) { unittest.expect( o.description!, unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect(o.isFallback!, unittest.isTrue); checkUnnamed136(o.labels!); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed137(o.parameters!); unittest.expect( o.priority!, unittest.equals(42), ); checkUnnamed138(o.trainingPhrases!); } buildCounterGoogleCloudDialogflowCxV3Intent--; } core.List<api.GoogleCloudDialogflowCxV3IntentCoverageIntent> buildUnnamed139() { var o = <api.GoogleCloudDialogflowCxV3IntentCoverageIntent>[]; o.add(buildGoogleCloudDialogflowCxV3IntentCoverageIntent()); o.add(buildGoogleCloudDialogflowCxV3IntentCoverageIntent()); return o; } void checkUnnamed139( core.List<api.GoogleCloudDialogflowCxV3IntentCoverageIntent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3IntentCoverageIntent( o[0] as api.GoogleCloudDialogflowCxV3IntentCoverageIntent); checkGoogleCloudDialogflowCxV3IntentCoverageIntent( o[1] as api.GoogleCloudDialogflowCxV3IntentCoverageIntent); } core.int buildCounterGoogleCloudDialogflowCxV3IntentCoverage = 0; api.GoogleCloudDialogflowCxV3IntentCoverage buildGoogleCloudDialogflowCxV3IntentCoverage() { var o = api.GoogleCloudDialogflowCxV3IntentCoverage(); buildCounterGoogleCloudDialogflowCxV3IntentCoverage++; if (buildCounterGoogleCloudDialogflowCxV3IntentCoverage < 3) { o.coverageScore = 42.0; o.intents = buildUnnamed139(); } buildCounterGoogleCloudDialogflowCxV3IntentCoverage--; return o; } void checkGoogleCloudDialogflowCxV3IntentCoverage( api.GoogleCloudDialogflowCxV3IntentCoverage o) { buildCounterGoogleCloudDialogflowCxV3IntentCoverage++; if (buildCounterGoogleCloudDialogflowCxV3IntentCoverage < 3) { unittest.expect( o.coverageScore!, unittest.equals(42.0), ); checkUnnamed139(o.intents!); } buildCounterGoogleCloudDialogflowCxV3IntentCoverage--; } core.int buildCounterGoogleCloudDialogflowCxV3IntentCoverageIntent = 0; api.GoogleCloudDialogflowCxV3IntentCoverageIntent buildGoogleCloudDialogflowCxV3IntentCoverageIntent() { var o = api.GoogleCloudDialogflowCxV3IntentCoverageIntent(); buildCounterGoogleCloudDialogflowCxV3IntentCoverageIntent++; if (buildCounterGoogleCloudDialogflowCxV3IntentCoverageIntent < 3) { o.covered = true; o.intent = 'foo'; } buildCounterGoogleCloudDialogflowCxV3IntentCoverageIntent--; return o; } void checkGoogleCloudDialogflowCxV3IntentCoverageIntent( api.GoogleCloudDialogflowCxV3IntentCoverageIntent o) { buildCounterGoogleCloudDialogflowCxV3IntentCoverageIntent++; if (buildCounterGoogleCloudDialogflowCxV3IntentCoverageIntent < 3) { unittest.expect(o.covered!, unittest.isTrue); unittest.expect( o.intent!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3IntentCoverageIntent--; } core.int buildCounterGoogleCloudDialogflowCxV3IntentInput = 0; api.GoogleCloudDialogflowCxV3IntentInput buildGoogleCloudDialogflowCxV3IntentInput() { var o = api.GoogleCloudDialogflowCxV3IntentInput(); buildCounterGoogleCloudDialogflowCxV3IntentInput++; if (buildCounterGoogleCloudDialogflowCxV3IntentInput < 3) { o.intent = 'foo'; } buildCounterGoogleCloudDialogflowCxV3IntentInput--; return o; } void checkGoogleCloudDialogflowCxV3IntentInput( api.GoogleCloudDialogflowCxV3IntentInput o) { buildCounterGoogleCloudDialogflowCxV3IntentInput++; if (buildCounterGoogleCloudDialogflowCxV3IntentInput < 3) { unittest.expect( o.intent!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3IntentInput--; } core.int buildCounterGoogleCloudDialogflowCxV3IntentParameter = 0; api.GoogleCloudDialogflowCxV3IntentParameter buildGoogleCloudDialogflowCxV3IntentParameter() { var o = api.GoogleCloudDialogflowCxV3IntentParameter(); buildCounterGoogleCloudDialogflowCxV3IntentParameter++; if (buildCounterGoogleCloudDialogflowCxV3IntentParameter < 3) { o.entityType = 'foo'; o.id = 'foo'; o.isList = true; o.redact = true; } buildCounterGoogleCloudDialogflowCxV3IntentParameter--; return o; } void checkGoogleCloudDialogflowCxV3IntentParameter( api.GoogleCloudDialogflowCxV3IntentParameter o) { buildCounterGoogleCloudDialogflowCxV3IntentParameter++; if (buildCounterGoogleCloudDialogflowCxV3IntentParameter < 3) { unittest.expect( o.entityType!, unittest.equals('foo'), ); unittest.expect( o.id!, unittest.equals('foo'), ); unittest.expect(o.isList!, unittest.isTrue); unittest.expect(o.redact!, unittest.isTrue); } buildCounterGoogleCloudDialogflowCxV3IntentParameter--; } core.List<api.GoogleCloudDialogflowCxV3IntentTrainingPhrasePart> buildUnnamed140() { var o = <api.GoogleCloudDialogflowCxV3IntentTrainingPhrasePart>[]; o.add(buildGoogleCloudDialogflowCxV3IntentTrainingPhrasePart()); o.add(buildGoogleCloudDialogflowCxV3IntentTrainingPhrasePart()); return o; } void checkUnnamed140( core.List<api.GoogleCloudDialogflowCxV3IntentTrainingPhrasePart> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3IntentTrainingPhrasePart( o[0] as api.GoogleCloudDialogflowCxV3IntentTrainingPhrasePart); checkGoogleCloudDialogflowCxV3IntentTrainingPhrasePart( o[1] as api.GoogleCloudDialogflowCxV3IntentTrainingPhrasePart); } core.int buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrase = 0; api.GoogleCloudDialogflowCxV3IntentTrainingPhrase buildGoogleCloudDialogflowCxV3IntentTrainingPhrase() { var o = api.GoogleCloudDialogflowCxV3IntentTrainingPhrase(); buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrase++; if (buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrase < 3) { o.id = 'foo'; o.parts = buildUnnamed140(); o.repeatCount = 42; } buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrase--; return o; } void checkGoogleCloudDialogflowCxV3IntentTrainingPhrase( api.GoogleCloudDialogflowCxV3IntentTrainingPhrase o) { buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrase++; if (buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrase < 3) { unittest.expect( o.id!, unittest.equals('foo'), ); checkUnnamed140(o.parts!); unittest.expect( o.repeatCount!, unittest.equals(42), ); } buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrase--; } core.int buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrasePart = 0; api.GoogleCloudDialogflowCxV3IntentTrainingPhrasePart buildGoogleCloudDialogflowCxV3IntentTrainingPhrasePart() { var o = api.GoogleCloudDialogflowCxV3IntentTrainingPhrasePart(); buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrasePart++; if (buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrasePart < 3) { o.parameterId = 'foo'; o.text = 'foo'; } buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrasePart--; return o; } void checkGoogleCloudDialogflowCxV3IntentTrainingPhrasePart( api.GoogleCloudDialogflowCxV3IntentTrainingPhrasePart o) { buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrasePart++; if (buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrasePart < 3) { unittest.expect( o.parameterId!, unittest.equals('foo'), ); unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3IntentTrainingPhrasePart--; } core.List<api.GoogleCloudDialogflowCxV3Agent> buildUnnamed141() { var o = <api.GoogleCloudDialogflowCxV3Agent>[]; o.add(buildGoogleCloudDialogflowCxV3Agent()); o.add(buildGoogleCloudDialogflowCxV3Agent()); return o; } void checkUnnamed141(core.List<api.GoogleCloudDialogflowCxV3Agent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Agent( o[0] as api.GoogleCloudDialogflowCxV3Agent); checkGoogleCloudDialogflowCxV3Agent( o[1] as api.GoogleCloudDialogflowCxV3Agent); } core.int buildCounterGoogleCloudDialogflowCxV3ListAgentsResponse = 0; api.GoogleCloudDialogflowCxV3ListAgentsResponse buildGoogleCloudDialogflowCxV3ListAgentsResponse() { var o = api.GoogleCloudDialogflowCxV3ListAgentsResponse(); buildCounterGoogleCloudDialogflowCxV3ListAgentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListAgentsResponse < 3) { o.agents = buildUnnamed141(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListAgentsResponse--; return o; } void checkGoogleCloudDialogflowCxV3ListAgentsResponse( api.GoogleCloudDialogflowCxV3ListAgentsResponse o) { buildCounterGoogleCloudDialogflowCxV3ListAgentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListAgentsResponse < 3) { checkUnnamed141(o.agents!); unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ListAgentsResponse--; } core.List<api.GoogleCloudDialogflowCxV3EntityType> buildUnnamed142() { var o = <api.GoogleCloudDialogflowCxV3EntityType>[]; o.add(buildGoogleCloudDialogflowCxV3EntityType()); o.add(buildGoogleCloudDialogflowCxV3EntityType()); return o; } void checkUnnamed142(core.List<api.GoogleCloudDialogflowCxV3EntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3EntityType( o[0] as api.GoogleCloudDialogflowCxV3EntityType); checkGoogleCloudDialogflowCxV3EntityType( o[1] as api.GoogleCloudDialogflowCxV3EntityType); } core.int buildCounterGoogleCloudDialogflowCxV3ListEntityTypesResponse = 0; api.GoogleCloudDialogflowCxV3ListEntityTypesResponse buildGoogleCloudDialogflowCxV3ListEntityTypesResponse() { var o = api.GoogleCloudDialogflowCxV3ListEntityTypesResponse(); buildCounterGoogleCloudDialogflowCxV3ListEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListEntityTypesResponse < 3) { o.entityTypes = buildUnnamed142(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListEntityTypesResponse--; return o; } void checkGoogleCloudDialogflowCxV3ListEntityTypesResponse( api.GoogleCloudDialogflowCxV3ListEntityTypesResponse o) { buildCounterGoogleCloudDialogflowCxV3ListEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListEntityTypesResponse < 3) { checkUnnamed142(o.entityTypes!); unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ListEntityTypesResponse--; } core.List<api.GoogleCloudDialogflowCxV3Environment> buildUnnamed143() { var o = <api.GoogleCloudDialogflowCxV3Environment>[]; o.add(buildGoogleCloudDialogflowCxV3Environment()); o.add(buildGoogleCloudDialogflowCxV3Environment()); return o; } void checkUnnamed143(core.List<api.GoogleCloudDialogflowCxV3Environment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Environment( o[0] as api.GoogleCloudDialogflowCxV3Environment); checkGoogleCloudDialogflowCxV3Environment( o[1] as api.GoogleCloudDialogflowCxV3Environment); } core.int buildCounterGoogleCloudDialogflowCxV3ListEnvironmentsResponse = 0; api.GoogleCloudDialogflowCxV3ListEnvironmentsResponse buildGoogleCloudDialogflowCxV3ListEnvironmentsResponse() { var o = api.GoogleCloudDialogflowCxV3ListEnvironmentsResponse(); buildCounterGoogleCloudDialogflowCxV3ListEnvironmentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListEnvironmentsResponse < 3) { o.environments = buildUnnamed143(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListEnvironmentsResponse--; return o; } void checkGoogleCloudDialogflowCxV3ListEnvironmentsResponse( api.GoogleCloudDialogflowCxV3ListEnvironmentsResponse o) { buildCounterGoogleCloudDialogflowCxV3ListEnvironmentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListEnvironmentsResponse < 3) { checkUnnamed143(o.environments!); unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ListEnvironmentsResponse--; } core.List<api.GoogleCloudDialogflowCxV3Experiment> buildUnnamed144() { var o = <api.GoogleCloudDialogflowCxV3Experiment>[]; o.add(buildGoogleCloudDialogflowCxV3Experiment()); o.add(buildGoogleCloudDialogflowCxV3Experiment()); return o; } void checkUnnamed144(core.List<api.GoogleCloudDialogflowCxV3Experiment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Experiment( o[0] as api.GoogleCloudDialogflowCxV3Experiment); checkGoogleCloudDialogflowCxV3Experiment( o[1] as api.GoogleCloudDialogflowCxV3Experiment); } core.int buildCounterGoogleCloudDialogflowCxV3ListExperimentsResponse = 0; api.GoogleCloudDialogflowCxV3ListExperimentsResponse buildGoogleCloudDialogflowCxV3ListExperimentsResponse() { var o = api.GoogleCloudDialogflowCxV3ListExperimentsResponse(); buildCounterGoogleCloudDialogflowCxV3ListExperimentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListExperimentsResponse < 3) { o.experiments = buildUnnamed144(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListExperimentsResponse--; return o; } void checkGoogleCloudDialogflowCxV3ListExperimentsResponse( api.GoogleCloudDialogflowCxV3ListExperimentsResponse o) { buildCounterGoogleCloudDialogflowCxV3ListExperimentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListExperimentsResponse < 3) { checkUnnamed144(o.experiments!); unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ListExperimentsResponse--; } core.List<api.GoogleCloudDialogflowCxV3Flow> buildUnnamed145() { var o = <api.GoogleCloudDialogflowCxV3Flow>[]; o.add(buildGoogleCloudDialogflowCxV3Flow()); o.add(buildGoogleCloudDialogflowCxV3Flow()); return o; } void checkUnnamed145(core.List<api.GoogleCloudDialogflowCxV3Flow> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Flow(o[0] as api.GoogleCloudDialogflowCxV3Flow); checkGoogleCloudDialogflowCxV3Flow(o[1] as api.GoogleCloudDialogflowCxV3Flow); } core.int buildCounterGoogleCloudDialogflowCxV3ListFlowsResponse = 0; api.GoogleCloudDialogflowCxV3ListFlowsResponse buildGoogleCloudDialogflowCxV3ListFlowsResponse() { var o = api.GoogleCloudDialogflowCxV3ListFlowsResponse(); buildCounterGoogleCloudDialogflowCxV3ListFlowsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListFlowsResponse < 3) { o.flows = buildUnnamed145(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListFlowsResponse--; return o; } void checkGoogleCloudDialogflowCxV3ListFlowsResponse( api.GoogleCloudDialogflowCxV3ListFlowsResponse o) { buildCounterGoogleCloudDialogflowCxV3ListFlowsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListFlowsResponse < 3) { checkUnnamed145(o.flows!); unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ListFlowsResponse--; } core.List<api.GoogleCloudDialogflowCxV3Intent> buildUnnamed146() { var o = <api.GoogleCloudDialogflowCxV3Intent>[]; o.add(buildGoogleCloudDialogflowCxV3Intent()); o.add(buildGoogleCloudDialogflowCxV3Intent()); return o; } void checkUnnamed146(core.List<api.GoogleCloudDialogflowCxV3Intent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Intent( o[0] as api.GoogleCloudDialogflowCxV3Intent); checkGoogleCloudDialogflowCxV3Intent( o[1] as api.GoogleCloudDialogflowCxV3Intent); } core.int buildCounterGoogleCloudDialogflowCxV3ListIntentsResponse = 0; api.GoogleCloudDialogflowCxV3ListIntentsResponse buildGoogleCloudDialogflowCxV3ListIntentsResponse() { var o = api.GoogleCloudDialogflowCxV3ListIntentsResponse(); buildCounterGoogleCloudDialogflowCxV3ListIntentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListIntentsResponse < 3) { o.intents = buildUnnamed146(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ListIntentsResponse--; return o; } void checkGoogleCloudDialogflowCxV3ListIntentsResponse( api.GoogleCloudDialogflowCxV3ListIntentsResponse o) { buildCounterGoogleCloudDialogflowCxV3ListIntentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListIntentsResponse < 3) { checkUnnamed146(o.intents!); unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ListIntentsResponse--; } core.List<api.GoogleCloudDialogflowCxV3Page> buildUnnamed147() { var o = <api.GoogleCloudDialogflowCxV3Page>[]; o.add(buildGoogleCloudDialogflowCxV3Page()); o.add(buildGoogleCloudDialogflowCxV3Page()); return o; } void checkUnnamed147(core.List<api.GoogleCloudDialogflowCxV3Page> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Page(o[0] as api.GoogleCloudDialogflowCxV3Page); checkGoogleCloudDialogflowCxV3Page(o[1] as api.GoogleCloudDialogflowCxV3Page); } core.int buildCounterGoogleCloudDialogflowCxV3ListPagesResponse = 0; api.GoogleCloudDialogflowCxV3ListPagesResponse buildGoogleCloudDialogflowCxV3ListPagesResponse() { var o = api.GoogleCloudDialogflowCxV3ListPagesResponse(); buildCounterGoogleCloudDialogflowCxV3ListPagesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListPagesResponse < 3) { o.nextPageToken = 'foo'; o.pages = buildUnnamed147(); } buildCounterGoogleCloudDialogflowCxV3ListPagesResponse--; return o; } void checkGoogleCloudDialogflowCxV3ListPagesResponse( api.GoogleCloudDialogflowCxV3ListPagesResponse o) { buildCounterGoogleCloudDialogflowCxV3ListPagesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListPagesResponse < 3) { unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); checkUnnamed147(o.pages!); } buildCounterGoogleCloudDialogflowCxV3ListPagesResponse--; } core.List<api.GoogleCloudDialogflowCxV3SecuritySettings> buildUnnamed148() { var o = <api.GoogleCloudDialogflowCxV3SecuritySettings>[]; o.add(buildGoogleCloudDialogflowCxV3SecuritySettings()); o.add(buildGoogleCloudDialogflowCxV3SecuritySettings()); return o; } void checkUnnamed148( core.List<api.GoogleCloudDialogflowCxV3SecuritySettings> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3SecuritySettings( o[0] as api.GoogleCloudDialogflowCxV3SecuritySettings); checkGoogleCloudDialogflowCxV3SecuritySettings( o[1] as api.GoogleCloudDialogflowCxV3SecuritySettings); } core.int buildCounterGoogleCloudDialogflowCxV3ListSecuritySettingsResponse = 0; api.GoogleCloudDialogflowCxV3ListSecuritySettingsResponse buildGoogleCloudDialogflowCxV3ListSecuritySettingsResponse() { var o = api.GoogleCloudDialogflowCxV3ListSecuritySettingsResponse(); buildCounterGoogleCloudDialogflowCxV3ListSecuritySettingsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListSecuritySettingsResponse < 3) { o.nextPageToken = 'foo'; o.securitySettings = buildUnnamed148(); } buildCounterGoogleCloudDialogflowCxV3ListSecuritySettingsResponse--; return o; } void checkGoogleCloudDialogflowCxV3ListSecuritySettingsResponse( api.GoogleCloudDialogflowCxV3ListSecuritySettingsResponse o) { buildCounterGoogleCloudDialogflowCxV3ListSecuritySettingsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListSecuritySettingsResponse < 3) { unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); checkUnnamed148(o.securitySettings!); } buildCounterGoogleCloudDialogflowCxV3ListSecuritySettingsResponse--; } core.List<api.GoogleCloudDialogflowCxV3SessionEntityType> buildUnnamed149() { var o = <api.GoogleCloudDialogflowCxV3SessionEntityType>[]; o.add(buildGoogleCloudDialogflowCxV3SessionEntityType()); o.add(buildGoogleCloudDialogflowCxV3SessionEntityType()); return o; } void checkUnnamed149( core.List<api.GoogleCloudDialogflowCxV3SessionEntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3SessionEntityType( o[0] as api.GoogleCloudDialogflowCxV3SessionEntityType); checkGoogleCloudDialogflowCxV3SessionEntityType( o[1] as api.GoogleCloudDialogflowCxV3SessionEntityType); } core.int buildCounterGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse = 0; api.GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse buildGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse() { var o = api.GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse(); buildCounterGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse < 3) { o.nextPageToken = 'foo'; o.sessionEntityTypes = buildUnnamed149(); } buildCounterGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse--; return o; } void checkGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse( api.GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse o) { buildCounterGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse < 3) { unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); checkUnnamed149(o.sessionEntityTypes!); } buildCounterGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse--; } core.List<api.GoogleCloudDialogflowCxV3TestCaseResult> buildUnnamed150() { var o = <api.GoogleCloudDialogflowCxV3TestCaseResult>[]; o.add(buildGoogleCloudDialogflowCxV3TestCaseResult()); o.add(buildGoogleCloudDialogflowCxV3TestCaseResult()); return o; } void checkUnnamed150(core.List<api.GoogleCloudDialogflowCxV3TestCaseResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TestCaseResult( o[0] as api.GoogleCloudDialogflowCxV3TestCaseResult); checkGoogleCloudDialogflowCxV3TestCaseResult( o[1] as api.GoogleCloudDialogflowCxV3TestCaseResult); } core.int buildCounterGoogleCloudDialogflowCxV3ListTestCaseResultsResponse = 0; api.GoogleCloudDialogflowCxV3ListTestCaseResultsResponse buildGoogleCloudDialogflowCxV3ListTestCaseResultsResponse() { var o = api.GoogleCloudDialogflowCxV3ListTestCaseResultsResponse(); buildCounterGoogleCloudDialogflowCxV3ListTestCaseResultsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListTestCaseResultsResponse < 3) { o.nextPageToken = 'foo'; o.testCaseResults = buildUnnamed150(); } buildCounterGoogleCloudDialogflowCxV3ListTestCaseResultsResponse--; return o; } void checkGoogleCloudDialogflowCxV3ListTestCaseResultsResponse( api.GoogleCloudDialogflowCxV3ListTestCaseResultsResponse o) { buildCounterGoogleCloudDialogflowCxV3ListTestCaseResultsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListTestCaseResultsResponse < 3) { unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); checkUnnamed150(o.testCaseResults!); } buildCounterGoogleCloudDialogflowCxV3ListTestCaseResultsResponse--; } core.List<api.GoogleCloudDialogflowCxV3TestCase> buildUnnamed151() { var o = <api.GoogleCloudDialogflowCxV3TestCase>[]; o.add(buildGoogleCloudDialogflowCxV3TestCase()); o.add(buildGoogleCloudDialogflowCxV3TestCase()); return o; } void checkUnnamed151(core.List<api.GoogleCloudDialogflowCxV3TestCase> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TestCase( o[0] as api.GoogleCloudDialogflowCxV3TestCase); checkGoogleCloudDialogflowCxV3TestCase( o[1] as api.GoogleCloudDialogflowCxV3TestCase); } core.int buildCounterGoogleCloudDialogflowCxV3ListTestCasesResponse = 0; api.GoogleCloudDialogflowCxV3ListTestCasesResponse buildGoogleCloudDialogflowCxV3ListTestCasesResponse() { var o = api.GoogleCloudDialogflowCxV3ListTestCasesResponse(); buildCounterGoogleCloudDialogflowCxV3ListTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListTestCasesResponse < 3) { o.nextPageToken = 'foo'; o.testCases = buildUnnamed151(); } buildCounterGoogleCloudDialogflowCxV3ListTestCasesResponse--; return o; } void checkGoogleCloudDialogflowCxV3ListTestCasesResponse( api.GoogleCloudDialogflowCxV3ListTestCasesResponse o) { buildCounterGoogleCloudDialogflowCxV3ListTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListTestCasesResponse < 3) { unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); checkUnnamed151(o.testCases!); } buildCounterGoogleCloudDialogflowCxV3ListTestCasesResponse--; } core.List<api.GoogleCloudDialogflowCxV3TransitionRouteGroup> buildUnnamed152() { var o = <api.GoogleCloudDialogflowCxV3TransitionRouteGroup>[]; o.add(buildGoogleCloudDialogflowCxV3TransitionRouteGroup()); o.add(buildGoogleCloudDialogflowCxV3TransitionRouteGroup()); return o; } void checkUnnamed152( core.List<api.GoogleCloudDialogflowCxV3TransitionRouteGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TransitionRouteGroup( o[0] as api.GoogleCloudDialogflowCxV3TransitionRouteGroup); checkGoogleCloudDialogflowCxV3TransitionRouteGroup( o[1] as api.GoogleCloudDialogflowCxV3TransitionRouteGroup); } core.int buildCounterGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse = 0; api.GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse buildGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse() { var o = api.GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse(); buildCounterGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse < 3) { o.nextPageToken = 'foo'; o.transitionRouteGroups = buildUnnamed152(); } buildCounterGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse--; return o; } void checkGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse( api.GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse o) { buildCounterGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse < 3) { unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); checkUnnamed152(o.transitionRouteGroups!); } buildCounterGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse--; } core.List<api.GoogleCloudDialogflowCxV3Version> buildUnnamed153() { var o = <api.GoogleCloudDialogflowCxV3Version>[]; o.add(buildGoogleCloudDialogflowCxV3Version()); o.add(buildGoogleCloudDialogflowCxV3Version()); return o; } void checkUnnamed153(core.List<api.GoogleCloudDialogflowCxV3Version> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Version( o[0] as api.GoogleCloudDialogflowCxV3Version); checkGoogleCloudDialogflowCxV3Version( o[1] as api.GoogleCloudDialogflowCxV3Version); } core.int buildCounterGoogleCloudDialogflowCxV3ListVersionsResponse = 0; api.GoogleCloudDialogflowCxV3ListVersionsResponse buildGoogleCloudDialogflowCxV3ListVersionsResponse() { var o = api.GoogleCloudDialogflowCxV3ListVersionsResponse(); buildCounterGoogleCloudDialogflowCxV3ListVersionsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListVersionsResponse < 3) { o.nextPageToken = 'foo'; o.versions = buildUnnamed153(); } buildCounterGoogleCloudDialogflowCxV3ListVersionsResponse--; return o; } void checkGoogleCloudDialogflowCxV3ListVersionsResponse( api.GoogleCloudDialogflowCxV3ListVersionsResponse o) { buildCounterGoogleCloudDialogflowCxV3ListVersionsResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListVersionsResponse < 3) { unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); checkUnnamed153(o.versions!); } buildCounterGoogleCloudDialogflowCxV3ListVersionsResponse--; } core.List<api.GoogleCloudDialogflowCxV3Webhook> buildUnnamed154() { var o = <api.GoogleCloudDialogflowCxV3Webhook>[]; o.add(buildGoogleCloudDialogflowCxV3Webhook()); o.add(buildGoogleCloudDialogflowCxV3Webhook()); return o; } void checkUnnamed154(core.List<api.GoogleCloudDialogflowCxV3Webhook> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Webhook( o[0] as api.GoogleCloudDialogflowCxV3Webhook); checkGoogleCloudDialogflowCxV3Webhook( o[1] as api.GoogleCloudDialogflowCxV3Webhook); } core.int buildCounterGoogleCloudDialogflowCxV3ListWebhooksResponse = 0; api.GoogleCloudDialogflowCxV3ListWebhooksResponse buildGoogleCloudDialogflowCxV3ListWebhooksResponse() { var o = api.GoogleCloudDialogflowCxV3ListWebhooksResponse(); buildCounterGoogleCloudDialogflowCxV3ListWebhooksResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListWebhooksResponse < 3) { o.nextPageToken = 'foo'; o.webhooks = buildUnnamed154(); } buildCounterGoogleCloudDialogflowCxV3ListWebhooksResponse--; return o; } void checkGoogleCloudDialogflowCxV3ListWebhooksResponse( api.GoogleCloudDialogflowCxV3ListWebhooksResponse o) { buildCounterGoogleCloudDialogflowCxV3ListWebhooksResponse++; if (buildCounterGoogleCloudDialogflowCxV3ListWebhooksResponse < 3) { unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); checkUnnamed154(o.webhooks!); } buildCounterGoogleCloudDialogflowCxV3ListWebhooksResponse--; } core.int buildCounterGoogleCloudDialogflowCxV3LoadVersionRequest = 0; api.GoogleCloudDialogflowCxV3LoadVersionRequest buildGoogleCloudDialogflowCxV3LoadVersionRequest() { var o = api.GoogleCloudDialogflowCxV3LoadVersionRequest(); buildCounterGoogleCloudDialogflowCxV3LoadVersionRequest++; if (buildCounterGoogleCloudDialogflowCxV3LoadVersionRequest < 3) { o.allowOverrideAgentResources = true; } buildCounterGoogleCloudDialogflowCxV3LoadVersionRequest--; return o; } void checkGoogleCloudDialogflowCxV3LoadVersionRequest( api.GoogleCloudDialogflowCxV3LoadVersionRequest o) { buildCounterGoogleCloudDialogflowCxV3LoadVersionRequest++; if (buildCounterGoogleCloudDialogflowCxV3LoadVersionRequest < 3) { unittest.expect(o.allowOverrideAgentResources!, unittest.isTrue); } buildCounterGoogleCloudDialogflowCxV3LoadVersionRequest--; } core.List<api.GoogleCloudDialogflowCxV3Environment> buildUnnamed155() { var o = <api.GoogleCloudDialogflowCxV3Environment>[]; o.add(buildGoogleCloudDialogflowCxV3Environment()); o.add(buildGoogleCloudDialogflowCxV3Environment()); return o; } void checkUnnamed155(core.List<api.GoogleCloudDialogflowCxV3Environment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Environment( o[0] as api.GoogleCloudDialogflowCxV3Environment); checkGoogleCloudDialogflowCxV3Environment( o[1] as api.GoogleCloudDialogflowCxV3Environment); } core.int buildCounterGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse = 0; api.GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse buildGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse() { var o = api.GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse(); buildCounterGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse++; if (buildCounterGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse < 3) { o.environments = buildUnnamed155(); o.nextPageToken = 'foo'; } buildCounterGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse--; return o; } void checkGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse( api.GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse o) { buildCounterGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse++; if (buildCounterGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse < 3) { checkUnnamed155(o.environments!); unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse--; } core.Map<core.String, core.Object> buildUnnamed156() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed156(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o['x']!) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect( casted9['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted9['bool'], unittest.equals(true), ); unittest.expect( casted9['string'], unittest.equals('foo'), ); var casted10 = (o['y']!) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect( casted10['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted10['bool'], unittest.equals(true), ); unittest.expect( casted10['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3Match = 0; api.GoogleCloudDialogflowCxV3Match buildGoogleCloudDialogflowCxV3Match() { var o = api.GoogleCloudDialogflowCxV3Match(); buildCounterGoogleCloudDialogflowCxV3Match++; if (buildCounterGoogleCloudDialogflowCxV3Match < 3) { o.confidence = 42.0; o.event = 'foo'; o.intent = buildGoogleCloudDialogflowCxV3Intent(); o.matchType = 'foo'; o.parameters = buildUnnamed156(); o.resolvedInput = 'foo'; } buildCounterGoogleCloudDialogflowCxV3Match--; return o; } void checkGoogleCloudDialogflowCxV3Match(api.GoogleCloudDialogflowCxV3Match o) { buildCounterGoogleCloudDialogflowCxV3Match++; if (buildCounterGoogleCloudDialogflowCxV3Match < 3) { unittest.expect( o.confidence!, unittest.equals(42.0), ); unittest.expect( o.event!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3Intent( o.intent! as api.GoogleCloudDialogflowCxV3Intent); unittest.expect( o.matchType!, unittest.equals('foo'), ); checkUnnamed156(o.parameters!); unittest.expect( o.resolvedInput!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3Match--; } core.int buildCounterGoogleCloudDialogflowCxV3MatchIntentRequest = 0; api.GoogleCloudDialogflowCxV3MatchIntentRequest buildGoogleCloudDialogflowCxV3MatchIntentRequest() { var o = api.GoogleCloudDialogflowCxV3MatchIntentRequest(); buildCounterGoogleCloudDialogflowCxV3MatchIntentRequest++; if (buildCounterGoogleCloudDialogflowCxV3MatchIntentRequest < 3) { o.queryInput = buildGoogleCloudDialogflowCxV3QueryInput(); o.queryParams = buildGoogleCloudDialogflowCxV3QueryParameters(); } buildCounterGoogleCloudDialogflowCxV3MatchIntentRequest--; return o; } void checkGoogleCloudDialogflowCxV3MatchIntentRequest( api.GoogleCloudDialogflowCxV3MatchIntentRequest o) { buildCounterGoogleCloudDialogflowCxV3MatchIntentRequest++; if (buildCounterGoogleCloudDialogflowCxV3MatchIntentRequest < 3) { checkGoogleCloudDialogflowCxV3QueryInput( o.queryInput! as api.GoogleCloudDialogflowCxV3QueryInput); checkGoogleCloudDialogflowCxV3QueryParameters( o.queryParams! as api.GoogleCloudDialogflowCxV3QueryParameters); } buildCounterGoogleCloudDialogflowCxV3MatchIntentRequest--; } core.List<api.GoogleCloudDialogflowCxV3Match> buildUnnamed157() { var o = <api.GoogleCloudDialogflowCxV3Match>[]; o.add(buildGoogleCloudDialogflowCxV3Match()); o.add(buildGoogleCloudDialogflowCxV3Match()); return o; } void checkUnnamed157(core.List<api.GoogleCloudDialogflowCxV3Match> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3Match( o[0] as api.GoogleCloudDialogflowCxV3Match); checkGoogleCloudDialogflowCxV3Match( o[1] as api.GoogleCloudDialogflowCxV3Match); } core.int buildCounterGoogleCloudDialogflowCxV3MatchIntentResponse = 0; api.GoogleCloudDialogflowCxV3MatchIntentResponse buildGoogleCloudDialogflowCxV3MatchIntentResponse() { var o = api.GoogleCloudDialogflowCxV3MatchIntentResponse(); buildCounterGoogleCloudDialogflowCxV3MatchIntentResponse++; if (buildCounterGoogleCloudDialogflowCxV3MatchIntentResponse < 3) { o.currentPage = buildGoogleCloudDialogflowCxV3Page(); o.matches = buildUnnamed157(); o.text = 'foo'; o.transcript = 'foo'; o.triggerEvent = 'foo'; o.triggerIntent = 'foo'; } buildCounterGoogleCloudDialogflowCxV3MatchIntentResponse--; return o; } void checkGoogleCloudDialogflowCxV3MatchIntentResponse( api.GoogleCloudDialogflowCxV3MatchIntentResponse o) { buildCounterGoogleCloudDialogflowCxV3MatchIntentResponse++; if (buildCounterGoogleCloudDialogflowCxV3MatchIntentResponse < 3) { checkGoogleCloudDialogflowCxV3Page( o.currentPage! as api.GoogleCloudDialogflowCxV3Page); checkUnnamed157(o.matches!); unittest.expect( o.text!, unittest.equals('foo'), ); unittest.expect( o.transcript!, unittest.equals('foo'), ); unittest.expect( o.triggerEvent!, unittest.equals('foo'), ); unittest.expect( o.triggerIntent!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3MatchIntentResponse--; } core.int buildCounterGoogleCloudDialogflowCxV3NluSettings = 0; api.GoogleCloudDialogflowCxV3NluSettings buildGoogleCloudDialogflowCxV3NluSettings() { var o = api.GoogleCloudDialogflowCxV3NluSettings(); buildCounterGoogleCloudDialogflowCxV3NluSettings++; if (buildCounterGoogleCloudDialogflowCxV3NluSettings < 3) { o.classificationThreshold = 42.0; o.modelTrainingMode = 'foo'; o.modelType = 'foo'; } buildCounterGoogleCloudDialogflowCxV3NluSettings--; return o; } void checkGoogleCloudDialogflowCxV3NluSettings( api.GoogleCloudDialogflowCxV3NluSettings o) { buildCounterGoogleCloudDialogflowCxV3NluSettings++; if (buildCounterGoogleCloudDialogflowCxV3NluSettings < 3) { unittest.expect( o.classificationThreshold!, unittest.equals(42.0), ); unittest.expect( o.modelTrainingMode!, unittest.equals('foo'), ); unittest.expect( o.modelType!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3NluSettings--; } core.int buildCounterGoogleCloudDialogflowCxV3OutputAudioConfig = 0; api.GoogleCloudDialogflowCxV3OutputAudioConfig buildGoogleCloudDialogflowCxV3OutputAudioConfig() { var o = api.GoogleCloudDialogflowCxV3OutputAudioConfig(); buildCounterGoogleCloudDialogflowCxV3OutputAudioConfig++; if (buildCounterGoogleCloudDialogflowCxV3OutputAudioConfig < 3) { o.audioEncoding = 'foo'; o.sampleRateHertz = 42; o.synthesizeSpeechConfig = buildGoogleCloudDialogflowCxV3SynthesizeSpeechConfig(); } buildCounterGoogleCloudDialogflowCxV3OutputAudioConfig--; return o; } void checkGoogleCloudDialogflowCxV3OutputAudioConfig( api.GoogleCloudDialogflowCxV3OutputAudioConfig o) { buildCounterGoogleCloudDialogflowCxV3OutputAudioConfig++; if (buildCounterGoogleCloudDialogflowCxV3OutputAudioConfig < 3) { unittest.expect( o.audioEncoding!, unittest.equals('foo'), ); unittest.expect( o.sampleRateHertz!, unittest.equals(42), ); checkGoogleCloudDialogflowCxV3SynthesizeSpeechConfig( o.synthesizeSpeechConfig! as api.GoogleCloudDialogflowCxV3SynthesizeSpeechConfig); } buildCounterGoogleCloudDialogflowCxV3OutputAudioConfig--; } core.List<api.GoogleCloudDialogflowCxV3EventHandler> buildUnnamed158() { var o = <api.GoogleCloudDialogflowCxV3EventHandler>[]; o.add(buildGoogleCloudDialogflowCxV3EventHandler()); o.add(buildGoogleCloudDialogflowCxV3EventHandler()); return o; } void checkUnnamed158(core.List<api.GoogleCloudDialogflowCxV3EventHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3EventHandler( o[0] as api.GoogleCloudDialogflowCxV3EventHandler); checkGoogleCloudDialogflowCxV3EventHandler( o[1] as api.GoogleCloudDialogflowCxV3EventHandler); } core.List<core.String> buildUnnamed159() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed159(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowCxV3TransitionRoute> buildUnnamed160() { var o = <api.GoogleCloudDialogflowCxV3TransitionRoute>[]; o.add(buildGoogleCloudDialogflowCxV3TransitionRoute()); o.add(buildGoogleCloudDialogflowCxV3TransitionRoute()); return o; } void checkUnnamed160( core.List<api.GoogleCloudDialogflowCxV3TransitionRoute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TransitionRoute( o[0] as api.GoogleCloudDialogflowCxV3TransitionRoute); checkGoogleCloudDialogflowCxV3TransitionRoute( o[1] as api.GoogleCloudDialogflowCxV3TransitionRoute); } core.int buildCounterGoogleCloudDialogflowCxV3Page = 0; api.GoogleCloudDialogflowCxV3Page buildGoogleCloudDialogflowCxV3Page() { var o = api.GoogleCloudDialogflowCxV3Page(); buildCounterGoogleCloudDialogflowCxV3Page++; if (buildCounterGoogleCloudDialogflowCxV3Page < 3) { o.displayName = 'foo'; o.entryFulfillment = buildGoogleCloudDialogflowCxV3Fulfillment(); o.eventHandlers = buildUnnamed158(); o.form = buildGoogleCloudDialogflowCxV3Form(); o.name = 'foo'; o.transitionRouteGroups = buildUnnamed159(); o.transitionRoutes = buildUnnamed160(); } buildCounterGoogleCloudDialogflowCxV3Page--; return o; } void checkGoogleCloudDialogflowCxV3Page(api.GoogleCloudDialogflowCxV3Page o) { buildCounterGoogleCloudDialogflowCxV3Page++; if (buildCounterGoogleCloudDialogflowCxV3Page < 3) { unittest.expect( o.displayName!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3Fulfillment( o.entryFulfillment! as api.GoogleCloudDialogflowCxV3Fulfillment); checkUnnamed158(o.eventHandlers!); checkGoogleCloudDialogflowCxV3Form( o.form! as api.GoogleCloudDialogflowCxV3Form); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed159(o.transitionRouteGroups!); checkUnnamed160(o.transitionRoutes!); } buildCounterGoogleCloudDialogflowCxV3Page--; } core.int buildCounterGoogleCloudDialogflowCxV3PageInfo = 0; api.GoogleCloudDialogflowCxV3PageInfo buildGoogleCloudDialogflowCxV3PageInfo() { var o = api.GoogleCloudDialogflowCxV3PageInfo(); buildCounterGoogleCloudDialogflowCxV3PageInfo++; if (buildCounterGoogleCloudDialogflowCxV3PageInfo < 3) { o.currentPage = 'foo'; o.formInfo = buildGoogleCloudDialogflowCxV3PageInfoFormInfo(); } buildCounterGoogleCloudDialogflowCxV3PageInfo--; return o; } void checkGoogleCloudDialogflowCxV3PageInfo( api.GoogleCloudDialogflowCxV3PageInfo o) { buildCounterGoogleCloudDialogflowCxV3PageInfo++; if (buildCounterGoogleCloudDialogflowCxV3PageInfo < 3) { unittest.expect( o.currentPage!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3PageInfoFormInfo( o.formInfo! as api.GoogleCloudDialogflowCxV3PageInfoFormInfo); } buildCounterGoogleCloudDialogflowCxV3PageInfo--; } core.List<api.GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo> buildUnnamed161() { var o = <api.GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo>[]; o.add(buildGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo()); o.add(buildGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo()); return o; } void checkUnnamed161( core.List<api.GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo( o[0] as api.GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo); checkGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo( o[1] as api.GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo); } core.int buildCounterGoogleCloudDialogflowCxV3PageInfoFormInfo = 0; api.GoogleCloudDialogflowCxV3PageInfoFormInfo buildGoogleCloudDialogflowCxV3PageInfoFormInfo() { var o = api.GoogleCloudDialogflowCxV3PageInfoFormInfo(); buildCounterGoogleCloudDialogflowCxV3PageInfoFormInfo++; if (buildCounterGoogleCloudDialogflowCxV3PageInfoFormInfo < 3) { o.parameterInfo = buildUnnamed161(); } buildCounterGoogleCloudDialogflowCxV3PageInfoFormInfo--; return o; } void checkGoogleCloudDialogflowCxV3PageInfoFormInfo( api.GoogleCloudDialogflowCxV3PageInfoFormInfo o) { buildCounterGoogleCloudDialogflowCxV3PageInfoFormInfo++; if (buildCounterGoogleCloudDialogflowCxV3PageInfoFormInfo < 3) { checkUnnamed161(o.parameterInfo!); } buildCounterGoogleCloudDialogflowCxV3PageInfoFormInfo--; } core.int buildCounterGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo = 0; api.GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo buildGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo() { var o = api.GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo(); buildCounterGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo++; if (buildCounterGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo < 3) { o.displayName = 'foo'; o.justCollected = true; o.required = true; o.state = 'foo'; o.value = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; } buildCounterGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo--; return o; } void checkGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo( api.GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo o) { buildCounterGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo++; if (buildCounterGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo < 3) { unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect(o.justCollected!, unittest.isTrue); unittest.expect(o.required!, unittest.isTrue); unittest.expect( o.state!, unittest.equals('foo'), ); var casted11 = (o.value!) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect( casted11['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted11['bool'], unittest.equals(true), ); unittest.expect( casted11['string'], unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo--; } core.int buildCounterGoogleCloudDialogflowCxV3QueryInput = 0; api.GoogleCloudDialogflowCxV3QueryInput buildGoogleCloudDialogflowCxV3QueryInput() { var o = api.GoogleCloudDialogflowCxV3QueryInput(); buildCounterGoogleCloudDialogflowCxV3QueryInput++; if (buildCounterGoogleCloudDialogflowCxV3QueryInput < 3) { o.audio = buildGoogleCloudDialogflowCxV3AudioInput(); o.dtmf = buildGoogleCloudDialogflowCxV3DtmfInput(); o.event = buildGoogleCloudDialogflowCxV3EventInput(); o.intent = buildGoogleCloudDialogflowCxV3IntentInput(); o.languageCode = 'foo'; o.text = buildGoogleCloudDialogflowCxV3TextInput(); } buildCounterGoogleCloudDialogflowCxV3QueryInput--; return o; } void checkGoogleCloudDialogflowCxV3QueryInput( api.GoogleCloudDialogflowCxV3QueryInput o) { buildCounterGoogleCloudDialogflowCxV3QueryInput++; if (buildCounterGoogleCloudDialogflowCxV3QueryInput < 3) { checkGoogleCloudDialogflowCxV3AudioInput( o.audio! as api.GoogleCloudDialogflowCxV3AudioInput); checkGoogleCloudDialogflowCxV3DtmfInput( o.dtmf! as api.GoogleCloudDialogflowCxV3DtmfInput); checkGoogleCloudDialogflowCxV3EventInput( o.event! as api.GoogleCloudDialogflowCxV3EventInput); checkGoogleCloudDialogflowCxV3IntentInput( o.intent! as api.GoogleCloudDialogflowCxV3IntentInput); unittest.expect( o.languageCode!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3TextInput( o.text! as api.GoogleCloudDialogflowCxV3TextInput); } buildCounterGoogleCloudDialogflowCxV3QueryInput--; } core.Map<core.String, core.Object> buildUnnamed162() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed162(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted12 = (o['x']!) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); unittest.expect( casted12['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted12['bool'], unittest.equals(true), ); unittest.expect( casted12['string'], unittest.equals('foo'), ); var casted13 = (o['y']!) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); unittest.expect( casted13['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted13['bool'], unittest.equals(true), ); unittest.expect( casted13['string'], unittest.equals('foo'), ); } core.Map<core.String, core.Object> buildUnnamed163() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed163(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted14 = (o['x']!) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); unittest.expect( casted14['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted14['bool'], unittest.equals(true), ); unittest.expect( casted14['string'], unittest.equals('foo'), ); var casted15 = (o['y']!) as core.Map; unittest.expect(casted15, unittest.hasLength(3)); unittest.expect( casted15['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted15['bool'], unittest.equals(true), ); unittest.expect( casted15['string'], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowCxV3SessionEntityType> buildUnnamed164() { var o = <api.GoogleCloudDialogflowCxV3SessionEntityType>[]; o.add(buildGoogleCloudDialogflowCxV3SessionEntityType()); o.add(buildGoogleCloudDialogflowCxV3SessionEntityType()); return o; } void checkUnnamed164( core.List<api.GoogleCloudDialogflowCxV3SessionEntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3SessionEntityType( o[0] as api.GoogleCloudDialogflowCxV3SessionEntityType); checkGoogleCloudDialogflowCxV3SessionEntityType( o[1] as api.GoogleCloudDialogflowCxV3SessionEntityType); } core.Map<core.String, core.String> buildUnnamed165() { var o = <core.String, core.String>{}; o['x'] = 'foo'; o['y'] = 'foo'; return o; } void checkUnnamed165(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o['x']!, unittest.equals('foo'), ); unittest.expect( o['y']!, unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3QueryParameters = 0; api.GoogleCloudDialogflowCxV3QueryParameters buildGoogleCloudDialogflowCxV3QueryParameters() { var o = api.GoogleCloudDialogflowCxV3QueryParameters(); buildCounterGoogleCloudDialogflowCxV3QueryParameters++; if (buildCounterGoogleCloudDialogflowCxV3QueryParameters < 3) { o.analyzeQueryTextSentiment = true; o.disableWebhook = true; o.geoLocation = buildGoogleTypeLatLng(); o.parameters = buildUnnamed162(); o.payload = buildUnnamed163(); o.sessionEntityTypes = buildUnnamed164(); o.timeZone = 'foo'; o.webhookHeaders = buildUnnamed165(); } buildCounterGoogleCloudDialogflowCxV3QueryParameters--; return o; } void checkGoogleCloudDialogflowCxV3QueryParameters( api.GoogleCloudDialogflowCxV3QueryParameters o) { buildCounterGoogleCloudDialogflowCxV3QueryParameters++; if (buildCounterGoogleCloudDialogflowCxV3QueryParameters < 3) { unittest.expect(o.analyzeQueryTextSentiment!, unittest.isTrue); unittest.expect(o.disableWebhook!, unittest.isTrue); checkGoogleTypeLatLng(o.geoLocation! as api.GoogleTypeLatLng); checkUnnamed162(o.parameters!); checkUnnamed163(o.payload!); checkUnnamed164(o.sessionEntityTypes!); unittest.expect( o.timeZone!, unittest.equals('foo'), ); checkUnnamed165(o.webhookHeaders!); } buildCounterGoogleCloudDialogflowCxV3QueryParameters--; } core.Map<core.String, core.Object> buildUnnamed166() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed166(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted16 = (o['x']!) as core.Map; unittest.expect(casted16, unittest.hasLength(3)); unittest.expect( casted16['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted16['bool'], unittest.equals(true), ); unittest.expect( casted16['string'], unittest.equals('foo'), ); var casted17 = (o['y']!) as core.Map; unittest.expect(casted17, unittest.hasLength(3)); unittest.expect( casted17['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted17['bool'], unittest.equals(true), ); unittest.expect( casted17['string'], unittest.equals('foo'), ); } core.Map<core.String, core.Object> buildUnnamed167() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed167(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted18 = (o['x']!) as core.Map; unittest.expect(casted18, unittest.hasLength(3)); unittest.expect( casted18['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted18['bool'], unittest.equals(true), ); unittest.expect( casted18['string'], unittest.equals('foo'), ); var casted19 = (o['y']!) as core.Map; unittest.expect(casted19, unittest.hasLength(3)); unittest.expect( casted19['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted19['bool'], unittest.equals(true), ); unittest.expect( casted19['string'], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowCxV3ResponseMessage> buildUnnamed168() { var o = <api.GoogleCloudDialogflowCxV3ResponseMessage>[]; o.add(buildGoogleCloudDialogflowCxV3ResponseMessage()); o.add(buildGoogleCloudDialogflowCxV3ResponseMessage()); return o; } void checkUnnamed168( core.List<api.GoogleCloudDialogflowCxV3ResponseMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ResponseMessage( o[0] as api.GoogleCloudDialogflowCxV3ResponseMessage); checkGoogleCloudDialogflowCxV3ResponseMessage( o[1] as api.GoogleCloudDialogflowCxV3ResponseMessage); } core.Map<core.String, core.Object> buildUnnamed169() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed169(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted20 = (o['x']!) as core.Map; unittest.expect(casted20, unittest.hasLength(3)); unittest.expect( casted20['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted20['bool'], unittest.equals(true), ); unittest.expect( casted20['string'], unittest.equals('foo'), ); var casted21 = (o['y']!) as core.Map; unittest.expect(casted21, unittest.hasLength(3)); unittest.expect( casted21['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted21['bool'], unittest.equals(true), ); unittest.expect( casted21['string'], unittest.equals('foo'), ); } core.List<core.Map<core.String, core.Object>> buildUnnamed170() { var o = <core.Map<core.String, core.Object>>[]; o.add(buildUnnamed169()); o.add(buildUnnamed169()); return o; } void checkUnnamed170(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); checkUnnamed169(o[0]); checkUnnamed169(o[1]); } core.List<api.GoogleRpcStatus> buildUnnamed171() { var o = <api.GoogleRpcStatus>[]; o.add(buildGoogleRpcStatus()); o.add(buildGoogleRpcStatus()); return o; } void checkUnnamed171(core.List<api.GoogleRpcStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleRpcStatus(o[0] as api.GoogleRpcStatus); checkGoogleRpcStatus(o[1] as api.GoogleRpcStatus); } core.int buildCounterGoogleCloudDialogflowCxV3QueryResult = 0; api.GoogleCloudDialogflowCxV3QueryResult buildGoogleCloudDialogflowCxV3QueryResult() { var o = api.GoogleCloudDialogflowCxV3QueryResult(); buildCounterGoogleCloudDialogflowCxV3QueryResult++; if (buildCounterGoogleCloudDialogflowCxV3QueryResult < 3) { o.currentPage = buildGoogleCloudDialogflowCxV3Page(); o.diagnosticInfo = buildUnnamed166(); o.intent = buildGoogleCloudDialogflowCxV3Intent(); o.intentDetectionConfidence = 42.0; o.languageCode = 'foo'; o.match = buildGoogleCloudDialogflowCxV3Match(); o.parameters = buildUnnamed167(); o.responseMessages = buildUnnamed168(); o.sentimentAnalysisResult = buildGoogleCloudDialogflowCxV3SentimentAnalysisResult(); o.text = 'foo'; o.transcript = 'foo'; o.triggerEvent = 'foo'; o.triggerIntent = 'foo'; o.webhookPayloads = buildUnnamed170(); o.webhookStatuses = buildUnnamed171(); } buildCounterGoogleCloudDialogflowCxV3QueryResult--; return o; } void checkGoogleCloudDialogflowCxV3QueryResult( api.GoogleCloudDialogflowCxV3QueryResult o) { buildCounterGoogleCloudDialogflowCxV3QueryResult++; if (buildCounterGoogleCloudDialogflowCxV3QueryResult < 3) { checkGoogleCloudDialogflowCxV3Page( o.currentPage! as api.GoogleCloudDialogflowCxV3Page); checkUnnamed166(o.diagnosticInfo!); checkGoogleCloudDialogflowCxV3Intent( o.intent! as api.GoogleCloudDialogflowCxV3Intent); unittest.expect( o.intentDetectionConfidence!, unittest.equals(42.0), ); unittest.expect( o.languageCode!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3Match( o.match! as api.GoogleCloudDialogflowCxV3Match); checkUnnamed167(o.parameters!); checkUnnamed168(o.responseMessages!); checkGoogleCloudDialogflowCxV3SentimentAnalysisResult( o.sentimentAnalysisResult! as api.GoogleCloudDialogflowCxV3SentimentAnalysisResult); unittest.expect( o.text!, unittest.equals('foo'), ); unittest.expect( o.transcript!, unittest.equals('foo'), ); unittest.expect( o.triggerEvent!, unittest.equals('foo'), ); unittest.expect( o.triggerIntent!, unittest.equals('foo'), ); checkUnnamed170(o.webhookPayloads!); checkUnnamed171(o.webhookStatuses!); } buildCounterGoogleCloudDialogflowCxV3QueryResult--; } core.int buildCounterGoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata = 0; api.GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata buildGoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata() { var o = api.GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata(); buildCounterGoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata--; return o; } void checkGoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata( api.GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata o) { buildCounterGoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata < 3) { checkGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata( o.genericMetadata! as api.GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3ResourceName = 0; api.GoogleCloudDialogflowCxV3ResourceName buildGoogleCloudDialogflowCxV3ResourceName() { var o = api.GoogleCloudDialogflowCxV3ResourceName(); buildCounterGoogleCloudDialogflowCxV3ResourceName++; if (buildCounterGoogleCloudDialogflowCxV3ResourceName < 3) { o.displayName = 'foo'; o.name = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ResourceName--; return o; } void checkGoogleCloudDialogflowCxV3ResourceName( api.GoogleCloudDialogflowCxV3ResourceName o) { buildCounterGoogleCloudDialogflowCxV3ResourceName++; if (buildCounterGoogleCloudDialogflowCxV3ResourceName < 3) { unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ResourceName--; } core.Map<core.String, core.Object> buildUnnamed172() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed172(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted22 = (o['x']!) as core.Map; unittest.expect(casted22, unittest.hasLength(3)); unittest.expect( casted22['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted22['bool'], unittest.equals(true), ); unittest.expect( casted22['string'], unittest.equals('foo'), ); var casted23 = (o['y']!) as core.Map; unittest.expect(casted23, unittest.hasLength(3)); unittest.expect( casted23['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted23['bool'], unittest.equals(true), ); unittest.expect( casted23['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3ResponseMessage = 0; api.GoogleCloudDialogflowCxV3ResponseMessage buildGoogleCloudDialogflowCxV3ResponseMessage() { var o = api.GoogleCloudDialogflowCxV3ResponseMessage(); buildCounterGoogleCloudDialogflowCxV3ResponseMessage++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessage < 3) { o.conversationSuccess = buildGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess(); o.endInteraction = buildGoogleCloudDialogflowCxV3ResponseMessageEndInteraction(); o.liveAgentHandoff = buildGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff(); o.mixedAudio = buildGoogleCloudDialogflowCxV3ResponseMessageMixedAudio(); o.outputAudioText = buildGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText(); o.payload = buildUnnamed172(); o.playAudio = buildGoogleCloudDialogflowCxV3ResponseMessagePlayAudio(); o.text = buildGoogleCloudDialogflowCxV3ResponseMessageText(); } buildCounterGoogleCloudDialogflowCxV3ResponseMessage--; return o; } void checkGoogleCloudDialogflowCxV3ResponseMessage( api.GoogleCloudDialogflowCxV3ResponseMessage o) { buildCounterGoogleCloudDialogflowCxV3ResponseMessage++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessage < 3) { checkGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess( o.conversationSuccess! as api.GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess); checkGoogleCloudDialogflowCxV3ResponseMessageEndInteraction( o.endInteraction! as api.GoogleCloudDialogflowCxV3ResponseMessageEndInteraction); checkGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff( o.liveAgentHandoff! as api.GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff); checkGoogleCloudDialogflowCxV3ResponseMessageMixedAudio(o.mixedAudio! as api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudio); checkGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText( o.outputAudioText! as api.GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText); checkUnnamed172(o.payload!); checkGoogleCloudDialogflowCxV3ResponseMessagePlayAudio( o.playAudio! as api.GoogleCloudDialogflowCxV3ResponseMessagePlayAudio); checkGoogleCloudDialogflowCxV3ResponseMessageText( o.text! as api.GoogleCloudDialogflowCxV3ResponseMessageText); } buildCounterGoogleCloudDialogflowCxV3ResponseMessage--; } core.Map<core.String, core.Object> buildUnnamed173() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed173(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted24 = (o['x']!) as core.Map; unittest.expect(casted24, unittest.hasLength(3)); unittest.expect( casted24['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted24['bool'], unittest.equals(true), ); unittest.expect( casted24['string'], unittest.equals('foo'), ); var casted25 = (o['y']!) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); unittest.expect( casted25['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted25['bool'], unittest.equals(true), ); unittest.expect( casted25['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess = 0; api.GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess buildGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess() { var o = api.GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess(); buildCounterGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess < 3) { o.metadata = buildUnnamed173(); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess--; return o; } void checkGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess( api.GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess o) { buildCounterGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess < 3) { checkUnnamed173(o.metadata!); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess--; } core.int buildCounterGoogleCloudDialogflowCxV3ResponseMessageEndInteraction = 0; api.GoogleCloudDialogflowCxV3ResponseMessageEndInteraction buildGoogleCloudDialogflowCxV3ResponseMessageEndInteraction() { var o = api.GoogleCloudDialogflowCxV3ResponseMessageEndInteraction(); buildCounterGoogleCloudDialogflowCxV3ResponseMessageEndInteraction++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageEndInteraction < 3) {} buildCounterGoogleCloudDialogflowCxV3ResponseMessageEndInteraction--; return o; } void checkGoogleCloudDialogflowCxV3ResponseMessageEndInteraction( api.GoogleCloudDialogflowCxV3ResponseMessageEndInteraction o) { buildCounterGoogleCloudDialogflowCxV3ResponseMessageEndInteraction++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageEndInteraction < 3) {} buildCounterGoogleCloudDialogflowCxV3ResponseMessageEndInteraction--; } core.Map<core.String, core.Object> buildUnnamed174() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed174(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted26 = (o['x']!) as core.Map; unittest.expect(casted26, unittest.hasLength(3)); unittest.expect( casted26['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted26['bool'], unittest.equals(true), ); unittest.expect( casted26['string'], unittest.equals('foo'), ); var casted27 = (o['y']!) as core.Map; unittest.expect(casted27, unittest.hasLength(3)); unittest.expect( casted27['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted27['bool'], unittest.equals(true), ); unittest.expect( casted27['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff = 0; api.GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff buildGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff() { var o = api.GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff(); buildCounterGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff < 3) { o.metadata = buildUnnamed174(); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff--; return o; } void checkGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff( api.GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff o) { buildCounterGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff < 3) { checkUnnamed174(o.metadata!); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff--; } core.List<api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment> buildUnnamed175() { var o = <api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment>[]; o.add(buildGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment()); o.add(buildGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment()); return o; } void checkUnnamed175( core.List<api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment( o[0] as api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment); checkGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment( o[1] as api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment); } core.int buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudio = 0; api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudio buildGoogleCloudDialogflowCxV3ResponseMessageMixedAudio() { var o = api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudio(); buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudio++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudio < 3) { o.segments = buildUnnamed175(); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudio--; return o; } void checkGoogleCloudDialogflowCxV3ResponseMessageMixedAudio( api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudio o) { buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudio++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudio < 3) { checkUnnamed175(o.segments!); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudio--; } core.int buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment = 0; api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment buildGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment() { var o = api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment(); buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment < 3) { o.allowPlaybackInterruption = true; o.audio = 'foo'; o.uri = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment--; return o; } void checkGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment( api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment o) { buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment < 3) { unittest.expect(o.allowPlaybackInterruption!, unittest.isTrue); unittest.expect( o.audio!, unittest.equals('foo'), ); unittest.expect( o.uri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment--; } core.int buildCounterGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText = 0; api.GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText buildGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText() { var o = api.GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText(); buildCounterGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText < 3) { o.allowPlaybackInterruption = true; o.ssml = 'foo'; o.text = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText--; return o; } void checkGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText( api.GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText o) { buildCounterGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText < 3) { unittest.expect(o.allowPlaybackInterruption!, unittest.isTrue); unittest.expect( o.ssml!, unittest.equals('foo'), ); unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText--; } core.int buildCounterGoogleCloudDialogflowCxV3ResponseMessagePlayAudio = 0; api.GoogleCloudDialogflowCxV3ResponseMessagePlayAudio buildGoogleCloudDialogflowCxV3ResponseMessagePlayAudio() { var o = api.GoogleCloudDialogflowCxV3ResponseMessagePlayAudio(); buildCounterGoogleCloudDialogflowCxV3ResponseMessagePlayAudio++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessagePlayAudio < 3) { o.allowPlaybackInterruption = true; o.audioUri = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ResponseMessagePlayAudio--; return o; } void checkGoogleCloudDialogflowCxV3ResponseMessagePlayAudio( api.GoogleCloudDialogflowCxV3ResponseMessagePlayAudio o) { buildCounterGoogleCloudDialogflowCxV3ResponseMessagePlayAudio++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessagePlayAudio < 3) { unittest.expect(o.allowPlaybackInterruption!, unittest.isTrue); unittest.expect( o.audioUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ResponseMessagePlayAudio--; } core.List<core.String> buildUnnamed176() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed176(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3ResponseMessageText = 0; api.GoogleCloudDialogflowCxV3ResponseMessageText buildGoogleCloudDialogflowCxV3ResponseMessageText() { var o = api.GoogleCloudDialogflowCxV3ResponseMessageText(); buildCounterGoogleCloudDialogflowCxV3ResponseMessageText++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageText < 3) { o.allowPlaybackInterruption = true; o.text = buildUnnamed176(); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageText--; return o; } void checkGoogleCloudDialogflowCxV3ResponseMessageText( api.GoogleCloudDialogflowCxV3ResponseMessageText o) { buildCounterGoogleCloudDialogflowCxV3ResponseMessageText++; if (buildCounterGoogleCloudDialogflowCxV3ResponseMessageText < 3) { unittest.expect(o.allowPlaybackInterruption!, unittest.isTrue); checkUnnamed176(o.text!); } buildCounterGoogleCloudDialogflowCxV3ResponseMessageText--; } core.int buildCounterGoogleCloudDialogflowCxV3RestoreAgentRequest = 0; api.GoogleCloudDialogflowCxV3RestoreAgentRequest buildGoogleCloudDialogflowCxV3RestoreAgentRequest() { var o = api.GoogleCloudDialogflowCxV3RestoreAgentRequest(); buildCounterGoogleCloudDialogflowCxV3RestoreAgentRequest++; if (buildCounterGoogleCloudDialogflowCxV3RestoreAgentRequest < 3) { o.agentContent = 'foo'; o.agentUri = 'foo'; } buildCounterGoogleCloudDialogflowCxV3RestoreAgentRequest--; return o; } void checkGoogleCloudDialogflowCxV3RestoreAgentRequest( api.GoogleCloudDialogflowCxV3RestoreAgentRequest o) { buildCounterGoogleCloudDialogflowCxV3RestoreAgentRequest++; if (buildCounterGoogleCloudDialogflowCxV3RestoreAgentRequest < 3) { unittest.expect( o.agentContent!, unittest.equals('foo'), ); unittest.expect( o.agentUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3RestoreAgentRequest--; } core.int buildCounterGoogleCloudDialogflowCxV3RunTestCaseMetadata = 0; api.GoogleCloudDialogflowCxV3RunTestCaseMetadata buildGoogleCloudDialogflowCxV3RunTestCaseMetadata() { var o = api.GoogleCloudDialogflowCxV3RunTestCaseMetadata(); buildCounterGoogleCloudDialogflowCxV3RunTestCaseMetadata++; if (buildCounterGoogleCloudDialogflowCxV3RunTestCaseMetadata < 3) {} buildCounterGoogleCloudDialogflowCxV3RunTestCaseMetadata--; return o; } void checkGoogleCloudDialogflowCxV3RunTestCaseMetadata( api.GoogleCloudDialogflowCxV3RunTestCaseMetadata o) { buildCounterGoogleCloudDialogflowCxV3RunTestCaseMetadata++; if (buildCounterGoogleCloudDialogflowCxV3RunTestCaseMetadata < 3) {} buildCounterGoogleCloudDialogflowCxV3RunTestCaseMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3RunTestCaseRequest = 0; api.GoogleCloudDialogflowCxV3RunTestCaseRequest buildGoogleCloudDialogflowCxV3RunTestCaseRequest() { var o = api.GoogleCloudDialogflowCxV3RunTestCaseRequest(); buildCounterGoogleCloudDialogflowCxV3RunTestCaseRequest++; if (buildCounterGoogleCloudDialogflowCxV3RunTestCaseRequest < 3) { o.environment = 'foo'; } buildCounterGoogleCloudDialogflowCxV3RunTestCaseRequest--; return o; } void checkGoogleCloudDialogflowCxV3RunTestCaseRequest( api.GoogleCloudDialogflowCxV3RunTestCaseRequest o) { buildCounterGoogleCloudDialogflowCxV3RunTestCaseRequest++; if (buildCounterGoogleCloudDialogflowCxV3RunTestCaseRequest < 3) { unittest.expect( o.environment!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3RunTestCaseRequest--; } core.int buildCounterGoogleCloudDialogflowCxV3RunTestCaseResponse = 0; api.GoogleCloudDialogflowCxV3RunTestCaseResponse buildGoogleCloudDialogflowCxV3RunTestCaseResponse() { var o = api.GoogleCloudDialogflowCxV3RunTestCaseResponse(); buildCounterGoogleCloudDialogflowCxV3RunTestCaseResponse++; if (buildCounterGoogleCloudDialogflowCxV3RunTestCaseResponse < 3) { o.result = buildGoogleCloudDialogflowCxV3TestCaseResult(); } buildCounterGoogleCloudDialogflowCxV3RunTestCaseResponse--; return o; } void checkGoogleCloudDialogflowCxV3RunTestCaseResponse( api.GoogleCloudDialogflowCxV3RunTestCaseResponse o) { buildCounterGoogleCloudDialogflowCxV3RunTestCaseResponse++; if (buildCounterGoogleCloudDialogflowCxV3RunTestCaseResponse < 3) { checkGoogleCloudDialogflowCxV3TestCaseResult( o.result! as api.GoogleCloudDialogflowCxV3TestCaseResult); } buildCounterGoogleCloudDialogflowCxV3RunTestCaseResponse--; } core.List<core.String> buildUnnamed177() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed177(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3SecuritySettings = 0; api.GoogleCloudDialogflowCxV3SecuritySettings buildGoogleCloudDialogflowCxV3SecuritySettings() { var o = api.GoogleCloudDialogflowCxV3SecuritySettings(); buildCounterGoogleCloudDialogflowCxV3SecuritySettings++; if (buildCounterGoogleCloudDialogflowCxV3SecuritySettings < 3) { o.displayName = 'foo'; o.inspectTemplate = 'foo'; o.name = 'foo'; o.purgeDataTypes = buildUnnamed177(); o.redactionScope = 'foo'; o.redactionStrategy = 'foo'; o.retentionWindowDays = 42; } buildCounterGoogleCloudDialogflowCxV3SecuritySettings--; return o; } void checkGoogleCloudDialogflowCxV3SecuritySettings( api.GoogleCloudDialogflowCxV3SecuritySettings o) { buildCounterGoogleCloudDialogflowCxV3SecuritySettings++; if (buildCounterGoogleCloudDialogflowCxV3SecuritySettings < 3) { unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect( o.inspectTemplate!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed177(o.purgeDataTypes!); unittest.expect( o.redactionScope!, unittest.equals('foo'), ); unittest.expect( o.redactionStrategy!, unittest.equals('foo'), ); unittest.expect( o.retentionWindowDays!, unittest.equals(42), ); } buildCounterGoogleCloudDialogflowCxV3SecuritySettings--; } core.int buildCounterGoogleCloudDialogflowCxV3SentimentAnalysisResult = 0; api.GoogleCloudDialogflowCxV3SentimentAnalysisResult buildGoogleCloudDialogflowCxV3SentimentAnalysisResult() { var o = api.GoogleCloudDialogflowCxV3SentimentAnalysisResult(); buildCounterGoogleCloudDialogflowCxV3SentimentAnalysisResult++; if (buildCounterGoogleCloudDialogflowCxV3SentimentAnalysisResult < 3) { o.magnitude = 42.0; o.score = 42.0; } buildCounterGoogleCloudDialogflowCxV3SentimentAnalysisResult--; return o; } void checkGoogleCloudDialogflowCxV3SentimentAnalysisResult( api.GoogleCloudDialogflowCxV3SentimentAnalysisResult o) { buildCounterGoogleCloudDialogflowCxV3SentimentAnalysisResult++; if (buildCounterGoogleCloudDialogflowCxV3SentimentAnalysisResult < 3) { unittest.expect( o.magnitude!, unittest.equals(42.0), ); unittest.expect( o.score!, unittest.equals(42.0), ); } buildCounterGoogleCloudDialogflowCxV3SentimentAnalysisResult--; } core.List<api.GoogleCloudDialogflowCxV3EntityTypeEntity> buildUnnamed178() { var o = <api.GoogleCloudDialogflowCxV3EntityTypeEntity>[]; o.add(buildGoogleCloudDialogflowCxV3EntityTypeEntity()); o.add(buildGoogleCloudDialogflowCxV3EntityTypeEntity()); return o; } void checkUnnamed178( core.List<api.GoogleCloudDialogflowCxV3EntityTypeEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3EntityTypeEntity( o[0] as api.GoogleCloudDialogflowCxV3EntityTypeEntity); checkGoogleCloudDialogflowCxV3EntityTypeEntity( o[1] as api.GoogleCloudDialogflowCxV3EntityTypeEntity); } core.int buildCounterGoogleCloudDialogflowCxV3SessionEntityType = 0; api.GoogleCloudDialogflowCxV3SessionEntityType buildGoogleCloudDialogflowCxV3SessionEntityType() { var o = api.GoogleCloudDialogflowCxV3SessionEntityType(); buildCounterGoogleCloudDialogflowCxV3SessionEntityType++; if (buildCounterGoogleCloudDialogflowCxV3SessionEntityType < 3) { o.entities = buildUnnamed178(); o.entityOverrideMode = 'foo'; o.name = 'foo'; } buildCounterGoogleCloudDialogflowCxV3SessionEntityType--; return o; } void checkGoogleCloudDialogflowCxV3SessionEntityType( api.GoogleCloudDialogflowCxV3SessionEntityType o) { buildCounterGoogleCloudDialogflowCxV3SessionEntityType++; if (buildCounterGoogleCloudDialogflowCxV3SessionEntityType < 3) { checkUnnamed178(o.entities!); unittest.expect( o.entityOverrideMode!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3SessionEntityType--; } core.Map<core.String, core.Object> buildUnnamed179() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed179(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted28 = (o['x']!) as core.Map; unittest.expect(casted28, unittest.hasLength(3)); unittest.expect( casted28['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted28['bool'], unittest.equals(true), ); unittest.expect( casted28['string'], unittest.equals('foo'), ); var casted29 = (o['y']!) as core.Map; unittest.expect(casted29, unittest.hasLength(3)); unittest.expect( casted29['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted29['bool'], unittest.equals(true), ); unittest.expect( casted29['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3SessionInfo = 0; api.GoogleCloudDialogflowCxV3SessionInfo buildGoogleCloudDialogflowCxV3SessionInfo() { var o = api.GoogleCloudDialogflowCxV3SessionInfo(); buildCounterGoogleCloudDialogflowCxV3SessionInfo++; if (buildCounterGoogleCloudDialogflowCxV3SessionInfo < 3) { o.parameters = buildUnnamed179(); o.session = 'foo'; } buildCounterGoogleCloudDialogflowCxV3SessionInfo--; return o; } void checkGoogleCloudDialogflowCxV3SessionInfo( api.GoogleCloudDialogflowCxV3SessionInfo o) { buildCounterGoogleCloudDialogflowCxV3SessionInfo++; if (buildCounterGoogleCloudDialogflowCxV3SessionInfo < 3) { checkUnnamed179(o.parameters!); unittest.expect( o.session!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3SessionInfo--; } core.int buildCounterGoogleCloudDialogflowCxV3SpeechToTextSettings = 0; api.GoogleCloudDialogflowCxV3SpeechToTextSettings buildGoogleCloudDialogflowCxV3SpeechToTextSettings() { var o = api.GoogleCloudDialogflowCxV3SpeechToTextSettings(); buildCounterGoogleCloudDialogflowCxV3SpeechToTextSettings++; if (buildCounterGoogleCloudDialogflowCxV3SpeechToTextSettings < 3) { o.enableSpeechAdaptation = true; } buildCounterGoogleCloudDialogflowCxV3SpeechToTextSettings--; return o; } void checkGoogleCloudDialogflowCxV3SpeechToTextSettings( api.GoogleCloudDialogflowCxV3SpeechToTextSettings o) { buildCounterGoogleCloudDialogflowCxV3SpeechToTextSettings++; if (buildCounterGoogleCloudDialogflowCxV3SpeechToTextSettings < 3) { unittest.expect(o.enableSpeechAdaptation!, unittest.isTrue); } buildCounterGoogleCloudDialogflowCxV3SpeechToTextSettings--; } core.int buildCounterGoogleCloudDialogflowCxV3StartExperimentRequest = 0; api.GoogleCloudDialogflowCxV3StartExperimentRequest buildGoogleCloudDialogflowCxV3StartExperimentRequest() { var o = api.GoogleCloudDialogflowCxV3StartExperimentRequest(); buildCounterGoogleCloudDialogflowCxV3StartExperimentRequest++; if (buildCounterGoogleCloudDialogflowCxV3StartExperimentRequest < 3) {} buildCounterGoogleCloudDialogflowCxV3StartExperimentRequest--; return o; } void checkGoogleCloudDialogflowCxV3StartExperimentRequest( api.GoogleCloudDialogflowCxV3StartExperimentRequest o) { buildCounterGoogleCloudDialogflowCxV3StartExperimentRequest++; if (buildCounterGoogleCloudDialogflowCxV3StartExperimentRequest < 3) {} buildCounterGoogleCloudDialogflowCxV3StartExperimentRequest--; } core.int buildCounterGoogleCloudDialogflowCxV3StopExperimentRequest = 0; api.GoogleCloudDialogflowCxV3StopExperimentRequest buildGoogleCloudDialogflowCxV3StopExperimentRequest() { var o = api.GoogleCloudDialogflowCxV3StopExperimentRequest(); buildCounterGoogleCloudDialogflowCxV3StopExperimentRequest++; if (buildCounterGoogleCloudDialogflowCxV3StopExperimentRequest < 3) {} buildCounterGoogleCloudDialogflowCxV3StopExperimentRequest--; return o; } void checkGoogleCloudDialogflowCxV3StopExperimentRequest( api.GoogleCloudDialogflowCxV3StopExperimentRequest o) { buildCounterGoogleCloudDialogflowCxV3StopExperimentRequest++; if (buildCounterGoogleCloudDialogflowCxV3StopExperimentRequest < 3) {} buildCounterGoogleCloudDialogflowCxV3StopExperimentRequest--; } core.List<core.String> buildUnnamed180() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed180(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3SynthesizeSpeechConfig = 0; api.GoogleCloudDialogflowCxV3SynthesizeSpeechConfig buildGoogleCloudDialogflowCxV3SynthesizeSpeechConfig() { var o = api.GoogleCloudDialogflowCxV3SynthesizeSpeechConfig(); buildCounterGoogleCloudDialogflowCxV3SynthesizeSpeechConfig++; if (buildCounterGoogleCloudDialogflowCxV3SynthesizeSpeechConfig < 3) { o.effectsProfileId = buildUnnamed180(); o.pitch = 42.0; o.speakingRate = 42.0; o.voice = buildGoogleCloudDialogflowCxV3VoiceSelectionParams(); o.volumeGainDb = 42.0; } buildCounterGoogleCloudDialogflowCxV3SynthesizeSpeechConfig--; return o; } void checkGoogleCloudDialogflowCxV3SynthesizeSpeechConfig( api.GoogleCloudDialogflowCxV3SynthesizeSpeechConfig o) { buildCounterGoogleCloudDialogflowCxV3SynthesizeSpeechConfig++; if (buildCounterGoogleCloudDialogflowCxV3SynthesizeSpeechConfig < 3) { checkUnnamed180(o.effectsProfileId!); unittest.expect( o.pitch!, unittest.equals(42.0), ); unittest.expect( o.speakingRate!, unittest.equals(42.0), ); checkGoogleCloudDialogflowCxV3VoiceSelectionParams( o.voice! as api.GoogleCloudDialogflowCxV3VoiceSelectionParams); unittest.expect( o.volumeGainDb!, unittest.equals(42.0), ); } buildCounterGoogleCloudDialogflowCxV3SynthesizeSpeechConfig--; } core.List<core.String> buildUnnamed181() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed181(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowCxV3ConversationTurn> buildUnnamed182() { var o = <api.GoogleCloudDialogflowCxV3ConversationTurn>[]; o.add(buildGoogleCloudDialogflowCxV3ConversationTurn()); o.add(buildGoogleCloudDialogflowCxV3ConversationTurn()); return o; } void checkUnnamed182( core.List<api.GoogleCloudDialogflowCxV3ConversationTurn> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ConversationTurn( o[0] as api.GoogleCloudDialogflowCxV3ConversationTurn); checkGoogleCloudDialogflowCxV3ConversationTurn( o[1] as api.GoogleCloudDialogflowCxV3ConversationTurn); } core.int buildCounterGoogleCloudDialogflowCxV3TestCase = 0; api.GoogleCloudDialogflowCxV3TestCase buildGoogleCloudDialogflowCxV3TestCase() { var o = api.GoogleCloudDialogflowCxV3TestCase(); buildCounterGoogleCloudDialogflowCxV3TestCase++; if (buildCounterGoogleCloudDialogflowCxV3TestCase < 3) { o.creationTime = 'foo'; o.displayName = 'foo'; o.lastTestResult = buildGoogleCloudDialogflowCxV3TestCaseResult(); o.name = 'foo'; o.notes = 'foo'; o.tags = buildUnnamed181(); o.testCaseConversationTurns = buildUnnamed182(); o.testConfig = buildGoogleCloudDialogflowCxV3TestConfig(); } buildCounterGoogleCloudDialogflowCxV3TestCase--; return o; } void checkGoogleCloudDialogflowCxV3TestCase( api.GoogleCloudDialogflowCxV3TestCase o) { buildCounterGoogleCloudDialogflowCxV3TestCase++; if (buildCounterGoogleCloudDialogflowCxV3TestCase < 3) { unittest.expect( o.creationTime!, unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3TestCaseResult( o.lastTestResult! as api.GoogleCloudDialogflowCxV3TestCaseResult); unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect( o.notes!, unittest.equals('foo'), ); checkUnnamed181(o.tags!); checkUnnamed182(o.testCaseConversationTurns!); checkGoogleCloudDialogflowCxV3TestConfig( o.testConfig! as api.GoogleCloudDialogflowCxV3TestConfig); } buildCounterGoogleCloudDialogflowCxV3TestCase--; } core.int buildCounterGoogleCloudDialogflowCxV3TestCaseError = 0; api.GoogleCloudDialogflowCxV3TestCaseError buildGoogleCloudDialogflowCxV3TestCaseError() { var o = api.GoogleCloudDialogflowCxV3TestCaseError(); buildCounterGoogleCloudDialogflowCxV3TestCaseError++; if (buildCounterGoogleCloudDialogflowCxV3TestCaseError < 3) { o.status = buildGoogleRpcStatus(); o.testCase = buildGoogleCloudDialogflowCxV3TestCase(); } buildCounterGoogleCloudDialogflowCxV3TestCaseError--; return o; } void checkGoogleCloudDialogflowCxV3TestCaseError( api.GoogleCloudDialogflowCxV3TestCaseError o) { buildCounterGoogleCloudDialogflowCxV3TestCaseError++; if (buildCounterGoogleCloudDialogflowCxV3TestCaseError < 3) { checkGoogleRpcStatus(o.status! as api.GoogleRpcStatus); checkGoogleCloudDialogflowCxV3TestCase( o.testCase! as api.GoogleCloudDialogflowCxV3TestCase); } buildCounterGoogleCloudDialogflowCxV3TestCaseError--; } core.List<api.GoogleCloudDialogflowCxV3ConversationTurn> buildUnnamed183() { var o = <api.GoogleCloudDialogflowCxV3ConversationTurn>[]; o.add(buildGoogleCloudDialogflowCxV3ConversationTurn()); o.add(buildGoogleCloudDialogflowCxV3ConversationTurn()); return o; } void checkUnnamed183( core.List<api.GoogleCloudDialogflowCxV3ConversationTurn> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ConversationTurn( o[0] as api.GoogleCloudDialogflowCxV3ConversationTurn); checkGoogleCloudDialogflowCxV3ConversationTurn( o[1] as api.GoogleCloudDialogflowCxV3ConversationTurn); } core.int buildCounterGoogleCloudDialogflowCxV3TestCaseResult = 0; api.GoogleCloudDialogflowCxV3TestCaseResult buildGoogleCloudDialogflowCxV3TestCaseResult() { var o = api.GoogleCloudDialogflowCxV3TestCaseResult(); buildCounterGoogleCloudDialogflowCxV3TestCaseResult++; if (buildCounterGoogleCloudDialogflowCxV3TestCaseResult < 3) { o.conversationTurns = buildUnnamed183(); o.environment = 'foo'; o.name = 'foo'; o.testResult = 'foo'; o.testTime = 'foo'; } buildCounterGoogleCloudDialogflowCxV3TestCaseResult--; return o; } void checkGoogleCloudDialogflowCxV3TestCaseResult( api.GoogleCloudDialogflowCxV3TestCaseResult o) { buildCounterGoogleCloudDialogflowCxV3TestCaseResult++; if (buildCounterGoogleCloudDialogflowCxV3TestCaseResult < 3) { checkUnnamed183(o.conversationTurns!); unittest.expect( o.environment!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect( o.testResult!, unittest.equals('foo'), ); unittest.expect( o.testTime!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3TestCaseResult--; } core.List<core.String> buildUnnamed184() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed184(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3TestConfig = 0; api.GoogleCloudDialogflowCxV3TestConfig buildGoogleCloudDialogflowCxV3TestConfig() { var o = api.GoogleCloudDialogflowCxV3TestConfig(); buildCounterGoogleCloudDialogflowCxV3TestConfig++; if (buildCounterGoogleCloudDialogflowCxV3TestConfig < 3) { o.flow = 'foo'; o.trackingParameters = buildUnnamed184(); } buildCounterGoogleCloudDialogflowCxV3TestConfig--; return o; } void checkGoogleCloudDialogflowCxV3TestConfig( api.GoogleCloudDialogflowCxV3TestConfig o) { buildCounterGoogleCloudDialogflowCxV3TestConfig++; if (buildCounterGoogleCloudDialogflowCxV3TestConfig < 3) { unittest.expect( o.flow!, unittest.equals('foo'), ); checkUnnamed184(o.trackingParameters!); } buildCounterGoogleCloudDialogflowCxV3TestConfig--; } core.int buildCounterGoogleCloudDialogflowCxV3TestError = 0; api.GoogleCloudDialogflowCxV3TestError buildGoogleCloudDialogflowCxV3TestError() { var o = api.GoogleCloudDialogflowCxV3TestError(); buildCounterGoogleCloudDialogflowCxV3TestError++; if (buildCounterGoogleCloudDialogflowCxV3TestError < 3) { o.status = buildGoogleRpcStatus(); o.testCase = 'foo'; o.testTime = 'foo'; } buildCounterGoogleCloudDialogflowCxV3TestError--; return o; } void checkGoogleCloudDialogflowCxV3TestError( api.GoogleCloudDialogflowCxV3TestError o) { buildCounterGoogleCloudDialogflowCxV3TestError++; if (buildCounterGoogleCloudDialogflowCxV3TestError < 3) { checkGoogleRpcStatus(o.status! as api.GoogleRpcStatus); unittest.expect( o.testCase!, unittest.equals('foo'), ); unittest.expect( o.testTime!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3TestError--; } core.int buildCounterGoogleCloudDialogflowCxV3TestRunDifference = 0; api.GoogleCloudDialogflowCxV3TestRunDifference buildGoogleCloudDialogflowCxV3TestRunDifference() { var o = api.GoogleCloudDialogflowCxV3TestRunDifference(); buildCounterGoogleCloudDialogflowCxV3TestRunDifference++; if (buildCounterGoogleCloudDialogflowCxV3TestRunDifference < 3) { o.description = 'foo'; o.type = 'foo'; } buildCounterGoogleCloudDialogflowCxV3TestRunDifference--; return o; } void checkGoogleCloudDialogflowCxV3TestRunDifference( api.GoogleCloudDialogflowCxV3TestRunDifference o) { buildCounterGoogleCloudDialogflowCxV3TestRunDifference++; if (buildCounterGoogleCloudDialogflowCxV3TestRunDifference < 3) { unittest.expect( o.description!, unittest.equals('foo'), ); unittest.expect( o.type!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3TestRunDifference--; } core.int buildCounterGoogleCloudDialogflowCxV3TextInput = 0; api.GoogleCloudDialogflowCxV3TextInput buildGoogleCloudDialogflowCxV3TextInput() { var o = api.GoogleCloudDialogflowCxV3TextInput(); buildCounterGoogleCloudDialogflowCxV3TextInput++; if (buildCounterGoogleCloudDialogflowCxV3TextInput < 3) { o.text = 'foo'; } buildCounterGoogleCloudDialogflowCxV3TextInput--; return o; } void checkGoogleCloudDialogflowCxV3TextInput( api.GoogleCloudDialogflowCxV3TextInput o) { buildCounterGoogleCloudDialogflowCxV3TextInput++; if (buildCounterGoogleCloudDialogflowCxV3TextInput < 3) { unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3TextInput--; } core.int buildCounterGoogleCloudDialogflowCxV3TrainFlowRequest = 0; api.GoogleCloudDialogflowCxV3TrainFlowRequest buildGoogleCloudDialogflowCxV3TrainFlowRequest() { var o = api.GoogleCloudDialogflowCxV3TrainFlowRequest(); buildCounterGoogleCloudDialogflowCxV3TrainFlowRequest++; if (buildCounterGoogleCloudDialogflowCxV3TrainFlowRequest < 3) {} buildCounterGoogleCloudDialogflowCxV3TrainFlowRequest--; return o; } void checkGoogleCloudDialogflowCxV3TrainFlowRequest( api.GoogleCloudDialogflowCxV3TrainFlowRequest o) { buildCounterGoogleCloudDialogflowCxV3TrainFlowRequest++; if (buildCounterGoogleCloudDialogflowCxV3TrainFlowRequest < 3) {} buildCounterGoogleCloudDialogflowCxV3TrainFlowRequest--; } core.List<api.GoogleCloudDialogflowCxV3TransitionCoverageTransition> buildUnnamed185() { var o = <api.GoogleCloudDialogflowCxV3TransitionCoverageTransition>[]; o.add(buildGoogleCloudDialogflowCxV3TransitionCoverageTransition()); o.add(buildGoogleCloudDialogflowCxV3TransitionCoverageTransition()); return o; } void checkUnnamed185( core.List<api.GoogleCloudDialogflowCxV3TransitionCoverageTransition> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TransitionCoverageTransition( o[0] as api.GoogleCloudDialogflowCxV3TransitionCoverageTransition); checkGoogleCloudDialogflowCxV3TransitionCoverageTransition( o[1] as api.GoogleCloudDialogflowCxV3TransitionCoverageTransition); } core.int buildCounterGoogleCloudDialogflowCxV3TransitionCoverage = 0; api.GoogleCloudDialogflowCxV3TransitionCoverage buildGoogleCloudDialogflowCxV3TransitionCoverage() { var o = api.GoogleCloudDialogflowCxV3TransitionCoverage(); buildCounterGoogleCloudDialogflowCxV3TransitionCoverage++; if (buildCounterGoogleCloudDialogflowCxV3TransitionCoverage < 3) { o.coverageScore = 42.0; o.transitions = buildUnnamed185(); } buildCounterGoogleCloudDialogflowCxV3TransitionCoverage--; return o; } void checkGoogleCloudDialogflowCxV3TransitionCoverage( api.GoogleCloudDialogflowCxV3TransitionCoverage o) { buildCounterGoogleCloudDialogflowCxV3TransitionCoverage++; if (buildCounterGoogleCloudDialogflowCxV3TransitionCoverage < 3) { unittest.expect( o.coverageScore!, unittest.equals(42.0), ); checkUnnamed185(o.transitions!); } buildCounterGoogleCloudDialogflowCxV3TransitionCoverage--; } core.int buildCounterGoogleCloudDialogflowCxV3TransitionCoverageTransition = 0; api.GoogleCloudDialogflowCxV3TransitionCoverageTransition buildGoogleCloudDialogflowCxV3TransitionCoverageTransition() { var o = api.GoogleCloudDialogflowCxV3TransitionCoverageTransition(); buildCounterGoogleCloudDialogflowCxV3TransitionCoverageTransition++; if (buildCounterGoogleCloudDialogflowCxV3TransitionCoverageTransition < 3) { o.covered = true; o.eventHandler = buildGoogleCloudDialogflowCxV3EventHandler(); o.index = 42; o.source = buildGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode(); o.target = buildGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode(); o.transitionRoute = buildGoogleCloudDialogflowCxV3TransitionRoute(); } buildCounterGoogleCloudDialogflowCxV3TransitionCoverageTransition--; return o; } void checkGoogleCloudDialogflowCxV3TransitionCoverageTransition( api.GoogleCloudDialogflowCxV3TransitionCoverageTransition o) { buildCounterGoogleCloudDialogflowCxV3TransitionCoverageTransition++; if (buildCounterGoogleCloudDialogflowCxV3TransitionCoverageTransition < 3) { unittest.expect(o.covered!, unittest.isTrue); checkGoogleCloudDialogflowCxV3EventHandler( o.eventHandler! as api.GoogleCloudDialogflowCxV3EventHandler); unittest.expect( o.index!, unittest.equals(42), ); checkGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode(o.source! as api.GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode); checkGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode(o.target! as api.GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode); checkGoogleCloudDialogflowCxV3TransitionRoute( o.transitionRoute! as api.GoogleCloudDialogflowCxV3TransitionRoute); } buildCounterGoogleCloudDialogflowCxV3TransitionCoverageTransition--; } core.int buildCounterGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode = 0; api.GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode buildGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode() { var o = api.GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode(); buildCounterGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode++; if (buildCounterGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode < 3) { o.flow = buildGoogleCloudDialogflowCxV3Flow(); o.page = buildGoogleCloudDialogflowCxV3Page(); } buildCounterGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode--; return o; } void checkGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode( api.GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode o) { buildCounterGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode++; if (buildCounterGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode < 3) { checkGoogleCloudDialogflowCxV3Flow( o.flow! as api.GoogleCloudDialogflowCxV3Flow); checkGoogleCloudDialogflowCxV3Page( o.page! as api.GoogleCloudDialogflowCxV3Page); } buildCounterGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode--; } core.int buildCounterGoogleCloudDialogflowCxV3TransitionRoute = 0; api.GoogleCloudDialogflowCxV3TransitionRoute buildGoogleCloudDialogflowCxV3TransitionRoute() { var o = api.GoogleCloudDialogflowCxV3TransitionRoute(); buildCounterGoogleCloudDialogflowCxV3TransitionRoute++; if (buildCounterGoogleCloudDialogflowCxV3TransitionRoute < 3) { o.condition = 'foo'; o.intent = 'foo'; o.name = 'foo'; o.targetFlow = 'foo'; o.targetPage = 'foo'; o.triggerFulfillment = buildGoogleCloudDialogflowCxV3Fulfillment(); } buildCounterGoogleCloudDialogflowCxV3TransitionRoute--; return o; } void checkGoogleCloudDialogflowCxV3TransitionRoute( api.GoogleCloudDialogflowCxV3TransitionRoute o) { buildCounterGoogleCloudDialogflowCxV3TransitionRoute++; if (buildCounterGoogleCloudDialogflowCxV3TransitionRoute < 3) { unittest.expect( o.condition!, unittest.equals('foo'), ); unittest.expect( o.intent!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect( o.targetFlow!, unittest.equals('foo'), ); unittest.expect( o.targetPage!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3Fulfillment( o.triggerFulfillment! as api.GoogleCloudDialogflowCxV3Fulfillment); } buildCounterGoogleCloudDialogflowCxV3TransitionRoute--; } core.List<api.GoogleCloudDialogflowCxV3TransitionRoute> buildUnnamed186() { var o = <api.GoogleCloudDialogflowCxV3TransitionRoute>[]; o.add(buildGoogleCloudDialogflowCxV3TransitionRoute()); o.add(buildGoogleCloudDialogflowCxV3TransitionRoute()); return o; } void checkUnnamed186( core.List<api.GoogleCloudDialogflowCxV3TransitionRoute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TransitionRoute( o[0] as api.GoogleCloudDialogflowCxV3TransitionRoute); checkGoogleCloudDialogflowCxV3TransitionRoute( o[1] as api.GoogleCloudDialogflowCxV3TransitionRoute); } core.int buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroup = 0; api.GoogleCloudDialogflowCxV3TransitionRouteGroup buildGoogleCloudDialogflowCxV3TransitionRouteGroup() { var o = api.GoogleCloudDialogflowCxV3TransitionRouteGroup(); buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroup++; if (buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroup < 3) { o.displayName = 'foo'; o.name = 'foo'; o.transitionRoutes = buildUnnamed186(); } buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroup--; return o; } void checkGoogleCloudDialogflowCxV3TransitionRouteGroup( api.GoogleCloudDialogflowCxV3TransitionRouteGroup o) { buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroup++; if (buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroup < 3) { unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed186(o.transitionRoutes!); } buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroup--; } core.List<api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage> buildUnnamed187() { var o = <api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage>[]; o.add(buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage()); o.add(buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage()); return o; } void checkUnnamed187( core.List<api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage(o[0] as api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage); checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage(o[1] as api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage); } core.int buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage = 0; api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage() { var o = api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage(); buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage++; if (buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage < 3) { o.coverageScore = 42.0; o.coverages = buildUnnamed187(); } buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage--; return o; } void checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage( api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage o) { buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage++; if (buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage < 3) { unittest.expect( o.coverageScore!, unittest.equals(42.0), ); checkUnnamed187(o.coverages!); } buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage--; } core.List< api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition> buildUnnamed188() { var o = < api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition>[]; o.add( buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition()); o.add( buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition()); return o; } void checkUnnamed188( core.List< api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition( o[0] as api .GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition); checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition( o[1] as api .GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition); } core.int buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage = 0; api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage() { var o = api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage(); buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage++; if (buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage < 3) { o.coverageScore = 42.0; o.routeGroup = buildGoogleCloudDialogflowCxV3TransitionRouteGroup(); o.transitions = buildUnnamed188(); } buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage--; return o; } void checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage( api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage o) { buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage++; if (buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage < 3) { unittest.expect( o.coverageScore!, unittest.equals(42.0), ); checkGoogleCloudDialogflowCxV3TransitionRouteGroup( o.routeGroup! as api.GoogleCloudDialogflowCxV3TransitionRouteGroup); checkUnnamed188(o.transitions!); } buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage--; } core.int buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition = 0; api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition() { var o = api .GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition(); buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition++; if (buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition < 3) { o.covered = true; o.transitionRoute = buildGoogleCloudDialogflowCxV3TransitionRoute(); } buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition--; return o; } void checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition( api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition o) { buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition++; if (buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition < 3) { unittest.expect(o.covered!, unittest.isTrue); checkGoogleCloudDialogflowCxV3TransitionRoute( o.transitionRoute! as api.GoogleCloudDialogflowCxV3TransitionRoute); } buildCounterGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition--; } core.int buildCounterGoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata = 0; api.GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata buildGoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata() { var o = api.GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata(); buildCounterGoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata--; return o; } void checkGoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata( api.GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata o) { buildCounterGoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata < 3) { checkGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata( o.genericMetadata! as api.GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3ValidateAgentRequest = 0; api.GoogleCloudDialogflowCxV3ValidateAgentRequest buildGoogleCloudDialogflowCxV3ValidateAgentRequest() { var o = api.GoogleCloudDialogflowCxV3ValidateAgentRequest(); buildCounterGoogleCloudDialogflowCxV3ValidateAgentRequest++; if (buildCounterGoogleCloudDialogflowCxV3ValidateAgentRequest < 3) { o.languageCode = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ValidateAgentRequest--; return o; } void checkGoogleCloudDialogflowCxV3ValidateAgentRequest( api.GoogleCloudDialogflowCxV3ValidateAgentRequest o) { buildCounterGoogleCloudDialogflowCxV3ValidateAgentRequest++; if (buildCounterGoogleCloudDialogflowCxV3ValidateAgentRequest < 3) { unittest.expect( o.languageCode!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ValidateAgentRequest--; } core.int buildCounterGoogleCloudDialogflowCxV3ValidateFlowRequest = 0; api.GoogleCloudDialogflowCxV3ValidateFlowRequest buildGoogleCloudDialogflowCxV3ValidateFlowRequest() { var o = api.GoogleCloudDialogflowCxV3ValidateFlowRequest(); buildCounterGoogleCloudDialogflowCxV3ValidateFlowRequest++; if (buildCounterGoogleCloudDialogflowCxV3ValidateFlowRequest < 3) { o.languageCode = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ValidateFlowRequest--; return o; } void checkGoogleCloudDialogflowCxV3ValidateFlowRequest( api.GoogleCloudDialogflowCxV3ValidateFlowRequest o) { buildCounterGoogleCloudDialogflowCxV3ValidateFlowRequest++; if (buildCounterGoogleCloudDialogflowCxV3ValidateFlowRequest < 3) { unittest.expect( o.languageCode!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ValidateFlowRequest--; } core.List<api.GoogleCloudDialogflowCxV3ResourceName> buildUnnamed189() { var o = <api.GoogleCloudDialogflowCxV3ResourceName>[]; o.add(buildGoogleCloudDialogflowCxV3ResourceName()); o.add(buildGoogleCloudDialogflowCxV3ResourceName()); return o; } void checkUnnamed189(core.List<api.GoogleCloudDialogflowCxV3ResourceName> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ResourceName( o[0] as api.GoogleCloudDialogflowCxV3ResourceName); checkGoogleCloudDialogflowCxV3ResourceName( o[1] as api.GoogleCloudDialogflowCxV3ResourceName); } core.List<core.String> buildUnnamed190() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed190(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3ValidationMessage = 0; api.GoogleCloudDialogflowCxV3ValidationMessage buildGoogleCloudDialogflowCxV3ValidationMessage() { var o = api.GoogleCloudDialogflowCxV3ValidationMessage(); buildCounterGoogleCloudDialogflowCxV3ValidationMessage++; if (buildCounterGoogleCloudDialogflowCxV3ValidationMessage < 3) { o.detail = 'foo'; o.resourceNames = buildUnnamed189(); o.resourceType = 'foo'; o.resources = buildUnnamed190(); o.severity = 'foo'; } buildCounterGoogleCloudDialogflowCxV3ValidationMessage--; return o; } void checkGoogleCloudDialogflowCxV3ValidationMessage( api.GoogleCloudDialogflowCxV3ValidationMessage o) { buildCounterGoogleCloudDialogflowCxV3ValidationMessage++; if (buildCounterGoogleCloudDialogflowCxV3ValidationMessage < 3) { unittest.expect( o.detail!, unittest.equals('foo'), ); checkUnnamed189(o.resourceNames!); unittest.expect( o.resourceType!, unittest.equals('foo'), ); checkUnnamed190(o.resources!); unittest.expect( o.severity!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3ValidationMessage--; } core.int buildCounterGoogleCloudDialogflowCxV3VariantsHistory = 0; api.GoogleCloudDialogflowCxV3VariantsHistory buildGoogleCloudDialogflowCxV3VariantsHistory() { var o = api.GoogleCloudDialogflowCxV3VariantsHistory(); buildCounterGoogleCloudDialogflowCxV3VariantsHistory++; if (buildCounterGoogleCloudDialogflowCxV3VariantsHistory < 3) { o.updateTime = 'foo'; o.versionVariants = buildGoogleCloudDialogflowCxV3VersionVariants(); } buildCounterGoogleCloudDialogflowCxV3VariantsHistory--; return o; } void checkGoogleCloudDialogflowCxV3VariantsHistory( api.GoogleCloudDialogflowCxV3VariantsHistory o) { buildCounterGoogleCloudDialogflowCxV3VariantsHistory++; if (buildCounterGoogleCloudDialogflowCxV3VariantsHistory < 3) { unittest.expect( o.updateTime!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3VersionVariants( o.versionVariants! as api.GoogleCloudDialogflowCxV3VersionVariants); } buildCounterGoogleCloudDialogflowCxV3VariantsHistory--; } core.int buildCounterGoogleCloudDialogflowCxV3Version = 0; api.GoogleCloudDialogflowCxV3Version buildGoogleCloudDialogflowCxV3Version() { var o = api.GoogleCloudDialogflowCxV3Version(); buildCounterGoogleCloudDialogflowCxV3Version++; if (buildCounterGoogleCloudDialogflowCxV3Version < 3) { o.createTime = 'foo'; o.description = 'foo'; o.displayName = 'foo'; o.name = 'foo'; o.nluSettings = buildGoogleCloudDialogflowCxV3NluSettings(); o.state = 'foo'; } buildCounterGoogleCloudDialogflowCxV3Version--; return o; } void checkGoogleCloudDialogflowCxV3Version( api.GoogleCloudDialogflowCxV3Version o) { buildCounterGoogleCloudDialogflowCxV3Version++; if (buildCounterGoogleCloudDialogflowCxV3Version < 3) { unittest.expect( o.createTime!, unittest.equals('foo'), ); unittest.expect( o.description!, unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3NluSettings( o.nluSettings! as api.GoogleCloudDialogflowCxV3NluSettings); unittest.expect( o.state!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3Version--; } core.List<api.GoogleCloudDialogflowCxV3VersionVariantsVariant> buildUnnamed191() { var o = <api.GoogleCloudDialogflowCxV3VersionVariantsVariant>[]; o.add(buildGoogleCloudDialogflowCxV3VersionVariantsVariant()); o.add(buildGoogleCloudDialogflowCxV3VersionVariantsVariant()); return o; } void checkUnnamed191( core.List<api.GoogleCloudDialogflowCxV3VersionVariantsVariant> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3VersionVariantsVariant( o[0] as api.GoogleCloudDialogflowCxV3VersionVariantsVariant); checkGoogleCloudDialogflowCxV3VersionVariantsVariant( o[1] as api.GoogleCloudDialogflowCxV3VersionVariantsVariant); } core.int buildCounterGoogleCloudDialogflowCxV3VersionVariants = 0; api.GoogleCloudDialogflowCxV3VersionVariants buildGoogleCloudDialogflowCxV3VersionVariants() { var o = api.GoogleCloudDialogflowCxV3VersionVariants(); buildCounterGoogleCloudDialogflowCxV3VersionVariants++; if (buildCounterGoogleCloudDialogflowCxV3VersionVariants < 3) { o.variants = buildUnnamed191(); } buildCounterGoogleCloudDialogflowCxV3VersionVariants--; return o; } void checkGoogleCloudDialogflowCxV3VersionVariants( api.GoogleCloudDialogflowCxV3VersionVariants o) { buildCounterGoogleCloudDialogflowCxV3VersionVariants++; if (buildCounterGoogleCloudDialogflowCxV3VersionVariants < 3) { checkUnnamed191(o.variants!); } buildCounterGoogleCloudDialogflowCxV3VersionVariants--; } core.int buildCounterGoogleCloudDialogflowCxV3VersionVariantsVariant = 0; api.GoogleCloudDialogflowCxV3VersionVariantsVariant buildGoogleCloudDialogflowCxV3VersionVariantsVariant() { var o = api.GoogleCloudDialogflowCxV3VersionVariantsVariant(); buildCounterGoogleCloudDialogflowCxV3VersionVariantsVariant++; if (buildCounterGoogleCloudDialogflowCxV3VersionVariantsVariant < 3) { o.isControlGroup = true; o.trafficAllocation = 42.0; o.version = 'foo'; } buildCounterGoogleCloudDialogflowCxV3VersionVariantsVariant--; return o; } void checkGoogleCloudDialogflowCxV3VersionVariantsVariant( api.GoogleCloudDialogflowCxV3VersionVariantsVariant o) { buildCounterGoogleCloudDialogflowCxV3VersionVariantsVariant++; if (buildCounterGoogleCloudDialogflowCxV3VersionVariantsVariant < 3) { unittest.expect(o.isControlGroup!, unittest.isTrue); unittest.expect( o.trafficAllocation!, unittest.equals(42.0), ); unittest.expect( o.version!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3VersionVariantsVariant--; } core.int buildCounterGoogleCloudDialogflowCxV3VoiceSelectionParams = 0; api.GoogleCloudDialogflowCxV3VoiceSelectionParams buildGoogleCloudDialogflowCxV3VoiceSelectionParams() { var o = api.GoogleCloudDialogflowCxV3VoiceSelectionParams(); buildCounterGoogleCloudDialogflowCxV3VoiceSelectionParams++; if (buildCounterGoogleCloudDialogflowCxV3VoiceSelectionParams < 3) { o.name = 'foo'; o.ssmlGender = 'foo'; } buildCounterGoogleCloudDialogflowCxV3VoiceSelectionParams--; return o; } void checkGoogleCloudDialogflowCxV3VoiceSelectionParams( api.GoogleCloudDialogflowCxV3VoiceSelectionParams o) { buildCounterGoogleCloudDialogflowCxV3VoiceSelectionParams++; if (buildCounterGoogleCloudDialogflowCxV3VoiceSelectionParams < 3) { unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect( o.ssmlGender!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3VoiceSelectionParams--; } core.int buildCounterGoogleCloudDialogflowCxV3Webhook = 0; api.GoogleCloudDialogflowCxV3Webhook buildGoogleCloudDialogflowCxV3Webhook() { var o = api.GoogleCloudDialogflowCxV3Webhook(); buildCounterGoogleCloudDialogflowCxV3Webhook++; if (buildCounterGoogleCloudDialogflowCxV3Webhook < 3) { o.disabled = true; o.displayName = 'foo'; o.genericWebService = buildGoogleCloudDialogflowCxV3WebhookGenericWebService(); o.name = 'foo'; o.timeout = 'foo'; } buildCounterGoogleCloudDialogflowCxV3Webhook--; return o; } void checkGoogleCloudDialogflowCxV3Webhook( api.GoogleCloudDialogflowCxV3Webhook o) { buildCounterGoogleCloudDialogflowCxV3Webhook++; if (buildCounterGoogleCloudDialogflowCxV3Webhook < 3) { unittest.expect(o.disabled!, unittest.isTrue); unittest.expect( o.displayName!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3WebhookGenericWebService(o.genericWebService! as api.GoogleCloudDialogflowCxV3WebhookGenericWebService); unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect( o.timeout!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3Webhook--; } core.Map<core.String, core.String> buildUnnamed192() { var o = <core.String, core.String>{}; o['x'] = 'foo'; o['y'] = 'foo'; return o; } void checkUnnamed192(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o['x']!, unittest.equals('foo'), ); unittest.expect( o['y']!, unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3WebhookGenericWebService = 0; api.GoogleCloudDialogflowCxV3WebhookGenericWebService buildGoogleCloudDialogflowCxV3WebhookGenericWebService() { var o = api.GoogleCloudDialogflowCxV3WebhookGenericWebService(); buildCounterGoogleCloudDialogflowCxV3WebhookGenericWebService++; if (buildCounterGoogleCloudDialogflowCxV3WebhookGenericWebService < 3) { o.password = 'foo'; o.requestHeaders = buildUnnamed192(); o.uri = 'foo'; o.username = 'foo'; } buildCounterGoogleCloudDialogflowCxV3WebhookGenericWebService--; return o; } void checkGoogleCloudDialogflowCxV3WebhookGenericWebService( api.GoogleCloudDialogflowCxV3WebhookGenericWebService o) { buildCounterGoogleCloudDialogflowCxV3WebhookGenericWebService++; if (buildCounterGoogleCloudDialogflowCxV3WebhookGenericWebService < 3) { unittest.expect( o.password!, unittest.equals('foo'), ); checkUnnamed192(o.requestHeaders!); unittest.expect( o.uri!, unittest.equals('foo'), ); unittest.expect( o.username!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3WebhookGenericWebService--; } core.List<api.GoogleCloudDialogflowCxV3ResponseMessage> buildUnnamed193() { var o = <api.GoogleCloudDialogflowCxV3ResponseMessage>[]; o.add(buildGoogleCloudDialogflowCxV3ResponseMessage()); o.add(buildGoogleCloudDialogflowCxV3ResponseMessage()); return o; } void checkUnnamed193( core.List<api.GoogleCloudDialogflowCxV3ResponseMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ResponseMessage( o[0] as api.GoogleCloudDialogflowCxV3ResponseMessage); checkGoogleCloudDialogflowCxV3ResponseMessage( o[1] as api.GoogleCloudDialogflowCxV3ResponseMessage); } core.Map<core.String, core.Object> buildUnnamed194() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed194(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted30 = (o['x']!) as core.Map; unittest.expect(casted30, unittest.hasLength(3)); unittest.expect( casted30['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted30['bool'], unittest.equals(true), ); unittest.expect( casted30['string'], unittest.equals('foo'), ); var casted31 = (o['y']!) as core.Map; unittest.expect(casted31, unittest.hasLength(3)); unittest.expect( casted31['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted31['bool'], unittest.equals(true), ); unittest.expect( casted31['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3WebhookRequest = 0; api.GoogleCloudDialogflowCxV3WebhookRequest buildGoogleCloudDialogflowCxV3WebhookRequest() { var o = api.GoogleCloudDialogflowCxV3WebhookRequest(); buildCounterGoogleCloudDialogflowCxV3WebhookRequest++; if (buildCounterGoogleCloudDialogflowCxV3WebhookRequest < 3) { o.detectIntentResponseId = 'foo'; o.fulfillmentInfo = buildGoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo(); o.intentInfo = buildGoogleCloudDialogflowCxV3WebhookRequestIntentInfo(); o.messages = buildUnnamed193(); o.pageInfo = buildGoogleCloudDialogflowCxV3PageInfo(); o.payload = buildUnnamed194(); o.sentimentAnalysisResult = buildGoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult(); o.sessionInfo = buildGoogleCloudDialogflowCxV3SessionInfo(); } buildCounterGoogleCloudDialogflowCxV3WebhookRequest--; return o; } void checkGoogleCloudDialogflowCxV3WebhookRequest( api.GoogleCloudDialogflowCxV3WebhookRequest o) { buildCounterGoogleCloudDialogflowCxV3WebhookRequest++; if (buildCounterGoogleCloudDialogflowCxV3WebhookRequest < 3) { unittest.expect( o.detectIntentResponseId!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo( o.fulfillmentInfo! as api.GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo); checkGoogleCloudDialogflowCxV3WebhookRequestIntentInfo( o.intentInfo! as api.GoogleCloudDialogflowCxV3WebhookRequestIntentInfo); checkUnnamed193(o.messages!); checkGoogleCloudDialogflowCxV3PageInfo( o.pageInfo! as api.GoogleCloudDialogflowCxV3PageInfo); checkUnnamed194(o.payload!); checkGoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult(o .sentimentAnalysisResult! as api.GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult); checkGoogleCloudDialogflowCxV3SessionInfo( o.sessionInfo! as api.GoogleCloudDialogflowCxV3SessionInfo); } buildCounterGoogleCloudDialogflowCxV3WebhookRequest--; } core.int buildCounterGoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo = 0; api.GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo buildGoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo() { var o = api.GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo(); buildCounterGoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo++; if (buildCounterGoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo < 3) { o.tag = 'foo'; } buildCounterGoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo--; return o; } void checkGoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo( api.GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo o) { buildCounterGoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo++; if (buildCounterGoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo < 3) { unittest.expect( o.tag!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo--; } core.Map<core.String, api.GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue> buildUnnamed195() { var o = <core.String, api.GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue>{}; o['x'] = buildGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue(); o['y'] = buildGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue(); return o; } void checkUnnamed195( core.Map<core.String, api.GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue( o['x']! as api .GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue); checkGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue( o['y']! as api .GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue); } core.int buildCounterGoogleCloudDialogflowCxV3WebhookRequestIntentInfo = 0; api.GoogleCloudDialogflowCxV3WebhookRequestIntentInfo buildGoogleCloudDialogflowCxV3WebhookRequestIntentInfo() { var o = api.GoogleCloudDialogflowCxV3WebhookRequestIntentInfo(); buildCounterGoogleCloudDialogflowCxV3WebhookRequestIntentInfo++; if (buildCounterGoogleCloudDialogflowCxV3WebhookRequestIntentInfo < 3) { o.confidence = 42.0; o.displayName = 'foo'; o.lastMatchedIntent = 'foo'; o.parameters = buildUnnamed195(); } buildCounterGoogleCloudDialogflowCxV3WebhookRequestIntentInfo--; return o; } void checkGoogleCloudDialogflowCxV3WebhookRequestIntentInfo( api.GoogleCloudDialogflowCxV3WebhookRequestIntentInfo o) { buildCounterGoogleCloudDialogflowCxV3WebhookRequestIntentInfo++; if (buildCounterGoogleCloudDialogflowCxV3WebhookRequestIntentInfo < 3) { unittest.expect( o.confidence!, unittest.equals(42.0), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect( o.lastMatchedIntent!, unittest.equals('foo'), ); checkUnnamed195(o.parameters!); } buildCounterGoogleCloudDialogflowCxV3WebhookRequestIntentInfo--; } core.int buildCounterGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue = 0; api.GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue buildGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue() { var o = api .GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue(); buildCounterGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue++; if (buildCounterGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue < 3) { o.originalValue = 'foo'; o.resolvedValue = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; } buildCounterGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue--; return o; } void checkGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue( api.GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue o) { buildCounterGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue++; if (buildCounterGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue < 3) { unittest.expect( o.originalValue!, unittest.equals('foo'), ); var casted32 = (o.resolvedValue!) as core.Map; unittest.expect(casted32, unittest.hasLength(3)); unittest.expect( casted32['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted32['bool'], unittest.equals(true), ); unittest.expect( casted32['string'], unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue--; } core.int buildCounterGoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult = 0; api.GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult buildGoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult() { var o = api.GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult(); buildCounterGoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult++; if (buildCounterGoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult < 3) { o.magnitude = 42.0; o.score = 42.0; } buildCounterGoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult--; return o; } void checkGoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult( api.GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult o) { buildCounterGoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult++; if (buildCounterGoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult < 3) { unittest.expect( o.magnitude!, unittest.equals(42.0), ); unittest.expect( o.score!, unittest.equals(42.0), ); } buildCounterGoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult--; } core.Map<core.String, core.Object> buildUnnamed196() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed196(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted33 = (o['x']!) as core.Map; unittest.expect(casted33, unittest.hasLength(3)); unittest.expect( casted33['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted33['bool'], unittest.equals(true), ); unittest.expect( casted33['string'], unittest.equals('foo'), ); var casted34 = (o['y']!) as core.Map; unittest.expect(casted34, unittest.hasLength(3)); unittest.expect( casted34['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted34['bool'], unittest.equals(true), ); unittest.expect( casted34['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3WebhookResponse = 0; api.GoogleCloudDialogflowCxV3WebhookResponse buildGoogleCloudDialogflowCxV3WebhookResponse() { var o = api.GoogleCloudDialogflowCxV3WebhookResponse(); buildCounterGoogleCloudDialogflowCxV3WebhookResponse++; if (buildCounterGoogleCloudDialogflowCxV3WebhookResponse < 3) { o.fulfillmentResponse = buildGoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse(); o.pageInfo = buildGoogleCloudDialogflowCxV3PageInfo(); o.payload = buildUnnamed196(); o.sessionInfo = buildGoogleCloudDialogflowCxV3SessionInfo(); o.targetFlow = 'foo'; o.targetPage = 'foo'; } buildCounterGoogleCloudDialogflowCxV3WebhookResponse--; return o; } void checkGoogleCloudDialogflowCxV3WebhookResponse( api.GoogleCloudDialogflowCxV3WebhookResponse o) { buildCounterGoogleCloudDialogflowCxV3WebhookResponse++; if (buildCounterGoogleCloudDialogflowCxV3WebhookResponse < 3) { checkGoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse( o.fulfillmentResponse! as api.GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse); checkGoogleCloudDialogflowCxV3PageInfo( o.pageInfo! as api.GoogleCloudDialogflowCxV3PageInfo); checkUnnamed196(o.payload!); checkGoogleCloudDialogflowCxV3SessionInfo( o.sessionInfo! as api.GoogleCloudDialogflowCxV3SessionInfo); unittest.expect( o.targetFlow!, unittest.equals('foo'), ); unittest.expect( o.targetPage!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3WebhookResponse--; } core.List<api.GoogleCloudDialogflowCxV3ResponseMessage> buildUnnamed197() { var o = <api.GoogleCloudDialogflowCxV3ResponseMessage>[]; o.add(buildGoogleCloudDialogflowCxV3ResponseMessage()); o.add(buildGoogleCloudDialogflowCxV3ResponseMessage()); return o; } void checkUnnamed197( core.List<api.GoogleCloudDialogflowCxV3ResponseMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3ResponseMessage( o[0] as api.GoogleCloudDialogflowCxV3ResponseMessage); checkGoogleCloudDialogflowCxV3ResponseMessage( o[1] as api.GoogleCloudDialogflowCxV3ResponseMessage); } core.int buildCounterGoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse = 0; api.GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse buildGoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse() { var o = api.GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse(); buildCounterGoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse++; if (buildCounterGoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse < 3) { o.mergeBehavior = 'foo'; o.messages = buildUnnamed197(); } buildCounterGoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse--; return o; } void checkGoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse( api.GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse o) { buildCounterGoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse++; if (buildCounterGoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse < 3) { unittest.expect( o.mergeBehavior!, unittest.equals('foo'), ); checkUnnamed197(o.messages!); } buildCounterGoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1AudioInput = 0; api.GoogleCloudDialogflowCxV3beta1AudioInput buildGoogleCloudDialogflowCxV3beta1AudioInput() { var o = api.GoogleCloudDialogflowCxV3beta1AudioInput(); buildCounterGoogleCloudDialogflowCxV3beta1AudioInput++; if (buildCounterGoogleCloudDialogflowCxV3beta1AudioInput < 3) { o.audio = 'foo'; o.config = buildGoogleCloudDialogflowCxV3beta1InputAudioConfig(); } buildCounterGoogleCloudDialogflowCxV3beta1AudioInput--; return o; } void checkGoogleCloudDialogflowCxV3beta1AudioInput( api.GoogleCloudDialogflowCxV3beta1AudioInput o) { buildCounterGoogleCloudDialogflowCxV3beta1AudioInput++; if (buildCounterGoogleCloudDialogflowCxV3beta1AudioInput < 3) { unittest.expect( o.audio!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3beta1InputAudioConfig( o.config! as api.GoogleCloudDialogflowCxV3beta1InputAudioConfig); } buildCounterGoogleCloudDialogflowCxV3beta1AudioInput--; } core.List<api.GoogleCloudDialogflowCxV3beta1TestError> buildUnnamed198() { var o = <api.GoogleCloudDialogflowCxV3beta1TestError>[]; o.add(buildGoogleCloudDialogflowCxV3beta1TestError()); o.add(buildGoogleCloudDialogflowCxV3beta1TestError()); return o; } void checkUnnamed198(core.List<api.GoogleCloudDialogflowCxV3beta1TestError> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1TestError( o[0] as api.GoogleCloudDialogflowCxV3beta1TestError); checkGoogleCloudDialogflowCxV3beta1TestError( o[1] as api.GoogleCloudDialogflowCxV3beta1TestError); } core.int buildCounterGoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata = 0; api.GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata buildGoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata() { var o = api.GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata(); buildCounterGoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata < 3) { o.errors = buildUnnamed198(); } buildCounterGoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata--; return o; } void checkGoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata( api.GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata o) { buildCounterGoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata < 3) { checkUnnamed198(o.errors!); } buildCounterGoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata--; } core.List<api.GoogleCloudDialogflowCxV3beta1TestCaseResult> buildUnnamed199() { var o = <api.GoogleCloudDialogflowCxV3beta1TestCaseResult>[]; o.add(buildGoogleCloudDialogflowCxV3beta1TestCaseResult()); o.add(buildGoogleCloudDialogflowCxV3beta1TestCaseResult()); return o; } void checkUnnamed199( core.List<api.GoogleCloudDialogflowCxV3beta1TestCaseResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1TestCaseResult( o[0] as api.GoogleCloudDialogflowCxV3beta1TestCaseResult); checkGoogleCloudDialogflowCxV3beta1TestCaseResult( o[1] as api.GoogleCloudDialogflowCxV3beta1TestCaseResult); } core.int buildCounterGoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse = 0; api.GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse buildGoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse() { var o = api.GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse(); buildCounterGoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse < 3) { o.results = buildUnnamed199(); } buildCounterGoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse--; return o; } void checkGoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse( api.GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse o) { buildCounterGoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse < 3) { checkUnnamed199(o.results!); } buildCounterGoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurn = 0; api.GoogleCloudDialogflowCxV3beta1ConversationTurn buildGoogleCloudDialogflowCxV3beta1ConversationTurn() { var o = api.GoogleCloudDialogflowCxV3beta1ConversationTurn(); buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurn++; if (buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurn < 3) { o.userInput = buildGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput(); o.virtualAgentOutput = buildGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput(); } buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurn--; return o; } void checkGoogleCloudDialogflowCxV3beta1ConversationTurn( api.GoogleCloudDialogflowCxV3beta1ConversationTurn o) { buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurn++; if (buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurn < 3) { checkGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput(o.userInput! as api.GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput); checkGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput( o.virtualAgentOutput! as api .GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput); } buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurn--; } core.Map<core.String, core.Object> buildUnnamed200() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed200(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted35 = (o['x']!) as core.Map; unittest.expect(casted35, unittest.hasLength(3)); unittest.expect( casted35['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted35['bool'], unittest.equals(true), ); unittest.expect( casted35['string'], unittest.equals('foo'), ); var casted36 = (o['y']!) as core.Map; unittest.expect(casted36, unittest.hasLength(3)); unittest.expect( casted36['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted36['bool'], unittest.equals(true), ); unittest.expect( casted36['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput = 0; api.GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput buildGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput() { var o = api.GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput(); buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput++; if (buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput < 3) { o.injectedParameters = buildUnnamed200(); o.input = buildGoogleCloudDialogflowCxV3beta1QueryInput(); o.isWebhookEnabled = true; } buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput--; return o; } void checkGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput( api.GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput o) { buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput++; if (buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput < 3) { checkUnnamed200(o.injectedParameters!); checkGoogleCloudDialogflowCxV3beta1QueryInput( o.input! as api.GoogleCloudDialogflowCxV3beta1QueryInput); unittest.expect(o.isWebhookEnabled!, unittest.isTrue); } buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput--; } core.Map<core.String, core.Object> buildUnnamed201() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed201(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted37 = (o['x']!) as core.Map; unittest.expect(casted37, unittest.hasLength(3)); unittest.expect( casted37['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted37['bool'], unittest.equals(true), ); unittest.expect( casted37['string'], unittest.equals('foo'), ); var casted38 = (o['y']!) as core.Map; unittest.expect(casted38, unittest.hasLength(3)); unittest.expect( casted38['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted38['bool'], unittest.equals(true), ); unittest.expect( casted38['string'], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowCxV3beta1TestRunDifference> buildUnnamed202() { var o = <api.GoogleCloudDialogflowCxV3beta1TestRunDifference>[]; o.add(buildGoogleCloudDialogflowCxV3beta1TestRunDifference()); o.add(buildGoogleCloudDialogflowCxV3beta1TestRunDifference()); return o; } void checkUnnamed202( core.List<api.GoogleCloudDialogflowCxV3beta1TestRunDifference> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1TestRunDifference( o[0] as api.GoogleCloudDialogflowCxV3beta1TestRunDifference); checkGoogleCloudDialogflowCxV3beta1TestRunDifference( o[1] as api.GoogleCloudDialogflowCxV3beta1TestRunDifference); } core.Map<core.String, core.Object> buildUnnamed203() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed203(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted39 = (o['x']!) as core.Map; unittest.expect(casted39, unittest.hasLength(3)); unittest.expect( casted39['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted39['bool'], unittest.equals(true), ); unittest.expect( casted39['string'], unittest.equals('foo'), ); var casted40 = (o['y']!) as core.Map; unittest.expect(casted40, unittest.hasLength(3)); unittest.expect( casted40['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted40['bool'], unittest.equals(true), ); unittest.expect( casted40['string'], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowCxV3beta1ResponseMessageText> buildUnnamed204() { var o = <api.GoogleCloudDialogflowCxV3beta1ResponseMessageText>[]; o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessageText()); o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessageText()); return o; } void checkUnnamed204( core.List<api.GoogleCloudDialogflowCxV3beta1ResponseMessageText> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1ResponseMessageText( o[0] as api.GoogleCloudDialogflowCxV3beta1ResponseMessageText); checkGoogleCloudDialogflowCxV3beta1ResponseMessageText( o[1] as api.GoogleCloudDialogflowCxV3beta1ResponseMessageText); } core.int buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput = 0; api.GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput buildGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput() { var o = api.GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput(); buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput++; if (buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput < 3) { o.currentPage = buildGoogleCloudDialogflowCxV3beta1Page(); o.diagnosticInfo = buildUnnamed201(); o.differences = buildUnnamed202(); o.sessionParameters = buildUnnamed203(); o.status = buildGoogleRpcStatus(); o.textResponses = buildUnnamed204(); o.triggeredIntent = buildGoogleCloudDialogflowCxV3beta1Intent(); } buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput--; return o; } void checkGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput( api.GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput o) { buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput++; if (buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput < 3) { checkGoogleCloudDialogflowCxV3beta1Page( o.currentPage! as api.GoogleCloudDialogflowCxV3beta1Page); checkUnnamed201(o.diagnosticInfo!); checkUnnamed202(o.differences!); checkUnnamed203(o.sessionParameters!); checkGoogleRpcStatus(o.status! as api.GoogleRpcStatus); checkUnnamed204(o.textResponses!); checkGoogleCloudDialogflowCxV3beta1Intent( o.triggeredIntent! as api.GoogleCloudDialogflowCxV3beta1Intent); } buildCounterGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata = 0; api.GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata buildGoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata() { var o = api.GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata(); buildCounterGoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata--; return o; } void checkGoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata( api.GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata o) { buildCounterGoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata < 3) { checkGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata(o .genericMetadata! as api.GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata = 0; api.GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata buildGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata() { var o = api.GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata(); buildCounterGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata < 3) { o.version = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata--; return o; } void checkGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata( api.GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata o) { buildCounterGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata < 3) { unittest.expect( o.version!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata = 0; api.GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata buildGoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata() { var o = api.GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata(); buildCounterGoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata--; return o; } void checkGoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata( api.GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata o) { buildCounterGoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata < 3) { checkGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata(o .genericMetadata! as api.GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1DtmfInput = 0; api.GoogleCloudDialogflowCxV3beta1DtmfInput buildGoogleCloudDialogflowCxV3beta1DtmfInput() { var o = api.GoogleCloudDialogflowCxV3beta1DtmfInput(); buildCounterGoogleCloudDialogflowCxV3beta1DtmfInput++; if (buildCounterGoogleCloudDialogflowCxV3beta1DtmfInput < 3) { o.digits = 'foo'; o.finishDigit = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1DtmfInput--; return o; } void checkGoogleCloudDialogflowCxV3beta1DtmfInput( api.GoogleCloudDialogflowCxV3beta1DtmfInput o) { buildCounterGoogleCloudDialogflowCxV3beta1DtmfInput++; if (buildCounterGoogleCloudDialogflowCxV3beta1DtmfInput < 3) { unittest.expect( o.digits!, unittest.equals('foo'), ); unittest.expect( o.finishDigit!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1DtmfInput--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1EventHandler = 0; api.GoogleCloudDialogflowCxV3beta1EventHandler buildGoogleCloudDialogflowCxV3beta1EventHandler() { var o = api.GoogleCloudDialogflowCxV3beta1EventHandler(); buildCounterGoogleCloudDialogflowCxV3beta1EventHandler++; if (buildCounterGoogleCloudDialogflowCxV3beta1EventHandler < 3) { o.event = 'foo'; o.name = 'foo'; o.targetFlow = 'foo'; o.targetPage = 'foo'; o.triggerFulfillment = buildGoogleCloudDialogflowCxV3beta1Fulfillment(); } buildCounterGoogleCloudDialogflowCxV3beta1EventHandler--; return o; } void checkGoogleCloudDialogflowCxV3beta1EventHandler( api.GoogleCloudDialogflowCxV3beta1EventHandler o) { buildCounterGoogleCloudDialogflowCxV3beta1EventHandler++; if (buildCounterGoogleCloudDialogflowCxV3beta1EventHandler < 3) { unittest.expect( o.event!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect( o.targetFlow!, unittest.equals('foo'), ); unittest.expect( o.targetPage!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3beta1Fulfillment( o.triggerFulfillment! as api.GoogleCloudDialogflowCxV3beta1Fulfillment); } buildCounterGoogleCloudDialogflowCxV3beta1EventHandler--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1EventInput = 0; api.GoogleCloudDialogflowCxV3beta1EventInput buildGoogleCloudDialogflowCxV3beta1EventInput() { var o = api.GoogleCloudDialogflowCxV3beta1EventInput(); buildCounterGoogleCloudDialogflowCxV3beta1EventInput++; if (buildCounterGoogleCloudDialogflowCxV3beta1EventInput < 3) { o.event = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1EventInput--; return o; } void checkGoogleCloudDialogflowCxV3beta1EventInput( api.GoogleCloudDialogflowCxV3beta1EventInput o) { buildCounterGoogleCloudDialogflowCxV3beta1EventInput++; if (buildCounterGoogleCloudDialogflowCxV3beta1EventInput < 3) { unittest.expect( o.event!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1EventInput--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1ExportAgentResponse = 0; api.GoogleCloudDialogflowCxV3beta1ExportAgentResponse buildGoogleCloudDialogflowCxV3beta1ExportAgentResponse() { var o = api.GoogleCloudDialogflowCxV3beta1ExportAgentResponse(); buildCounterGoogleCloudDialogflowCxV3beta1ExportAgentResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1ExportAgentResponse < 3) { o.agentContent = 'foo'; o.agentUri = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1ExportAgentResponse--; return o; } void checkGoogleCloudDialogflowCxV3beta1ExportAgentResponse( api.GoogleCloudDialogflowCxV3beta1ExportAgentResponse o) { buildCounterGoogleCloudDialogflowCxV3beta1ExportAgentResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1ExportAgentResponse < 3) { unittest.expect( o.agentContent!, unittest.equals('foo'), ); unittest.expect( o.agentUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1ExportAgentResponse--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata = 0; api.GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata buildGoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata() { var o = api.GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata(); buildCounterGoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata < 3) {} buildCounterGoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata--; return o; } void checkGoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata( api.GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata o) { buildCounterGoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata < 3) {} buildCounterGoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1ExportTestCasesResponse = 0; api.GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse buildGoogleCloudDialogflowCxV3beta1ExportTestCasesResponse() { var o = api.GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse(); buildCounterGoogleCloudDialogflowCxV3beta1ExportTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1ExportTestCasesResponse < 3) { o.content = 'foo'; o.gcsUri = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1ExportTestCasesResponse--; return o; } void checkGoogleCloudDialogflowCxV3beta1ExportTestCasesResponse( api.GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse o) { buildCounterGoogleCloudDialogflowCxV3beta1ExportTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1ExportTestCasesResponse < 3) { unittest.expect( o.content!, unittest.equals('foo'), ); unittest.expect( o.gcsUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1ExportTestCasesResponse--; } core.List<api.GoogleCloudDialogflowCxV3beta1FormParameter> buildUnnamed205() { var o = <api.GoogleCloudDialogflowCxV3beta1FormParameter>[]; o.add(buildGoogleCloudDialogflowCxV3beta1FormParameter()); o.add(buildGoogleCloudDialogflowCxV3beta1FormParameter()); return o; } void checkUnnamed205( core.List<api.GoogleCloudDialogflowCxV3beta1FormParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1FormParameter( o[0] as api.GoogleCloudDialogflowCxV3beta1FormParameter); checkGoogleCloudDialogflowCxV3beta1FormParameter( o[1] as api.GoogleCloudDialogflowCxV3beta1FormParameter); } core.int buildCounterGoogleCloudDialogflowCxV3beta1Form = 0; api.GoogleCloudDialogflowCxV3beta1Form buildGoogleCloudDialogflowCxV3beta1Form() { var o = api.GoogleCloudDialogflowCxV3beta1Form(); buildCounterGoogleCloudDialogflowCxV3beta1Form++; if (buildCounterGoogleCloudDialogflowCxV3beta1Form < 3) { o.parameters = buildUnnamed205(); } buildCounterGoogleCloudDialogflowCxV3beta1Form--; return o; } void checkGoogleCloudDialogflowCxV3beta1Form( api.GoogleCloudDialogflowCxV3beta1Form o) { buildCounterGoogleCloudDialogflowCxV3beta1Form++; if (buildCounterGoogleCloudDialogflowCxV3beta1Form < 3) { checkUnnamed205(o.parameters!); } buildCounterGoogleCloudDialogflowCxV3beta1Form--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1FormParameter = 0; api.GoogleCloudDialogflowCxV3beta1FormParameter buildGoogleCloudDialogflowCxV3beta1FormParameter() { var o = api.GoogleCloudDialogflowCxV3beta1FormParameter(); buildCounterGoogleCloudDialogflowCxV3beta1FormParameter++; if (buildCounterGoogleCloudDialogflowCxV3beta1FormParameter < 3) { o.defaultValue = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o.displayName = 'foo'; o.entityType = 'foo'; o.fillBehavior = buildGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior(); o.isList = true; o.redact = true; o.required = true; } buildCounterGoogleCloudDialogflowCxV3beta1FormParameter--; return o; } void checkGoogleCloudDialogflowCxV3beta1FormParameter( api.GoogleCloudDialogflowCxV3beta1FormParameter o) { buildCounterGoogleCloudDialogflowCxV3beta1FormParameter++; if (buildCounterGoogleCloudDialogflowCxV3beta1FormParameter < 3) { var casted41 = (o.defaultValue!) as core.Map; unittest.expect(casted41, unittest.hasLength(3)); unittest.expect( casted41['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted41['bool'], unittest.equals(true), ); unittest.expect( casted41['string'], unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect( o.entityType!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior(o.fillBehavior! as api.GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior); unittest.expect(o.isList!, unittest.isTrue); unittest.expect(o.redact!, unittest.isTrue); unittest.expect(o.required!, unittest.isTrue); } buildCounterGoogleCloudDialogflowCxV3beta1FormParameter--; } core.List<api.GoogleCloudDialogflowCxV3beta1EventHandler> buildUnnamed206() { var o = <api.GoogleCloudDialogflowCxV3beta1EventHandler>[]; o.add(buildGoogleCloudDialogflowCxV3beta1EventHandler()); o.add(buildGoogleCloudDialogflowCxV3beta1EventHandler()); return o; } void checkUnnamed206( core.List<api.GoogleCloudDialogflowCxV3beta1EventHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1EventHandler( o[0] as api.GoogleCloudDialogflowCxV3beta1EventHandler); checkGoogleCloudDialogflowCxV3beta1EventHandler( o[1] as api.GoogleCloudDialogflowCxV3beta1EventHandler); } core.int buildCounterGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior = 0; api.GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior buildGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior() { var o = api.GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior(); buildCounterGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior++; if (buildCounterGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior < 3) { o.initialPromptFulfillment = buildGoogleCloudDialogflowCxV3beta1Fulfillment(); o.repromptEventHandlers = buildUnnamed206(); } buildCounterGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior--; return o; } void checkGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior( api.GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior o) { buildCounterGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior++; if (buildCounterGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior < 3) { checkGoogleCloudDialogflowCxV3beta1Fulfillment(o.initialPromptFulfillment! as api.GoogleCloudDialogflowCxV3beta1Fulfillment); checkUnnamed206(o.repromptEventHandlers!); } buildCounterGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior--; } core.List<api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases> buildUnnamed207() { var o = <api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases>[]; o.add(buildGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases()); o.add(buildGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases()); return o; } void checkUnnamed207( core.List<api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases( o[0] as api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases); checkGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases( o[1] as api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases); } core.List<api.GoogleCloudDialogflowCxV3beta1ResponseMessage> buildUnnamed208() { var o = <api.GoogleCloudDialogflowCxV3beta1ResponseMessage>[]; o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessage()); o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessage()); return o; } void checkUnnamed208( core.List<api.GoogleCloudDialogflowCxV3beta1ResponseMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1ResponseMessage( o[0] as api.GoogleCloudDialogflowCxV3beta1ResponseMessage); checkGoogleCloudDialogflowCxV3beta1ResponseMessage( o[1] as api.GoogleCloudDialogflowCxV3beta1ResponseMessage); } core.List<api.GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction> buildUnnamed209() { var o = <api.GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction>[]; o.add(buildGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction()); o.add(buildGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction()); return o; } void checkUnnamed209( core.List<api.GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction( o[0] as api.GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction); checkGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction( o[1] as api.GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction); } core.int buildCounterGoogleCloudDialogflowCxV3beta1Fulfillment = 0; api.GoogleCloudDialogflowCxV3beta1Fulfillment buildGoogleCloudDialogflowCxV3beta1Fulfillment() { var o = api.GoogleCloudDialogflowCxV3beta1Fulfillment(); buildCounterGoogleCloudDialogflowCxV3beta1Fulfillment++; if (buildCounterGoogleCloudDialogflowCxV3beta1Fulfillment < 3) { o.conditionalCases = buildUnnamed207(); o.messages = buildUnnamed208(); o.setParameterActions = buildUnnamed209(); o.tag = 'foo'; o.webhook = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1Fulfillment--; return o; } void checkGoogleCloudDialogflowCxV3beta1Fulfillment( api.GoogleCloudDialogflowCxV3beta1Fulfillment o) { buildCounterGoogleCloudDialogflowCxV3beta1Fulfillment++; if (buildCounterGoogleCloudDialogflowCxV3beta1Fulfillment < 3) { checkUnnamed207(o.conditionalCases!); checkUnnamed208(o.messages!); checkUnnamed209(o.setParameterActions!); unittest.expect( o.tag!, unittest.equals('foo'), ); unittest.expect( o.webhook!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1Fulfillment--; } core.List<api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase> buildUnnamed210() { var o = <api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase>[]; o.add(buildGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase()); o.add(buildGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase()); return o; } void checkUnnamed210( core.List<api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase(o[0] as api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase); checkGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase(o[1] as api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase); } core.int buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases = 0; api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases buildGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases() { var o = api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases(); buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases++; if (buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases < 3) { o.cases = buildUnnamed210(); } buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases--; return o; } void checkGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases( api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases o) { buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases++; if (buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases < 3) { checkUnnamed210(o.cases!); } buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases--; } core.List< api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent> buildUnnamed211() { var o = < api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent>[]; o.add( buildGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent()); o.add( buildGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent()); return o; } void checkUnnamed211( core.List< api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent( o[0] as api .GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent); checkGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent( o[1] as api .GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent); } core.int buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase = 0; api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase buildGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase() { var o = api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase(); buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase++; if (buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase < 3) { o.caseContent = buildUnnamed211(); o.condition = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase--; return o; } void checkGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase( api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase o) { buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase++; if (buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase < 3) { checkUnnamed211(o.caseContent!); unittest.expect( o.condition!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent = 0; api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent buildGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent() { var o = api .GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent(); buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent++; if (buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent < 3) { o.additionalCases = buildGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases(); o.message = buildGoogleCloudDialogflowCxV3beta1ResponseMessage(); } buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent--; return o; } void checkGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent( api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent o) { buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent++; if (buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent < 3) { checkGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases( o.additionalCases! as api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases); checkGoogleCloudDialogflowCxV3beta1ResponseMessage( o.message! as api.GoogleCloudDialogflowCxV3beta1ResponseMessage); } buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction = 0; api.GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction buildGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction() { var o = api.GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction(); buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction++; if (buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction < 3) { o.parameter = 'foo'; o.value = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; } buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction--; return o; } void checkGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction( api.GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction o) { buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction++; if (buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction < 3) { unittest.expect( o.parameter!, unittest.equals('foo'), ); var casted42 = (o.value!) as core.Map; unittest.expect(casted42, unittest.hasLength(3)); unittest.expect( casted42['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted42['bool'], unittest.equals(true), ); unittest.expect( casted42['string'], unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata = 0; api.GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata buildGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata() { var o = api.GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata(); buildCounterGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata < 3) { o.state = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata--; return o; } void checkGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata( api.GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata o) { buildCounterGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata < 3) { unittest.expect( o.state!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata = 0; api.GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata buildGoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata() { var o = api.GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata(); buildCounterGoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata--; return o; } void checkGoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata( api.GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata o) { buildCounterGoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata < 3) { checkGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata(o .genericMetadata! as api.GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata--; } core.List<api.GoogleRpcStatus> buildUnnamed212() { var o = <api.GoogleRpcStatus>[]; o.add(buildGoogleRpcStatus()); o.add(buildGoogleRpcStatus()); return o; } void checkUnnamed212(core.List<api.GoogleRpcStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleRpcStatus(o[0] as api.GoogleRpcStatus); checkGoogleRpcStatus(o[1] as api.GoogleRpcStatus); } core.int buildCounterGoogleCloudDialogflowCxV3beta1ImportDocumentsResponse = 0; api.GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse buildGoogleCloudDialogflowCxV3beta1ImportDocumentsResponse() { var o = api.GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse(); buildCounterGoogleCloudDialogflowCxV3beta1ImportDocumentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1ImportDocumentsResponse < 3) { o.warnings = buildUnnamed212(); } buildCounterGoogleCloudDialogflowCxV3beta1ImportDocumentsResponse--; return o; } void checkGoogleCloudDialogflowCxV3beta1ImportDocumentsResponse( api.GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse o) { buildCounterGoogleCloudDialogflowCxV3beta1ImportDocumentsResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1ImportDocumentsResponse < 3) { checkUnnamed212(o.warnings!); } buildCounterGoogleCloudDialogflowCxV3beta1ImportDocumentsResponse--; } core.List<api.GoogleCloudDialogflowCxV3beta1TestCaseError> buildUnnamed213() { var o = <api.GoogleCloudDialogflowCxV3beta1TestCaseError>[]; o.add(buildGoogleCloudDialogflowCxV3beta1TestCaseError()); o.add(buildGoogleCloudDialogflowCxV3beta1TestCaseError()); return o; } void checkUnnamed213( core.List<api.GoogleCloudDialogflowCxV3beta1TestCaseError> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1TestCaseError( o[0] as api.GoogleCloudDialogflowCxV3beta1TestCaseError); checkGoogleCloudDialogflowCxV3beta1TestCaseError( o[1] as api.GoogleCloudDialogflowCxV3beta1TestCaseError); } core.int buildCounterGoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata = 0; api.GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata buildGoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata() { var o = api.GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata(); buildCounterGoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata < 3) { o.errors = buildUnnamed213(); } buildCounterGoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata--; return o; } void checkGoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata( api.GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata o) { buildCounterGoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata < 3) { checkUnnamed213(o.errors!); } buildCounterGoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata--; } core.List<core.String> buildUnnamed214() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed214(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3beta1ImportTestCasesResponse = 0; api.GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse buildGoogleCloudDialogflowCxV3beta1ImportTestCasesResponse() { var o = api.GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse(); buildCounterGoogleCloudDialogflowCxV3beta1ImportTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1ImportTestCasesResponse < 3) { o.names = buildUnnamed214(); } buildCounterGoogleCloudDialogflowCxV3beta1ImportTestCasesResponse--; return o; } void checkGoogleCloudDialogflowCxV3beta1ImportTestCasesResponse( api.GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse o) { buildCounterGoogleCloudDialogflowCxV3beta1ImportTestCasesResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1ImportTestCasesResponse < 3) { checkUnnamed214(o.names!); } buildCounterGoogleCloudDialogflowCxV3beta1ImportTestCasesResponse--; } core.List<core.String> buildUnnamed215() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed215(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3beta1InputAudioConfig = 0; api.GoogleCloudDialogflowCxV3beta1InputAudioConfig buildGoogleCloudDialogflowCxV3beta1InputAudioConfig() { var o = api.GoogleCloudDialogflowCxV3beta1InputAudioConfig(); buildCounterGoogleCloudDialogflowCxV3beta1InputAudioConfig++; if (buildCounterGoogleCloudDialogflowCxV3beta1InputAudioConfig < 3) { o.audioEncoding = 'foo'; o.enableWordInfo = true; o.model = 'foo'; o.modelVariant = 'foo'; o.phraseHints = buildUnnamed215(); o.sampleRateHertz = 42; o.singleUtterance = true; } buildCounterGoogleCloudDialogflowCxV3beta1InputAudioConfig--; return o; } void checkGoogleCloudDialogflowCxV3beta1InputAudioConfig( api.GoogleCloudDialogflowCxV3beta1InputAudioConfig o) { buildCounterGoogleCloudDialogflowCxV3beta1InputAudioConfig++; if (buildCounterGoogleCloudDialogflowCxV3beta1InputAudioConfig < 3) { unittest.expect( o.audioEncoding!, unittest.equals('foo'), ); unittest.expect(o.enableWordInfo!, unittest.isTrue); unittest.expect( o.model!, unittest.equals('foo'), ); unittest.expect( o.modelVariant!, unittest.equals('foo'), ); checkUnnamed215(o.phraseHints!); unittest.expect( o.sampleRateHertz!, unittest.equals(42), ); unittest.expect(o.singleUtterance!, unittest.isTrue); } buildCounterGoogleCloudDialogflowCxV3beta1InputAudioConfig--; } core.Map<core.String, core.String> buildUnnamed216() { var o = <core.String, core.String>{}; o['x'] = 'foo'; o['y'] = 'foo'; return o; } void checkUnnamed216(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o['x']!, unittest.equals('foo'), ); unittest.expect( o['y']!, unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowCxV3beta1IntentParameter> buildUnnamed217() { var o = <api.GoogleCloudDialogflowCxV3beta1IntentParameter>[]; o.add(buildGoogleCloudDialogflowCxV3beta1IntentParameter()); o.add(buildGoogleCloudDialogflowCxV3beta1IntentParameter()); return o; } void checkUnnamed217( core.List<api.GoogleCloudDialogflowCxV3beta1IntentParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1IntentParameter( o[0] as api.GoogleCloudDialogflowCxV3beta1IntentParameter); checkGoogleCloudDialogflowCxV3beta1IntentParameter( o[1] as api.GoogleCloudDialogflowCxV3beta1IntentParameter); } core.List<api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase> buildUnnamed218() { var o = <api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase>[]; o.add(buildGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase()); o.add(buildGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase()); return o; } void checkUnnamed218( core.List<api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase( o[0] as api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase); checkGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase( o[1] as api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase); } core.int buildCounterGoogleCloudDialogflowCxV3beta1Intent = 0; api.GoogleCloudDialogflowCxV3beta1Intent buildGoogleCloudDialogflowCxV3beta1Intent() { var o = api.GoogleCloudDialogflowCxV3beta1Intent(); buildCounterGoogleCloudDialogflowCxV3beta1Intent++; if (buildCounterGoogleCloudDialogflowCxV3beta1Intent < 3) { o.description = 'foo'; o.displayName = 'foo'; o.isFallback = true; o.labels = buildUnnamed216(); o.name = 'foo'; o.parameters = buildUnnamed217(); o.priority = 42; o.trainingPhrases = buildUnnamed218(); } buildCounterGoogleCloudDialogflowCxV3beta1Intent--; return o; } void checkGoogleCloudDialogflowCxV3beta1Intent( api.GoogleCloudDialogflowCxV3beta1Intent o) { buildCounterGoogleCloudDialogflowCxV3beta1Intent++; if (buildCounterGoogleCloudDialogflowCxV3beta1Intent < 3) { unittest.expect( o.description!, unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect(o.isFallback!, unittest.isTrue); checkUnnamed216(o.labels!); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed217(o.parameters!); unittest.expect( o.priority!, unittest.equals(42), ); checkUnnamed218(o.trainingPhrases!); } buildCounterGoogleCloudDialogflowCxV3beta1Intent--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1IntentInput = 0; api.GoogleCloudDialogflowCxV3beta1IntentInput buildGoogleCloudDialogflowCxV3beta1IntentInput() { var o = api.GoogleCloudDialogflowCxV3beta1IntentInput(); buildCounterGoogleCloudDialogflowCxV3beta1IntentInput++; if (buildCounterGoogleCloudDialogflowCxV3beta1IntentInput < 3) { o.intent = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1IntentInput--; return o; } void checkGoogleCloudDialogflowCxV3beta1IntentInput( api.GoogleCloudDialogflowCxV3beta1IntentInput o) { buildCounterGoogleCloudDialogflowCxV3beta1IntentInput++; if (buildCounterGoogleCloudDialogflowCxV3beta1IntentInput < 3) { unittest.expect( o.intent!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1IntentInput--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1IntentParameter = 0; api.GoogleCloudDialogflowCxV3beta1IntentParameter buildGoogleCloudDialogflowCxV3beta1IntentParameter() { var o = api.GoogleCloudDialogflowCxV3beta1IntentParameter(); buildCounterGoogleCloudDialogflowCxV3beta1IntentParameter++; if (buildCounterGoogleCloudDialogflowCxV3beta1IntentParameter < 3) { o.entityType = 'foo'; o.id = 'foo'; o.isList = true; o.redact = true; } buildCounterGoogleCloudDialogflowCxV3beta1IntentParameter--; return o; } void checkGoogleCloudDialogflowCxV3beta1IntentParameter( api.GoogleCloudDialogflowCxV3beta1IntentParameter o) { buildCounterGoogleCloudDialogflowCxV3beta1IntentParameter++; if (buildCounterGoogleCloudDialogflowCxV3beta1IntentParameter < 3) { unittest.expect( o.entityType!, unittest.equals('foo'), ); unittest.expect( o.id!, unittest.equals('foo'), ); unittest.expect(o.isList!, unittest.isTrue); unittest.expect(o.redact!, unittest.isTrue); } buildCounterGoogleCloudDialogflowCxV3beta1IntentParameter--; } core.List<api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart> buildUnnamed219() { var o = <api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart>[]; o.add(buildGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart()); o.add(buildGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart()); return o; } void checkUnnamed219( core.List<api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart( o[0] as api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart); checkGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart( o[1] as api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart); } core.int buildCounterGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase = 0; api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase buildGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase() { var o = api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase(); buildCounterGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase++; if (buildCounterGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase < 3) { o.id = 'foo'; o.parts = buildUnnamed219(); o.repeatCount = 42; } buildCounterGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase--; return o; } void checkGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase( api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase o) { buildCounterGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase++; if (buildCounterGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase < 3) { unittest.expect( o.id!, unittest.equals('foo'), ); checkUnnamed219(o.parts!); unittest.expect( o.repeatCount!, unittest.equals(42), ); } buildCounterGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart = 0; api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart buildGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart() { var o = api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart(); buildCounterGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart++; if (buildCounterGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart < 3) { o.parameterId = 'foo'; o.text = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart--; return o; } void checkGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart( api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart o) { buildCounterGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart++; if (buildCounterGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart < 3) { unittest.expect( o.parameterId!, unittest.equals('foo'), ); unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart--; } core.List<api.GoogleCloudDialogflowCxV3beta1EventHandler> buildUnnamed220() { var o = <api.GoogleCloudDialogflowCxV3beta1EventHandler>[]; o.add(buildGoogleCloudDialogflowCxV3beta1EventHandler()); o.add(buildGoogleCloudDialogflowCxV3beta1EventHandler()); return o; } void checkUnnamed220( core.List<api.GoogleCloudDialogflowCxV3beta1EventHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1EventHandler( o[0] as api.GoogleCloudDialogflowCxV3beta1EventHandler); checkGoogleCloudDialogflowCxV3beta1EventHandler( o[1] as api.GoogleCloudDialogflowCxV3beta1EventHandler); } core.List<core.String> buildUnnamed221() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed221(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowCxV3beta1TransitionRoute> buildUnnamed222() { var o = <api.GoogleCloudDialogflowCxV3beta1TransitionRoute>[]; o.add(buildGoogleCloudDialogflowCxV3beta1TransitionRoute()); o.add(buildGoogleCloudDialogflowCxV3beta1TransitionRoute()); return o; } void checkUnnamed222( core.List<api.GoogleCloudDialogflowCxV3beta1TransitionRoute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1TransitionRoute( o[0] as api.GoogleCloudDialogflowCxV3beta1TransitionRoute); checkGoogleCloudDialogflowCxV3beta1TransitionRoute( o[1] as api.GoogleCloudDialogflowCxV3beta1TransitionRoute); } core.int buildCounterGoogleCloudDialogflowCxV3beta1Page = 0; api.GoogleCloudDialogflowCxV3beta1Page buildGoogleCloudDialogflowCxV3beta1Page() { var o = api.GoogleCloudDialogflowCxV3beta1Page(); buildCounterGoogleCloudDialogflowCxV3beta1Page++; if (buildCounterGoogleCloudDialogflowCxV3beta1Page < 3) { o.displayName = 'foo'; o.entryFulfillment = buildGoogleCloudDialogflowCxV3beta1Fulfillment(); o.eventHandlers = buildUnnamed220(); o.form = buildGoogleCloudDialogflowCxV3beta1Form(); o.name = 'foo'; o.transitionRouteGroups = buildUnnamed221(); o.transitionRoutes = buildUnnamed222(); } buildCounterGoogleCloudDialogflowCxV3beta1Page--; return o; } void checkGoogleCloudDialogflowCxV3beta1Page( api.GoogleCloudDialogflowCxV3beta1Page o) { buildCounterGoogleCloudDialogflowCxV3beta1Page++; if (buildCounterGoogleCloudDialogflowCxV3beta1Page < 3) { unittest.expect( o.displayName!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3beta1Fulfillment( o.entryFulfillment! as api.GoogleCloudDialogflowCxV3beta1Fulfillment); checkUnnamed220(o.eventHandlers!); checkGoogleCloudDialogflowCxV3beta1Form( o.form! as api.GoogleCloudDialogflowCxV3beta1Form); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed221(o.transitionRouteGroups!); checkUnnamed222(o.transitionRoutes!); } buildCounterGoogleCloudDialogflowCxV3beta1Page--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1PageInfo = 0; api.GoogleCloudDialogflowCxV3beta1PageInfo buildGoogleCloudDialogflowCxV3beta1PageInfo() { var o = api.GoogleCloudDialogflowCxV3beta1PageInfo(); buildCounterGoogleCloudDialogflowCxV3beta1PageInfo++; if (buildCounterGoogleCloudDialogflowCxV3beta1PageInfo < 3) { o.currentPage = 'foo'; o.formInfo = buildGoogleCloudDialogflowCxV3beta1PageInfoFormInfo(); } buildCounterGoogleCloudDialogflowCxV3beta1PageInfo--; return o; } void checkGoogleCloudDialogflowCxV3beta1PageInfo( api.GoogleCloudDialogflowCxV3beta1PageInfo o) { buildCounterGoogleCloudDialogflowCxV3beta1PageInfo++; if (buildCounterGoogleCloudDialogflowCxV3beta1PageInfo < 3) { unittest.expect( o.currentPage!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3beta1PageInfoFormInfo( o.formInfo! as api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfo); } buildCounterGoogleCloudDialogflowCxV3beta1PageInfo--; } core.List<api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo> buildUnnamed223() { var o = <api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo>[]; o.add(buildGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo()); o.add(buildGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo()); return o; } void checkUnnamed223( core.List<api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo( o[0] as api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo); checkGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo( o[1] as api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo); } core.int buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfo = 0; api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfo buildGoogleCloudDialogflowCxV3beta1PageInfoFormInfo() { var o = api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfo(); buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfo++; if (buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfo < 3) { o.parameterInfo = buildUnnamed223(); } buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfo--; return o; } void checkGoogleCloudDialogflowCxV3beta1PageInfoFormInfo( api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfo o) { buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfo++; if (buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfo < 3) { checkUnnamed223(o.parameterInfo!); } buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfo--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo = 0; api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo buildGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo() { var o = api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo(); buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo++; if (buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo < 3) { o.displayName = 'foo'; o.justCollected = true; o.required = true; o.state = 'foo'; o.value = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; } buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo--; return o; } void checkGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo( api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo o) { buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo++; if (buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo < 3) { unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect(o.justCollected!, unittest.isTrue); unittest.expect(o.required!, unittest.isTrue); unittest.expect( o.state!, unittest.equals('foo'), ); var casted43 = (o.value!) as core.Map; unittest.expect(casted43, unittest.hasLength(3)); unittest.expect( casted43['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted43['bool'], unittest.equals(true), ); unittest.expect( casted43['string'], unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1QueryInput = 0; api.GoogleCloudDialogflowCxV3beta1QueryInput buildGoogleCloudDialogflowCxV3beta1QueryInput() { var o = api.GoogleCloudDialogflowCxV3beta1QueryInput(); buildCounterGoogleCloudDialogflowCxV3beta1QueryInput++; if (buildCounterGoogleCloudDialogflowCxV3beta1QueryInput < 3) { o.audio = buildGoogleCloudDialogflowCxV3beta1AudioInput(); o.dtmf = buildGoogleCloudDialogflowCxV3beta1DtmfInput(); o.event = buildGoogleCloudDialogflowCxV3beta1EventInput(); o.intent = buildGoogleCloudDialogflowCxV3beta1IntentInput(); o.languageCode = 'foo'; o.text = buildGoogleCloudDialogflowCxV3beta1TextInput(); } buildCounterGoogleCloudDialogflowCxV3beta1QueryInput--; return o; } void checkGoogleCloudDialogflowCxV3beta1QueryInput( api.GoogleCloudDialogflowCxV3beta1QueryInput o) { buildCounterGoogleCloudDialogflowCxV3beta1QueryInput++; if (buildCounterGoogleCloudDialogflowCxV3beta1QueryInput < 3) { checkGoogleCloudDialogflowCxV3beta1AudioInput( o.audio! as api.GoogleCloudDialogflowCxV3beta1AudioInput); checkGoogleCloudDialogflowCxV3beta1DtmfInput( o.dtmf! as api.GoogleCloudDialogflowCxV3beta1DtmfInput); checkGoogleCloudDialogflowCxV3beta1EventInput( o.event! as api.GoogleCloudDialogflowCxV3beta1EventInput); checkGoogleCloudDialogflowCxV3beta1IntentInput( o.intent! as api.GoogleCloudDialogflowCxV3beta1IntentInput); unittest.expect( o.languageCode!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3beta1TextInput( o.text! as api.GoogleCloudDialogflowCxV3beta1TextInput); } buildCounterGoogleCloudDialogflowCxV3beta1QueryInput--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata = 0; api.GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata buildGoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata() { var o = api.GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata(); buildCounterGoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata--; return o; } void checkGoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata( api.GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata o) { buildCounterGoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata < 3) { checkGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata(o .genericMetadata! as api.GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata--; } core.Map<core.String, core.Object> buildUnnamed224() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed224(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted44 = (o['x']!) as core.Map; unittest.expect(casted44, unittest.hasLength(3)); unittest.expect( casted44['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted44['bool'], unittest.equals(true), ); unittest.expect( casted44['string'], unittest.equals('foo'), ); var casted45 = (o['y']!) as core.Map; unittest.expect(casted45, unittest.hasLength(3)); unittest.expect( casted45['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted45['bool'], unittest.equals(true), ); unittest.expect( casted45['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessage = 0; api.GoogleCloudDialogflowCxV3beta1ResponseMessage buildGoogleCloudDialogflowCxV3beta1ResponseMessage() { var o = api.GoogleCloudDialogflowCxV3beta1ResponseMessage(); buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessage++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessage < 3) { o.conversationSuccess = buildGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess(); o.endInteraction = buildGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction(); o.liveAgentHandoff = buildGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff(); o.mixedAudio = buildGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio(); o.outputAudioText = buildGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText(); o.payload = buildUnnamed224(); o.playAudio = buildGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio(); o.text = buildGoogleCloudDialogflowCxV3beta1ResponseMessageText(); } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessage--; return o; } void checkGoogleCloudDialogflowCxV3beta1ResponseMessage( api.GoogleCloudDialogflowCxV3beta1ResponseMessage o) { buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessage++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessage < 3) { checkGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess( o.conversationSuccess! as api .GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess); checkGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction( o.endInteraction! as api.GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction); checkGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff(o .liveAgentHandoff! as api.GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff); checkGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio(o.mixedAudio! as api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio); checkGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText(o .outputAudioText! as api.GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText); checkUnnamed224(o.payload!); checkGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio(o.playAudio! as api.GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio); checkGoogleCloudDialogflowCxV3beta1ResponseMessageText( o.text! as api.GoogleCloudDialogflowCxV3beta1ResponseMessageText); } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessage--; } core.Map<core.String, core.Object> buildUnnamed225() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed225(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted46 = (o['x']!) as core.Map; unittest.expect(casted46, unittest.hasLength(3)); unittest.expect( casted46['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted46['bool'], unittest.equals(true), ); unittest.expect( casted46['string'], unittest.equals('foo'), ); var casted47 = (o['y']!) as core.Map; unittest.expect(casted47, unittest.hasLength(3)); unittest.expect( casted47['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted47['bool'], unittest.equals(true), ); unittest.expect( casted47['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess = 0; api.GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess buildGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess() { var o = api.GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess(); buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess < 3) { o.metadata = buildUnnamed225(); } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess--; return o; } void checkGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess( api.GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess o) { buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess < 3) { checkUnnamed225(o.metadata!); } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction = 0; api.GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction buildGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction() { var o = api.GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction(); buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction < 3) {} buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction--; return o; } void checkGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction( api.GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction o) { buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction < 3) {} buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction--; } core.Map<core.String, core.Object> buildUnnamed226() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed226(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted48 = (o['x']!) as core.Map; unittest.expect(casted48, unittest.hasLength(3)); unittest.expect( casted48['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted48['bool'], unittest.equals(true), ); unittest.expect( casted48['string'], unittest.equals('foo'), ); var casted49 = (o['y']!) as core.Map; unittest.expect(casted49, unittest.hasLength(3)); unittest.expect( casted49['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted49['bool'], unittest.equals(true), ); unittest.expect( casted49['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff = 0; api.GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff buildGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff() { var o = api.GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff(); buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff < 3) { o.metadata = buildUnnamed226(); } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff--; return o; } void checkGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff( api.GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff o) { buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff < 3) { checkUnnamed226(o.metadata!); } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff--; } core.List<api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment> buildUnnamed227() { var o = <api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment>[]; o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment()); o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment()); return o; } void checkUnnamed227( core.List< api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment(o[0] as api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment); checkGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment(o[1] as api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment); } core.int buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio = 0; api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio buildGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio() { var o = api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio(); buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio < 3) { o.segments = buildUnnamed227(); } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio--; return o; } void checkGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio( api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio o) { buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio < 3) { checkUnnamed227(o.segments!); } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment = 0; api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment buildGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment() { var o = api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment(); buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment < 3) { o.allowPlaybackInterruption = true; o.audio = 'foo'; o.uri = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment--; return o; } void checkGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment( api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment o) { buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment < 3) { unittest.expect(o.allowPlaybackInterruption!, unittest.isTrue); unittest.expect( o.audio!, unittest.equals('foo'), ); unittest.expect( o.uri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText = 0; api.GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText buildGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText() { var o = api.GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText(); buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText < 3) { o.allowPlaybackInterruption = true; o.ssml = 'foo'; o.text = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText--; return o; } void checkGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText( api.GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText o) { buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText < 3) { unittest.expect(o.allowPlaybackInterruption!, unittest.isTrue); unittest.expect( o.ssml!, unittest.equals('foo'), ); unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio = 0; api.GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio buildGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio() { var o = api.GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio(); buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio < 3) { o.allowPlaybackInterruption = true; o.audioUri = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio--; return o; } void checkGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio( api.GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio o) { buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio < 3) { unittest.expect(o.allowPlaybackInterruption!, unittest.isTrue); unittest.expect( o.audioUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio--; } core.List<core.String> buildUnnamed228() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed228(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageText = 0; api.GoogleCloudDialogflowCxV3beta1ResponseMessageText buildGoogleCloudDialogflowCxV3beta1ResponseMessageText() { var o = api.GoogleCloudDialogflowCxV3beta1ResponseMessageText(); buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageText++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageText < 3) { o.allowPlaybackInterruption = true; o.text = buildUnnamed228(); } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageText--; return o; } void checkGoogleCloudDialogflowCxV3beta1ResponseMessageText( api.GoogleCloudDialogflowCxV3beta1ResponseMessageText o) { buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageText++; if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageText < 3) { unittest.expect(o.allowPlaybackInterruption!, unittest.isTrue); checkUnnamed228(o.text!); } buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageText--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1RunTestCaseMetadata = 0; api.GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata buildGoogleCloudDialogflowCxV3beta1RunTestCaseMetadata() { var o = api.GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata(); buildCounterGoogleCloudDialogflowCxV3beta1RunTestCaseMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1RunTestCaseMetadata < 3) {} buildCounterGoogleCloudDialogflowCxV3beta1RunTestCaseMetadata--; return o; } void checkGoogleCloudDialogflowCxV3beta1RunTestCaseMetadata( api.GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata o) { buildCounterGoogleCloudDialogflowCxV3beta1RunTestCaseMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1RunTestCaseMetadata < 3) {} buildCounterGoogleCloudDialogflowCxV3beta1RunTestCaseMetadata--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1RunTestCaseResponse = 0; api.GoogleCloudDialogflowCxV3beta1RunTestCaseResponse buildGoogleCloudDialogflowCxV3beta1RunTestCaseResponse() { var o = api.GoogleCloudDialogflowCxV3beta1RunTestCaseResponse(); buildCounterGoogleCloudDialogflowCxV3beta1RunTestCaseResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1RunTestCaseResponse < 3) { o.result = buildGoogleCloudDialogflowCxV3beta1TestCaseResult(); } buildCounterGoogleCloudDialogflowCxV3beta1RunTestCaseResponse--; return o; } void checkGoogleCloudDialogflowCxV3beta1RunTestCaseResponse( api.GoogleCloudDialogflowCxV3beta1RunTestCaseResponse o) { buildCounterGoogleCloudDialogflowCxV3beta1RunTestCaseResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1RunTestCaseResponse < 3) { checkGoogleCloudDialogflowCxV3beta1TestCaseResult( o.result! as api.GoogleCloudDialogflowCxV3beta1TestCaseResult); } buildCounterGoogleCloudDialogflowCxV3beta1RunTestCaseResponse--; } core.Map<core.String, core.Object> buildUnnamed229() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed229(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted50 = (o['x']!) as core.Map; unittest.expect(casted50, unittest.hasLength(3)); unittest.expect( casted50['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted50['bool'], unittest.equals(true), ); unittest.expect( casted50['string'], unittest.equals('foo'), ); var casted51 = (o['y']!) as core.Map; unittest.expect(casted51, unittest.hasLength(3)); unittest.expect( casted51['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted51['bool'], unittest.equals(true), ); unittest.expect( casted51['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3beta1SessionInfo = 0; api.GoogleCloudDialogflowCxV3beta1SessionInfo buildGoogleCloudDialogflowCxV3beta1SessionInfo() { var o = api.GoogleCloudDialogflowCxV3beta1SessionInfo(); buildCounterGoogleCloudDialogflowCxV3beta1SessionInfo++; if (buildCounterGoogleCloudDialogflowCxV3beta1SessionInfo < 3) { o.parameters = buildUnnamed229(); o.session = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1SessionInfo--; return o; } void checkGoogleCloudDialogflowCxV3beta1SessionInfo( api.GoogleCloudDialogflowCxV3beta1SessionInfo o) { buildCounterGoogleCloudDialogflowCxV3beta1SessionInfo++; if (buildCounterGoogleCloudDialogflowCxV3beta1SessionInfo < 3) { checkUnnamed229(o.parameters!); unittest.expect( o.session!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1SessionInfo--; } core.List<core.String> buildUnnamed230() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed230(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowCxV3beta1ConversationTurn> buildUnnamed231() { var o = <api.GoogleCloudDialogflowCxV3beta1ConversationTurn>[]; o.add(buildGoogleCloudDialogflowCxV3beta1ConversationTurn()); o.add(buildGoogleCloudDialogflowCxV3beta1ConversationTurn()); return o; } void checkUnnamed231( core.List<api.GoogleCloudDialogflowCxV3beta1ConversationTurn> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1ConversationTurn( o[0] as api.GoogleCloudDialogflowCxV3beta1ConversationTurn); checkGoogleCloudDialogflowCxV3beta1ConversationTurn( o[1] as api.GoogleCloudDialogflowCxV3beta1ConversationTurn); } core.int buildCounterGoogleCloudDialogflowCxV3beta1TestCase = 0; api.GoogleCloudDialogflowCxV3beta1TestCase buildGoogleCloudDialogflowCxV3beta1TestCase() { var o = api.GoogleCloudDialogflowCxV3beta1TestCase(); buildCounterGoogleCloudDialogflowCxV3beta1TestCase++; if (buildCounterGoogleCloudDialogflowCxV3beta1TestCase < 3) { o.creationTime = 'foo'; o.displayName = 'foo'; o.lastTestResult = buildGoogleCloudDialogflowCxV3beta1TestCaseResult(); o.name = 'foo'; o.notes = 'foo'; o.tags = buildUnnamed230(); o.testCaseConversationTurns = buildUnnamed231(); o.testConfig = buildGoogleCloudDialogflowCxV3beta1TestConfig(); } buildCounterGoogleCloudDialogflowCxV3beta1TestCase--; return o; } void checkGoogleCloudDialogflowCxV3beta1TestCase( api.GoogleCloudDialogflowCxV3beta1TestCase o) { buildCounterGoogleCloudDialogflowCxV3beta1TestCase++; if (buildCounterGoogleCloudDialogflowCxV3beta1TestCase < 3) { unittest.expect( o.creationTime!, unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3beta1TestCaseResult( o.lastTestResult! as api.GoogleCloudDialogflowCxV3beta1TestCaseResult); unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect( o.notes!, unittest.equals('foo'), ); checkUnnamed230(o.tags!); checkUnnamed231(o.testCaseConversationTurns!); checkGoogleCloudDialogflowCxV3beta1TestConfig( o.testConfig! as api.GoogleCloudDialogflowCxV3beta1TestConfig); } buildCounterGoogleCloudDialogflowCxV3beta1TestCase--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1TestCaseError = 0; api.GoogleCloudDialogflowCxV3beta1TestCaseError buildGoogleCloudDialogflowCxV3beta1TestCaseError() { var o = api.GoogleCloudDialogflowCxV3beta1TestCaseError(); buildCounterGoogleCloudDialogflowCxV3beta1TestCaseError++; if (buildCounterGoogleCloudDialogflowCxV3beta1TestCaseError < 3) { o.status = buildGoogleRpcStatus(); o.testCase = buildGoogleCloudDialogflowCxV3beta1TestCase(); } buildCounterGoogleCloudDialogflowCxV3beta1TestCaseError--; return o; } void checkGoogleCloudDialogflowCxV3beta1TestCaseError( api.GoogleCloudDialogflowCxV3beta1TestCaseError o) { buildCounterGoogleCloudDialogflowCxV3beta1TestCaseError++; if (buildCounterGoogleCloudDialogflowCxV3beta1TestCaseError < 3) { checkGoogleRpcStatus(o.status! as api.GoogleRpcStatus); checkGoogleCloudDialogflowCxV3beta1TestCase( o.testCase! as api.GoogleCloudDialogflowCxV3beta1TestCase); } buildCounterGoogleCloudDialogflowCxV3beta1TestCaseError--; } core.List<api.GoogleCloudDialogflowCxV3beta1ConversationTurn> buildUnnamed232() { var o = <api.GoogleCloudDialogflowCxV3beta1ConversationTurn>[]; o.add(buildGoogleCloudDialogflowCxV3beta1ConversationTurn()); o.add(buildGoogleCloudDialogflowCxV3beta1ConversationTurn()); return o; } void checkUnnamed232( core.List<api.GoogleCloudDialogflowCxV3beta1ConversationTurn> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1ConversationTurn( o[0] as api.GoogleCloudDialogflowCxV3beta1ConversationTurn); checkGoogleCloudDialogflowCxV3beta1ConversationTurn( o[1] as api.GoogleCloudDialogflowCxV3beta1ConversationTurn); } core.int buildCounterGoogleCloudDialogflowCxV3beta1TestCaseResult = 0; api.GoogleCloudDialogflowCxV3beta1TestCaseResult buildGoogleCloudDialogflowCxV3beta1TestCaseResult() { var o = api.GoogleCloudDialogflowCxV3beta1TestCaseResult(); buildCounterGoogleCloudDialogflowCxV3beta1TestCaseResult++; if (buildCounterGoogleCloudDialogflowCxV3beta1TestCaseResult < 3) { o.conversationTurns = buildUnnamed232(); o.environment = 'foo'; o.name = 'foo'; o.testResult = 'foo'; o.testTime = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1TestCaseResult--; return o; } void checkGoogleCloudDialogflowCxV3beta1TestCaseResult( api.GoogleCloudDialogflowCxV3beta1TestCaseResult o) { buildCounterGoogleCloudDialogflowCxV3beta1TestCaseResult++; if (buildCounterGoogleCloudDialogflowCxV3beta1TestCaseResult < 3) { checkUnnamed232(o.conversationTurns!); unittest.expect( o.environment!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect( o.testResult!, unittest.equals('foo'), ); unittest.expect( o.testTime!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1TestCaseResult--; } core.List<core.String> buildUnnamed233() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed233(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3beta1TestConfig = 0; api.GoogleCloudDialogflowCxV3beta1TestConfig buildGoogleCloudDialogflowCxV3beta1TestConfig() { var o = api.GoogleCloudDialogflowCxV3beta1TestConfig(); buildCounterGoogleCloudDialogflowCxV3beta1TestConfig++; if (buildCounterGoogleCloudDialogflowCxV3beta1TestConfig < 3) { o.flow = 'foo'; o.trackingParameters = buildUnnamed233(); } buildCounterGoogleCloudDialogflowCxV3beta1TestConfig--; return o; } void checkGoogleCloudDialogflowCxV3beta1TestConfig( api.GoogleCloudDialogflowCxV3beta1TestConfig o) { buildCounterGoogleCloudDialogflowCxV3beta1TestConfig++; if (buildCounterGoogleCloudDialogflowCxV3beta1TestConfig < 3) { unittest.expect( o.flow!, unittest.equals('foo'), ); checkUnnamed233(o.trackingParameters!); } buildCounterGoogleCloudDialogflowCxV3beta1TestConfig--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1TestError = 0; api.GoogleCloudDialogflowCxV3beta1TestError buildGoogleCloudDialogflowCxV3beta1TestError() { var o = api.GoogleCloudDialogflowCxV3beta1TestError(); buildCounterGoogleCloudDialogflowCxV3beta1TestError++; if (buildCounterGoogleCloudDialogflowCxV3beta1TestError < 3) { o.status = buildGoogleRpcStatus(); o.testCase = 'foo'; o.testTime = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1TestError--; return o; } void checkGoogleCloudDialogflowCxV3beta1TestError( api.GoogleCloudDialogflowCxV3beta1TestError o) { buildCounterGoogleCloudDialogflowCxV3beta1TestError++; if (buildCounterGoogleCloudDialogflowCxV3beta1TestError < 3) { checkGoogleRpcStatus(o.status! as api.GoogleRpcStatus); unittest.expect( o.testCase!, unittest.equals('foo'), ); unittest.expect( o.testTime!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1TestError--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1TestRunDifference = 0; api.GoogleCloudDialogflowCxV3beta1TestRunDifference buildGoogleCloudDialogflowCxV3beta1TestRunDifference() { var o = api.GoogleCloudDialogflowCxV3beta1TestRunDifference(); buildCounterGoogleCloudDialogflowCxV3beta1TestRunDifference++; if (buildCounterGoogleCloudDialogflowCxV3beta1TestRunDifference < 3) { o.description = 'foo'; o.type = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1TestRunDifference--; return o; } void checkGoogleCloudDialogflowCxV3beta1TestRunDifference( api.GoogleCloudDialogflowCxV3beta1TestRunDifference o) { buildCounterGoogleCloudDialogflowCxV3beta1TestRunDifference++; if (buildCounterGoogleCloudDialogflowCxV3beta1TestRunDifference < 3) { unittest.expect( o.description!, unittest.equals('foo'), ); unittest.expect( o.type!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1TestRunDifference--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1TextInput = 0; api.GoogleCloudDialogflowCxV3beta1TextInput buildGoogleCloudDialogflowCxV3beta1TextInput() { var o = api.GoogleCloudDialogflowCxV3beta1TextInput(); buildCounterGoogleCloudDialogflowCxV3beta1TextInput++; if (buildCounterGoogleCloudDialogflowCxV3beta1TextInput < 3) { o.text = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1TextInput--; return o; } void checkGoogleCloudDialogflowCxV3beta1TextInput( api.GoogleCloudDialogflowCxV3beta1TextInput o) { buildCounterGoogleCloudDialogflowCxV3beta1TextInput++; if (buildCounterGoogleCloudDialogflowCxV3beta1TextInput < 3) { unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1TextInput--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1TransitionRoute = 0; api.GoogleCloudDialogflowCxV3beta1TransitionRoute buildGoogleCloudDialogflowCxV3beta1TransitionRoute() { var o = api.GoogleCloudDialogflowCxV3beta1TransitionRoute(); buildCounterGoogleCloudDialogflowCxV3beta1TransitionRoute++; if (buildCounterGoogleCloudDialogflowCxV3beta1TransitionRoute < 3) { o.condition = 'foo'; o.intent = 'foo'; o.name = 'foo'; o.targetFlow = 'foo'; o.targetPage = 'foo'; o.triggerFulfillment = buildGoogleCloudDialogflowCxV3beta1Fulfillment(); } buildCounterGoogleCloudDialogflowCxV3beta1TransitionRoute--; return o; } void checkGoogleCloudDialogflowCxV3beta1TransitionRoute( api.GoogleCloudDialogflowCxV3beta1TransitionRoute o) { buildCounterGoogleCloudDialogflowCxV3beta1TransitionRoute++; if (buildCounterGoogleCloudDialogflowCxV3beta1TransitionRoute < 3) { unittest.expect( o.condition!, unittest.equals('foo'), ); unittest.expect( o.intent!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect( o.targetFlow!, unittest.equals('foo'), ); unittest.expect( o.targetPage!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3beta1Fulfillment( o.triggerFulfillment! as api.GoogleCloudDialogflowCxV3beta1Fulfillment); } buildCounterGoogleCloudDialogflowCxV3beta1TransitionRoute--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata = 0; api.GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata buildGoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata() { var o = api.GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata(); buildCounterGoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata--; return o; } void checkGoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata( api.GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata o) { buildCounterGoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata < 3) { checkGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata(o .genericMetadata! as api.GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata--; } core.List<api.GoogleCloudDialogflowCxV3beta1ResponseMessage> buildUnnamed234() { var o = <api.GoogleCloudDialogflowCxV3beta1ResponseMessage>[]; o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessage()); o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessage()); return o; } void checkUnnamed234( core.List<api.GoogleCloudDialogflowCxV3beta1ResponseMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1ResponseMessage( o[0] as api.GoogleCloudDialogflowCxV3beta1ResponseMessage); checkGoogleCloudDialogflowCxV3beta1ResponseMessage( o[1] as api.GoogleCloudDialogflowCxV3beta1ResponseMessage); } core.Map<core.String, core.Object> buildUnnamed235() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed235(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted52 = (o['x']!) as core.Map; unittest.expect(casted52, unittest.hasLength(3)); unittest.expect( casted52['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted52['bool'], unittest.equals(true), ); unittest.expect( casted52['string'], unittest.equals('foo'), ); var casted53 = (o['y']!) as core.Map; unittest.expect(casted53, unittest.hasLength(3)); unittest.expect( casted53['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted53['bool'], unittest.equals(true), ); unittest.expect( casted53['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequest = 0; api.GoogleCloudDialogflowCxV3beta1WebhookRequest buildGoogleCloudDialogflowCxV3beta1WebhookRequest() { var o = api.GoogleCloudDialogflowCxV3beta1WebhookRequest(); buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequest++; if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequest < 3) { o.detectIntentResponseId = 'foo'; o.fulfillmentInfo = buildGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo(); o.intentInfo = buildGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo(); o.messages = buildUnnamed234(); o.pageInfo = buildGoogleCloudDialogflowCxV3beta1PageInfo(); o.payload = buildUnnamed235(); o.sentimentAnalysisResult = buildGoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult(); o.sessionInfo = buildGoogleCloudDialogflowCxV3beta1SessionInfo(); } buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequest--; return o; } void checkGoogleCloudDialogflowCxV3beta1WebhookRequest( api.GoogleCloudDialogflowCxV3beta1WebhookRequest o) { buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequest++; if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequest < 3) { unittest.expect( o.detectIntentResponseId!, unittest.equals('foo'), ); checkGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo( o.fulfillmentInfo! as api.GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo); checkGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo(o.intentInfo! as api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo); checkUnnamed234(o.messages!); checkGoogleCloudDialogflowCxV3beta1PageInfo( o.pageInfo! as api.GoogleCloudDialogflowCxV3beta1PageInfo); checkUnnamed235(o.payload!); checkGoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult( o.sentimentAnalysisResult! as api .GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult); checkGoogleCloudDialogflowCxV3beta1SessionInfo( o.sessionInfo! as api.GoogleCloudDialogflowCxV3beta1SessionInfo); } buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequest--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo = 0; api.GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo buildGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo() { var o = api.GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo(); buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo++; if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo < 3) { o.tag = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo--; return o; } void checkGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo( api.GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo o) { buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo++; if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo < 3) { unittest.expect( o.tag!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo--; } core.Map<core.String, api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue> buildUnnamed236() { var o = <core.String, api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue>{}; o['x'] = buildGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue(); o['y'] = buildGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue(); return o; } void checkUnnamed236( core.Map<core.String, api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue( o['x']! as api .GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue); checkGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue( o['y']! as api .GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue); } core.int buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo = 0; api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo buildGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo() { var o = api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo(); buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo++; if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo < 3) { o.confidence = 42.0; o.displayName = 'foo'; o.lastMatchedIntent = 'foo'; o.parameters = buildUnnamed236(); } buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo--; return o; } void checkGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo( api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo o) { buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo++; if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo < 3) { unittest.expect( o.confidence!, unittest.equals(42.0), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect( o.lastMatchedIntent!, unittest.equals('foo'), ); checkUnnamed236(o.parameters!); } buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue = 0; api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue buildGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue() { var o = api .GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue(); buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue++; if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue < 3) { o.originalValue = 'foo'; o.resolvedValue = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; } buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue--; return o; } void checkGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue( api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue o) { buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue++; if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue < 3) { unittest.expect( o.originalValue!, unittest.equals('foo'), ); var casted54 = (o.resolvedValue!) as core.Map; unittest.expect(casted54, unittest.hasLength(3)); unittest.expect( casted54['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted54['bool'], unittest.equals(true), ); unittest.expect( casted54['string'], unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue--; } core.int buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult = 0; api.GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult buildGoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult() { var o = api.GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult(); buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult++; if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult < 3) { o.magnitude = 42.0; o.score = 42.0; } buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult--; return o; } void checkGoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult( api.GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult o) { buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult++; if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult < 3) { unittest.expect( o.magnitude!, unittest.equals(42.0), ); unittest.expect( o.score!, unittest.equals(42.0), ); } buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult--; } core.Map<core.String, core.Object> buildUnnamed237() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed237(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted55 = (o['x']!) as core.Map; unittest.expect(casted55, unittest.hasLength(3)); unittest.expect( casted55['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted55['bool'], unittest.equals(true), ); unittest.expect( casted55['string'], unittest.equals('foo'), ); var casted56 = (o['y']!) as core.Map; unittest.expect(casted56, unittest.hasLength(3)); unittest.expect( casted56['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted56['bool'], unittest.equals(true), ); unittest.expect( casted56['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponse = 0; api.GoogleCloudDialogflowCxV3beta1WebhookResponse buildGoogleCloudDialogflowCxV3beta1WebhookResponse() { var o = api.GoogleCloudDialogflowCxV3beta1WebhookResponse(); buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponse < 3) { o.fulfillmentResponse = buildGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse(); o.pageInfo = buildGoogleCloudDialogflowCxV3beta1PageInfo(); o.payload = buildUnnamed237(); o.sessionInfo = buildGoogleCloudDialogflowCxV3beta1SessionInfo(); o.targetFlow = 'foo'; o.targetPage = 'foo'; } buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponse--; return o; } void checkGoogleCloudDialogflowCxV3beta1WebhookResponse( api.GoogleCloudDialogflowCxV3beta1WebhookResponse o) { buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponse < 3) { checkGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse( o.fulfillmentResponse! as api .GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse); checkGoogleCloudDialogflowCxV3beta1PageInfo( o.pageInfo! as api.GoogleCloudDialogflowCxV3beta1PageInfo); checkUnnamed237(o.payload!); checkGoogleCloudDialogflowCxV3beta1SessionInfo( o.sessionInfo! as api.GoogleCloudDialogflowCxV3beta1SessionInfo); unittest.expect( o.targetFlow!, unittest.equals('foo'), ); unittest.expect( o.targetPage!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponse--; } core.List<api.GoogleCloudDialogflowCxV3beta1ResponseMessage> buildUnnamed238() { var o = <api.GoogleCloudDialogflowCxV3beta1ResponseMessage>[]; o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessage()); o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessage()); return o; } void checkUnnamed238( core.List<api.GoogleCloudDialogflowCxV3beta1ResponseMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowCxV3beta1ResponseMessage( o[0] as api.GoogleCloudDialogflowCxV3beta1ResponseMessage); checkGoogleCloudDialogflowCxV3beta1ResponseMessage( o[1] as api.GoogleCloudDialogflowCxV3beta1ResponseMessage); } core.int buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse = 0; api.GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse buildGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse() { var o = api.GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse(); buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse < 3) { o.mergeBehavior = 'foo'; o.messages = buildUnnamed238(); } buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse--; return o; } void checkGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse( api.GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse o) { buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse++; if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse < 3) { unittest.expect( o.mergeBehavior!, unittest.equals('foo'), ); checkUnnamed238(o.messages!); } buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse--; } core.int buildCounterGoogleCloudDialogflowV2AnnotatedMessagePart = 0; api.GoogleCloudDialogflowV2AnnotatedMessagePart buildGoogleCloudDialogflowV2AnnotatedMessagePart() { var o = api.GoogleCloudDialogflowV2AnnotatedMessagePart(); buildCounterGoogleCloudDialogflowV2AnnotatedMessagePart++; if (buildCounterGoogleCloudDialogflowV2AnnotatedMessagePart < 3) { o.entityType = 'foo'; o.formattedValue = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o.text = 'foo'; } buildCounterGoogleCloudDialogflowV2AnnotatedMessagePart--; return o; } void checkGoogleCloudDialogflowV2AnnotatedMessagePart( api.GoogleCloudDialogflowV2AnnotatedMessagePart o) { buildCounterGoogleCloudDialogflowV2AnnotatedMessagePart++; if (buildCounterGoogleCloudDialogflowV2AnnotatedMessagePart < 3) { unittest.expect( o.entityType!, unittest.equals('foo'), ); var casted57 = (o.formattedValue!) as core.Map; unittest.expect(casted57, unittest.hasLength(3)); unittest.expect( casted57['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted57['bool'], unittest.equals(true), ); unittest.expect( casted57['string'], unittest.equals('foo'), ); unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2AnnotatedMessagePart--; } core.List<api.GoogleCloudDialogflowV2EntityType> buildUnnamed239() { var o = <api.GoogleCloudDialogflowV2EntityType>[]; o.add(buildGoogleCloudDialogflowV2EntityType()); o.add(buildGoogleCloudDialogflowV2EntityType()); return o; } void checkUnnamed239(core.List<api.GoogleCloudDialogflowV2EntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2EntityType( o[0] as api.GoogleCloudDialogflowV2EntityType); checkGoogleCloudDialogflowV2EntityType( o[1] as api.GoogleCloudDialogflowV2EntityType); } core.int buildCounterGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse = 0; api.GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse buildGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse() { var o = api.GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse(); buildCounterGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse < 3) { o.entityTypes = buildUnnamed239(); } buildCounterGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse--; return o; } void checkGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse( api.GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse o) { buildCounterGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse < 3) { checkUnnamed239(o.entityTypes!); } buildCounterGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse--; } core.List<api.GoogleCloudDialogflowV2Intent> buildUnnamed240() { var o = <api.GoogleCloudDialogflowV2Intent>[]; o.add(buildGoogleCloudDialogflowV2Intent()); o.add(buildGoogleCloudDialogflowV2Intent()); return o; } void checkUnnamed240(core.List<api.GoogleCloudDialogflowV2Intent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Intent(o[0] as api.GoogleCloudDialogflowV2Intent); checkGoogleCloudDialogflowV2Intent(o[1] as api.GoogleCloudDialogflowV2Intent); } core.int buildCounterGoogleCloudDialogflowV2BatchUpdateIntentsResponse = 0; api.GoogleCloudDialogflowV2BatchUpdateIntentsResponse buildGoogleCloudDialogflowV2BatchUpdateIntentsResponse() { var o = api.GoogleCloudDialogflowV2BatchUpdateIntentsResponse(); buildCounterGoogleCloudDialogflowV2BatchUpdateIntentsResponse++; if (buildCounterGoogleCloudDialogflowV2BatchUpdateIntentsResponse < 3) { o.intents = buildUnnamed240(); } buildCounterGoogleCloudDialogflowV2BatchUpdateIntentsResponse--; return o; } void checkGoogleCloudDialogflowV2BatchUpdateIntentsResponse( api.GoogleCloudDialogflowV2BatchUpdateIntentsResponse o) { buildCounterGoogleCloudDialogflowV2BatchUpdateIntentsResponse++; if (buildCounterGoogleCloudDialogflowV2BatchUpdateIntentsResponse < 3) { checkUnnamed240(o.intents!); } buildCounterGoogleCloudDialogflowV2BatchUpdateIntentsResponse--; } core.Map<core.String, core.Object> buildUnnamed241() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed241(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted58 = (o['x']!) as core.Map; unittest.expect(casted58, unittest.hasLength(3)); unittest.expect( casted58['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted58['bool'], unittest.equals(true), ); unittest.expect( casted58['string'], unittest.equals('foo'), ); var casted59 = (o['y']!) as core.Map; unittest.expect(casted59, unittest.hasLength(3)); unittest.expect( casted59['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted59['bool'], unittest.equals(true), ); unittest.expect( casted59['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2Context = 0; api.GoogleCloudDialogflowV2Context buildGoogleCloudDialogflowV2Context() { var o = api.GoogleCloudDialogflowV2Context(); buildCounterGoogleCloudDialogflowV2Context++; if (buildCounterGoogleCloudDialogflowV2Context < 3) { o.lifespanCount = 42; o.name = 'foo'; o.parameters = buildUnnamed241(); } buildCounterGoogleCloudDialogflowV2Context--; return o; } void checkGoogleCloudDialogflowV2Context(api.GoogleCloudDialogflowV2Context o) { buildCounterGoogleCloudDialogflowV2Context++; if (buildCounterGoogleCloudDialogflowV2Context < 3) { unittest.expect( o.lifespanCount!, unittest.equals(42), ); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed241(o.parameters!); } buildCounterGoogleCloudDialogflowV2Context--; } core.int buildCounterGoogleCloudDialogflowV2ConversationEvent = 0; api.GoogleCloudDialogflowV2ConversationEvent buildGoogleCloudDialogflowV2ConversationEvent() { var o = api.GoogleCloudDialogflowV2ConversationEvent(); buildCounterGoogleCloudDialogflowV2ConversationEvent++; if (buildCounterGoogleCloudDialogflowV2ConversationEvent < 3) { o.conversation = 'foo'; o.errorStatus = buildGoogleRpcStatus(); o.newMessagePayload = buildGoogleCloudDialogflowV2Message(); o.type = 'foo'; } buildCounterGoogleCloudDialogflowV2ConversationEvent--; return o; } void checkGoogleCloudDialogflowV2ConversationEvent( api.GoogleCloudDialogflowV2ConversationEvent o) { buildCounterGoogleCloudDialogflowV2ConversationEvent++; if (buildCounterGoogleCloudDialogflowV2ConversationEvent < 3) { unittest.expect( o.conversation!, unittest.equals('foo'), ); checkGoogleRpcStatus(o.errorStatus! as api.GoogleRpcStatus); checkGoogleCloudDialogflowV2Message( o.newMessagePayload! as api.GoogleCloudDialogflowV2Message); unittest.expect( o.type!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2ConversationEvent--; } core.List<api.GoogleCloudDialogflowV2EntityTypeEntity> buildUnnamed242() { var o = <api.GoogleCloudDialogflowV2EntityTypeEntity>[]; o.add(buildGoogleCloudDialogflowV2EntityTypeEntity()); o.add(buildGoogleCloudDialogflowV2EntityTypeEntity()); return o; } void checkUnnamed242(core.List<api.GoogleCloudDialogflowV2EntityTypeEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2EntityTypeEntity( o[0] as api.GoogleCloudDialogflowV2EntityTypeEntity); checkGoogleCloudDialogflowV2EntityTypeEntity( o[1] as api.GoogleCloudDialogflowV2EntityTypeEntity); } core.int buildCounterGoogleCloudDialogflowV2EntityType = 0; api.GoogleCloudDialogflowV2EntityType buildGoogleCloudDialogflowV2EntityType() { var o = api.GoogleCloudDialogflowV2EntityType(); buildCounterGoogleCloudDialogflowV2EntityType++; if (buildCounterGoogleCloudDialogflowV2EntityType < 3) { o.autoExpansionMode = 'foo'; o.displayName = 'foo'; o.enableFuzzyExtraction = true; o.entities = buildUnnamed242(); o.kind = 'foo'; o.name = 'foo'; } buildCounterGoogleCloudDialogflowV2EntityType--; return o; } void checkGoogleCloudDialogflowV2EntityType( api.GoogleCloudDialogflowV2EntityType o) { buildCounterGoogleCloudDialogflowV2EntityType++; if (buildCounterGoogleCloudDialogflowV2EntityType < 3) { unittest.expect( o.autoExpansionMode!, unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect(o.enableFuzzyExtraction!, unittest.isTrue); checkUnnamed242(o.entities!); unittest.expect( o.kind!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2EntityType--; } core.List<core.String> buildUnnamed243() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed243(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2EntityTypeEntity = 0; api.GoogleCloudDialogflowV2EntityTypeEntity buildGoogleCloudDialogflowV2EntityTypeEntity() { var o = api.GoogleCloudDialogflowV2EntityTypeEntity(); buildCounterGoogleCloudDialogflowV2EntityTypeEntity++; if (buildCounterGoogleCloudDialogflowV2EntityTypeEntity < 3) { o.synonyms = buildUnnamed243(); o.value = 'foo'; } buildCounterGoogleCloudDialogflowV2EntityTypeEntity--; return o; } void checkGoogleCloudDialogflowV2EntityTypeEntity( api.GoogleCloudDialogflowV2EntityTypeEntity o) { buildCounterGoogleCloudDialogflowV2EntityTypeEntity++; if (buildCounterGoogleCloudDialogflowV2EntityTypeEntity < 3) { checkUnnamed243(o.synonyms!); unittest.expect( o.value!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2EntityTypeEntity--; } core.Map<core.String, core.Object> buildUnnamed244() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed244(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted60 = (o['x']!) as core.Map; unittest.expect(casted60, unittest.hasLength(3)); unittest.expect( casted60['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted60['bool'], unittest.equals(true), ); unittest.expect( casted60['string'], unittest.equals('foo'), ); var casted61 = (o['y']!) as core.Map; unittest.expect(casted61, unittest.hasLength(3)); unittest.expect( casted61['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted61['bool'], unittest.equals(true), ); unittest.expect( casted61['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2EventInput = 0; api.GoogleCloudDialogflowV2EventInput buildGoogleCloudDialogflowV2EventInput() { var o = api.GoogleCloudDialogflowV2EventInput(); buildCounterGoogleCloudDialogflowV2EventInput++; if (buildCounterGoogleCloudDialogflowV2EventInput < 3) { o.languageCode = 'foo'; o.name = 'foo'; o.parameters = buildUnnamed244(); } buildCounterGoogleCloudDialogflowV2EventInput--; return o; } void checkGoogleCloudDialogflowV2EventInput( api.GoogleCloudDialogflowV2EventInput o) { buildCounterGoogleCloudDialogflowV2EventInput++; if (buildCounterGoogleCloudDialogflowV2EventInput < 3) { unittest.expect( o.languageCode!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed244(o.parameters!); } buildCounterGoogleCloudDialogflowV2EventInput--; } core.int buildCounterGoogleCloudDialogflowV2ExportAgentResponse = 0; api.GoogleCloudDialogflowV2ExportAgentResponse buildGoogleCloudDialogflowV2ExportAgentResponse() { var o = api.GoogleCloudDialogflowV2ExportAgentResponse(); buildCounterGoogleCloudDialogflowV2ExportAgentResponse++; if (buildCounterGoogleCloudDialogflowV2ExportAgentResponse < 3) { o.agentContent = 'foo'; o.agentUri = 'foo'; } buildCounterGoogleCloudDialogflowV2ExportAgentResponse--; return o; } void checkGoogleCloudDialogflowV2ExportAgentResponse( api.GoogleCloudDialogflowV2ExportAgentResponse o) { buildCounterGoogleCloudDialogflowV2ExportAgentResponse++; if (buildCounterGoogleCloudDialogflowV2ExportAgentResponse < 3) { unittest.expect( o.agentContent!, unittest.equals('foo'), ); unittest.expect( o.agentUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2ExportAgentResponse--; } core.List<core.String> buildUnnamed245() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed245(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.List<core.String> buildUnnamed246() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed246(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowV2IntentFollowupIntentInfo> buildUnnamed247() { var o = <api.GoogleCloudDialogflowV2IntentFollowupIntentInfo>[]; o.add(buildGoogleCloudDialogflowV2IntentFollowupIntentInfo()); o.add(buildGoogleCloudDialogflowV2IntentFollowupIntentInfo()); return o; } void checkUnnamed247( core.List<api.GoogleCloudDialogflowV2IntentFollowupIntentInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentFollowupIntentInfo( o[0] as api.GoogleCloudDialogflowV2IntentFollowupIntentInfo); checkGoogleCloudDialogflowV2IntentFollowupIntentInfo( o[1] as api.GoogleCloudDialogflowV2IntentFollowupIntentInfo); } core.List<core.String> buildUnnamed248() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed248(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowV2IntentMessage> buildUnnamed249() { var o = <api.GoogleCloudDialogflowV2IntentMessage>[]; o.add(buildGoogleCloudDialogflowV2IntentMessage()); o.add(buildGoogleCloudDialogflowV2IntentMessage()); return o; } void checkUnnamed249(core.List<api.GoogleCloudDialogflowV2IntentMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessage( o[0] as api.GoogleCloudDialogflowV2IntentMessage); checkGoogleCloudDialogflowV2IntentMessage( o[1] as api.GoogleCloudDialogflowV2IntentMessage); } core.List<api.GoogleCloudDialogflowV2Context> buildUnnamed250() { var o = <api.GoogleCloudDialogflowV2Context>[]; o.add(buildGoogleCloudDialogflowV2Context()); o.add(buildGoogleCloudDialogflowV2Context()); return o; } void checkUnnamed250(core.List<api.GoogleCloudDialogflowV2Context> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Context( o[0] as api.GoogleCloudDialogflowV2Context); checkGoogleCloudDialogflowV2Context( o[1] as api.GoogleCloudDialogflowV2Context); } core.List<api.GoogleCloudDialogflowV2IntentParameter> buildUnnamed251() { var o = <api.GoogleCloudDialogflowV2IntentParameter>[]; o.add(buildGoogleCloudDialogflowV2IntentParameter()); o.add(buildGoogleCloudDialogflowV2IntentParameter()); return o; } void checkUnnamed251(core.List<api.GoogleCloudDialogflowV2IntentParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentParameter( o[0] as api.GoogleCloudDialogflowV2IntentParameter); checkGoogleCloudDialogflowV2IntentParameter( o[1] as api.GoogleCloudDialogflowV2IntentParameter); } core.List<api.GoogleCloudDialogflowV2IntentTrainingPhrase> buildUnnamed252() { var o = <api.GoogleCloudDialogflowV2IntentTrainingPhrase>[]; o.add(buildGoogleCloudDialogflowV2IntentTrainingPhrase()); o.add(buildGoogleCloudDialogflowV2IntentTrainingPhrase()); return o; } void checkUnnamed252( core.List<api.GoogleCloudDialogflowV2IntentTrainingPhrase> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentTrainingPhrase( o[0] as api.GoogleCloudDialogflowV2IntentTrainingPhrase); checkGoogleCloudDialogflowV2IntentTrainingPhrase( o[1] as api.GoogleCloudDialogflowV2IntentTrainingPhrase); } core.int buildCounterGoogleCloudDialogflowV2Intent = 0; api.GoogleCloudDialogflowV2Intent buildGoogleCloudDialogflowV2Intent() { var o = api.GoogleCloudDialogflowV2Intent(); buildCounterGoogleCloudDialogflowV2Intent++; if (buildCounterGoogleCloudDialogflowV2Intent < 3) { o.action = 'foo'; o.defaultResponsePlatforms = buildUnnamed245(); o.displayName = 'foo'; o.events = buildUnnamed246(); o.followupIntentInfo = buildUnnamed247(); o.inputContextNames = buildUnnamed248(); o.isFallback = true; o.messages = buildUnnamed249(); o.mlDisabled = true; o.name = 'foo'; o.outputContexts = buildUnnamed250(); o.parameters = buildUnnamed251(); o.parentFollowupIntentName = 'foo'; o.priority = 42; o.resetContexts = true; o.rootFollowupIntentName = 'foo'; o.trainingPhrases = buildUnnamed252(); o.webhookState = 'foo'; } buildCounterGoogleCloudDialogflowV2Intent--; return o; } void checkGoogleCloudDialogflowV2Intent(api.GoogleCloudDialogflowV2Intent o) { buildCounterGoogleCloudDialogflowV2Intent++; if (buildCounterGoogleCloudDialogflowV2Intent < 3) { unittest.expect( o.action!, unittest.equals('foo'), ); checkUnnamed245(o.defaultResponsePlatforms!); unittest.expect( o.displayName!, unittest.equals('foo'), ); checkUnnamed246(o.events!); checkUnnamed247(o.followupIntentInfo!); checkUnnamed248(o.inputContextNames!); unittest.expect(o.isFallback!, unittest.isTrue); checkUnnamed249(o.messages!); unittest.expect(o.mlDisabled!, unittest.isTrue); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed250(o.outputContexts!); checkUnnamed251(o.parameters!); unittest.expect( o.parentFollowupIntentName!, unittest.equals('foo'), ); unittest.expect( o.priority!, unittest.equals(42), ); unittest.expect(o.resetContexts!, unittest.isTrue); unittest.expect( o.rootFollowupIntentName!, unittest.equals('foo'), ); checkUnnamed252(o.trainingPhrases!); unittest.expect( o.webhookState!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2Intent--; } core.int buildCounterGoogleCloudDialogflowV2IntentFollowupIntentInfo = 0; api.GoogleCloudDialogflowV2IntentFollowupIntentInfo buildGoogleCloudDialogflowV2IntentFollowupIntentInfo() { var o = api.GoogleCloudDialogflowV2IntentFollowupIntentInfo(); buildCounterGoogleCloudDialogflowV2IntentFollowupIntentInfo++; if (buildCounterGoogleCloudDialogflowV2IntentFollowupIntentInfo < 3) { o.followupIntentName = 'foo'; o.parentFollowupIntentName = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentFollowupIntentInfo--; return o; } void checkGoogleCloudDialogflowV2IntentFollowupIntentInfo( api.GoogleCloudDialogflowV2IntentFollowupIntentInfo o) { buildCounterGoogleCloudDialogflowV2IntentFollowupIntentInfo++; if (buildCounterGoogleCloudDialogflowV2IntentFollowupIntentInfo < 3) { unittest.expect( o.followupIntentName!, unittest.equals('foo'), ); unittest.expect( o.parentFollowupIntentName!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentFollowupIntentInfo--; } core.Map<core.String, core.Object> buildUnnamed253() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed253(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted62 = (o['x']!) as core.Map; unittest.expect(casted62, unittest.hasLength(3)); unittest.expect( casted62['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted62['bool'], unittest.equals(true), ); unittest.expect( casted62['string'], unittest.equals('foo'), ); var casted63 = (o['y']!) as core.Map; unittest.expect(casted63, unittest.hasLength(3)); unittest.expect( casted63['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted63['bool'], unittest.equals(true), ); unittest.expect( casted63['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2IntentMessage = 0; api.GoogleCloudDialogflowV2IntentMessage buildGoogleCloudDialogflowV2IntentMessage() { var o = api.GoogleCloudDialogflowV2IntentMessage(); buildCounterGoogleCloudDialogflowV2IntentMessage++; if (buildCounterGoogleCloudDialogflowV2IntentMessage < 3) { o.basicCard = buildGoogleCloudDialogflowV2IntentMessageBasicCard(); o.browseCarouselCard = buildGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard(); o.card = buildGoogleCloudDialogflowV2IntentMessageCard(); o.carouselSelect = buildGoogleCloudDialogflowV2IntentMessageCarouselSelect(); o.image = buildGoogleCloudDialogflowV2IntentMessageImage(); o.linkOutSuggestion = buildGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion(); o.listSelect = buildGoogleCloudDialogflowV2IntentMessageListSelect(); o.mediaContent = buildGoogleCloudDialogflowV2IntentMessageMediaContent(); o.payload = buildUnnamed253(); o.platform = 'foo'; o.quickReplies = buildGoogleCloudDialogflowV2IntentMessageQuickReplies(); o.simpleResponses = buildGoogleCloudDialogflowV2IntentMessageSimpleResponses(); o.suggestions = buildGoogleCloudDialogflowV2IntentMessageSuggestions(); o.tableCard = buildGoogleCloudDialogflowV2IntentMessageTableCard(); o.text = buildGoogleCloudDialogflowV2IntentMessageText(); } buildCounterGoogleCloudDialogflowV2IntentMessage--; return o; } void checkGoogleCloudDialogflowV2IntentMessage( api.GoogleCloudDialogflowV2IntentMessage o) { buildCounterGoogleCloudDialogflowV2IntentMessage++; if (buildCounterGoogleCloudDialogflowV2IntentMessage < 3) { checkGoogleCloudDialogflowV2IntentMessageBasicCard( o.basicCard! as api.GoogleCloudDialogflowV2IntentMessageBasicCard); checkGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard( o.browseCarouselCard! as api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard); checkGoogleCloudDialogflowV2IntentMessageCard( o.card! as api.GoogleCloudDialogflowV2IntentMessageCard); checkGoogleCloudDialogflowV2IntentMessageCarouselSelect(o.carouselSelect! as api.GoogleCloudDialogflowV2IntentMessageCarouselSelect); checkGoogleCloudDialogflowV2IntentMessageImage( o.image! as api.GoogleCloudDialogflowV2IntentMessageImage); checkGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion( o.linkOutSuggestion! as api.GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion); checkGoogleCloudDialogflowV2IntentMessageListSelect( o.listSelect! as api.GoogleCloudDialogflowV2IntentMessageListSelect); checkGoogleCloudDialogflowV2IntentMessageMediaContent(o.mediaContent! as api.GoogleCloudDialogflowV2IntentMessageMediaContent); checkUnnamed253(o.payload!); unittest.expect( o.platform!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2IntentMessageQuickReplies(o.quickReplies! as api.GoogleCloudDialogflowV2IntentMessageQuickReplies); checkGoogleCloudDialogflowV2IntentMessageSimpleResponses(o.simpleResponses! as api.GoogleCloudDialogflowV2IntentMessageSimpleResponses); checkGoogleCloudDialogflowV2IntentMessageSuggestions( o.suggestions! as api.GoogleCloudDialogflowV2IntentMessageSuggestions); checkGoogleCloudDialogflowV2IntentMessageTableCard( o.tableCard! as api.GoogleCloudDialogflowV2IntentMessageTableCard); checkGoogleCloudDialogflowV2IntentMessageText( o.text! as api.GoogleCloudDialogflowV2IntentMessageText); } buildCounterGoogleCloudDialogflowV2IntentMessage--; } core.List<api.GoogleCloudDialogflowV2IntentMessageBasicCardButton> buildUnnamed254() { var o = <api.GoogleCloudDialogflowV2IntentMessageBasicCardButton>[]; o.add(buildGoogleCloudDialogflowV2IntentMessageBasicCardButton()); o.add(buildGoogleCloudDialogflowV2IntentMessageBasicCardButton()); return o; } void checkUnnamed254( core.List<api.GoogleCloudDialogflowV2IntentMessageBasicCardButton> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageBasicCardButton( o[0] as api.GoogleCloudDialogflowV2IntentMessageBasicCardButton); checkGoogleCloudDialogflowV2IntentMessageBasicCardButton( o[1] as api.GoogleCloudDialogflowV2IntentMessageBasicCardButton); } core.int buildCounterGoogleCloudDialogflowV2IntentMessageBasicCard = 0; api.GoogleCloudDialogflowV2IntentMessageBasicCard buildGoogleCloudDialogflowV2IntentMessageBasicCard() { var o = api.GoogleCloudDialogflowV2IntentMessageBasicCard(); buildCounterGoogleCloudDialogflowV2IntentMessageBasicCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBasicCard < 3) { o.buttons = buildUnnamed254(); o.formattedText = 'foo'; o.image = buildGoogleCloudDialogflowV2IntentMessageImage(); o.subtitle = 'foo'; o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageBasicCard--; return o; } void checkGoogleCloudDialogflowV2IntentMessageBasicCard( api.GoogleCloudDialogflowV2IntentMessageBasicCard o) { buildCounterGoogleCloudDialogflowV2IntentMessageBasicCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBasicCard < 3) { checkUnnamed254(o.buttons!); unittest.expect( o.formattedText!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2IntentMessageImage( o.image! as api.GoogleCloudDialogflowV2IntentMessageImage); unittest.expect( o.subtitle!, unittest.equals('foo'), ); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageBasicCard--; } core.int buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButton = 0; api.GoogleCloudDialogflowV2IntentMessageBasicCardButton buildGoogleCloudDialogflowV2IntentMessageBasicCardButton() { var o = api.GoogleCloudDialogflowV2IntentMessageBasicCardButton(); buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButton++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButton < 3) { o.openUriAction = buildGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction(); o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButton--; return o; } void checkGoogleCloudDialogflowV2IntentMessageBasicCardButton( api.GoogleCloudDialogflowV2IntentMessageBasicCardButton o) { buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButton++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButton < 3) { checkGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction( o.openUriAction! as api .GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButton--; } core.int buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction = 0; api.GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction buildGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction() { var o = api.GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction(); buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction < 3) { o.uri = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction--; return o; } void checkGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction( api.GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction o) { buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction < 3) { unittest.expect( o.uri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction--; } core.List< api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem> buildUnnamed255() { var o = < api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem>[]; o.add( buildGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem()); o.add( buildGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem()); return o; } void checkUnnamed255( core.List< api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem( o[0] as api .GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem); checkGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem( o[1] as api .GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem); } core.int buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard = 0; api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard buildGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard() { var o = api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard(); buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard < 3) { o.imageDisplayOptions = 'foo'; o.items = buildUnnamed255(); } buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard--; return o; } void checkGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard( api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard o) { buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard < 3) { unittest.expect( o.imageDisplayOptions!, unittest.equals('foo'), ); checkUnnamed255(o.items!); } buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard--; } core.int buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem = 0; api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem buildGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem() { var o = api .GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem(); buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem < 3) { o.description = 'foo'; o.footer = 'foo'; o.image = buildGoogleCloudDialogflowV2IntentMessageImage(); o.openUriAction = buildGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction(); o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem--; return o; } void checkGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem( api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem o) { buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem < 3) { unittest.expect( o.description!, unittest.equals('foo'), ); unittest.expect( o.footer!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2IntentMessageImage( o.image! as api.GoogleCloudDialogflowV2IntentMessageImage); checkGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction( o.openUriAction! as api .GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem--; } core.int buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction = 0; api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction buildGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction() { var o = api .GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction(); buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction < 3) { o.url = 'foo'; o.urlTypeHint = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction--; return o; } void checkGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction( api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction o) { buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction < 3) { unittest.expect( o.url!, unittest.equals('foo'), ); unittest.expect( o.urlTypeHint!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction--; } core.List<api.GoogleCloudDialogflowV2IntentMessageCardButton> buildUnnamed256() { var o = <api.GoogleCloudDialogflowV2IntentMessageCardButton>[]; o.add(buildGoogleCloudDialogflowV2IntentMessageCardButton()); o.add(buildGoogleCloudDialogflowV2IntentMessageCardButton()); return o; } void checkUnnamed256( core.List<api.GoogleCloudDialogflowV2IntentMessageCardButton> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageCardButton( o[0] as api.GoogleCloudDialogflowV2IntentMessageCardButton); checkGoogleCloudDialogflowV2IntentMessageCardButton( o[1] as api.GoogleCloudDialogflowV2IntentMessageCardButton); } core.int buildCounterGoogleCloudDialogflowV2IntentMessageCard = 0; api.GoogleCloudDialogflowV2IntentMessageCard buildGoogleCloudDialogflowV2IntentMessageCard() { var o = api.GoogleCloudDialogflowV2IntentMessageCard(); buildCounterGoogleCloudDialogflowV2IntentMessageCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageCard < 3) { o.buttons = buildUnnamed256(); o.imageUri = 'foo'; o.subtitle = 'foo'; o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageCard--; return o; } void checkGoogleCloudDialogflowV2IntentMessageCard( api.GoogleCloudDialogflowV2IntentMessageCard o) { buildCounterGoogleCloudDialogflowV2IntentMessageCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageCard < 3) { checkUnnamed256(o.buttons!); unittest.expect( o.imageUri!, unittest.equals('foo'), ); unittest.expect( o.subtitle!, unittest.equals('foo'), ); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageCard--; } core.int buildCounterGoogleCloudDialogflowV2IntentMessageCardButton = 0; api.GoogleCloudDialogflowV2IntentMessageCardButton buildGoogleCloudDialogflowV2IntentMessageCardButton() { var o = api.GoogleCloudDialogflowV2IntentMessageCardButton(); buildCounterGoogleCloudDialogflowV2IntentMessageCardButton++; if (buildCounterGoogleCloudDialogflowV2IntentMessageCardButton < 3) { o.postback = 'foo'; o.text = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageCardButton--; return o; } void checkGoogleCloudDialogflowV2IntentMessageCardButton( api.GoogleCloudDialogflowV2IntentMessageCardButton o) { buildCounterGoogleCloudDialogflowV2IntentMessageCardButton++; if (buildCounterGoogleCloudDialogflowV2IntentMessageCardButton < 3) { unittest.expect( o.postback!, unittest.equals('foo'), ); unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageCardButton--; } core.List<api.GoogleCloudDialogflowV2IntentMessageCarouselSelectItem> buildUnnamed257() { var o = <api.GoogleCloudDialogflowV2IntentMessageCarouselSelectItem>[]; o.add(buildGoogleCloudDialogflowV2IntentMessageCarouselSelectItem()); o.add(buildGoogleCloudDialogflowV2IntentMessageCarouselSelectItem()); return o; } void checkUnnamed257( core.List<api.GoogleCloudDialogflowV2IntentMessageCarouselSelectItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageCarouselSelectItem( o[0] as api.GoogleCloudDialogflowV2IntentMessageCarouselSelectItem); checkGoogleCloudDialogflowV2IntentMessageCarouselSelectItem( o[1] as api.GoogleCloudDialogflowV2IntentMessageCarouselSelectItem); } core.int buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelect = 0; api.GoogleCloudDialogflowV2IntentMessageCarouselSelect buildGoogleCloudDialogflowV2IntentMessageCarouselSelect() { var o = api.GoogleCloudDialogflowV2IntentMessageCarouselSelect(); buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelect++; if (buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelect < 3) { o.items = buildUnnamed257(); } buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelect--; return o; } void checkGoogleCloudDialogflowV2IntentMessageCarouselSelect( api.GoogleCloudDialogflowV2IntentMessageCarouselSelect o) { buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelect++; if (buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelect < 3) { checkUnnamed257(o.items!); } buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelect--; } core.int buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelectItem = 0; api.GoogleCloudDialogflowV2IntentMessageCarouselSelectItem buildGoogleCloudDialogflowV2IntentMessageCarouselSelectItem() { var o = api.GoogleCloudDialogflowV2IntentMessageCarouselSelectItem(); buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelectItem++; if (buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelectItem < 3) { o.description = 'foo'; o.image = buildGoogleCloudDialogflowV2IntentMessageImage(); o.info = buildGoogleCloudDialogflowV2IntentMessageSelectItemInfo(); o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelectItem--; return o; } void checkGoogleCloudDialogflowV2IntentMessageCarouselSelectItem( api.GoogleCloudDialogflowV2IntentMessageCarouselSelectItem o) { buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelectItem++; if (buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelectItem < 3) { unittest.expect( o.description!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2IntentMessageImage( o.image! as api.GoogleCloudDialogflowV2IntentMessageImage); checkGoogleCloudDialogflowV2IntentMessageSelectItemInfo( o.info! as api.GoogleCloudDialogflowV2IntentMessageSelectItemInfo); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelectItem--; } core.int buildCounterGoogleCloudDialogflowV2IntentMessageColumnProperties = 0; api.GoogleCloudDialogflowV2IntentMessageColumnProperties buildGoogleCloudDialogflowV2IntentMessageColumnProperties() { var o = api.GoogleCloudDialogflowV2IntentMessageColumnProperties(); buildCounterGoogleCloudDialogflowV2IntentMessageColumnProperties++; if (buildCounterGoogleCloudDialogflowV2IntentMessageColumnProperties < 3) { o.header = 'foo'; o.horizontalAlignment = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageColumnProperties--; return o; } void checkGoogleCloudDialogflowV2IntentMessageColumnProperties( api.GoogleCloudDialogflowV2IntentMessageColumnProperties o) { buildCounterGoogleCloudDialogflowV2IntentMessageColumnProperties++; if (buildCounterGoogleCloudDialogflowV2IntentMessageColumnProperties < 3) { unittest.expect( o.header!, unittest.equals('foo'), ); unittest.expect( o.horizontalAlignment!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageColumnProperties--; } core.int buildCounterGoogleCloudDialogflowV2IntentMessageImage = 0; api.GoogleCloudDialogflowV2IntentMessageImage buildGoogleCloudDialogflowV2IntentMessageImage() { var o = api.GoogleCloudDialogflowV2IntentMessageImage(); buildCounterGoogleCloudDialogflowV2IntentMessageImage++; if (buildCounterGoogleCloudDialogflowV2IntentMessageImage < 3) { o.accessibilityText = 'foo'; o.imageUri = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageImage--; return o; } void checkGoogleCloudDialogflowV2IntentMessageImage( api.GoogleCloudDialogflowV2IntentMessageImage o) { buildCounterGoogleCloudDialogflowV2IntentMessageImage++; if (buildCounterGoogleCloudDialogflowV2IntentMessageImage < 3) { unittest.expect( o.accessibilityText!, unittest.equals('foo'), ); unittest.expect( o.imageUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageImage--; } core.int buildCounterGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion = 0; api.GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion buildGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion() { var o = api.GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion(); buildCounterGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion++; if (buildCounterGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion < 3) { o.destinationName = 'foo'; o.uri = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion--; return o; } void checkGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion( api.GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion o) { buildCounterGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion++; if (buildCounterGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion < 3) { unittest.expect( o.destinationName!, unittest.equals('foo'), ); unittest.expect( o.uri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion--; } core.List<api.GoogleCloudDialogflowV2IntentMessageListSelectItem> buildUnnamed258() { var o = <api.GoogleCloudDialogflowV2IntentMessageListSelectItem>[]; o.add(buildGoogleCloudDialogflowV2IntentMessageListSelectItem()); o.add(buildGoogleCloudDialogflowV2IntentMessageListSelectItem()); return o; } void checkUnnamed258( core.List<api.GoogleCloudDialogflowV2IntentMessageListSelectItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageListSelectItem( o[0] as api.GoogleCloudDialogflowV2IntentMessageListSelectItem); checkGoogleCloudDialogflowV2IntentMessageListSelectItem( o[1] as api.GoogleCloudDialogflowV2IntentMessageListSelectItem); } core.int buildCounterGoogleCloudDialogflowV2IntentMessageListSelect = 0; api.GoogleCloudDialogflowV2IntentMessageListSelect buildGoogleCloudDialogflowV2IntentMessageListSelect() { var o = api.GoogleCloudDialogflowV2IntentMessageListSelect(); buildCounterGoogleCloudDialogflowV2IntentMessageListSelect++; if (buildCounterGoogleCloudDialogflowV2IntentMessageListSelect < 3) { o.items = buildUnnamed258(); o.subtitle = 'foo'; o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageListSelect--; return o; } void checkGoogleCloudDialogflowV2IntentMessageListSelect( api.GoogleCloudDialogflowV2IntentMessageListSelect o) { buildCounterGoogleCloudDialogflowV2IntentMessageListSelect++; if (buildCounterGoogleCloudDialogflowV2IntentMessageListSelect < 3) { checkUnnamed258(o.items!); unittest.expect( o.subtitle!, unittest.equals('foo'), ); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageListSelect--; } core.int buildCounterGoogleCloudDialogflowV2IntentMessageListSelectItem = 0; api.GoogleCloudDialogflowV2IntentMessageListSelectItem buildGoogleCloudDialogflowV2IntentMessageListSelectItem() { var o = api.GoogleCloudDialogflowV2IntentMessageListSelectItem(); buildCounterGoogleCloudDialogflowV2IntentMessageListSelectItem++; if (buildCounterGoogleCloudDialogflowV2IntentMessageListSelectItem < 3) { o.description = 'foo'; o.image = buildGoogleCloudDialogflowV2IntentMessageImage(); o.info = buildGoogleCloudDialogflowV2IntentMessageSelectItemInfo(); o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageListSelectItem--; return o; } void checkGoogleCloudDialogflowV2IntentMessageListSelectItem( api.GoogleCloudDialogflowV2IntentMessageListSelectItem o) { buildCounterGoogleCloudDialogflowV2IntentMessageListSelectItem++; if (buildCounterGoogleCloudDialogflowV2IntentMessageListSelectItem < 3) { unittest.expect( o.description!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2IntentMessageImage( o.image! as api.GoogleCloudDialogflowV2IntentMessageImage); checkGoogleCloudDialogflowV2IntentMessageSelectItemInfo( o.info! as api.GoogleCloudDialogflowV2IntentMessageSelectItemInfo); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageListSelectItem--; } core.List< api.GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject> buildUnnamed259() { var o = < api.GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject>[]; o.add( buildGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject()); o.add( buildGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject()); return o; } void checkUnnamed259( core.List< api.GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject(o[0] as api .GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject); checkGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject(o[1] as api .GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject); } core.int buildCounterGoogleCloudDialogflowV2IntentMessageMediaContent = 0; api.GoogleCloudDialogflowV2IntentMessageMediaContent buildGoogleCloudDialogflowV2IntentMessageMediaContent() { var o = api.GoogleCloudDialogflowV2IntentMessageMediaContent(); buildCounterGoogleCloudDialogflowV2IntentMessageMediaContent++; if (buildCounterGoogleCloudDialogflowV2IntentMessageMediaContent < 3) { o.mediaObjects = buildUnnamed259(); o.mediaType = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageMediaContent--; return o; } void checkGoogleCloudDialogflowV2IntentMessageMediaContent( api.GoogleCloudDialogflowV2IntentMessageMediaContent o) { buildCounterGoogleCloudDialogflowV2IntentMessageMediaContent++; if (buildCounterGoogleCloudDialogflowV2IntentMessageMediaContent < 3) { checkUnnamed259(o.mediaObjects!); unittest.expect( o.mediaType!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageMediaContent--; } core.int buildCounterGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject = 0; api.GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject buildGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject() { var o = api.GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject(); buildCounterGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject++; if (buildCounterGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject < 3) { o.contentUrl = 'foo'; o.description = 'foo'; o.icon = buildGoogleCloudDialogflowV2IntentMessageImage(); o.largeImage = buildGoogleCloudDialogflowV2IntentMessageImage(); o.name = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject--; return o; } void checkGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject( api.GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject o) { buildCounterGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject++; if (buildCounterGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject < 3) { unittest.expect( o.contentUrl!, unittest.equals('foo'), ); unittest.expect( o.description!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2IntentMessageImage( o.icon! as api.GoogleCloudDialogflowV2IntentMessageImage); checkGoogleCloudDialogflowV2IntentMessageImage( o.largeImage! as api.GoogleCloudDialogflowV2IntentMessageImage); unittest.expect( o.name!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject--; } core.List<core.String> buildUnnamed260() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed260(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2IntentMessageQuickReplies = 0; api.GoogleCloudDialogflowV2IntentMessageQuickReplies buildGoogleCloudDialogflowV2IntentMessageQuickReplies() { var o = api.GoogleCloudDialogflowV2IntentMessageQuickReplies(); buildCounterGoogleCloudDialogflowV2IntentMessageQuickReplies++; if (buildCounterGoogleCloudDialogflowV2IntentMessageQuickReplies < 3) { o.quickReplies = buildUnnamed260(); o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageQuickReplies--; return o; } void checkGoogleCloudDialogflowV2IntentMessageQuickReplies( api.GoogleCloudDialogflowV2IntentMessageQuickReplies o) { buildCounterGoogleCloudDialogflowV2IntentMessageQuickReplies++; if (buildCounterGoogleCloudDialogflowV2IntentMessageQuickReplies < 3) { checkUnnamed260(o.quickReplies!); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageQuickReplies--; } core.List<core.String> buildUnnamed261() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed261(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2IntentMessageSelectItemInfo = 0; api.GoogleCloudDialogflowV2IntentMessageSelectItemInfo buildGoogleCloudDialogflowV2IntentMessageSelectItemInfo() { var o = api.GoogleCloudDialogflowV2IntentMessageSelectItemInfo(); buildCounterGoogleCloudDialogflowV2IntentMessageSelectItemInfo++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSelectItemInfo < 3) { o.key = 'foo'; o.synonyms = buildUnnamed261(); } buildCounterGoogleCloudDialogflowV2IntentMessageSelectItemInfo--; return o; } void checkGoogleCloudDialogflowV2IntentMessageSelectItemInfo( api.GoogleCloudDialogflowV2IntentMessageSelectItemInfo o) { buildCounterGoogleCloudDialogflowV2IntentMessageSelectItemInfo++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSelectItemInfo < 3) { unittest.expect( o.key!, unittest.equals('foo'), ); checkUnnamed261(o.synonyms!); } buildCounterGoogleCloudDialogflowV2IntentMessageSelectItemInfo--; } core.int buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponse = 0; api.GoogleCloudDialogflowV2IntentMessageSimpleResponse buildGoogleCloudDialogflowV2IntentMessageSimpleResponse() { var o = api.GoogleCloudDialogflowV2IntentMessageSimpleResponse(); buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponse++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponse < 3) { o.displayText = 'foo'; o.ssml = 'foo'; o.textToSpeech = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponse--; return o; } void checkGoogleCloudDialogflowV2IntentMessageSimpleResponse( api.GoogleCloudDialogflowV2IntentMessageSimpleResponse o) { buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponse++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponse < 3) { unittest.expect( o.displayText!, unittest.equals('foo'), ); unittest.expect( o.ssml!, unittest.equals('foo'), ); unittest.expect( o.textToSpeech!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponse--; } core.List<api.GoogleCloudDialogflowV2IntentMessageSimpleResponse> buildUnnamed262() { var o = <api.GoogleCloudDialogflowV2IntentMessageSimpleResponse>[]; o.add(buildGoogleCloudDialogflowV2IntentMessageSimpleResponse()); o.add(buildGoogleCloudDialogflowV2IntentMessageSimpleResponse()); return o; } void checkUnnamed262( core.List<api.GoogleCloudDialogflowV2IntentMessageSimpleResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageSimpleResponse( o[0] as api.GoogleCloudDialogflowV2IntentMessageSimpleResponse); checkGoogleCloudDialogflowV2IntentMessageSimpleResponse( o[1] as api.GoogleCloudDialogflowV2IntentMessageSimpleResponse); } core.int buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponses = 0; api.GoogleCloudDialogflowV2IntentMessageSimpleResponses buildGoogleCloudDialogflowV2IntentMessageSimpleResponses() { var o = api.GoogleCloudDialogflowV2IntentMessageSimpleResponses(); buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponses++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponses < 3) { o.simpleResponses = buildUnnamed262(); } buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponses--; return o; } void checkGoogleCloudDialogflowV2IntentMessageSimpleResponses( api.GoogleCloudDialogflowV2IntentMessageSimpleResponses o) { buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponses++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponses < 3) { checkUnnamed262(o.simpleResponses!); } buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponses--; } core.int buildCounterGoogleCloudDialogflowV2IntentMessageSuggestion = 0; api.GoogleCloudDialogflowV2IntentMessageSuggestion buildGoogleCloudDialogflowV2IntentMessageSuggestion() { var o = api.GoogleCloudDialogflowV2IntentMessageSuggestion(); buildCounterGoogleCloudDialogflowV2IntentMessageSuggestion++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSuggestion < 3) { o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageSuggestion--; return o; } void checkGoogleCloudDialogflowV2IntentMessageSuggestion( api.GoogleCloudDialogflowV2IntentMessageSuggestion o) { buildCounterGoogleCloudDialogflowV2IntentMessageSuggestion++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSuggestion < 3) { unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageSuggestion--; } core.List<api.GoogleCloudDialogflowV2IntentMessageSuggestion> buildUnnamed263() { var o = <api.GoogleCloudDialogflowV2IntentMessageSuggestion>[]; o.add(buildGoogleCloudDialogflowV2IntentMessageSuggestion()); o.add(buildGoogleCloudDialogflowV2IntentMessageSuggestion()); return o; } void checkUnnamed263( core.List<api.GoogleCloudDialogflowV2IntentMessageSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageSuggestion( o[0] as api.GoogleCloudDialogflowV2IntentMessageSuggestion); checkGoogleCloudDialogflowV2IntentMessageSuggestion( o[1] as api.GoogleCloudDialogflowV2IntentMessageSuggestion); } core.int buildCounterGoogleCloudDialogflowV2IntentMessageSuggestions = 0; api.GoogleCloudDialogflowV2IntentMessageSuggestions buildGoogleCloudDialogflowV2IntentMessageSuggestions() { var o = api.GoogleCloudDialogflowV2IntentMessageSuggestions(); buildCounterGoogleCloudDialogflowV2IntentMessageSuggestions++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSuggestions < 3) { o.suggestions = buildUnnamed263(); } buildCounterGoogleCloudDialogflowV2IntentMessageSuggestions--; return o; } void checkGoogleCloudDialogflowV2IntentMessageSuggestions( api.GoogleCloudDialogflowV2IntentMessageSuggestions o) { buildCounterGoogleCloudDialogflowV2IntentMessageSuggestions++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSuggestions < 3) { checkUnnamed263(o.suggestions!); } buildCounterGoogleCloudDialogflowV2IntentMessageSuggestions--; } core.List<api.GoogleCloudDialogflowV2IntentMessageBasicCardButton> buildUnnamed264() { var o = <api.GoogleCloudDialogflowV2IntentMessageBasicCardButton>[]; o.add(buildGoogleCloudDialogflowV2IntentMessageBasicCardButton()); o.add(buildGoogleCloudDialogflowV2IntentMessageBasicCardButton()); return o; } void checkUnnamed264( core.List<api.GoogleCloudDialogflowV2IntentMessageBasicCardButton> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageBasicCardButton( o[0] as api.GoogleCloudDialogflowV2IntentMessageBasicCardButton); checkGoogleCloudDialogflowV2IntentMessageBasicCardButton( o[1] as api.GoogleCloudDialogflowV2IntentMessageBasicCardButton); } core.List<api.GoogleCloudDialogflowV2IntentMessageColumnProperties> buildUnnamed265() { var o = <api.GoogleCloudDialogflowV2IntentMessageColumnProperties>[]; o.add(buildGoogleCloudDialogflowV2IntentMessageColumnProperties()); o.add(buildGoogleCloudDialogflowV2IntentMessageColumnProperties()); return o; } void checkUnnamed265( core.List<api.GoogleCloudDialogflowV2IntentMessageColumnProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageColumnProperties( o[0] as api.GoogleCloudDialogflowV2IntentMessageColumnProperties); checkGoogleCloudDialogflowV2IntentMessageColumnProperties( o[1] as api.GoogleCloudDialogflowV2IntentMessageColumnProperties); } core.List<api.GoogleCloudDialogflowV2IntentMessageTableCardRow> buildUnnamed266() { var o = <api.GoogleCloudDialogflowV2IntentMessageTableCardRow>[]; o.add(buildGoogleCloudDialogflowV2IntentMessageTableCardRow()); o.add(buildGoogleCloudDialogflowV2IntentMessageTableCardRow()); return o; } void checkUnnamed266( core.List<api.GoogleCloudDialogflowV2IntentMessageTableCardRow> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageTableCardRow( o[0] as api.GoogleCloudDialogflowV2IntentMessageTableCardRow); checkGoogleCloudDialogflowV2IntentMessageTableCardRow( o[1] as api.GoogleCloudDialogflowV2IntentMessageTableCardRow); } core.int buildCounterGoogleCloudDialogflowV2IntentMessageTableCard = 0; api.GoogleCloudDialogflowV2IntentMessageTableCard buildGoogleCloudDialogflowV2IntentMessageTableCard() { var o = api.GoogleCloudDialogflowV2IntentMessageTableCard(); buildCounterGoogleCloudDialogflowV2IntentMessageTableCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageTableCard < 3) { o.buttons = buildUnnamed264(); o.columnProperties = buildUnnamed265(); o.image = buildGoogleCloudDialogflowV2IntentMessageImage(); o.rows = buildUnnamed266(); o.subtitle = 'foo'; o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageTableCard--; return o; } void checkGoogleCloudDialogflowV2IntentMessageTableCard( api.GoogleCloudDialogflowV2IntentMessageTableCard o) { buildCounterGoogleCloudDialogflowV2IntentMessageTableCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageTableCard < 3) { checkUnnamed264(o.buttons!); checkUnnamed265(o.columnProperties!); checkGoogleCloudDialogflowV2IntentMessageImage( o.image! as api.GoogleCloudDialogflowV2IntentMessageImage); checkUnnamed266(o.rows!); unittest.expect( o.subtitle!, unittest.equals('foo'), ); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageTableCard--; } core.int buildCounterGoogleCloudDialogflowV2IntentMessageTableCardCell = 0; api.GoogleCloudDialogflowV2IntentMessageTableCardCell buildGoogleCloudDialogflowV2IntentMessageTableCardCell() { var o = api.GoogleCloudDialogflowV2IntentMessageTableCardCell(); buildCounterGoogleCloudDialogflowV2IntentMessageTableCardCell++; if (buildCounterGoogleCloudDialogflowV2IntentMessageTableCardCell < 3) { o.text = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentMessageTableCardCell--; return o; } void checkGoogleCloudDialogflowV2IntentMessageTableCardCell( api.GoogleCloudDialogflowV2IntentMessageTableCardCell o) { buildCounterGoogleCloudDialogflowV2IntentMessageTableCardCell++; if (buildCounterGoogleCloudDialogflowV2IntentMessageTableCardCell < 3) { unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentMessageTableCardCell--; } core.List<api.GoogleCloudDialogflowV2IntentMessageTableCardCell> buildUnnamed267() { var o = <api.GoogleCloudDialogflowV2IntentMessageTableCardCell>[]; o.add(buildGoogleCloudDialogflowV2IntentMessageTableCardCell()); o.add(buildGoogleCloudDialogflowV2IntentMessageTableCardCell()); return o; } void checkUnnamed267( core.List<api.GoogleCloudDialogflowV2IntentMessageTableCardCell> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageTableCardCell( o[0] as api.GoogleCloudDialogflowV2IntentMessageTableCardCell); checkGoogleCloudDialogflowV2IntentMessageTableCardCell( o[1] as api.GoogleCloudDialogflowV2IntentMessageTableCardCell); } core.int buildCounterGoogleCloudDialogflowV2IntentMessageTableCardRow = 0; api.GoogleCloudDialogflowV2IntentMessageTableCardRow buildGoogleCloudDialogflowV2IntentMessageTableCardRow() { var o = api.GoogleCloudDialogflowV2IntentMessageTableCardRow(); buildCounterGoogleCloudDialogflowV2IntentMessageTableCardRow++; if (buildCounterGoogleCloudDialogflowV2IntentMessageTableCardRow < 3) { o.cells = buildUnnamed267(); o.dividerAfter = true; } buildCounterGoogleCloudDialogflowV2IntentMessageTableCardRow--; return o; } void checkGoogleCloudDialogflowV2IntentMessageTableCardRow( api.GoogleCloudDialogflowV2IntentMessageTableCardRow o) { buildCounterGoogleCloudDialogflowV2IntentMessageTableCardRow++; if (buildCounterGoogleCloudDialogflowV2IntentMessageTableCardRow < 3) { checkUnnamed267(o.cells!); unittest.expect(o.dividerAfter!, unittest.isTrue); } buildCounterGoogleCloudDialogflowV2IntentMessageTableCardRow--; } core.List<core.String> buildUnnamed268() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed268(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2IntentMessageText = 0; api.GoogleCloudDialogflowV2IntentMessageText buildGoogleCloudDialogflowV2IntentMessageText() { var o = api.GoogleCloudDialogflowV2IntentMessageText(); buildCounterGoogleCloudDialogflowV2IntentMessageText++; if (buildCounterGoogleCloudDialogflowV2IntentMessageText < 3) { o.text = buildUnnamed268(); } buildCounterGoogleCloudDialogflowV2IntentMessageText--; return o; } void checkGoogleCloudDialogflowV2IntentMessageText( api.GoogleCloudDialogflowV2IntentMessageText o) { buildCounterGoogleCloudDialogflowV2IntentMessageText++; if (buildCounterGoogleCloudDialogflowV2IntentMessageText < 3) { checkUnnamed268(o.text!); } buildCounterGoogleCloudDialogflowV2IntentMessageText--; } core.List<core.String> buildUnnamed269() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed269(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2IntentParameter = 0; api.GoogleCloudDialogflowV2IntentParameter buildGoogleCloudDialogflowV2IntentParameter() { var o = api.GoogleCloudDialogflowV2IntentParameter(); buildCounterGoogleCloudDialogflowV2IntentParameter++; if (buildCounterGoogleCloudDialogflowV2IntentParameter < 3) { o.defaultValue = 'foo'; o.displayName = 'foo'; o.entityTypeDisplayName = 'foo'; o.isList = true; o.mandatory = true; o.name = 'foo'; o.prompts = buildUnnamed269(); o.value = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentParameter--; return o; } void checkGoogleCloudDialogflowV2IntentParameter( api.GoogleCloudDialogflowV2IntentParameter o) { buildCounterGoogleCloudDialogflowV2IntentParameter++; if (buildCounterGoogleCloudDialogflowV2IntentParameter < 3) { unittest.expect( o.defaultValue!, unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect( o.entityTypeDisplayName!, unittest.equals('foo'), ); unittest.expect(o.isList!, unittest.isTrue); unittest.expect(o.mandatory!, unittest.isTrue); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed269(o.prompts!); unittest.expect( o.value!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentParameter--; } core.List<api.GoogleCloudDialogflowV2IntentTrainingPhrasePart> buildUnnamed270() { var o = <api.GoogleCloudDialogflowV2IntentTrainingPhrasePart>[]; o.add(buildGoogleCloudDialogflowV2IntentTrainingPhrasePart()); o.add(buildGoogleCloudDialogflowV2IntentTrainingPhrasePart()); return o; } void checkUnnamed270( core.List<api.GoogleCloudDialogflowV2IntentTrainingPhrasePart> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentTrainingPhrasePart( o[0] as api.GoogleCloudDialogflowV2IntentTrainingPhrasePart); checkGoogleCloudDialogflowV2IntentTrainingPhrasePart( o[1] as api.GoogleCloudDialogflowV2IntentTrainingPhrasePart); } core.int buildCounterGoogleCloudDialogflowV2IntentTrainingPhrase = 0; api.GoogleCloudDialogflowV2IntentTrainingPhrase buildGoogleCloudDialogflowV2IntentTrainingPhrase() { var o = api.GoogleCloudDialogflowV2IntentTrainingPhrase(); buildCounterGoogleCloudDialogflowV2IntentTrainingPhrase++; if (buildCounterGoogleCloudDialogflowV2IntentTrainingPhrase < 3) { o.name = 'foo'; o.parts = buildUnnamed270(); o.timesAddedCount = 42; o.type = 'foo'; } buildCounterGoogleCloudDialogflowV2IntentTrainingPhrase--; return o; } void checkGoogleCloudDialogflowV2IntentTrainingPhrase( api.GoogleCloudDialogflowV2IntentTrainingPhrase o) { buildCounterGoogleCloudDialogflowV2IntentTrainingPhrase++; if (buildCounterGoogleCloudDialogflowV2IntentTrainingPhrase < 3) { unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed270(o.parts!); unittest.expect( o.timesAddedCount!, unittest.equals(42), ); unittest.expect( o.type!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2IntentTrainingPhrase--; } core.int buildCounterGoogleCloudDialogflowV2IntentTrainingPhrasePart = 0; api.GoogleCloudDialogflowV2IntentTrainingPhrasePart buildGoogleCloudDialogflowV2IntentTrainingPhrasePart() { var o = api.GoogleCloudDialogflowV2IntentTrainingPhrasePart(); buildCounterGoogleCloudDialogflowV2IntentTrainingPhrasePart++; if (buildCounterGoogleCloudDialogflowV2IntentTrainingPhrasePart < 3) { o.alias = 'foo'; o.entityType = 'foo'; o.text = 'foo'; o.userDefined = true; } buildCounterGoogleCloudDialogflowV2IntentTrainingPhrasePart--; return o; } void checkGoogleCloudDialogflowV2IntentTrainingPhrasePart( api.GoogleCloudDialogflowV2IntentTrainingPhrasePart o) { buildCounterGoogleCloudDialogflowV2IntentTrainingPhrasePart++; if (buildCounterGoogleCloudDialogflowV2IntentTrainingPhrasePart < 3) { unittest.expect( o.alias!, unittest.equals('foo'), ); unittest.expect( o.entityType!, unittest.equals('foo'), ); unittest.expect( o.text!, unittest.equals('foo'), ); unittest.expect(o.userDefined!, unittest.isTrue); } buildCounterGoogleCloudDialogflowV2IntentTrainingPhrasePart--; } core.int buildCounterGoogleCloudDialogflowV2Message = 0; api.GoogleCloudDialogflowV2Message buildGoogleCloudDialogflowV2Message() { var o = api.GoogleCloudDialogflowV2Message(); buildCounterGoogleCloudDialogflowV2Message++; if (buildCounterGoogleCloudDialogflowV2Message < 3) { o.content = 'foo'; o.createTime = 'foo'; o.languageCode = 'foo'; o.messageAnnotation = buildGoogleCloudDialogflowV2MessageAnnotation(); o.name = 'foo'; o.participant = 'foo'; o.participantRole = 'foo'; } buildCounterGoogleCloudDialogflowV2Message--; return o; } void checkGoogleCloudDialogflowV2Message(api.GoogleCloudDialogflowV2Message o) { buildCounterGoogleCloudDialogflowV2Message++; if (buildCounterGoogleCloudDialogflowV2Message < 3) { unittest.expect( o.content!, unittest.equals('foo'), ); unittest.expect( o.createTime!, unittest.equals('foo'), ); unittest.expect( o.languageCode!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2MessageAnnotation( o.messageAnnotation! as api.GoogleCloudDialogflowV2MessageAnnotation); unittest.expect( o.name!, unittest.equals('foo'), ); unittest.expect( o.participant!, unittest.equals('foo'), ); unittest.expect( o.participantRole!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2Message--; } core.List<api.GoogleCloudDialogflowV2AnnotatedMessagePart> buildUnnamed271() { var o = <api.GoogleCloudDialogflowV2AnnotatedMessagePart>[]; o.add(buildGoogleCloudDialogflowV2AnnotatedMessagePart()); o.add(buildGoogleCloudDialogflowV2AnnotatedMessagePart()); return o; } void checkUnnamed271( core.List<api.GoogleCloudDialogflowV2AnnotatedMessagePart> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2AnnotatedMessagePart( o[0] as api.GoogleCloudDialogflowV2AnnotatedMessagePart); checkGoogleCloudDialogflowV2AnnotatedMessagePart( o[1] as api.GoogleCloudDialogflowV2AnnotatedMessagePart); } core.int buildCounterGoogleCloudDialogflowV2MessageAnnotation = 0; api.GoogleCloudDialogflowV2MessageAnnotation buildGoogleCloudDialogflowV2MessageAnnotation() { var o = api.GoogleCloudDialogflowV2MessageAnnotation(); buildCounterGoogleCloudDialogflowV2MessageAnnotation++; if (buildCounterGoogleCloudDialogflowV2MessageAnnotation < 3) { o.containEntities = true; o.parts = buildUnnamed271(); } buildCounterGoogleCloudDialogflowV2MessageAnnotation--; return o; } void checkGoogleCloudDialogflowV2MessageAnnotation( api.GoogleCloudDialogflowV2MessageAnnotation o) { buildCounterGoogleCloudDialogflowV2MessageAnnotation++; if (buildCounterGoogleCloudDialogflowV2MessageAnnotation < 3) { unittest.expect(o.containEntities!, unittest.isTrue); checkUnnamed271(o.parts!); } buildCounterGoogleCloudDialogflowV2MessageAnnotation--; } core.Map<core.String, core.Object> buildUnnamed272() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed272(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted64 = (o['x']!) as core.Map; unittest.expect(casted64, unittest.hasLength(3)); unittest.expect( casted64['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted64['bool'], unittest.equals(true), ); unittest.expect( casted64['string'], unittest.equals('foo'), ); var casted65 = (o['y']!) as core.Map; unittest.expect(casted65, unittest.hasLength(3)); unittest.expect( casted65['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted65['bool'], unittest.equals(true), ); unittest.expect( casted65['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2OriginalDetectIntentRequest = 0; api.GoogleCloudDialogflowV2OriginalDetectIntentRequest buildGoogleCloudDialogflowV2OriginalDetectIntentRequest() { var o = api.GoogleCloudDialogflowV2OriginalDetectIntentRequest(); buildCounterGoogleCloudDialogflowV2OriginalDetectIntentRequest++; if (buildCounterGoogleCloudDialogflowV2OriginalDetectIntentRequest < 3) { o.payload = buildUnnamed272(); o.source = 'foo'; o.version = 'foo'; } buildCounterGoogleCloudDialogflowV2OriginalDetectIntentRequest--; return o; } void checkGoogleCloudDialogflowV2OriginalDetectIntentRequest( api.GoogleCloudDialogflowV2OriginalDetectIntentRequest o) { buildCounterGoogleCloudDialogflowV2OriginalDetectIntentRequest++; if (buildCounterGoogleCloudDialogflowV2OriginalDetectIntentRequest < 3) { checkUnnamed272(o.payload!); unittest.expect( o.source!, unittest.equals('foo'), ); unittest.expect( o.version!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2OriginalDetectIntentRequest--; } core.Map<core.String, core.Object> buildUnnamed273() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed273(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted66 = (o['x']!) as core.Map; unittest.expect(casted66, unittest.hasLength(3)); unittest.expect( casted66['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted66['bool'], unittest.equals(true), ); unittest.expect( casted66['string'], unittest.equals('foo'), ); var casted67 = (o['y']!) as core.Map; unittest.expect(casted67, unittest.hasLength(3)); unittest.expect( casted67['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted67['bool'], unittest.equals(true), ); unittest.expect( casted67['string'], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowV2IntentMessage> buildUnnamed274() { var o = <api.GoogleCloudDialogflowV2IntentMessage>[]; o.add(buildGoogleCloudDialogflowV2IntentMessage()); o.add(buildGoogleCloudDialogflowV2IntentMessage()); return o; } void checkUnnamed274(core.List<api.GoogleCloudDialogflowV2IntentMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessage( o[0] as api.GoogleCloudDialogflowV2IntentMessage); checkGoogleCloudDialogflowV2IntentMessage( o[1] as api.GoogleCloudDialogflowV2IntentMessage); } core.List<api.GoogleCloudDialogflowV2Context> buildUnnamed275() { var o = <api.GoogleCloudDialogflowV2Context>[]; o.add(buildGoogleCloudDialogflowV2Context()); o.add(buildGoogleCloudDialogflowV2Context()); return o; } void checkUnnamed275(core.List<api.GoogleCloudDialogflowV2Context> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Context( o[0] as api.GoogleCloudDialogflowV2Context); checkGoogleCloudDialogflowV2Context( o[1] as api.GoogleCloudDialogflowV2Context); } core.Map<core.String, core.Object> buildUnnamed276() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed276(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted68 = (o['x']!) as core.Map; unittest.expect(casted68, unittest.hasLength(3)); unittest.expect( casted68['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted68['bool'], unittest.equals(true), ); unittest.expect( casted68['string'], unittest.equals('foo'), ); var casted69 = (o['y']!) as core.Map; unittest.expect(casted69, unittest.hasLength(3)); unittest.expect( casted69['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted69['bool'], unittest.equals(true), ); unittest.expect( casted69['string'], unittest.equals('foo'), ); } core.Map<core.String, core.Object> buildUnnamed277() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed277(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted70 = (o['x']!) as core.Map; unittest.expect(casted70, unittest.hasLength(3)); unittest.expect( casted70['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted70['bool'], unittest.equals(true), ); unittest.expect( casted70['string'], unittest.equals('foo'), ); var casted71 = (o['y']!) as core.Map; unittest.expect(casted71, unittest.hasLength(3)); unittest.expect( casted71['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted71['bool'], unittest.equals(true), ); unittest.expect( casted71['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2QueryResult = 0; api.GoogleCloudDialogflowV2QueryResult buildGoogleCloudDialogflowV2QueryResult() { var o = api.GoogleCloudDialogflowV2QueryResult(); buildCounterGoogleCloudDialogflowV2QueryResult++; if (buildCounterGoogleCloudDialogflowV2QueryResult < 3) { o.action = 'foo'; o.allRequiredParamsPresent = true; o.diagnosticInfo = buildUnnamed273(); o.fulfillmentMessages = buildUnnamed274(); o.fulfillmentText = 'foo'; o.intent = buildGoogleCloudDialogflowV2Intent(); o.intentDetectionConfidence = 42.0; o.languageCode = 'foo'; o.outputContexts = buildUnnamed275(); o.parameters = buildUnnamed276(); o.queryText = 'foo'; o.sentimentAnalysisResult = buildGoogleCloudDialogflowV2SentimentAnalysisResult(); o.speechRecognitionConfidence = 42.0; o.webhookPayload = buildUnnamed277(); o.webhookSource = 'foo'; } buildCounterGoogleCloudDialogflowV2QueryResult--; return o; } void checkGoogleCloudDialogflowV2QueryResult( api.GoogleCloudDialogflowV2QueryResult o) { buildCounterGoogleCloudDialogflowV2QueryResult++; if (buildCounterGoogleCloudDialogflowV2QueryResult < 3) { unittest.expect( o.action!, unittest.equals('foo'), ); unittest.expect(o.allRequiredParamsPresent!, unittest.isTrue); checkUnnamed273(o.diagnosticInfo!); checkUnnamed274(o.fulfillmentMessages!); unittest.expect( o.fulfillmentText!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2Intent( o.intent! as api.GoogleCloudDialogflowV2Intent); unittest.expect( o.intentDetectionConfidence!, unittest.equals(42.0), ); unittest.expect( o.languageCode!, unittest.equals('foo'), ); checkUnnamed275(o.outputContexts!); checkUnnamed276(o.parameters!); unittest.expect( o.queryText!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2SentimentAnalysisResult( o.sentimentAnalysisResult! as api.GoogleCloudDialogflowV2SentimentAnalysisResult); unittest.expect( o.speechRecognitionConfidence!, unittest.equals(42.0), ); checkUnnamed277(o.webhookPayload!); unittest.expect( o.webhookSource!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2QueryResult--; } core.int buildCounterGoogleCloudDialogflowV2Sentiment = 0; api.GoogleCloudDialogflowV2Sentiment buildGoogleCloudDialogflowV2Sentiment() { var o = api.GoogleCloudDialogflowV2Sentiment(); buildCounterGoogleCloudDialogflowV2Sentiment++; if (buildCounterGoogleCloudDialogflowV2Sentiment < 3) { o.magnitude = 42.0; o.score = 42.0; } buildCounterGoogleCloudDialogflowV2Sentiment--; return o; } void checkGoogleCloudDialogflowV2Sentiment( api.GoogleCloudDialogflowV2Sentiment o) { buildCounterGoogleCloudDialogflowV2Sentiment++; if (buildCounterGoogleCloudDialogflowV2Sentiment < 3) { unittest.expect( o.magnitude!, unittest.equals(42.0), ); unittest.expect( o.score!, unittest.equals(42.0), ); } buildCounterGoogleCloudDialogflowV2Sentiment--; } core.int buildCounterGoogleCloudDialogflowV2SentimentAnalysisResult = 0; api.GoogleCloudDialogflowV2SentimentAnalysisResult buildGoogleCloudDialogflowV2SentimentAnalysisResult() { var o = api.GoogleCloudDialogflowV2SentimentAnalysisResult(); buildCounterGoogleCloudDialogflowV2SentimentAnalysisResult++; if (buildCounterGoogleCloudDialogflowV2SentimentAnalysisResult < 3) { o.queryTextSentiment = buildGoogleCloudDialogflowV2Sentiment(); } buildCounterGoogleCloudDialogflowV2SentimentAnalysisResult--; return o; } void checkGoogleCloudDialogflowV2SentimentAnalysisResult( api.GoogleCloudDialogflowV2SentimentAnalysisResult o) { buildCounterGoogleCloudDialogflowV2SentimentAnalysisResult++; if (buildCounterGoogleCloudDialogflowV2SentimentAnalysisResult < 3) { checkGoogleCloudDialogflowV2Sentiment( o.queryTextSentiment! as api.GoogleCloudDialogflowV2Sentiment); } buildCounterGoogleCloudDialogflowV2SentimentAnalysisResult--; } core.List<api.GoogleCloudDialogflowV2EntityTypeEntity> buildUnnamed278() { var o = <api.GoogleCloudDialogflowV2EntityTypeEntity>[]; o.add(buildGoogleCloudDialogflowV2EntityTypeEntity()); o.add(buildGoogleCloudDialogflowV2EntityTypeEntity()); return o; } void checkUnnamed278(core.List<api.GoogleCloudDialogflowV2EntityTypeEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2EntityTypeEntity( o[0] as api.GoogleCloudDialogflowV2EntityTypeEntity); checkGoogleCloudDialogflowV2EntityTypeEntity( o[1] as api.GoogleCloudDialogflowV2EntityTypeEntity); } core.int buildCounterGoogleCloudDialogflowV2SessionEntityType = 0; api.GoogleCloudDialogflowV2SessionEntityType buildGoogleCloudDialogflowV2SessionEntityType() { var o = api.GoogleCloudDialogflowV2SessionEntityType(); buildCounterGoogleCloudDialogflowV2SessionEntityType++; if (buildCounterGoogleCloudDialogflowV2SessionEntityType < 3) { o.entities = buildUnnamed278(); o.entityOverrideMode = 'foo'; o.name = 'foo'; } buildCounterGoogleCloudDialogflowV2SessionEntityType--; return o; } void checkGoogleCloudDialogflowV2SessionEntityType( api.GoogleCloudDialogflowV2SessionEntityType o) { buildCounterGoogleCloudDialogflowV2SessionEntityType++; if (buildCounterGoogleCloudDialogflowV2SessionEntityType < 3) { checkUnnamed278(o.entities!); unittest.expect( o.entityOverrideMode!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2SessionEntityType--; } core.int buildCounterGoogleCloudDialogflowV2WebhookRequest = 0; api.GoogleCloudDialogflowV2WebhookRequest buildGoogleCloudDialogflowV2WebhookRequest() { var o = api.GoogleCloudDialogflowV2WebhookRequest(); buildCounterGoogleCloudDialogflowV2WebhookRequest++; if (buildCounterGoogleCloudDialogflowV2WebhookRequest < 3) { o.originalDetectIntentRequest = buildGoogleCloudDialogflowV2OriginalDetectIntentRequest(); o.queryResult = buildGoogleCloudDialogflowV2QueryResult(); o.responseId = 'foo'; o.session = 'foo'; } buildCounterGoogleCloudDialogflowV2WebhookRequest--; return o; } void checkGoogleCloudDialogflowV2WebhookRequest( api.GoogleCloudDialogflowV2WebhookRequest o) { buildCounterGoogleCloudDialogflowV2WebhookRequest++; if (buildCounterGoogleCloudDialogflowV2WebhookRequest < 3) { checkGoogleCloudDialogflowV2OriginalDetectIntentRequest( o.originalDetectIntentRequest! as api.GoogleCloudDialogflowV2OriginalDetectIntentRequest); checkGoogleCloudDialogflowV2QueryResult( o.queryResult! as api.GoogleCloudDialogflowV2QueryResult); unittest.expect( o.responseId!, unittest.equals('foo'), ); unittest.expect( o.session!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2WebhookRequest--; } core.List<api.GoogleCloudDialogflowV2IntentMessage> buildUnnamed279() { var o = <api.GoogleCloudDialogflowV2IntentMessage>[]; o.add(buildGoogleCloudDialogflowV2IntentMessage()); o.add(buildGoogleCloudDialogflowV2IntentMessage()); return o; } void checkUnnamed279(core.List<api.GoogleCloudDialogflowV2IntentMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessage( o[0] as api.GoogleCloudDialogflowV2IntentMessage); checkGoogleCloudDialogflowV2IntentMessage( o[1] as api.GoogleCloudDialogflowV2IntentMessage); } core.List<api.GoogleCloudDialogflowV2Context> buildUnnamed280() { var o = <api.GoogleCloudDialogflowV2Context>[]; o.add(buildGoogleCloudDialogflowV2Context()); o.add(buildGoogleCloudDialogflowV2Context()); return o; } void checkUnnamed280(core.List<api.GoogleCloudDialogflowV2Context> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Context( o[0] as api.GoogleCloudDialogflowV2Context); checkGoogleCloudDialogflowV2Context( o[1] as api.GoogleCloudDialogflowV2Context); } core.Map<core.String, core.Object> buildUnnamed281() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed281(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted72 = (o['x']!) as core.Map; unittest.expect(casted72, unittest.hasLength(3)); unittest.expect( casted72['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted72['bool'], unittest.equals(true), ); unittest.expect( casted72['string'], unittest.equals('foo'), ); var casted73 = (o['y']!) as core.Map; unittest.expect(casted73, unittest.hasLength(3)); unittest.expect( casted73['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted73['bool'], unittest.equals(true), ); unittest.expect( casted73['string'], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowV2SessionEntityType> buildUnnamed282() { var o = <api.GoogleCloudDialogflowV2SessionEntityType>[]; o.add(buildGoogleCloudDialogflowV2SessionEntityType()); o.add(buildGoogleCloudDialogflowV2SessionEntityType()); return o; } void checkUnnamed282( core.List<api.GoogleCloudDialogflowV2SessionEntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2SessionEntityType( o[0] as api.GoogleCloudDialogflowV2SessionEntityType); checkGoogleCloudDialogflowV2SessionEntityType( o[1] as api.GoogleCloudDialogflowV2SessionEntityType); } core.int buildCounterGoogleCloudDialogflowV2WebhookResponse = 0; api.GoogleCloudDialogflowV2WebhookResponse buildGoogleCloudDialogflowV2WebhookResponse() { var o = api.GoogleCloudDialogflowV2WebhookResponse(); buildCounterGoogleCloudDialogflowV2WebhookResponse++; if (buildCounterGoogleCloudDialogflowV2WebhookResponse < 3) { o.followupEventInput = buildGoogleCloudDialogflowV2EventInput(); o.fulfillmentMessages = buildUnnamed279(); o.fulfillmentText = 'foo'; o.outputContexts = buildUnnamed280(); o.payload = buildUnnamed281(); o.sessionEntityTypes = buildUnnamed282(); o.source = 'foo'; } buildCounterGoogleCloudDialogflowV2WebhookResponse--; return o; } void checkGoogleCloudDialogflowV2WebhookResponse( api.GoogleCloudDialogflowV2WebhookResponse o) { buildCounterGoogleCloudDialogflowV2WebhookResponse++; if (buildCounterGoogleCloudDialogflowV2WebhookResponse < 3) { checkGoogleCloudDialogflowV2EventInput( o.followupEventInput! as api.GoogleCloudDialogflowV2EventInput); checkUnnamed279(o.fulfillmentMessages!); unittest.expect( o.fulfillmentText!, unittest.equals('foo'), ); checkUnnamed280(o.outputContexts!); checkUnnamed281(o.payload!); checkUnnamed282(o.sessionEntityTypes!); unittest.expect( o.source!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2WebhookResponse--; } core.List<api.GoogleCloudDialogflowV2beta1EntityType> buildUnnamed283() { var o = <api.GoogleCloudDialogflowV2beta1EntityType>[]; o.add(buildGoogleCloudDialogflowV2beta1EntityType()); o.add(buildGoogleCloudDialogflowV2beta1EntityType()); return o; } void checkUnnamed283(core.List<api.GoogleCloudDialogflowV2beta1EntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1EntityType( o[0] as api.GoogleCloudDialogflowV2beta1EntityType); checkGoogleCloudDialogflowV2beta1EntityType( o[1] as api.GoogleCloudDialogflowV2beta1EntityType); } core.int buildCounterGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse = 0; api.GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse buildGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse() { var o = api.GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse(); buildCounterGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse < 3) { o.entityTypes = buildUnnamed283(); } buildCounterGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse--; return o; } void checkGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse( api.GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse o) { buildCounterGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse < 3) { checkUnnamed283(o.entityTypes!); } buildCounterGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse--; } core.List<api.GoogleCloudDialogflowV2beta1Intent> buildUnnamed284() { var o = <api.GoogleCloudDialogflowV2beta1Intent>[]; o.add(buildGoogleCloudDialogflowV2beta1Intent()); o.add(buildGoogleCloudDialogflowV2beta1Intent()); return o; } void checkUnnamed284(core.List<api.GoogleCloudDialogflowV2beta1Intent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1Intent( o[0] as api.GoogleCloudDialogflowV2beta1Intent); checkGoogleCloudDialogflowV2beta1Intent( o[1] as api.GoogleCloudDialogflowV2beta1Intent); } core.int buildCounterGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse = 0; api.GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse buildGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse() { var o = api.GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse(); buildCounterGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse++; if (buildCounterGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse < 3) { o.intents = buildUnnamed284(); } buildCounterGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse--; return o; } void checkGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse( api.GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse o) { buildCounterGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse++; if (buildCounterGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse < 3) { checkUnnamed284(o.intents!); } buildCounterGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse--; } core.Map<core.String, core.Object> buildUnnamed285() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed285(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted74 = (o['x']!) as core.Map; unittest.expect(casted74, unittest.hasLength(3)); unittest.expect( casted74['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted74['bool'], unittest.equals(true), ); unittest.expect( casted74['string'], unittest.equals('foo'), ); var casted75 = (o['y']!) as core.Map; unittest.expect(casted75, unittest.hasLength(3)); unittest.expect( casted75['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted75['bool'], unittest.equals(true), ); unittest.expect( casted75['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2beta1Context = 0; api.GoogleCloudDialogflowV2beta1Context buildGoogleCloudDialogflowV2beta1Context() { var o = api.GoogleCloudDialogflowV2beta1Context(); buildCounterGoogleCloudDialogflowV2beta1Context++; if (buildCounterGoogleCloudDialogflowV2beta1Context < 3) { o.lifespanCount = 42; o.name = 'foo'; o.parameters = buildUnnamed285(); } buildCounterGoogleCloudDialogflowV2beta1Context--; return o; } void checkGoogleCloudDialogflowV2beta1Context( api.GoogleCloudDialogflowV2beta1Context o) { buildCounterGoogleCloudDialogflowV2beta1Context++; if (buildCounterGoogleCloudDialogflowV2beta1Context < 3) { unittest.expect( o.lifespanCount!, unittest.equals(42), ); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed285(o.parameters!); } buildCounterGoogleCloudDialogflowV2beta1Context--; } core.List<api.GoogleCloudDialogflowV2beta1EntityTypeEntity> buildUnnamed286() { var o = <api.GoogleCloudDialogflowV2beta1EntityTypeEntity>[]; o.add(buildGoogleCloudDialogflowV2beta1EntityTypeEntity()); o.add(buildGoogleCloudDialogflowV2beta1EntityTypeEntity()); return o; } void checkUnnamed286( core.List<api.GoogleCloudDialogflowV2beta1EntityTypeEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1EntityTypeEntity( o[0] as api.GoogleCloudDialogflowV2beta1EntityTypeEntity); checkGoogleCloudDialogflowV2beta1EntityTypeEntity( o[1] as api.GoogleCloudDialogflowV2beta1EntityTypeEntity); } core.int buildCounterGoogleCloudDialogflowV2beta1EntityType = 0; api.GoogleCloudDialogflowV2beta1EntityType buildGoogleCloudDialogflowV2beta1EntityType() { var o = api.GoogleCloudDialogflowV2beta1EntityType(); buildCounterGoogleCloudDialogflowV2beta1EntityType++; if (buildCounterGoogleCloudDialogflowV2beta1EntityType < 3) { o.autoExpansionMode = 'foo'; o.displayName = 'foo'; o.enableFuzzyExtraction = true; o.entities = buildUnnamed286(); o.kind = 'foo'; o.name = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1EntityType--; return o; } void checkGoogleCloudDialogflowV2beta1EntityType( api.GoogleCloudDialogflowV2beta1EntityType o) { buildCounterGoogleCloudDialogflowV2beta1EntityType++; if (buildCounterGoogleCloudDialogflowV2beta1EntityType < 3) { unittest.expect( o.autoExpansionMode!, unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect(o.enableFuzzyExtraction!, unittest.isTrue); checkUnnamed286(o.entities!); unittest.expect( o.kind!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1EntityType--; } core.List<core.String> buildUnnamed287() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed287(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2beta1EntityTypeEntity = 0; api.GoogleCloudDialogflowV2beta1EntityTypeEntity buildGoogleCloudDialogflowV2beta1EntityTypeEntity() { var o = api.GoogleCloudDialogflowV2beta1EntityTypeEntity(); buildCounterGoogleCloudDialogflowV2beta1EntityTypeEntity++; if (buildCounterGoogleCloudDialogflowV2beta1EntityTypeEntity < 3) { o.synonyms = buildUnnamed287(); o.value = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1EntityTypeEntity--; return o; } void checkGoogleCloudDialogflowV2beta1EntityTypeEntity( api.GoogleCloudDialogflowV2beta1EntityTypeEntity o) { buildCounterGoogleCloudDialogflowV2beta1EntityTypeEntity++; if (buildCounterGoogleCloudDialogflowV2beta1EntityTypeEntity < 3) { checkUnnamed287(o.synonyms!); unittest.expect( o.value!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1EntityTypeEntity--; } core.Map<core.String, core.Object> buildUnnamed288() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed288(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted76 = (o['x']!) as core.Map; unittest.expect(casted76, unittest.hasLength(3)); unittest.expect( casted76['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted76['bool'], unittest.equals(true), ); unittest.expect( casted76['string'], unittest.equals('foo'), ); var casted77 = (o['y']!) as core.Map; unittest.expect(casted77, unittest.hasLength(3)); unittest.expect( casted77['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted77['bool'], unittest.equals(true), ); unittest.expect( casted77['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2beta1EventInput = 0; api.GoogleCloudDialogflowV2beta1EventInput buildGoogleCloudDialogflowV2beta1EventInput() { var o = api.GoogleCloudDialogflowV2beta1EventInput(); buildCounterGoogleCloudDialogflowV2beta1EventInput++; if (buildCounterGoogleCloudDialogflowV2beta1EventInput < 3) { o.languageCode = 'foo'; o.name = 'foo'; o.parameters = buildUnnamed288(); } buildCounterGoogleCloudDialogflowV2beta1EventInput--; return o; } void checkGoogleCloudDialogflowV2beta1EventInput( api.GoogleCloudDialogflowV2beta1EventInput o) { buildCounterGoogleCloudDialogflowV2beta1EventInput++; if (buildCounterGoogleCloudDialogflowV2beta1EventInput < 3) { unittest.expect( o.languageCode!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed288(o.parameters!); } buildCounterGoogleCloudDialogflowV2beta1EventInput--; } core.int buildCounterGoogleCloudDialogflowV2beta1ExportAgentResponse = 0; api.GoogleCloudDialogflowV2beta1ExportAgentResponse buildGoogleCloudDialogflowV2beta1ExportAgentResponse() { var o = api.GoogleCloudDialogflowV2beta1ExportAgentResponse(); buildCounterGoogleCloudDialogflowV2beta1ExportAgentResponse++; if (buildCounterGoogleCloudDialogflowV2beta1ExportAgentResponse < 3) { o.agentContent = 'foo'; o.agentUri = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1ExportAgentResponse--; return o; } void checkGoogleCloudDialogflowV2beta1ExportAgentResponse( api.GoogleCloudDialogflowV2beta1ExportAgentResponse o) { buildCounterGoogleCloudDialogflowV2beta1ExportAgentResponse++; if (buildCounterGoogleCloudDialogflowV2beta1ExportAgentResponse < 3) { unittest.expect( o.agentContent!, unittest.equals('foo'), ); unittest.expect( o.agentUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1ExportAgentResponse--; } core.List<core.String> buildUnnamed289() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed289(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.List<core.String> buildUnnamed290() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed290(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo> buildUnnamed291() { var o = <api.GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo()); o.add(buildGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo()); return o; } void checkUnnamed291( core.List<api.GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo( o[0] as api.GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo); checkGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo( o[1] as api.GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo); } core.List<core.String> buildUnnamed292() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed292(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowV2beta1IntentMessage> buildUnnamed293() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessage>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessage()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessage()); return o; } void checkUnnamed293( core.List<api.GoogleCloudDialogflowV2beta1IntentMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessage( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessage); checkGoogleCloudDialogflowV2beta1IntentMessage( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessage); } core.List<api.GoogleCloudDialogflowV2beta1Context> buildUnnamed294() { var o = <api.GoogleCloudDialogflowV2beta1Context>[]; o.add(buildGoogleCloudDialogflowV2beta1Context()); o.add(buildGoogleCloudDialogflowV2beta1Context()); return o; } void checkUnnamed294(core.List<api.GoogleCloudDialogflowV2beta1Context> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1Context( o[0] as api.GoogleCloudDialogflowV2beta1Context); checkGoogleCloudDialogflowV2beta1Context( o[1] as api.GoogleCloudDialogflowV2beta1Context); } core.List<api.GoogleCloudDialogflowV2beta1IntentParameter> buildUnnamed295() { var o = <api.GoogleCloudDialogflowV2beta1IntentParameter>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentParameter()); o.add(buildGoogleCloudDialogflowV2beta1IntentParameter()); return o; } void checkUnnamed295( core.List<api.GoogleCloudDialogflowV2beta1IntentParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentParameter( o[0] as api.GoogleCloudDialogflowV2beta1IntentParameter); checkGoogleCloudDialogflowV2beta1IntentParameter( o[1] as api.GoogleCloudDialogflowV2beta1IntentParameter); } core.List<api.GoogleCloudDialogflowV2beta1IntentTrainingPhrase> buildUnnamed296() { var o = <api.GoogleCloudDialogflowV2beta1IntentTrainingPhrase>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentTrainingPhrase()); o.add(buildGoogleCloudDialogflowV2beta1IntentTrainingPhrase()); return o; } void checkUnnamed296( core.List<api.GoogleCloudDialogflowV2beta1IntentTrainingPhrase> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentTrainingPhrase( o[0] as api.GoogleCloudDialogflowV2beta1IntentTrainingPhrase); checkGoogleCloudDialogflowV2beta1IntentTrainingPhrase( o[1] as api.GoogleCloudDialogflowV2beta1IntentTrainingPhrase); } core.int buildCounterGoogleCloudDialogflowV2beta1Intent = 0; api.GoogleCloudDialogflowV2beta1Intent buildGoogleCloudDialogflowV2beta1Intent() { var o = api.GoogleCloudDialogflowV2beta1Intent(); buildCounterGoogleCloudDialogflowV2beta1Intent++; if (buildCounterGoogleCloudDialogflowV2beta1Intent < 3) { o.action = 'foo'; o.defaultResponsePlatforms = buildUnnamed289(); o.displayName = 'foo'; o.endInteraction = true; o.events = buildUnnamed290(); o.followupIntentInfo = buildUnnamed291(); o.inputContextNames = buildUnnamed292(); o.isFallback = true; o.messages = buildUnnamed293(); o.mlDisabled = true; o.mlEnabled = true; o.name = 'foo'; o.outputContexts = buildUnnamed294(); o.parameters = buildUnnamed295(); o.parentFollowupIntentName = 'foo'; o.priority = 42; o.resetContexts = true; o.rootFollowupIntentName = 'foo'; o.trainingPhrases = buildUnnamed296(); o.webhookState = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1Intent--; return o; } void checkGoogleCloudDialogflowV2beta1Intent( api.GoogleCloudDialogflowV2beta1Intent o) { buildCounterGoogleCloudDialogflowV2beta1Intent++; if (buildCounterGoogleCloudDialogflowV2beta1Intent < 3) { unittest.expect( o.action!, unittest.equals('foo'), ); checkUnnamed289(o.defaultResponsePlatforms!); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect(o.endInteraction!, unittest.isTrue); checkUnnamed290(o.events!); checkUnnamed291(o.followupIntentInfo!); checkUnnamed292(o.inputContextNames!); unittest.expect(o.isFallback!, unittest.isTrue); checkUnnamed293(o.messages!); unittest.expect(o.mlDisabled!, unittest.isTrue); unittest.expect(o.mlEnabled!, unittest.isTrue); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed294(o.outputContexts!); checkUnnamed295(o.parameters!); unittest.expect( o.parentFollowupIntentName!, unittest.equals('foo'), ); unittest.expect( o.priority!, unittest.equals(42), ); unittest.expect(o.resetContexts!, unittest.isTrue); unittest.expect( o.rootFollowupIntentName!, unittest.equals('foo'), ); checkUnnamed296(o.trainingPhrases!); unittest.expect( o.webhookState!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1Intent--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo = 0; api.GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo buildGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo() { var o = api.GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo(); buildCounterGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo++; if (buildCounterGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo < 3) { o.followupIntentName = 'foo'; o.parentFollowupIntentName = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo--; return o; } void checkGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo( api.GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo o) { buildCounterGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo++; if (buildCounterGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo < 3) { unittest.expect( o.followupIntentName!, unittest.equals('foo'), ); unittest.expect( o.parentFollowupIntentName!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo--; } core.Map<core.String, core.Object> buildUnnamed297() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed297(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted78 = (o['x']!) as core.Map; unittest.expect(casted78, unittest.hasLength(3)); unittest.expect( casted78['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted78['bool'], unittest.equals(true), ); unittest.expect( casted78['string'], unittest.equals('foo'), ); var casted79 = (o['y']!) as core.Map; unittest.expect(casted79, unittest.hasLength(3)); unittest.expect( casted79['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted79['bool'], unittest.equals(true), ); unittest.expect( casted79['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessage = 0; api.GoogleCloudDialogflowV2beta1IntentMessage buildGoogleCloudDialogflowV2beta1IntentMessage() { var o = api.GoogleCloudDialogflowV2beta1IntentMessage(); buildCounterGoogleCloudDialogflowV2beta1IntentMessage++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessage < 3) { o.basicCard = buildGoogleCloudDialogflowV2beta1IntentMessageBasicCard(); o.browseCarouselCard = buildGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard(); o.card = buildGoogleCloudDialogflowV2beta1IntentMessageCard(); o.carouselSelect = buildGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect(); o.image = buildGoogleCloudDialogflowV2beta1IntentMessageImage(); o.linkOutSuggestion = buildGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion(); o.listSelect = buildGoogleCloudDialogflowV2beta1IntentMessageListSelect(); o.mediaContent = buildGoogleCloudDialogflowV2beta1IntentMessageMediaContent(); o.payload = buildUnnamed297(); o.platform = 'foo'; o.quickReplies = buildGoogleCloudDialogflowV2beta1IntentMessageQuickReplies(); o.rbmCarouselRichCard = buildGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard(); o.rbmStandaloneRichCard = buildGoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard(); o.rbmText = buildGoogleCloudDialogflowV2beta1IntentMessageRbmText(); o.simpleResponses = buildGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses(); o.suggestions = buildGoogleCloudDialogflowV2beta1IntentMessageSuggestions(); o.tableCard = buildGoogleCloudDialogflowV2beta1IntentMessageTableCard(); o.telephonyPlayAudio = buildGoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio(); o.telephonySynthesizeSpeech = buildGoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech(); o.telephonyTransferCall = buildGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall(); o.text = buildGoogleCloudDialogflowV2beta1IntentMessageText(); } buildCounterGoogleCloudDialogflowV2beta1IntentMessage--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessage( api.GoogleCloudDialogflowV2beta1IntentMessage o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessage++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessage < 3) { checkGoogleCloudDialogflowV2beta1IntentMessageBasicCard( o.basicCard! as api.GoogleCloudDialogflowV2beta1IntentMessageBasicCard); checkGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard( o.browseCarouselCard! as api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard); checkGoogleCloudDialogflowV2beta1IntentMessageCard( o.card! as api.GoogleCloudDialogflowV2beta1IntentMessageCard); checkGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect( o.carouselSelect! as api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect); checkGoogleCloudDialogflowV2beta1IntentMessageImage( o.image! as api.GoogleCloudDialogflowV2beta1IntentMessageImage); checkGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion( o.linkOutSuggestion! as api.GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion); checkGoogleCloudDialogflowV2beta1IntentMessageListSelect(o.listSelect! as api.GoogleCloudDialogflowV2beta1IntentMessageListSelect); checkGoogleCloudDialogflowV2beta1IntentMessageMediaContent(o.mediaContent! as api.GoogleCloudDialogflowV2beta1IntentMessageMediaContent); checkUnnamed297(o.payload!); unittest.expect( o.platform!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2beta1IntentMessageQuickReplies(o.quickReplies! as api.GoogleCloudDialogflowV2beta1IntentMessageQuickReplies); checkGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard( o.rbmCarouselRichCard! as api.GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard); checkGoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard( o.rbmStandaloneRichCard! as api.GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard); checkGoogleCloudDialogflowV2beta1IntentMessageRbmText( o.rbmText! as api.GoogleCloudDialogflowV2beta1IntentMessageRbmText); checkGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses( o.simpleResponses! as api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses); checkGoogleCloudDialogflowV2beta1IntentMessageSuggestions(o.suggestions! as api.GoogleCloudDialogflowV2beta1IntentMessageSuggestions); checkGoogleCloudDialogflowV2beta1IntentMessageTableCard( o.tableCard! as api.GoogleCloudDialogflowV2beta1IntentMessageTableCard); checkGoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio( o.telephonyPlayAudio! as api.GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio); checkGoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech( o.telephonySynthesizeSpeech! as api .GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech); checkGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall(o .telephonyTransferCall! as api.GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall); checkGoogleCloudDialogflowV2beta1IntentMessageText( o.text! as api.GoogleCloudDialogflowV2beta1IntentMessageText); } buildCounterGoogleCloudDialogflowV2beta1IntentMessage--; } core.List<api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton> buildUnnamed298() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton()); return o; } void checkUnnamed298( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton); checkGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCard = 0; api.GoogleCloudDialogflowV2beta1IntentMessageBasicCard buildGoogleCloudDialogflowV2beta1IntentMessageBasicCard() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageBasicCard(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCard < 3) { o.buttons = buildUnnamed298(); o.formattedText = 'foo'; o.image = buildGoogleCloudDialogflowV2beta1IntentMessageImage(); o.subtitle = 'foo'; o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCard--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageBasicCard( api.GoogleCloudDialogflowV2beta1IntentMessageBasicCard o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCard < 3) { checkUnnamed298(o.buttons!); unittest.expect( o.formattedText!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2beta1IntentMessageImage( o.image! as api.GoogleCloudDialogflowV2beta1IntentMessageImage); unittest.expect( o.subtitle!, unittest.equals('foo'), ); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCard--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton = 0; api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton buildGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton < 3) { o.openUriAction = buildGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction(); o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton( api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton < 3) { checkGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction( o.openUriAction! as api .GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction = 0; api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction buildGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction() { var o = api .GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction < 3) { o.uri = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction( api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction < 3) { unittest.expect( o.uri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction--; } core.List< api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem> buildUnnamed299() { var o = < api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem>[]; o.add( buildGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem()); o.add( buildGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem()); return o; } void checkUnnamed299( core.List< api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem( o[0] as api .GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem); checkGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem( o[1] as api .GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard = 0; api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard buildGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard < 3) { o.imageDisplayOptions = 'foo'; o.items = buildUnnamed299(); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard( api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard < 3) { unittest.expect( o.imageDisplayOptions!, unittest.equals('foo'), ); checkUnnamed299(o.items!); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem = 0; api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem buildGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem() { var o = api .GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem < 3) { o.description = 'foo'; o.footer = 'foo'; o.image = buildGoogleCloudDialogflowV2beta1IntentMessageImage(); o.openUriAction = buildGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction(); o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem( api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem < 3) { unittest.expect( o.description!, unittest.equals('foo'), ); unittest.expect( o.footer!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2beta1IntentMessageImage( o.image! as api.GoogleCloudDialogflowV2beta1IntentMessageImage); checkGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction( o.openUriAction! as api .GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction = 0; api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction buildGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction() { var o = api .GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction < 3) { o.url = 'foo'; o.urlTypeHint = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction( api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction < 3) { unittest.expect( o.url!, unittest.equals('foo'), ); unittest.expect( o.urlTypeHint!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction--; } core.List<api.GoogleCloudDialogflowV2beta1IntentMessageCardButton> buildUnnamed300() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessageCardButton>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessageCardButton()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageCardButton()); return o; } void checkUnnamed300( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageCardButton> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageCardButton( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessageCardButton); checkGoogleCloudDialogflowV2beta1IntentMessageCardButton( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessageCardButton); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageCard = 0; api.GoogleCloudDialogflowV2beta1IntentMessageCard buildGoogleCloudDialogflowV2beta1IntentMessageCard() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageCard(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageCard < 3) { o.buttons = buildUnnamed300(); o.imageUri = 'foo'; o.subtitle = 'foo'; o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageCard--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageCard( api.GoogleCloudDialogflowV2beta1IntentMessageCard o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageCard < 3) { checkUnnamed300(o.buttons!); unittest.expect( o.imageUri!, unittest.equals('foo'), ); unittest.expect( o.subtitle!, unittest.equals('foo'), ); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageCard--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageCardButton = 0; api.GoogleCloudDialogflowV2beta1IntentMessageCardButton buildGoogleCloudDialogflowV2beta1IntentMessageCardButton() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageCardButton(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageCardButton++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageCardButton < 3) { o.postback = 'foo'; o.text = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageCardButton--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageCardButton( api.GoogleCloudDialogflowV2beta1IntentMessageCardButton o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageCardButton++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageCardButton < 3) { unittest.expect( o.postback!, unittest.equals('foo'), ); unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageCardButton--; } core.List<api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem> buildUnnamed301() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem()); return o; } void checkUnnamed301( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem); checkGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect = 0; api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect buildGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect < 3) { o.items = buildUnnamed301(); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect( api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect < 3) { checkUnnamed301(o.items!); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem = 0; api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem buildGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem < 3) { o.description = 'foo'; o.image = buildGoogleCloudDialogflowV2beta1IntentMessageImage(); o.info = buildGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo(); o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem( api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem < 3) { unittest.expect( o.description!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2beta1IntentMessageImage( o.image! as api.GoogleCloudDialogflowV2beta1IntentMessageImage); checkGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo( o.info! as api.GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageColumnProperties = 0; api.GoogleCloudDialogflowV2beta1IntentMessageColumnProperties buildGoogleCloudDialogflowV2beta1IntentMessageColumnProperties() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageColumnProperties(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageColumnProperties++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageColumnProperties < 3) { o.header = 'foo'; o.horizontalAlignment = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageColumnProperties--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageColumnProperties( api.GoogleCloudDialogflowV2beta1IntentMessageColumnProperties o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageColumnProperties++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageColumnProperties < 3) { unittest.expect( o.header!, unittest.equals('foo'), ); unittest.expect( o.horizontalAlignment!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageColumnProperties--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageImage = 0; api.GoogleCloudDialogflowV2beta1IntentMessageImage buildGoogleCloudDialogflowV2beta1IntentMessageImage() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageImage(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageImage++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageImage < 3) { o.accessibilityText = 'foo'; o.imageUri = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageImage--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageImage( api.GoogleCloudDialogflowV2beta1IntentMessageImage o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageImage++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageImage < 3) { unittest.expect( o.accessibilityText!, unittest.equals('foo'), ); unittest.expect( o.imageUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageImage--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion = 0; api.GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion buildGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion < 3) { o.destinationName = 'foo'; o.uri = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion( api.GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion < 3) { unittest.expect( o.destinationName!, unittest.equals('foo'), ); unittest.expect( o.uri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion--; } core.List<api.GoogleCloudDialogflowV2beta1IntentMessageListSelectItem> buildUnnamed302() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessageListSelectItem>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessageListSelectItem()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageListSelectItem()); return o; } void checkUnnamed302( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageListSelectItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageListSelectItem( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessageListSelectItem); checkGoogleCloudDialogflowV2beta1IntentMessageListSelectItem( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessageListSelectItem); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelect = 0; api.GoogleCloudDialogflowV2beta1IntentMessageListSelect buildGoogleCloudDialogflowV2beta1IntentMessageListSelect() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageListSelect(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelect++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelect < 3) { o.items = buildUnnamed302(); o.subtitle = 'foo'; o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelect--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageListSelect( api.GoogleCloudDialogflowV2beta1IntentMessageListSelect o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelect++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelect < 3) { checkUnnamed302(o.items!); unittest.expect( o.subtitle!, unittest.equals('foo'), ); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelect--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelectItem = 0; api.GoogleCloudDialogflowV2beta1IntentMessageListSelectItem buildGoogleCloudDialogflowV2beta1IntentMessageListSelectItem() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageListSelectItem(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelectItem++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelectItem < 3) { o.description = 'foo'; o.image = buildGoogleCloudDialogflowV2beta1IntentMessageImage(); o.info = buildGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo(); o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelectItem--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageListSelectItem( api.GoogleCloudDialogflowV2beta1IntentMessageListSelectItem o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelectItem++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelectItem < 3) { unittest.expect( o.description!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2beta1IntentMessageImage( o.image! as api.GoogleCloudDialogflowV2beta1IntentMessageImage); checkGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo( o.info! as api.GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelectItem--; } core.List< api.GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject> buildUnnamed303() { var o = < api.GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject>[]; o.add( buildGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject()); o.add( buildGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject()); return o; } void checkUnnamed303( core.List< api.GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject( o[0] as api .GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject); checkGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject( o[1] as api .GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContent = 0; api.GoogleCloudDialogflowV2beta1IntentMessageMediaContent buildGoogleCloudDialogflowV2beta1IntentMessageMediaContent() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageMediaContent(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContent++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContent < 3) { o.mediaObjects = buildUnnamed303(); o.mediaType = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContent--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageMediaContent( api.GoogleCloudDialogflowV2beta1IntentMessageMediaContent o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContent++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContent < 3) { checkUnnamed303(o.mediaObjects!); unittest.expect( o.mediaType!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContent--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject = 0; api.GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject buildGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject() { var o = api .GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject < 3) { o.contentUrl = 'foo'; o.description = 'foo'; o.icon = buildGoogleCloudDialogflowV2beta1IntentMessageImage(); o.largeImage = buildGoogleCloudDialogflowV2beta1IntentMessageImage(); o.name = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject( api.GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject < 3) { unittest.expect( o.contentUrl!, unittest.equals('foo'), ); unittest.expect( o.description!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2beta1IntentMessageImage( o.icon! as api.GoogleCloudDialogflowV2beta1IntentMessageImage); checkGoogleCloudDialogflowV2beta1IntentMessageImage( o.largeImage! as api.GoogleCloudDialogflowV2beta1IntentMessageImage); unittest.expect( o.name!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject--; } core.List<core.String> buildUnnamed304() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed304(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageQuickReplies = 0; api.GoogleCloudDialogflowV2beta1IntentMessageQuickReplies buildGoogleCloudDialogflowV2beta1IntentMessageQuickReplies() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageQuickReplies(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageQuickReplies++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageQuickReplies < 3) { o.quickReplies = buildUnnamed304(); o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageQuickReplies--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageQuickReplies( api.GoogleCloudDialogflowV2beta1IntentMessageQuickReplies o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageQuickReplies++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageQuickReplies < 3) { checkUnnamed304(o.quickReplies!); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageQuickReplies--; } core.List<api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion> buildUnnamed305() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion()); return o; } void checkUnnamed305( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent = 0; api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent buildGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent < 3) { o.description = 'foo'; o.media = buildGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia(); o.suggestions = buildUnnamed305(); o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent( api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent < 3) { unittest.expect( o.description!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia(o .media! as api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia); checkUnnamed305(o.suggestions!); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia = 0; api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia buildGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia < 3) { o.fileUri = 'foo'; o.height = 'foo'; o.thumbnailUri = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia( api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia < 3) { unittest.expect( o.fileUri!, unittest.equals('foo'), ); unittest.expect( o.height!, unittest.equals('foo'), ); unittest.expect( o.thumbnailUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia--; } core.List<api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent> buildUnnamed306() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent()); return o; } void checkUnnamed306( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent); checkGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard = 0; api.GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard buildGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard < 3) { o.cardContents = buildUnnamed306(); o.cardWidth = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard( api.GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard < 3) { checkUnnamed306(o.cardContents!); unittest.expect( o.cardWidth!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard = 0; api.GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard buildGoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard < 3) { o.cardContent = buildGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent(); o.cardOrientation = 'foo'; o.thumbnailImageAlignment = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard( api.GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard < 3) { checkGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent(o.cardContent! as api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent); unittest.expect( o.cardOrientation!, unittest.equals('foo'), ); unittest.expect( o.thumbnailImageAlignment!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction = 0; api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction < 3) { o.dial = buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial(); o.openUrl = buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri(); o.postbackData = 'foo'; o.shareLocation = buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation(); o.text = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction( api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction < 3) { checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial( o.dial! as api .GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri( o.openUrl! as api .GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri); unittest.expect( o.postbackData!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation( o.shareLocation! as api .GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation); unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial = 0; api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial() { var o = api .GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial < 3) { o.phoneNumber = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial( api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial < 3) { unittest.expect( o.phoneNumber!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri = 0; api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri() { var o = api .GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri < 3) { o.uri = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri( api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri < 3) { unittest.expect( o.uri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation = 0; api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation() { var o = api .GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation < 3) {} buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation( api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation < 3) {} buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply = 0; api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply < 3) { o.postbackData = 'foo'; o.text = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply( api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply < 3) { unittest.expect( o.postbackData!, unittest.equals('foo'), ); unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion = 0; api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion < 3) { o.action = buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction(); o.reply = buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply(); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion( api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion < 3) { checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction(o.action! as api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply(o.reply! as api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion--; } core.List<api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion> buildUnnamed307() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion()); return o; } void checkUnnamed307( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmText = 0; api.GoogleCloudDialogflowV2beta1IntentMessageRbmText buildGoogleCloudDialogflowV2beta1IntentMessageRbmText() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageRbmText(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmText++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmText < 3) { o.rbmSuggestion = buildUnnamed307(); o.text = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmText--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageRbmText( api.GoogleCloudDialogflowV2beta1IntentMessageRbmText o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmText++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmText < 3) { checkUnnamed307(o.rbmSuggestion!); unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmText--; } core.List<core.String> buildUnnamed308() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed308(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo = 0; api.GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo buildGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo < 3) { o.key = 'foo'; o.synonyms = buildUnnamed308(); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo( api.GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo < 3) { unittest.expect( o.key!, unittest.equals('foo'), ); checkUnnamed308(o.synonyms!); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse = 0; api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse buildGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse < 3) { o.displayText = 'foo'; o.ssml = 'foo'; o.textToSpeech = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse( api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse < 3) { unittest.expect( o.displayText!, unittest.equals('foo'), ); unittest.expect( o.ssml!, unittest.equals('foo'), ); unittest.expect( o.textToSpeech!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse--; } core.List<api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse> buildUnnamed309() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse()); return o; } void checkUnnamed309( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse); checkGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses = 0; api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses buildGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses < 3) { o.simpleResponses = buildUnnamed309(); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses( api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses < 3) { checkUnnamed309(o.simpleResponses!); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestion = 0; api.GoogleCloudDialogflowV2beta1IntentMessageSuggestion buildGoogleCloudDialogflowV2beta1IntentMessageSuggestion() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageSuggestion(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestion++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestion < 3) { o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestion--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageSuggestion( api.GoogleCloudDialogflowV2beta1IntentMessageSuggestion o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestion++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestion < 3) { unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestion--; } core.List<api.GoogleCloudDialogflowV2beta1IntentMessageSuggestion> buildUnnamed310() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessageSuggestion>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessageSuggestion()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageSuggestion()); return o; } void checkUnnamed310( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageSuggestion( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessageSuggestion); checkGoogleCloudDialogflowV2beta1IntentMessageSuggestion( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessageSuggestion); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestions = 0; api.GoogleCloudDialogflowV2beta1IntentMessageSuggestions buildGoogleCloudDialogflowV2beta1IntentMessageSuggestions() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageSuggestions(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestions++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestions < 3) { o.suggestions = buildUnnamed310(); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestions--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageSuggestions( api.GoogleCloudDialogflowV2beta1IntentMessageSuggestions o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestions++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestions < 3) { checkUnnamed310(o.suggestions!); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestions--; } core.List<api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton> buildUnnamed311() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton()); return o; } void checkUnnamed311( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton); checkGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton); } core.List<api.GoogleCloudDialogflowV2beta1IntentMessageColumnProperties> buildUnnamed312() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessageColumnProperties>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessageColumnProperties()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageColumnProperties()); return o; } void checkUnnamed312( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageColumnProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageColumnProperties( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessageColumnProperties); checkGoogleCloudDialogflowV2beta1IntentMessageColumnProperties( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessageColumnProperties); } core.List<api.GoogleCloudDialogflowV2beta1IntentMessageTableCardRow> buildUnnamed313() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessageTableCardRow>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessageTableCardRow()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageTableCardRow()); return o; } void checkUnnamed313( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageTableCardRow> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageTableCardRow( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessageTableCardRow); checkGoogleCloudDialogflowV2beta1IntentMessageTableCardRow( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessageTableCardRow); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCard = 0; api.GoogleCloudDialogflowV2beta1IntentMessageTableCard buildGoogleCloudDialogflowV2beta1IntentMessageTableCard() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageTableCard(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCard < 3) { o.buttons = buildUnnamed311(); o.columnProperties = buildUnnamed312(); o.image = buildGoogleCloudDialogflowV2beta1IntentMessageImage(); o.rows = buildUnnamed313(); o.subtitle = 'foo'; o.title = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCard--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageTableCard( api.GoogleCloudDialogflowV2beta1IntentMessageTableCard o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCard < 3) { checkUnnamed311(o.buttons!); checkUnnamed312(o.columnProperties!); checkGoogleCloudDialogflowV2beta1IntentMessageImage( o.image! as api.GoogleCloudDialogflowV2beta1IntentMessageImage); checkUnnamed313(o.rows!); unittest.expect( o.subtitle!, unittest.equals('foo'), ); unittest.expect( o.title!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCard--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardCell = 0; api.GoogleCloudDialogflowV2beta1IntentMessageTableCardCell buildGoogleCloudDialogflowV2beta1IntentMessageTableCardCell() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageTableCardCell(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardCell++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardCell < 3) { o.text = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardCell--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageTableCardCell( api.GoogleCloudDialogflowV2beta1IntentMessageTableCardCell o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardCell++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardCell < 3) { unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardCell--; } core.List<api.GoogleCloudDialogflowV2beta1IntentMessageTableCardCell> buildUnnamed314() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessageTableCardCell>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessageTableCardCell()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageTableCardCell()); return o; } void checkUnnamed314( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageTableCardCell> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageTableCardCell( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessageTableCardCell); checkGoogleCloudDialogflowV2beta1IntentMessageTableCardCell( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessageTableCardCell); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardRow = 0; api.GoogleCloudDialogflowV2beta1IntentMessageTableCardRow buildGoogleCloudDialogflowV2beta1IntentMessageTableCardRow() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageTableCardRow(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardRow++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardRow < 3) { o.cells = buildUnnamed314(); o.dividerAfter = true; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardRow--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageTableCardRow( api.GoogleCloudDialogflowV2beta1IntentMessageTableCardRow o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardRow++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardRow < 3) { checkUnnamed314(o.cells!); unittest.expect(o.dividerAfter!, unittest.isTrue); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardRow--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio = 0; api.GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio buildGoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio < 3) { o.audioUri = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio( api.GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio < 3) { unittest.expect( o.audioUri!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech = 0; api.GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech buildGoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech < 3) { o.ssml = 'foo'; o.text = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech( api.GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech < 3) { unittest.expect( o.ssml!, unittest.equals('foo'), ); unittest.expect( o.text!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall = 0; api.GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall buildGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall < 3) { o.phoneNumber = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall( api.GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall < 3) { unittest.expect( o.phoneNumber!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall--; } core.List<core.String> buildUnnamed315() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed315(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessageText = 0; api.GoogleCloudDialogflowV2beta1IntentMessageText buildGoogleCloudDialogflowV2beta1IntentMessageText() { var o = api.GoogleCloudDialogflowV2beta1IntentMessageText(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageText++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageText < 3) { o.text = buildUnnamed315(); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageText--; return o; } void checkGoogleCloudDialogflowV2beta1IntentMessageText( api.GoogleCloudDialogflowV2beta1IntentMessageText o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageText++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageText < 3) { checkUnnamed315(o.text!); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageText--; } core.List<core.String> buildUnnamed316() { var o = <core.String>[]; o.add('foo'); o.add('foo'); return o; } void checkUnnamed316(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect( o[0], unittest.equals('foo'), ); unittest.expect( o[1], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentParameter = 0; api.GoogleCloudDialogflowV2beta1IntentParameter buildGoogleCloudDialogflowV2beta1IntentParameter() { var o = api.GoogleCloudDialogflowV2beta1IntentParameter(); buildCounterGoogleCloudDialogflowV2beta1IntentParameter++; if (buildCounterGoogleCloudDialogflowV2beta1IntentParameter < 3) { o.defaultValue = 'foo'; o.displayName = 'foo'; o.entityTypeDisplayName = 'foo'; o.isList = true; o.mandatory = true; o.name = 'foo'; o.prompts = buildUnnamed316(); o.value = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentParameter--; return o; } void checkGoogleCloudDialogflowV2beta1IntentParameter( api.GoogleCloudDialogflowV2beta1IntentParameter o) { buildCounterGoogleCloudDialogflowV2beta1IntentParameter++; if (buildCounterGoogleCloudDialogflowV2beta1IntentParameter < 3) { unittest.expect( o.defaultValue!, unittest.equals('foo'), ); unittest.expect( o.displayName!, unittest.equals('foo'), ); unittest.expect( o.entityTypeDisplayName!, unittest.equals('foo'), ); unittest.expect(o.isList!, unittest.isTrue); unittest.expect(o.mandatory!, unittest.isTrue); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed316(o.prompts!); unittest.expect( o.value!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentParameter--; } core.List<api.GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart> buildUnnamed317() { var o = <api.GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart()); o.add(buildGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart()); return o; } void checkUnnamed317( core.List<api.GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart( o[0] as api.GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart); checkGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart( o[1] as api.GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrase = 0; api.GoogleCloudDialogflowV2beta1IntentTrainingPhrase buildGoogleCloudDialogflowV2beta1IntentTrainingPhrase() { var o = api.GoogleCloudDialogflowV2beta1IntentTrainingPhrase(); buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrase++; if (buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrase < 3) { o.name = 'foo'; o.parts = buildUnnamed317(); o.timesAddedCount = 42; o.type = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrase--; return o; } void checkGoogleCloudDialogflowV2beta1IntentTrainingPhrase( api.GoogleCloudDialogflowV2beta1IntentTrainingPhrase o) { buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrase++; if (buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrase < 3) { unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed317(o.parts!); unittest.expect( o.timesAddedCount!, unittest.equals(42), ); unittest.expect( o.type!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrase--; } core.int buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart = 0; api.GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart buildGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart() { var o = api.GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart(); buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart++; if (buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart < 3) { o.alias = 'foo'; o.entityType = 'foo'; o.text = 'foo'; o.userDefined = true; } buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart--; return o; } void checkGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart( api.GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart o) { buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart++; if (buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart < 3) { unittest.expect( o.alias!, unittest.equals('foo'), ); unittest.expect( o.entityType!, unittest.equals('foo'), ); unittest.expect( o.text!, unittest.equals('foo'), ); unittest.expect(o.userDefined!, unittest.isTrue); } buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart--; } core.List<api.GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer> buildUnnamed318() { var o = <api.GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer>[]; o.add(buildGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer()); o.add(buildGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer()); return o; } void checkUnnamed318( core.List<api.GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer( o[0] as api.GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer); checkGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer( o[1] as api.GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer); } core.int buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswers = 0; api.GoogleCloudDialogflowV2beta1KnowledgeAnswers buildGoogleCloudDialogflowV2beta1KnowledgeAnswers() { var o = api.GoogleCloudDialogflowV2beta1KnowledgeAnswers(); buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswers++; if (buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswers < 3) { o.answers = buildUnnamed318(); } buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswers--; return o; } void checkGoogleCloudDialogflowV2beta1KnowledgeAnswers( api.GoogleCloudDialogflowV2beta1KnowledgeAnswers o) { buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswers++; if (buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswers < 3) { checkUnnamed318(o.answers!); } buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswers--; } core.int buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer = 0; api.GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer buildGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer() { var o = api.GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer(); buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer++; if (buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer < 3) { o.answer = 'foo'; o.faqQuestion = 'foo'; o.matchConfidence = 42.0; o.matchConfidenceLevel = 'foo'; o.source = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer--; return o; } void checkGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer( api.GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer o) { buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer++; if (buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer < 3) { unittest.expect( o.answer!, unittest.equals('foo'), ); unittest.expect( o.faqQuestion!, unittest.equals('foo'), ); unittest.expect( o.matchConfidence!, unittest.equals(42.0), ); unittest.expect( o.matchConfidenceLevel!, unittest.equals('foo'), ); unittest.expect( o.source!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer--; } core.int buildCounterGoogleCloudDialogflowV2beta1KnowledgeOperationMetadata = 0; api.GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata buildGoogleCloudDialogflowV2beta1KnowledgeOperationMetadata() { var o = api.GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata(); buildCounterGoogleCloudDialogflowV2beta1KnowledgeOperationMetadata++; if (buildCounterGoogleCloudDialogflowV2beta1KnowledgeOperationMetadata < 3) { o.state = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1KnowledgeOperationMetadata--; return o; } void checkGoogleCloudDialogflowV2beta1KnowledgeOperationMetadata( api.GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata o) { buildCounterGoogleCloudDialogflowV2beta1KnowledgeOperationMetadata++; if (buildCounterGoogleCloudDialogflowV2beta1KnowledgeOperationMetadata < 3) { unittest.expect( o.state!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1KnowledgeOperationMetadata--; } core.Map<core.String, core.Object> buildUnnamed319() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed319(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted80 = (o['x']!) as core.Map; unittest.expect(casted80, unittest.hasLength(3)); unittest.expect( casted80['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted80['bool'], unittest.equals(true), ); unittest.expect( casted80['string'], unittest.equals('foo'), ); var casted81 = (o['y']!) as core.Map; unittest.expect(casted81, unittest.hasLength(3)); unittest.expect( casted81['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted81['bool'], unittest.equals(true), ); unittest.expect( casted81['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest = 0; api.GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest buildGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest() { var o = api.GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest(); buildCounterGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest++; if (buildCounterGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest < 3) { o.payload = buildUnnamed319(); o.source = 'foo'; o.version = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest--; return o; } void checkGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest( api.GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest o) { buildCounterGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest++; if (buildCounterGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest < 3) { checkUnnamed319(o.payload!); unittest.expect( o.source!, unittest.equals('foo'), ); unittest.expect( o.version!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest--; } core.Map<core.String, core.Object> buildUnnamed320() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed320(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted82 = (o['x']!) as core.Map; unittest.expect(casted82, unittest.hasLength(3)); unittest.expect( casted82['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted82['bool'], unittest.equals(true), ); unittest.expect( casted82['string'], unittest.equals('foo'), ); var casted83 = (o['y']!) as core.Map; unittest.expect(casted83, unittest.hasLength(3)); unittest.expect( casted83['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted83['bool'], unittest.equals(true), ); unittest.expect( casted83['string'], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowV2beta1IntentMessage> buildUnnamed321() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessage>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessage()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessage()); return o; } void checkUnnamed321( core.List<api.GoogleCloudDialogflowV2beta1IntentMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessage( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessage); checkGoogleCloudDialogflowV2beta1IntentMessage( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessage); } core.List<api.GoogleCloudDialogflowV2beta1Context> buildUnnamed322() { var o = <api.GoogleCloudDialogflowV2beta1Context>[]; o.add(buildGoogleCloudDialogflowV2beta1Context()); o.add(buildGoogleCloudDialogflowV2beta1Context()); return o; } void checkUnnamed322(core.List<api.GoogleCloudDialogflowV2beta1Context> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1Context( o[0] as api.GoogleCloudDialogflowV2beta1Context); checkGoogleCloudDialogflowV2beta1Context( o[1] as api.GoogleCloudDialogflowV2beta1Context); } core.Map<core.String, core.Object> buildUnnamed323() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed323(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted84 = (o['x']!) as core.Map; unittest.expect(casted84, unittest.hasLength(3)); unittest.expect( casted84['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted84['bool'], unittest.equals(true), ); unittest.expect( casted84['string'], unittest.equals('foo'), ); var casted85 = (o['y']!) as core.Map; unittest.expect(casted85, unittest.hasLength(3)); unittest.expect( casted85['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted85['bool'], unittest.equals(true), ); unittest.expect( casted85['string'], unittest.equals('foo'), ); } core.Map<core.String, core.Object> buildUnnamed324() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed324(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted86 = (o['x']!) as core.Map; unittest.expect(casted86, unittest.hasLength(3)); unittest.expect( casted86['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted86['bool'], unittest.equals(true), ); unittest.expect( casted86['string'], unittest.equals('foo'), ); var casted87 = (o['y']!) as core.Map; unittest.expect(casted87, unittest.hasLength(3)); unittest.expect( casted87['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted87['bool'], unittest.equals(true), ); unittest.expect( casted87['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleCloudDialogflowV2beta1QueryResult = 0; api.GoogleCloudDialogflowV2beta1QueryResult buildGoogleCloudDialogflowV2beta1QueryResult() { var o = api.GoogleCloudDialogflowV2beta1QueryResult(); buildCounterGoogleCloudDialogflowV2beta1QueryResult++; if (buildCounterGoogleCloudDialogflowV2beta1QueryResult < 3) { o.action = 'foo'; o.allRequiredParamsPresent = true; o.diagnosticInfo = buildUnnamed320(); o.fulfillmentMessages = buildUnnamed321(); o.fulfillmentText = 'foo'; o.intent = buildGoogleCloudDialogflowV2beta1Intent(); o.intentDetectionConfidence = 42.0; o.knowledgeAnswers = buildGoogleCloudDialogflowV2beta1KnowledgeAnswers(); o.languageCode = 'foo'; o.outputContexts = buildUnnamed322(); o.parameters = buildUnnamed323(); o.queryText = 'foo'; o.sentimentAnalysisResult = buildGoogleCloudDialogflowV2beta1SentimentAnalysisResult(); o.speechRecognitionConfidence = 42.0; o.webhookPayload = buildUnnamed324(); o.webhookSource = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1QueryResult--; return o; } void checkGoogleCloudDialogflowV2beta1QueryResult( api.GoogleCloudDialogflowV2beta1QueryResult o) { buildCounterGoogleCloudDialogflowV2beta1QueryResult++; if (buildCounterGoogleCloudDialogflowV2beta1QueryResult < 3) { unittest.expect( o.action!, unittest.equals('foo'), ); unittest.expect(o.allRequiredParamsPresent!, unittest.isTrue); checkUnnamed320(o.diagnosticInfo!); checkUnnamed321(o.fulfillmentMessages!); unittest.expect( o.fulfillmentText!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2beta1Intent( o.intent! as api.GoogleCloudDialogflowV2beta1Intent); unittest.expect( o.intentDetectionConfidence!, unittest.equals(42.0), ); checkGoogleCloudDialogflowV2beta1KnowledgeAnswers(o.knowledgeAnswers! as api.GoogleCloudDialogflowV2beta1KnowledgeAnswers); unittest.expect( o.languageCode!, unittest.equals('foo'), ); checkUnnamed322(o.outputContexts!); checkUnnamed323(o.parameters!); unittest.expect( o.queryText!, unittest.equals('foo'), ); checkGoogleCloudDialogflowV2beta1SentimentAnalysisResult( o.sentimentAnalysisResult! as api.GoogleCloudDialogflowV2beta1SentimentAnalysisResult); unittest.expect( o.speechRecognitionConfidence!, unittest.equals(42.0), ); checkUnnamed324(o.webhookPayload!); unittest.expect( o.webhookSource!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1QueryResult--; } core.int buildCounterGoogleCloudDialogflowV2beta1Sentiment = 0; api.GoogleCloudDialogflowV2beta1Sentiment buildGoogleCloudDialogflowV2beta1Sentiment() { var o = api.GoogleCloudDialogflowV2beta1Sentiment(); buildCounterGoogleCloudDialogflowV2beta1Sentiment++; if (buildCounterGoogleCloudDialogflowV2beta1Sentiment < 3) { o.magnitude = 42.0; o.score = 42.0; } buildCounterGoogleCloudDialogflowV2beta1Sentiment--; return o; } void checkGoogleCloudDialogflowV2beta1Sentiment( api.GoogleCloudDialogflowV2beta1Sentiment o) { buildCounterGoogleCloudDialogflowV2beta1Sentiment++; if (buildCounterGoogleCloudDialogflowV2beta1Sentiment < 3) { unittest.expect( o.magnitude!, unittest.equals(42.0), ); unittest.expect( o.score!, unittest.equals(42.0), ); } buildCounterGoogleCloudDialogflowV2beta1Sentiment--; } core.int buildCounterGoogleCloudDialogflowV2beta1SentimentAnalysisResult = 0; api.GoogleCloudDialogflowV2beta1SentimentAnalysisResult buildGoogleCloudDialogflowV2beta1SentimentAnalysisResult() { var o = api.GoogleCloudDialogflowV2beta1SentimentAnalysisResult(); buildCounterGoogleCloudDialogflowV2beta1SentimentAnalysisResult++; if (buildCounterGoogleCloudDialogflowV2beta1SentimentAnalysisResult < 3) { o.queryTextSentiment = buildGoogleCloudDialogflowV2beta1Sentiment(); } buildCounterGoogleCloudDialogflowV2beta1SentimentAnalysisResult--; return o; } void checkGoogleCloudDialogflowV2beta1SentimentAnalysisResult( api.GoogleCloudDialogflowV2beta1SentimentAnalysisResult o) { buildCounterGoogleCloudDialogflowV2beta1SentimentAnalysisResult++; if (buildCounterGoogleCloudDialogflowV2beta1SentimentAnalysisResult < 3) { checkGoogleCloudDialogflowV2beta1Sentiment( o.queryTextSentiment! as api.GoogleCloudDialogflowV2beta1Sentiment); } buildCounterGoogleCloudDialogflowV2beta1SentimentAnalysisResult--; } core.List<api.GoogleCloudDialogflowV2beta1EntityTypeEntity> buildUnnamed325() { var o = <api.GoogleCloudDialogflowV2beta1EntityTypeEntity>[]; o.add(buildGoogleCloudDialogflowV2beta1EntityTypeEntity()); o.add(buildGoogleCloudDialogflowV2beta1EntityTypeEntity()); return o; } void checkUnnamed325( core.List<api.GoogleCloudDialogflowV2beta1EntityTypeEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1EntityTypeEntity( o[0] as api.GoogleCloudDialogflowV2beta1EntityTypeEntity); checkGoogleCloudDialogflowV2beta1EntityTypeEntity( o[1] as api.GoogleCloudDialogflowV2beta1EntityTypeEntity); } core.int buildCounterGoogleCloudDialogflowV2beta1SessionEntityType = 0; api.GoogleCloudDialogflowV2beta1SessionEntityType buildGoogleCloudDialogflowV2beta1SessionEntityType() { var o = api.GoogleCloudDialogflowV2beta1SessionEntityType(); buildCounterGoogleCloudDialogflowV2beta1SessionEntityType++; if (buildCounterGoogleCloudDialogflowV2beta1SessionEntityType < 3) { o.entities = buildUnnamed325(); o.entityOverrideMode = 'foo'; o.name = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1SessionEntityType--; return o; } void checkGoogleCloudDialogflowV2beta1SessionEntityType( api.GoogleCloudDialogflowV2beta1SessionEntityType o) { buildCounterGoogleCloudDialogflowV2beta1SessionEntityType++; if (buildCounterGoogleCloudDialogflowV2beta1SessionEntityType < 3) { checkUnnamed325(o.entities!); unittest.expect( o.entityOverrideMode!, unittest.equals('foo'), ); unittest.expect( o.name!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1SessionEntityType--; } core.List<api.GoogleCloudDialogflowV2beta1QueryResult> buildUnnamed326() { var o = <api.GoogleCloudDialogflowV2beta1QueryResult>[]; o.add(buildGoogleCloudDialogflowV2beta1QueryResult()); o.add(buildGoogleCloudDialogflowV2beta1QueryResult()); return o; } void checkUnnamed326(core.List<api.GoogleCloudDialogflowV2beta1QueryResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1QueryResult( o[0] as api.GoogleCloudDialogflowV2beta1QueryResult); checkGoogleCloudDialogflowV2beta1QueryResult( o[1] as api.GoogleCloudDialogflowV2beta1QueryResult); } core.int buildCounterGoogleCloudDialogflowV2beta1WebhookRequest = 0; api.GoogleCloudDialogflowV2beta1WebhookRequest buildGoogleCloudDialogflowV2beta1WebhookRequest() { var o = api.GoogleCloudDialogflowV2beta1WebhookRequest(); buildCounterGoogleCloudDialogflowV2beta1WebhookRequest++; if (buildCounterGoogleCloudDialogflowV2beta1WebhookRequest < 3) { o.alternativeQueryResults = buildUnnamed326(); o.originalDetectIntentRequest = buildGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest(); o.queryResult = buildGoogleCloudDialogflowV2beta1QueryResult(); o.responseId = 'foo'; o.session = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1WebhookRequest--; return o; } void checkGoogleCloudDialogflowV2beta1WebhookRequest( api.GoogleCloudDialogflowV2beta1WebhookRequest o) { buildCounterGoogleCloudDialogflowV2beta1WebhookRequest++; if (buildCounterGoogleCloudDialogflowV2beta1WebhookRequest < 3) { checkUnnamed326(o.alternativeQueryResults!); checkGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest( o.originalDetectIntentRequest! as api.GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest); checkGoogleCloudDialogflowV2beta1QueryResult( o.queryResult! as api.GoogleCloudDialogflowV2beta1QueryResult); unittest.expect( o.responseId!, unittest.equals('foo'), ); unittest.expect( o.session!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1WebhookRequest--; } core.List<api.GoogleCloudDialogflowV2beta1IntentMessage> buildUnnamed327() { var o = <api.GoogleCloudDialogflowV2beta1IntentMessage>[]; o.add(buildGoogleCloudDialogflowV2beta1IntentMessage()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessage()); return o; } void checkUnnamed327( core.List<api.GoogleCloudDialogflowV2beta1IntentMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessage( o[0] as api.GoogleCloudDialogflowV2beta1IntentMessage); checkGoogleCloudDialogflowV2beta1IntentMessage( o[1] as api.GoogleCloudDialogflowV2beta1IntentMessage); } core.List<api.GoogleCloudDialogflowV2beta1Context> buildUnnamed328() { var o = <api.GoogleCloudDialogflowV2beta1Context>[]; o.add(buildGoogleCloudDialogflowV2beta1Context()); o.add(buildGoogleCloudDialogflowV2beta1Context()); return o; } void checkUnnamed328(core.List<api.GoogleCloudDialogflowV2beta1Context> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1Context( o[0] as api.GoogleCloudDialogflowV2beta1Context); checkGoogleCloudDialogflowV2beta1Context( o[1] as api.GoogleCloudDialogflowV2beta1Context); } core.Map<core.String, core.Object> buildUnnamed329() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed329(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted88 = (o['x']!) as core.Map; unittest.expect(casted88, unittest.hasLength(3)); unittest.expect( casted88['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted88['bool'], unittest.equals(true), ); unittest.expect( casted88['string'], unittest.equals('foo'), ); var casted89 = (o['y']!) as core.Map; unittest.expect(casted89, unittest.hasLength(3)); unittest.expect( casted89['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted89['bool'], unittest.equals(true), ); unittest.expect( casted89['string'], unittest.equals('foo'), ); } core.List<api.GoogleCloudDialogflowV2beta1SessionEntityType> buildUnnamed330() { var o = <api.GoogleCloudDialogflowV2beta1SessionEntityType>[]; o.add(buildGoogleCloudDialogflowV2beta1SessionEntityType()); o.add(buildGoogleCloudDialogflowV2beta1SessionEntityType()); return o; } void checkUnnamed330( core.List<api.GoogleCloudDialogflowV2beta1SessionEntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1SessionEntityType( o[0] as api.GoogleCloudDialogflowV2beta1SessionEntityType); checkGoogleCloudDialogflowV2beta1SessionEntityType( o[1] as api.GoogleCloudDialogflowV2beta1SessionEntityType); } core.int buildCounterGoogleCloudDialogflowV2beta1WebhookResponse = 0; api.GoogleCloudDialogflowV2beta1WebhookResponse buildGoogleCloudDialogflowV2beta1WebhookResponse() { var o = api.GoogleCloudDialogflowV2beta1WebhookResponse(); buildCounterGoogleCloudDialogflowV2beta1WebhookResponse++; if (buildCounterGoogleCloudDialogflowV2beta1WebhookResponse < 3) { o.endInteraction = true; o.followupEventInput = buildGoogleCloudDialogflowV2beta1EventInput(); o.fulfillmentMessages = buildUnnamed327(); o.fulfillmentText = 'foo'; o.outputContexts = buildUnnamed328(); o.payload = buildUnnamed329(); o.sessionEntityTypes = buildUnnamed330(); o.source = 'foo'; } buildCounterGoogleCloudDialogflowV2beta1WebhookResponse--; return o; } void checkGoogleCloudDialogflowV2beta1WebhookResponse( api.GoogleCloudDialogflowV2beta1WebhookResponse o) { buildCounterGoogleCloudDialogflowV2beta1WebhookResponse++; if (buildCounterGoogleCloudDialogflowV2beta1WebhookResponse < 3) { unittest.expect(o.endInteraction!, unittest.isTrue); checkGoogleCloudDialogflowV2beta1EventInput( o.followupEventInput! as api.GoogleCloudDialogflowV2beta1EventInput); checkUnnamed327(o.fulfillmentMessages!); unittest.expect( o.fulfillmentText!, unittest.equals('foo'), ); checkUnnamed328(o.outputContexts!); checkUnnamed329(o.payload!); checkUnnamed330(o.sessionEntityTypes!); unittest.expect( o.source!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV2beta1WebhookResponse--; } core.int buildCounterGoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata = 0; api.GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata buildGoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata() { var o = api.GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata(); buildCounterGoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata--; return o; } void checkGoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata( api.GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata o) { buildCounterGoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata < 3) { checkGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata(o .genericMetadata! as api.GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata--; } core.int buildCounterGoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata = 0; api.GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata buildGoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata() { var o = api.GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata(); buildCounterGoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata--; return o; } void checkGoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata( api.GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata o) { buildCounterGoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata < 3) { checkGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata(o .genericMetadata! as api.GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata--; } core.int buildCounterGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata = 0; api.GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata buildGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata() { var o = api.GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata(); buildCounterGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata++; if (buildCounterGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata < 3) { o.state = 'foo'; } buildCounterGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata--; return o; } void checkGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata( api.GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata o) { buildCounterGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata++; if (buildCounterGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata < 3) { unittest.expect( o.state!, unittest.equals('foo'), ); } buildCounterGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata--; } core.int buildCounterGoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata = 0; api.GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata buildGoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata() { var o = api.GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata(); buildCounterGoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata++; if (buildCounterGoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata--; return o; } void checkGoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata( api.GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata o) { buildCounterGoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata++; if (buildCounterGoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata < 3) { checkGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata(o .genericMetadata! as api.GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata--; } core.List<api.GoogleRpcStatus> buildUnnamed331() { var o = <api.GoogleRpcStatus>[]; o.add(buildGoogleRpcStatus()); o.add(buildGoogleRpcStatus()); return o; } void checkUnnamed331(core.List<api.GoogleRpcStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleRpcStatus(o[0] as api.GoogleRpcStatus); checkGoogleRpcStatus(o[1] as api.GoogleRpcStatus); } core.int buildCounterGoogleCloudDialogflowV3alpha1ImportDocumentsResponse = 0; api.GoogleCloudDialogflowV3alpha1ImportDocumentsResponse buildGoogleCloudDialogflowV3alpha1ImportDocumentsResponse() { var o = api.GoogleCloudDialogflowV3alpha1ImportDocumentsResponse(); buildCounterGoogleCloudDialogflowV3alpha1ImportDocumentsResponse++; if (buildCounterGoogleCloudDialogflowV3alpha1ImportDocumentsResponse < 3) { o.warnings = buildUnnamed331(); } buildCounterGoogleCloudDialogflowV3alpha1ImportDocumentsResponse--; return o; } void checkGoogleCloudDialogflowV3alpha1ImportDocumentsResponse( api.GoogleCloudDialogflowV3alpha1ImportDocumentsResponse o) { buildCounterGoogleCloudDialogflowV3alpha1ImportDocumentsResponse++; if (buildCounterGoogleCloudDialogflowV3alpha1ImportDocumentsResponse < 3) { checkUnnamed331(o.warnings!); } buildCounterGoogleCloudDialogflowV3alpha1ImportDocumentsResponse--; } core.int buildCounterGoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata = 0; api.GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata buildGoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata() { var o = api.GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata(); buildCounterGoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata--; return o; } void checkGoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata( api.GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata o) { buildCounterGoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata < 3) { checkGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata(o .genericMetadata! as api.GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata--; } core.int buildCounterGoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata = 0; api.GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata buildGoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata() { var o = api.GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata(); buildCounterGoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata < 3) { o.genericMetadata = buildGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata(); } buildCounterGoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata--; return o; } void checkGoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata( api.GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata o) { buildCounterGoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata++; if (buildCounterGoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata < 3) { checkGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata(o .genericMetadata! as api.GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata); } buildCounterGoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata--; } core.List<api.GoogleLongrunningOperation> buildUnnamed332() { var o = <api.GoogleLongrunningOperation>[]; o.add(buildGoogleLongrunningOperation()); o.add(buildGoogleLongrunningOperation()); return o; } void checkUnnamed332(core.List<api.GoogleLongrunningOperation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0] as api.GoogleLongrunningOperation); checkGoogleLongrunningOperation(o[1] as api.GoogleLongrunningOperation); } core.int buildCounterGoogleLongrunningListOperationsResponse = 0; api.GoogleLongrunningListOperationsResponse buildGoogleLongrunningListOperationsResponse() { var o = api.GoogleLongrunningListOperationsResponse(); buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = 'foo'; o.operations = buildUnnamed332(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; } void checkGoogleLongrunningListOperationsResponse( api.GoogleLongrunningListOperationsResponse o) { buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect( o.nextPageToken!, unittest.equals('foo'), ); checkUnnamed332(o.operations!); } buildCounterGoogleLongrunningListOperationsResponse--; } core.Map<core.String, core.Object> buildUnnamed333() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed333(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted90 = (o['x']!) as core.Map; unittest.expect(casted90, unittest.hasLength(3)); unittest.expect( casted90['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted90['bool'], unittest.equals(true), ); unittest.expect( casted90['string'], unittest.equals('foo'), ); var casted91 = (o['y']!) as core.Map; unittest.expect(casted91, unittest.hasLength(3)); unittest.expect( casted91['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted91['bool'], unittest.equals(true), ); unittest.expect( casted91['string'], unittest.equals('foo'), ); } core.Map<core.String, core.Object> buildUnnamed334() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed334(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted92 = (o['x']!) as core.Map; unittest.expect(casted92, unittest.hasLength(3)); unittest.expect( casted92['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted92['bool'], unittest.equals(true), ); unittest.expect( casted92['string'], unittest.equals('foo'), ); var casted93 = (o['y']!) as core.Map; unittest.expect(casted93, unittest.hasLength(3)); unittest.expect( casted93['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted93['bool'], unittest.equals(true), ); unittest.expect( casted93['string'], unittest.equals('foo'), ); } core.int buildCounterGoogleLongrunningOperation = 0; api.GoogleLongrunningOperation buildGoogleLongrunningOperation() { var o = api.GoogleLongrunningOperation(); buildCounterGoogleLongrunningOperation++; if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); o.metadata = buildUnnamed333(); o.name = 'foo'; o.response = buildUnnamed334(); } buildCounterGoogleLongrunningOperation--; return o; } void checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { buildCounterGoogleLongrunningOperation++; if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done!, unittest.isTrue); checkGoogleRpcStatus(o.error! as api.GoogleRpcStatus); checkUnnamed333(o.metadata!); unittest.expect( o.name!, unittest.equals('foo'), ); checkUnnamed334(o.response!); } buildCounterGoogleLongrunningOperation--; } core.int buildCounterGoogleProtobufEmpty = 0; api.GoogleProtobufEmpty buildGoogleProtobufEmpty() { var o = api.GoogleProtobufEmpty(); buildCounterGoogleProtobufEmpty++; if (buildCounterGoogleProtobufEmpty < 3) {} buildCounterGoogleProtobufEmpty--; return o; } void checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { buildCounterGoogleProtobufEmpty++; if (buildCounterGoogleProtobufEmpty < 3) {} buildCounterGoogleProtobufEmpty--; } core.Map<core.String, core.Object> buildUnnamed335() { var o = <core.String, core.Object>{}; o['x'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; o['y'] = { 'list': [1, 2, 3], 'bool': true, 'string': 'foo' }; return o; } void checkUnnamed335(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted94 = (o['x']!) as core.Map; unittest.expect(casted94, unittest.hasLength(3)); unittest.expect( casted94['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted94['bool'], unittest.equals(true), ); unittest.expect( casted94['string'], unittest.equals('foo'), ); var casted95 = (o['y']!) as core.Map; unittest.expect(casted95, unittest.hasLength(3)); unittest.expect( casted95['list'], unittest.equals([1, 2, 3]), ); unittest.expect( casted95['bool'], unittest.equals(true), ); unittest.expect( casted95['string'], unittest.equals('foo'), ); } core.List<core.Map<core.String, core.Object>> buildUnnamed336() { var o = <core.Map<core.String, core.Object>>[]; o.add(buildUnnamed335()); o.add(buildUnnamed335()); return o; } void checkUnnamed336(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); checkUnnamed335(o[0]); checkUnnamed335(o[1]); } core.int buildCounterGoogleRpcStatus = 0; api.GoogleRpcStatus buildGoogleRpcStatus() { var o = api.GoogleRpcStatus(); buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; o.details = buildUnnamed336(); o.message = 'foo'; } buildCounterGoogleRpcStatus--; return o; } void checkGoogleRpcStatus(api.GoogleRpcStatus o) { buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect( o.code!, unittest.equals(42), ); checkUnnamed336(o.details!); unittest.expect( o.message!, unittest.equals('foo'), ); } buildCounterGoogleRpcStatus--; } core.int buildCounterGoogleTypeLatLng = 0; api.GoogleTypeLatLng buildGoogleTypeLatLng() { var o = api.GoogleTypeLatLng(); buildCounterGoogleTypeLatLng++; if (buildCounterGoogleTypeLatLng < 3) { o.latitude = 42.0; o.longitude = 42.0; } buildCounterGoogleTypeLatLng--; return o; } void checkGoogleTypeLatLng(api.GoogleTypeLatLng o) { buildCounterGoogleTypeLatLng++; if (buildCounterGoogleTypeLatLng < 3) { unittest.expect( o.latitude!, unittest.equals(42.0), ); unittest.expect( o.longitude!, unittest.equals(42.0), ); } buildCounterGoogleTypeLatLng--; } void main() { unittest.group('obj-schema-GoogleCloudDialogflowCxV3Agent', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3Agent(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3Agent.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Agent( od as api.GoogleCloudDialogflowCxV3Agent); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3AgentValidationResult', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3AgentValidationResult(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3AgentValidationResult.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3AgentValidationResult( od as api.GoogleCloudDialogflowCxV3AgentValidationResult); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3AudioInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3AudioInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3AudioInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3AudioInput( od as api.GoogleCloudDialogflowCxV3AudioInput); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest( od as api.GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3BatchRunTestCasesMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3BatchRunTestCasesMetadata( od as api.GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3BatchRunTestCasesRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3BatchRunTestCasesRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3BatchRunTestCasesRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3BatchRunTestCasesRequest( od as api.GoogleCloudDialogflowCxV3BatchRunTestCasesRequest); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3BatchRunTestCasesResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3BatchRunTestCasesResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3BatchRunTestCasesResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3BatchRunTestCasesResponse( od as api.GoogleCloudDialogflowCxV3BatchRunTestCasesResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3CalculateCoverageResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3CalculateCoverageResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3CalculateCoverageResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3CalculateCoverageResponse( od as api.GoogleCloudDialogflowCxV3CalculateCoverageResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ConversationTurn', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ConversationTurn(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ConversationTurn.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ConversationTurn( od as api.GoogleCloudDialogflowCxV3ConversationTurn); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ConversationTurnUserInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ConversationTurnUserInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ConversationTurnUserInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ConversationTurnUserInput( od as api.GoogleCloudDialogflowCxV3ConversationTurnUserInput); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput(od as api.GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3CreateDocumentOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3CreateDocumentOperationMetadata( od as api.GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3CreateVersionOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3CreateVersionOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3CreateVersionOperationMetadata.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3CreateVersionOperationMetadata( od as api.GoogleCloudDialogflowCxV3CreateVersionOperationMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata( od as api.GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3DetectIntentRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3DetectIntentRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3DetectIntentRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3DetectIntentRequest( od as api.GoogleCloudDialogflowCxV3DetectIntentRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3DetectIntentResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3DetectIntentResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3DetectIntentResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3DetectIntentResponse( od as api.GoogleCloudDialogflowCxV3DetectIntentResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3DtmfInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3DtmfInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3DtmfInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3DtmfInput( od as api.GoogleCloudDialogflowCxV3DtmfInput); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3EntityType', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3EntityType(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3EntityType.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3EntityType( od as api.GoogleCloudDialogflowCxV3EntityType); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3EntityTypeEntity', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3EntityTypeEntity(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3EntityTypeEntity.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3EntityTypeEntity( od as api.GoogleCloudDialogflowCxV3EntityTypeEntity); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3EntityTypeExcludedPhrase( od as api.GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3Environment', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3Environment(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3Environment.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Environment( od as api.GoogleCloudDialogflowCxV3Environment); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3EnvironmentVersionConfig', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3EnvironmentVersionConfig(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3EnvironmentVersionConfig.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3EnvironmentVersionConfig( od as api.GoogleCloudDialogflowCxV3EnvironmentVersionConfig); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3EventHandler', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3EventHandler(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3EventHandler.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3EventHandler( od as api.GoogleCloudDialogflowCxV3EventHandler); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3EventInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3EventInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3EventInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3EventInput( od as api.GoogleCloudDialogflowCxV3EventInput); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3Experiment', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3Experiment(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3Experiment.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Experiment( od as api.GoogleCloudDialogflowCxV3Experiment); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ExperimentDefinition', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ExperimentDefinition(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ExperimentDefinition.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ExperimentDefinition( od as api.GoogleCloudDialogflowCxV3ExperimentDefinition); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ExperimentResult', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ExperimentResult(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ExperimentResult.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ExperimentResult( od as api.GoogleCloudDialogflowCxV3ExperimentResult); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval(od as api.GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ExperimentResultMetric', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ExperimentResultMetric(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ExperimentResultMetric.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ExperimentResultMetric( od as api.GoogleCloudDialogflowCxV3ExperimentResultMetric); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ExperimentResultVersionMetrics( od as api.GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ExportAgentRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ExportAgentRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ExportAgentRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ExportAgentRequest( od as api.GoogleCloudDialogflowCxV3ExportAgentRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ExportAgentResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ExportAgentResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ExportAgentResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ExportAgentResponse( od as api.GoogleCloudDialogflowCxV3ExportAgentResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ExportTestCasesMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ExportTestCasesMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ExportTestCasesMetadata.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ExportTestCasesMetadata( od as api.GoogleCloudDialogflowCxV3ExportTestCasesMetadata); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ExportTestCasesRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ExportTestCasesRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ExportTestCasesRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ExportTestCasesRequest( od as api.GoogleCloudDialogflowCxV3ExportTestCasesRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ExportTestCasesResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ExportTestCasesResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ExportTestCasesResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ExportTestCasesResponse( od as api.GoogleCloudDialogflowCxV3ExportTestCasesResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3Flow', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3Flow(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3Flow.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Flow( od as api.GoogleCloudDialogflowCxV3Flow); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3FlowValidationResult', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3FlowValidationResult(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3FlowValidationResult.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3FlowValidationResult( od as api.GoogleCloudDialogflowCxV3FlowValidationResult); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3Form', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3Form(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3Form.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Form( od as api.GoogleCloudDialogflowCxV3Form); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3FormParameter', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3FormParameter(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3FormParameter.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3FormParameter( od as api.GoogleCloudDialogflowCxV3FormParameter); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3FormParameterFillBehavior', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3FormParameterFillBehavior(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3FormParameterFillBehavior.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3FormParameterFillBehavior( od as api.GoogleCloudDialogflowCxV3FormParameterFillBehavior); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3FulfillIntentRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3FulfillIntentRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3FulfillIntentRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3FulfillIntentRequest( od as api.GoogleCloudDialogflowCxV3FulfillIntentRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3FulfillIntentResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3FulfillIntentResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3FulfillIntentResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3FulfillIntentResponse( od as api.GoogleCloudDialogflowCxV3FulfillIntentResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3Fulfillment', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3Fulfillment(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3Fulfillment.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Fulfillment( od as api.GoogleCloudDialogflowCxV3Fulfillment); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3FulfillmentConditionalCases', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3FulfillmentConditionalCases(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3FulfillmentConditionalCases.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3FulfillmentConditionalCases( od as api.GoogleCloudDialogflowCxV3FulfillmentConditionalCases); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase( od as api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent( od as api .GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3FulfillmentSetParameterAction', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3FulfillmentSetParameterAction(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3FulfillmentSetParameterAction.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3FulfillmentSetParameterAction( od as api.GoogleCloudDialogflowCxV3FulfillmentSetParameterAction); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata( od as api.GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata( od as api.GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ImportDocumentsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ImportDocumentsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ImportDocumentsResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ImportDocumentsResponse( od as api.GoogleCloudDialogflowCxV3ImportDocumentsResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ImportTestCasesMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ImportTestCasesMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ImportTestCasesMetadata.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ImportTestCasesMetadata( od as api.GoogleCloudDialogflowCxV3ImportTestCasesMetadata); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ImportTestCasesRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ImportTestCasesRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ImportTestCasesRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ImportTestCasesRequest( od as api.GoogleCloudDialogflowCxV3ImportTestCasesRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ImportTestCasesResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ImportTestCasesResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ImportTestCasesResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ImportTestCasesResponse( od as api.GoogleCloudDialogflowCxV3ImportTestCasesResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3InputAudioConfig', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3InputAudioConfig(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3InputAudioConfig.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3InputAudioConfig( od as api.GoogleCloudDialogflowCxV3InputAudioConfig); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3Intent', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3Intent(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3Intent.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Intent( od as api.GoogleCloudDialogflowCxV3Intent); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3IntentCoverage', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3IntentCoverage(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3IntentCoverage.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3IntentCoverage( od as api.GoogleCloudDialogflowCxV3IntentCoverage); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3IntentCoverageIntent', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3IntentCoverageIntent(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3IntentCoverageIntent.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3IntentCoverageIntent( od as api.GoogleCloudDialogflowCxV3IntentCoverageIntent); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3IntentInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3IntentInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3IntentInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3IntentInput( od as api.GoogleCloudDialogflowCxV3IntentInput); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3IntentParameter', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3IntentParameter(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3IntentParameter.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3IntentParameter( od as api.GoogleCloudDialogflowCxV3IntentParameter); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3IntentTrainingPhrase', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3IntentTrainingPhrase(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3IntentTrainingPhrase.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3IntentTrainingPhrase( od as api.GoogleCloudDialogflowCxV3IntentTrainingPhrase); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3IntentTrainingPhrasePart', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3IntentTrainingPhrasePart(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3IntentTrainingPhrasePart.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3IntentTrainingPhrasePart( od as api.GoogleCloudDialogflowCxV3IntentTrainingPhrasePart); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ListAgentsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ListAgentsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ListAgentsResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ListAgentsResponse( od as api.GoogleCloudDialogflowCxV3ListAgentsResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ListEntityTypesResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ListEntityTypesResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ListEntityTypesResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ListEntityTypesResponse( od as api.GoogleCloudDialogflowCxV3ListEntityTypesResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ListEnvironmentsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ListEnvironmentsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ListEnvironmentsResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ListEnvironmentsResponse( od as api.GoogleCloudDialogflowCxV3ListEnvironmentsResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ListExperimentsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ListExperimentsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ListExperimentsResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ListExperimentsResponse( od as api.GoogleCloudDialogflowCxV3ListExperimentsResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ListFlowsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ListFlowsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ListFlowsResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ListFlowsResponse( od as api.GoogleCloudDialogflowCxV3ListFlowsResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ListIntentsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ListIntentsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ListIntentsResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ListIntentsResponse( od as api.GoogleCloudDialogflowCxV3ListIntentsResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ListPagesResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ListPagesResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ListPagesResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ListPagesResponse( od as api.GoogleCloudDialogflowCxV3ListPagesResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ListSecuritySettingsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ListSecuritySettingsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ListSecuritySettingsResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ListSecuritySettingsResponse( od as api.GoogleCloudDialogflowCxV3ListSecuritySettingsResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse( od as api.GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ListTestCaseResultsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ListTestCaseResultsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ListTestCaseResultsResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ListTestCaseResultsResponse( od as api.GoogleCloudDialogflowCxV3ListTestCaseResultsResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ListTestCasesResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ListTestCasesResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ListTestCasesResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ListTestCasesResponse( od as api.GoogleCloudDialogflowCxV3ListTestCasesResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse( od as api.GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ListVersionsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ListVersionsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ListVersionsResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ListVersionsResponse( od as api.GoogleCloudDialogflowCxV3ListVersionsResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ListWebhooksResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ListWebhooksResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ListWebhooksResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ListWebhooksResponse( od as api.GoogleCloudDialogflowCxV3ListWebhooksResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3LoadVersionRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3LoadVersionRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3LoadVersionRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3LoadVersionRequest( od as api.GoogleCloudDialogflowCxV3LoadVersionRequest); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse( od as api.GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3Match', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3Match(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3Match.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Match( od as api.GoogleCloudDialogflowCxV3Match); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3MatchIntentRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3MatchIntentRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3MatchIntentRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3MatchIntentRequest( od as api.GoogleCloudDialogflowCxV3MatchIntentRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3MatchIntentResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3MatchIntentResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3MatchIntentResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3MatchIntentResponse( od as api.GoogleCloudDialogflowCxV3MatchIntentResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3NluSettings', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3NluSettings(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3NluSettings.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3NluSettings( od as api.GoogleCloudDialogflowCxV3NluSettings); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3OutputAudioConfig', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3OutputAudioConfig(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3OutputAudioConfig.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3OutputAudioConfig( od as api.GoogleCloudDialogflowCxV3OutputAudioConfig); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3Page', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3Page(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3Page.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Page( od as api.GoogleCloudDialogflowCxV3Page); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3PageInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3PageInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3PageInfo.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3PageInfo( od as api.GoogleCloudDialogflowCxV3PageInfo); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3PageInfoFormInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3PageInfoFormInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3PageInfoFormInfo.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3PageInfoFormInfo( od as api.GoogleCloudDialogflowCxV3PageInfoFormInfo); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo( od as api.GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3QueryInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3QueryInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3QueryInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3QueryInput( od as api.GoogleCloudDialogflowCxV3QueryInput); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3QueryParameters', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3QueryParameters(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3QueryParameters.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3QueryParameters( od as api.GoogleCloudDialogflowCxV3QueryParameters); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3QueryResult', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3QueryResult(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3QueryResult.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3QueryResult( od as api.GoogleCloudDialogflowCxV3QueryResult); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata( od as api.GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ResourceName', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ResourceName(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ResourceName.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ResourceName( od as api.GoogleCloudDialogflowCxV3ResourceName); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ResponseMessage', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ResponseMessage(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ResponseMessage.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ResponseMessage( od as api.GoogleCloudDialogflowCxV3ResponseMessage); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ResponseMessageConversationSuccess(od as api.GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ResponseMessageEndInteraction', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ResponseMessageEndInteraction(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ResponseMessageEndInteraction.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ResponseMessageEndInteraction( od as api.GoogleCloudDialogflowCxV3ResponseMessageEndInteraction); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff( od as api.GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ResponseMessageMixedAudio', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ResponseMessageMixedAudio(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudio.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ResponseMessageMixedAudio( od as api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudio); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment( od as api.GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ResponseMessageOutputAudioText( od as api.GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ResponseMessagePlayAudio', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ResponseMessagePlayAudio(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ResponseMessagePlayAudio.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ResponseMessagePlayAudio( od as api.GoogleCloudDialogflowCxV3ResponseMessagePlayAudio); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ResponseMessageText', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ResponseMessageText(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ResponseMessageText.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ResponseMessageText( od as api.GoogleCloudDialogflowCxV3ResponseMessageText); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3RestoreAgentRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3RestoreAgentRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3RestoreAgentRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3RestoreAgentRequest( od as api.GoogleCloudDialogflowCxV3RestoreAgentRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3RunTestCaseMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3RunTestCaseMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3RunTestCaseMetadata.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3RunTestCaseMetadata( od as api.GoogleCloudDialogflowCxV3RunTestCaseMetadata); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3RunTestCaseRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3RunTestCaseRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3RunTestCaseRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3RunTestCaseRequest( od as api.GoogleCloudDialogflowCxV3RunTestCaseRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3RunTestCaseResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3RunTestCaseResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3RunTestCaseResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3RunTestCaseResponse( od as api.GoogleCloudDialogflowCxV3RunTestCaseResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3SecuritySettings', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3SecuritySettings(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3SecuritySettings.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3SecuritySettings( od as api.GoogleCloudDialogflowCxV3SecuritySettings); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3SentimentAnalysisResult', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3SentimentAnalysisResult(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3SentimentAnalysisResult.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3SentimentAnalysisResult( od as api.GoogleCloudDialogflowCxV3SentimentAnalysisResult); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3SessionEntityType', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3SessionEntityType(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3SessionEntityType.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3SessionEntityType( od as api.GoogleCloudDialogflowCxV3SessionEntityType); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3SessionInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3SessionInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3SessionInfo.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3SessionInfo( od as api.GoogleCloudDialogflowCxV3SessionInfo); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3SpeechToTextSettings', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3SpeechToTextSettings(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3SpeechToTextSettings.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3SpeechToTextSettings( od as api.GoogleCloudDialogflowCxV3SpeechToTextSettings); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3StartExperimentRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3StartExperimentRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3StartExperimentRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3StartExperimentRequest( od as api.GoogleCloudDialogflowCxV3StartExperimentRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3StopExperimentRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3StopExperimentRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3StopExperimentRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3StopExperimentRequest( od as api.GoogleCloudDialogflowCxV3StopExperimentRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3SynthesizeSpeechConfig', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3SynthesizeSpeechConfig(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3SynthesizeSpeechConfig.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3SynthesizeSpeechConfig( od as api.GoogleCloudDialogflowCxV3SynthesizeSpeechConfig); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3TestCase', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TestCase(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TestCase.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TestCase( od as api.GoogleCloudDialogflowCxV3TestCase); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3TestCaseError', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TestCaseError(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TestCaseError.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TestCaseError( od as api.GoogleCloudDialogflowCxV3TestCaseError); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3TestCaseResult', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TestCaseResult(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TestCaseResult.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TestCaseResult( od as api.GoogleCloudDialogflowCxV3TestCaseResult); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3TestConfig', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TestConfig(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TestConfig.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TestConfig( od as api.GoogleCloudDialogflowCxV3TestConfig); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3TestError', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TestError(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TestError.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TestError( od as api.GoogleCloudDialogflowCxV3TestError); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3TestRunDifference', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TestRunDifference(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TestRunDifference.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TestRunDifference( od as api.GoogleCloudDialogflowCxV3TestRunDifference); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3TextInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TextInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TextInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TextInput( od as api.GoogleCloudDialogflowCxV3TextInput); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3TrainFlowRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TrainFlowRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TrainFlowRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TrainFlowRequest( od as api.GoogleCloudDialogflowCxV3TrainFlowRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3TransitionCoverage', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TransitionCoverage(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TransitionCoverage.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TransitionCoverage( od as api.GoogleCloudDialogflowCxV3TransitionCoverage); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3TransitionCoverageTransition', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TransitionCoverageTransition(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TransitionCoverageTransition.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TransitionCoverageTransition( od as api.GoogleCloudDialogflowCxV3TransitionCoverageTransition); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TransitionCoverageTransitionNode( od as api.GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3TransitionRoute', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TransitionRoute(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TransitionRoute.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TransitionRoute( od as api.GoogleCloudDialogflowCxV3TransitionRoute); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3TransitionRouteGroup', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TransitionRouteGroup(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TransitionRouteGroup.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TransitionRouteGroup( od as api.GoogleCloudDialogflowCxV3TransitionRouteGroup); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverage( od as api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage(od as api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition( od as api .GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata( od as api.GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ValidateAgentRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ValidateAgentRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ValidateAgentRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ValidateAgentRequest( od as api.GoogleCloudDialogflowCxV3ValidateAgentRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ValidateFlowRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ValidateFlowRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ValidateFlowRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ValidateFlowRequest( od as api.GoogleCloudDialogflowCxV3ValidateFlowRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3ValidationMessage', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3ValidationMessage(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3ValidationMessage.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ValidationMessage( od as api.GoogleCloudDialogflowCxV3ValidationMessage); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3VariantsHistory', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3VariantsHistory(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3VariantsHistory.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3VariantsHistory( od as api.GoogleCloudDialogflowCxV3VariantsHistory); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3Version', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3Version(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3Version.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Version( od as api.GoogleCloudDialogflowCxV3Version); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3VersionVariants', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3VersionVariants(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3VersionVariants.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3VersionVariants( od as api.GoogleCloudDialogflowCxV3VersionVariants); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3VersionVariantsVariant', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3VersionVariantsVariant(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3VersionVariantsVariant.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3VersionVariantsVariant( od as api.GoogleCloudDialogflowCxV3VersionVariantsVariant); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3VoiceSelectionParams', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3VoiceSelectionParams(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3VoiceSelectionParams.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3VoiceSelectionParams( od as api.GoogleCloudDialogflowCxV3VoiceSelectionParams); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3Webhook', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3Webhook(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3Webhook.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Webhook( od as api.GoogleCloudDialogflowCxV3Webhook); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3WebhookGenericWebService', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3WebhookGenericWebService(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3WebhookGenericWebService.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3WebhookGenericWebService( od as api.GoogleCloudDialogflowCxV3WebhookGenericWebService); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3WebhookRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3WebhookRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3WebhookRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3WebhookRequest( od as api.GoogleCloudDialogflowCxV3WebhookRequest); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo( od as api.GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3WebhookRequestIntentInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3WebhookRequestIntentInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3WebhookRequestIntentInfo.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3WebhookRequestIntentInfo( od as api.GoogleCloudDialogflowCxV3WebhookRequestIntentInfo); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue( od as api .GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult(od as api .GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3WebhookResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3WebhookResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3WebhookResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3WebhookResponse( od as api.GoogleCloudDialogflowCxV3WebhookResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse(od as api.GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1AudioInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1AudioInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1AudioInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1AudioInput( od as api.GoogleCloudDialogflowCxV3beta1AudioInput); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata( od as api.GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse( od as api.GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1ConversationTurn', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ConversationTurn(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ConversationTurn.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ConversationTurn( od as api.GoogleCloudDialogflowCxV3beta1ConversationTurn); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ConversationTurnUserInput( od as api.GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput(od as api .GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata(od as api.GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata(od as api.GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata(od as api.GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1DtmfInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1DtmfInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1DtmfInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1DtmfInput( od as api.GoogleCloudDialogflowCxV3beta1DtmfInput); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1EventHandler', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1EventHandler(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1EventHandler.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1EventHandler( od as api.GoogleCloudDialogflowCxV3beta1EventHandler); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1EventInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1EventInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1EventInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1EventInput( od as api.GoogleCloudDialogflowCxV3beta1EventInput); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1ExportAgentResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ExportAgentResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ExportAgentResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ExportAgentResponse( od as api.GoogleCloudDialogflowCxV3beta1ExportAgentResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata( od as api.GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ExportTestCasesResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ExportTestCasesResponse( od as api.GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1Form', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1Form(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1Form.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1Form( od as api.GoogleCloudDialogflowCxV3beta1Form); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1FormParameter', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1FormParameter(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1FormParameter.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1FormParameter( od as api.GoogleCloudDialogflowCxV3beta1FormParameter); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1FormParameterFillBehavior( od as api.GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1Fulfillment', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1Fulfillment(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1Fulfillment.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1Fulfillment( od as api.GoogleCloudDialogflowCxV3beta1Fulfillment); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases( od as api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase(od as api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent( od as api .GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction(od as api.GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata(od as api .GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata(od as api .GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ImportDocumentsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ImportDocumentsResponse( od as api.GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata( od as api.GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ImportTestCasesResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ImportTestCasesResponse( od as api.GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1InputAudioConfig', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1InputAudioConfig(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1InputAudioConfig.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1InputAudioConfig( od as api.GoogleCloudDialogflowCxV3beta1InputAudioConfig); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1Intent', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1Intent(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1Intent.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1Intent( od as api.GoogleCloudDialogflowCxV3beta1Intent); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1IntentInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1IntentInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1IntentInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1IntentInput( od as api.GoogleCloudDialogflowCxV3beta1IntentInput); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1IntentParameter', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1IntentParameter(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1IntentParameter.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1IntentParameter( od as api.GoogleCloudDialogflowCxV3beta1IntentParameter); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1IntentTrainingPhrase( od as api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart( od as api.GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1Page', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1Page(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1Page.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1Page( od as api.GoogleCloudDialogflowCxV3beta1Page); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1PageInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1PageInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1PageInfo.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1PageInfo( od as api.GoogleCloudDialogflowCxV3beta1PageInfo); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1PageInfoFormInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1PageInfoFormInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfo.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1PageInfoFormInfo( od as api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfo); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo(od as api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1QueryInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1QueryInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1QueryInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1QueryInput( od as api.GoogleCloudDialogflowCxV3beta1QueryInput); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata(od as api.GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessage', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ResponseMessage(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ResponseMessage.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ResponseMessage( od as api.GoogleCloudDialogflowCxV3beta1ResponseMessage); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess(od as api .GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction(od as api.GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff(od as api.GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio( od as api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment(od as api .GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText(od as api.GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio( od as api.GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessageText', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1ResponseMessageText(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1ResponseMessageText.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1ResponseMessageText( od as api.GoogleCloudDialogflowCxV3beta1ResponseMessageText); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1RunTestCaseMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1RunTestCaseMetadata( od as api.GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1RunTestCaseResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1RunTestCaseResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1RunTestCaseResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1RunTestCaseResponse( od as api.GoogleCloudDialogflowCxV3beta1RunTestCaseResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1SessionInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1SessionInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1SessionInfo.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1SessionInfo( od as api.GoogleCloudDialogflowCxV3beta1SessionInfo); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1TestCase', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1TestCase(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1TestCase.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1TestCase( od as api.GoogleCloudDialogflowCxV3beta1TestCase); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1TestCaseError', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1TestCaseError(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1TestCaseError.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1TestCaseError( od as api.GoogleCloudDialogflowCxV3beta1TestCaseError); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1TestCaseResult', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1TestCaseResult(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1TestCaseResult.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1TestCaseResult( od as api.GoogleCloudDialogflowCxV3beta1TestCaseResult); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1TestConfig', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1TestConfig(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1TestConfig.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1TestConfig( od as api.GoogleCloudDialogflowCxV3beta1TestConfig); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1TestError', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1TestError(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1TestError.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1TestError( od as api.GoogleCloudDialogflowCxV3beta1TestError); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1TestRunDifference', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1TestRunDifference(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1TestRunDifference.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1TestRunDifference( od as api.GoogleCloudDialogflowCxV3beta1TestRunDifference); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1TextInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1TextInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1TextInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1TextInput( od as api.GoogleCloudDialogflowCxV3beta1TextInput); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1TransitionRoute', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1TransitionRoute(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1TransitionRoute.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1TransitionRoute( od as api.GoogleCloudDialogflowCxV3beta1TransitionRoute); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata(od as api.GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1WebhookRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1WebhookRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1WebhookRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1WebhookRequest( od as api.GoogleCloudDialogflowCxV3beta1WebhookRequest); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo(od as api.GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo( od as api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue( od as api .GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult( od as api .GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult); }); }); unittest.group('obj-schema-GoogleCloudDialogflowCxV3beta1WebhookResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1WebhookResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1WebhookResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1WebhookResponse( od as api.GoogleCloudDialogflowCxV3beta1WebhookResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse(od as api .GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2AnnotatedMessagePart', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2AnnotatedMessagePart(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2AnnotatedMessagePart.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2AnnotatedMessagePart( od as api.GoogleCloudDialogflowV2AnnotatedMessagePart); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse( od as api.GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2BatchUpdateIntentsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2BatchUpdateIntentsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2BatchUpdateIntentsResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2BatchUpdateIntentsResponse( od as api.GoogleCloudDialogflowV2BatchUpdateIntentsResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2Context', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2Context(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2Context.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2Context( od as api.GoogleCloudDialogflowV2Context); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2ConversationEvent', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2ConversationEvent(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2ConversationEvent.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2ConversationEvent( od as api.GoogleCloudDialogflowV2ConversationEvent); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2EntityType', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2EntityType(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2EntityType.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2EntityType( od as api.GoogleCloudDialogflowV2EntityType); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2EntityTypeEntity', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2EntityTypeEntity(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2EntityTypeEntity.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2EntityTypeEntity( od as api.GoogleCloudDialogflowV2EntityTypeEntity); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2EventInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2EventInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2EventInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2EventInput( od as api.GoogleCloudDialogflowV2EventInput); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2ExportAgentResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2ExportAgentResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2ExportAgentResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2ExportAgentResponse( od as api.GoogleCloudDialogflowV2ExportAgentResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2Intent', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2Intent(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2Intent.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2Intent( od as api.GoogleCloudDialogflowV2Intent); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentFollowupIntentInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentFollowupIntentInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentFollowupIntentInfo.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentFollowupIntentInfo( od as api.GoogleCloudDialogflowV2IntentFollowupIntentInfo); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentMessage', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessage(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessage.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessage( od as api.GoogleCloudDialogflowV2IntentMessage); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentMessageBasicCard', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageBasicCard(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageBasicCard.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageBasicCard( od as api.GoogleCloudDialogflowV2IntentMessageBasicCard); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2IntentMessageBasicCardButton', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageBasicCardButton(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageBasicCardButton.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageBasicCardButton( od as api.GoogleCloudDialogflowV2IntentMessageBasicCardButton); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction(od as api .GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard( od as api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem( od as api .GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction( od as api .GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentMessageCard', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageCard(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageCard.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageCard( od as api.GoogleCloudDialogflowV2IntentMessageCard); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentMessageCardButton', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageCardButton(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageCardButton.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageCardButton( od as api.GoogleCloudDialogflowV2IntentMessageCardButton); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2IntentMessageCarouselSelect', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageCarouselSelect(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageCarouselSelect.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageCarouselSelect( od as api.GoogleCloudDialogflowV2IntentMessageCarouselSelect); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2IntentMessageCarouselSelectItem', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageCarouselSelectItem(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageCarouselSelectItem.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageCarouselSelectItem( od as api.GoogleCloudDialogflowV2IntentMessageCarouselSelectItem); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2IntentMessageColumnProperties', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageColumnProperties(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageColumnProperties.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageColumnProperties( od as api.GoogleCloudDialogflowV2IntentMessageColumnProperties); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentMessageImage', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageImage(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageImage.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageImage( od as api.GoogleCloudDialogflowV2IntentMessageImage); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion( od as api.GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentMessageListSelect', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageListSelect(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageListSelect.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageListSelect( od as api.GoogleCloudDialogflowV2IntentMessageListSelect); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2IntentMessageListSelectItem', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageListSelectItem(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageListSelectItem.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageListSelectItem( od as api.GoogleCloudDialogflowV2IntentMessageListSelectItem); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentMessageMediaContent', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageMediaContent(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageMediaContent.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageMediaContent( od as api.GoogleCloudDialogflowV2IntentMessageMediaContent); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject( od as api .GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentMessageQuickReplies', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageQuickReplies(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageQuickReplies.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageQuickReplies( od as api.GoogleCloudDialogflowV2IntentMessageQuickReplies); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2IntentMessageSelectItemInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageSelectItemInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageSelectItemInfo.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageSelectItemInfo( od as api.GoogleCloudDialogflowV2IntentMessageSelectItemInfo); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2IntentMessageSimpleResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageSimpleResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageSimpleResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageSimpleResponse( od as api.GoogleCloudDialogflowV2IntentMessageSimpleResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2IntentMessageSimpleResponses', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageSimpleResponses(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageSimpleResponses.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageSimpleResponses( od as api.GoogleCloudDialogflowV2IntentMessageSimpleResponses); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentMessageSuggestion', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageSuggestion(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageSuggestion.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageSuggestion( od as api.GoogleCloudDialogflowV2IntentMessageSuggestion); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentMessageSuggestions', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageSuggestions(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageSuggestions.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageSuggestions( od as api.GoogleCloudDialogflowV2IntentMessageSuggestions); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentMessageTableCard', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageTableCard(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageTableCard.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageTableCard( od as api.GoogleCloudDialogflowV2IntentMessageTableCard); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentMessageTableCardCell', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageTableCardCell(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageTableCardCell.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageTableCardCell( od as api.GoogleCloudDialogflowV2IntentMessageTableCardCell); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentMessageTableCardRow', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageTableCardRow(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageTableCardRow.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageTableCardRow( od as api.GoogleCloudDialogflowV2IntentMessageTableCardRow); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentMessageText', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentMessageText(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentMessageText.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentMessageText( od as api.GoogleCloudDialogflowV2IntentMessageText); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentParameter', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentParameter(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentParameter.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentParameter( od as api.GoogleCloudDialogflowV2IntentParameter); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentTrainingPhrase', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentTrainingPhrase(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentTrainingPhrase.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentTrainingPhrase( od as api.GoogleCloudDialogflowV2IntentTrainingPhrase); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2IntentTrainingPhrasePart', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2IntentTrainingPhrasePart(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2IntentTrainingPhrasePart.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2IntentTrainingPhrasePart( od as api.GoogleCloudDialogflowV2IntentTrainingPhrasePart); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2Message', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2Message(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2Message.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2Message( od as api.GoogleCloudDialogflowV2Message); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2MessageAnnotation', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2MessageAnnotation(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2MessageAnnotation.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2MessageAnnotation( od as api.GoogleCloudDialogflowV2MessageAnnotation); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2OriginalDetectIntentRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2OriginalDetectIntentRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2OriginalDetectIntentRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2OriginalDetectIntentRequest( od as api.GoogleCloudDialogflowV2OriginalDetectIntentRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2QueryResult', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2QueryResult(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2QueryResult.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2QueryResult( od as api.GoogleCloudDialogflowV2QueryResult); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2Sentiment', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2Sentiment(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2Sentiment.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2Sentiment( od as api.GoogleCloudDialogflowV2Sentiment); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2SentimentAnalysisResult', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2SentimentAnalysisResult(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2SentimentAnalysisResult.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2SentimentAnalysisResult( od as api.GoogleCloudDialogflowV2SentimentAnalysisResult); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2SessionEntityType', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2SessionEntityType(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2SessionEntityType.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2SessionEntityType( od as api.GoogleCloudDialogflowV2SessionEntityType); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2WebhookRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2WebhookRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2WebhookRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2WebhookRequest( od as api.GoogleCloudDialogflowV2WebhookRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2WebhookResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2WebhookResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2WebhookResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2WebhookResponse( od as api.GoogleCloudDialogflowV2WebhookResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse( od as api.GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse( od as api.GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1Context', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1Context(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1Context.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1Context( od as api.GoogleCloudDialogflowV2beta1Context); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1EntityType', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1EntityType(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1EntityType.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1EntityType( od as api.GoogleCloudDialogflowV2beta1EntityType); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1EntityTypeEntity', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1EntityTypeEntity(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1EntityTypeEntity.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1EntityTypeEntity( od as api.GoogleCloudDialogflowV2beta1EntityTypeEntity); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1EventInput', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1EventInput(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1EventInput.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1EventInput( od as api.GoogleCloudDialogflowV2beta1EventInput); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1ExportAgentResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1ExportAgentResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1ExportAgentResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1ExportAgentResponse( od as api.GoogleCloudDialogflowV2beta1ExportAgentResponse); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1Intent', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1Intent(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1Intent.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1Intent( od as api.GoogleCloudDialogflowV2beta1Intent); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo( od as api.GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1IntentMessage', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessage(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessage.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessage( od as api.GoogleCloudDialogflowV2beta1IntentMessage); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageBasicCard', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageBasicCard(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageBasicCard.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageBasicCard( od as api.GoogleCloudDialogflowV2beta1IntentMessageBasicCard); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton( od as api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction( od as api .GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard(od as api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem( od as api .GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction( od as api .GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1IntentMessageCard', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageCard(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageCard.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageCard( od as api.GoogleCloudDialogflowV2beta1IntentMessageCard); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageCardButton', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageCardButton(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageCardButton.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageCardButton( od as api.GoogleCloudDialogflowV2beta1IntentMessageCardButton); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect( od as api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem(od as api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageColumnProperties', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageColumnProperties(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageColumnProperties .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageColumnProperties( od as api.GoogleCloudDialogflowV2beta1IntentMessageColumnProperties); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1IntentMessageImage', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageImage(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageImage.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageImage( od as api.GoogleCloudDialogflowV2beta1IntentMessageImage); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion( od as api.GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageListSelect', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageListSelect(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageListSelect.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageListSelect( od as api.GoogleCloudDialogflowV2beta1IntentMessageListSelect); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageListSelectItem', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageListSelectItem(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageListSelectItem.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageListSelectItem( od as api.GoogleCloudDialogflowV2beta1IntentMessageListSelectItem); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageMediaContent', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageMediaContent(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageMediaContent.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageMediaContent( od as api.GoogleCloudDialogflowV2beta1IntentMessageMediaContent); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject( od as api .GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageQuickReplies', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageQuickReplies(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageQuickReplies.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageQuickReplies( od as api.GoogleCloudDialogflowV2beta1IntentMessageQuickReplies); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent( od as api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia(od as api .GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard( od as api.GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard( od as api.GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction(od as api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial( od as api .GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri( od as api .GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation( od as api .GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply( od as api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion( od as api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1IntentMessageRbmText', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageRbmText(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageRbmText.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageRbmText( od as api.GoogleCloudDialogflowV2beta1IntentMessageRbmText); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo( od as api.GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse( od as api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses( od as api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageSuggestion', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageSuggestion(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageSuggestion.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageSuggestion( od as api.GoogleCloudDialogflowV2beta1IntentMessageSuggestion); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageSuggestions', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageSuggestions(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageSuggestions.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageSuggestions( od as api.GoogleCloudDialogflowV2beta1IntentMessageSuggestions); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageTableCard', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageTableCard(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageTableCard.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageTableCard( od as api.GoogleCloudDialogflowV2beta1IntentMessageTableCard); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageTableCardCell', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageTableCardCell(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageTableCardCell.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageTableCardCell( od as api.GoogleCloudDialogflowV2beta1IntentMessageTableCardCell); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageTableCardRow', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageTableCardRow(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageTableCardRow.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageTableCardRow( od as api.GoogleCloudDialogflowV2beta1IntentMessageTableCardRow); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio(od as api.GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech(od as api .GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall(od as api .GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1IntentMessageText', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentMessageText(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentMessageText.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentMessageText( od as api.GoogleCloudDialogflowV2beta1IntentMessageText); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1IntentParameter', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentParameter(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentParameter.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentParameter( od as api.GoogleCloudDialogflowV2beta1IntentParameter); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1IntentTrainingPhrase', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentTrainingPhrase(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentTrainingPhrase.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentTrainingPhrase( od as api.GoogleCloudDialogflowV2beta1IntentTrainingPhrase); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart( od as api.GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1KnowledgeAnswers', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1KnowledgeAnswers(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1KnowledgeAnswers.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1KnowledgeAnswers( od as api.GoogleCloudDialogflowV2beta1KnowledgeAnswers); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer( od as api.GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1KnowledgeOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1KnowledgeOperationMetadata( od as api.GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest( od as api.GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1QueryResult', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1QueryResult(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1QueryResult.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1QueryResult( od as api.GoogleCloudDialogflowV2beta1QueryResult); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1Sentiment', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1Sentiment(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1Sentiment.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1Sentiment( od as api.GoogleCloudDialogflowV2beta1Sentiment); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV2beta1SentimentAnalysisResult', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1SentimentAnalysisResult(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1SentimentAnalysisResult.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1SentimentAnalysisResult( od as api.GoogleCloudDialogflowV2beta1SentimentAnalysisResult); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1SessionEntityType', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1SessionEntityType(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1SessionEntityType.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1SessionEntityType( od as api.GoogleCloudDialogflowV2beta1SessionEntityType); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1WebhookRequest', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1WebhookRequest(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1WebhookRequest.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1WebhookRequest( od as api.GoogleCloudDialogflowV2beta1WebhookRequest); }); }); unittest.group('obj-schema-GoogleCloudDialogflowV2beta1WebhookResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV2beta1WebhookResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV2beta1WebhookResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV2beta1WebhookResponse( od as api.GoogleCloudDialogflowV2beta1WebhookResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata(od as api.GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata(od as api.GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata(od as api .GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata(od as api.GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV3alpha1ImportDocumentsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV3alpha1ImportDocumentsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV3alpha1ImportDocumentsResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV3alpha1ImportDocumentsResponse( od as api.GoogleCloudDialogflowV3alpha1ImportDocumentsResponse); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata(od as api.GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata); }); }); unittest.group( 'obj-schema-GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata', () { unittest.test('to-json--from-json', () async { var o = buildGoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata .fromJson(oJson as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata(od as api.GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata); }); }); unittest.group('obj-schema-GoogleLongrunningListOperationsResponse', () { unittest.test('to-json--from-json', () async { var o = buildGoogleLongrunningListOperationsResponse(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleLongrunningListOperationsResponse.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleLongrunningListOperationsResponse( od as api.GoogleLongrunningListOperationsResponse); }); }); unittest.group('obj-schema-GoogleLongrunningOperation', () { unittest.test('to-json--from-json', () async { var o = buildGoogleLongrunningOperation(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleLongrunningOperation.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleLongrunningOperation(od as api.GoogleLongrunningOperation); }); }); unittest.group('obj-schema-GoogleProtobufEmpty', () { unittest.test('to-json--from-json', () async { var o = buildGoogleProtobufEmpty(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleProtobufEmpty.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleProtobufEmpty(od as api.GoogleProtobufEmpty); }); }); unittest.group('obj-schema-GoogleRpcStatus', () { unittest.test('to-json--from-json', () async { var o = buildGoogleRpcStatus(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleRpcStatus.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleRpcStatus(od as api.GoogleRpcStatus); }); }); unittest.group('obj-schema-GoogleTypeLatLng', () { unittest.test('to-json--from-json', () async { var o = buildGoogleTypeLatLng(); var oJson = convert.jsonDecode(convert.jsonEncode(o)); var od = api.GoogleTypeLatLng.fromJson( oJson as core.Map<core.String, core.dynamic>); checkGoogleTypeLatLng(od as api.GoogleTypeLatLng); }); }); unittest.group('resource-ProjectsLocationsAgentsResource', () { unittest.test('method--create', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents; var arg_request = buildGoogleCloudDialogflowCxV3Agent(); var arg_parent = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Agent.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Agent( obj as api.GoogleCloudDialogflowCxV3Agent); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Agent()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.create(arg_request, arg_parent, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Agent( response as api.GoogleCloudDialogflowCxV3Agent); }); unittest.test('method--delete', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.delete(arg_name, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--export', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents; var arg_request = buildGoogleCloudDialogflowCxV3ExportAgentRequest(); var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3ExportAgentRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ExportAgentRequest( obj as api.GoogleCloudDialogflowCxV3ExportAgentRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.export(arg_request, arg_name, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Agent()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Agent( response as api.GoogleCloudDialogflowCxV3Agent); }); unittest.test('method--getValidationResult', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents; var arg_name = 'foo'; var arg_languageCode = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3AgentValidationResult()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.getValidationResult(arg_name, languageCode: arg_languageCode, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3AgentValidationResult( response as api.GoogleCloudDialogflowCxV3AgentValidationResult); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents; var arg_parent = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3ListAgentsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListAgentsResponse( response as api.GoogleCloudDialogflowCxV3ListAgentsResponse); }); unittest.test('method--patch', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents; var arg_request = buildGoogleCloudDialogflowCxV3Agent(); var arg_name = 'foo'; var arg_updateMask = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Agent.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Agent( obj as api.GoogleCloudDialogflowCxV3Agent); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["updateMask"]!.first, unittest.equals(arg_updateMask), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Agent()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.patch(arg_request, arg_name, updateMask: arg_updateMask, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Agent( response as api.GoogleCloudDialogflowCxV3Agent); }); unittest.test('method--restore', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents; var arg_request = buildGoogleCloudDialogflowCxV3RestoreAgentRequest(); var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3RestoreAgentRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3RestoreAgentRequest( obj as api.GoogleCloudDialogflowCxV3RestoreAgentRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.restore(arg_request, arg_name, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation); }); unittest.test('method--validate', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents; var arg_request = buildGoogleCloudDialogflowCxV3ValidateAgentRequest(); var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3ValidateAgentRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ValidateAgentRequest( obj as api.GoogleCloudDialogflowCxV3ValidateAgentRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3AgentValidationResult()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.validate(arg_request, arg_name, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3AgentValidationResult( response as api.GoogleCloudDialogflowCxV3AgentValidationResult); }); }); unittest.group('resource-ProjectsLocationsAgentsEntityTypesResource', () { unittest.test('method--create', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.entityTypes; var arg_request = buildGoogleCloudDialogflowCxV3EntityType(); var arg_parent = 'foo'; var arg_languageCode = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3EntityType.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3EntityType( obj as api.GoogleCloudDialogflowCxV3EntityType); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3EntityType()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.create(arg_request, arg_parent, languageCode: arg_languageCode, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3EntityType( response as api.GoogleCloudDialogflowCxV3EntityType); }); unittest.test('method--delete', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.entityTypes; var arg_name = 'foo'; var arg_force = true; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["force"]!.first, unittest.equals("$arg_force"), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.delete(arg_name, force: arg_force, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.entityTypes; var arg_name = 'foo'; var arg_languageCode = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3EntityType()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, languageCode: arg_languageCode, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3EntityType( response as api.GoogleCloudDialogflowCxV3EntityType); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.entityTypes; var arg_parent = 'foo'; var arg_languageCode = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3ListEntityTypesResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, languageCode: arg_languageCode, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListEntityTypesResponse( response as api.GoogleCloudDialogflowCxV3ListEntityTypesResponse); }); unittest.test('method--patch', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.entityTypes; var arg_request = buildGoogleCloudDialogflowCxV3EntityType(); var arg_name = 'foo'; var arg_languageCode = 'foo'; var arg_updateMask = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3EntityType.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3EntityType( obj as api.GoogleCloudDialogflowCxV3EntityType); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["updateMask"]!.first, unittest.equals(arg_updateMask), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3EntityType()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.patch(arg_request, arg_name, languageCode: arg_languageCode, updateMask: arg_updateMask, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3EntityType( response as api.GoogleCloudDialogflowCxV3EntityType); }); }); unittest.group('resource-ProjectsLocationsAgentsEnvironmentsResource', () { unittest.test('method--create', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.environments; var arg_request = buildGoogleCloudDialogflowCxV3Environment(); var arg_parent = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Environment.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Environment( obj as api.GoogleCloudDialogflowCxV3Environment); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.create(arg_request, arg_parent, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation); }); unittest.test('method--delete', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.environments; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.delete(arg_name, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.environments; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Environment()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Environment( response as api.GoogleCloudDialogflowCxV3Environment); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.environments; var arg_parent = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3ListEnvironmentsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListEnvironmentsResponse( response as api.GoogleCloudDialogflowCxV3ListEnvironmentsResponse); }); unittest.test('method--lookupEnvironmentHistory', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.environments; var arg_name = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode( buildGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.lookupEnvironmentHistory(arg_name, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse(response as api.GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse); }); unittest.test('method--patch', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.environments; var arg_request = buildGoogleCloudDialogflowCxV3Environment(); var arg_name = 'foo'; var arg_updateMask = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Environment.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Environment( obj as api.GoogleCloudDialogflowCxV3Environment); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["updateMask"]!.first, unittest.equals(arg_updateMask), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.patch(arg_request, arg_name, updateMask: arg_updateMask, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation); }); }); unittest.group( 'resource-ProjectsLocationsAgentsEnvironmentsExperimentsResource', () { unittest.test('method--create', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .experiments; var arg_request = buildGoogleCloudDialogflowCxV3Experiment(); var arg_parent = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Experiment.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Experiment( obj as api.GoogleCloudDialogflowCxV3Experiment); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Experiment()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.create(arg_request, arg_parent, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Experiment( response as api.GoogleCloudDialogflowCxV3Experiment); }); unittest.test('method--delete', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .experiments; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.delete(arg_name, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .experiments; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Experiment()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Experiment( response as api.GoogleCloudDialogflowCxV3Experiment); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .experiments; var arg_parent = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3ListExperimentsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListExperimentsResponse( response as api.GoogleCloudDialogflowCxV3ListExperimentsResponse); }); unittest.test('method--patch', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .experiments; var arg_request = buildGoogleCloudDialogflowCxV3Experiment(); var arg_name = 'foo'; var arg_updateMask = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Experiment.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Experiment( obj as api.GoogleCloudDialogflowCxV3Experiment); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["updateMask"]!.first, unittest.equals(arg_updateMask), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Experiment()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.patch(arg_request, arg_name, updateMask: arg_updateMask, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Experiment( response as api.GoogleCloudDialogflowCxV3Experiment); }); unittest.test('method--start', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .experiments; var arg_request = buildGoogleCloudDialogflowCxV3StartExperimentRequest(); var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3StartExperimentRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3StartExperimentRequest( obj as api.GoogleCloudDialogflowCxV3StartExperimentRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Experiment()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.start(arg_request, arg_name, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Experiment( response as api.GoogleCloudDialogflowCxV3Experiment); }); unittest.test('method--stop', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .experiments; var arg_request = buildGoogleCloudDialogflowCxV3StopExperimentRequest(); var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3StopExperimentRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3StopExperimentRequest( obj as api.GoogleCloudDialogflowCxV3StopExperimentRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Experiment()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.stop(arg_request, arg_name, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Experiment( response as api.GoogleCloudDialogflowCxV3Experiment); }); }); unittest.group('resource-ProjectsLocationsAgentsEnvironmentsSessionsResource', () { unittest.test('method--detectIntent', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .sessions; var arg_request = buildGoogleCloudDialogflowCxV3DetectIntentRequest(); var arg_session = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3DetectIntentRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3DetectIntentRequest( obj as api.GoogleCloudDialogflowCxV3DetectIntentRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3DetectIntentResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.detectIntent(arg_request, arg_session, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3DetectIntentResponse( response as api.GoogleCloudDialogflowCxV3DetectIntentResponse); }); unittest.test('method--fulfillIntent', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .sessions; var arg_request = buildGoogleCloudDialogflowCxV3FulfillIntentRequest(); var arg_session = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3FulfillIntentRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3FulfillIntentRequest( obj as api.GoogleCloudDialogflowCxV3FulfillIntentRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3FulfillIntentResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.fulfillIntent(arg_request, arg_session, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3FulfillIntentResponse( response as api.GoogleCloudDialogflowCxV3FulfillIntentResponse); }); unittest.test('method--matchIntent', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .sessions; var arg_request = buildGoogleCloudDialogflowCxV3MatchIntentRequest(); var arg_session = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3MatchIntentRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3MatchIntentRequest( obj as api.GoogleCloudDialogflowCxV3MatchIntentRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3MatchIntentResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.matchIntent(arg_request, arg_session, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3MatchIntentResponse( response as api.GoogleCloudDialogflowCxV3MatchIntentResponse); }); }); unittest.group( 'resource-ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesResource', () { unittest.test('method--create', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .sessions .entityTypes; var arg_request = buildGoogleCloudDialogflowCxV3SessionEntityType(); var arg_parent = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3SessionEntityType.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3SessionEntityType( obj as api.GoogleCloudDialogflowCxV3SessionEntityType); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3SessionEntityType()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.create(arg_request, arg_parent, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3SessionEntityType( response as api.GoogleCloudDialogflowCxV3SessionEntityType); }); unittest.test('method--delete', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .sessions .entityTypes; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.delete(arg_name, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .sessions .entityTypes; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3SessionEntityType()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3SessionEntityType( response as api.GoogleCloudDialogflowCxV3SessionEntityType); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .sessions .entityTypes; var arg_parent = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode( buildGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse(response as api.GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse); }); unittest.test('method--patch', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .environments .sessions .entityTypes; var arg_request = buildGoogleCloudDialogflowCxV3SessionEntityType(); var arg_name = 'foo'; var arg_updateMask = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3SessionEntityType.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3SessionEntityType( obj as api.GoogleCloudDialogflowCxV3SessionEntityType); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["updateMask"]!.first, unittest.equals(arg_updateMask), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3SessionEntityType()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.patch(arg_request, arg_name, updateMask: arg_updateMask, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3SessionEntityType( response as api.GoogleCloudDialogflowCxV3SessionEntityType); }); }); unittest.group('resource-ProjectsLocationsAgentsFlowsResource', () { unittest.test('method--create', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows; var arg_request = buildGoogleCloudDialogflowCxV3Flow(); var arg_parent = 'foo'; var arg_languageCode = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Flow.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Flow( obj as api.GoogleCloudDialogflowCxV3Flow); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Flow()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.create(arg_request, arg_parent, languageCode: arg_languageCode, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Flow( response as api.GoogleCloudDialogflowCxV3Flow); }); unittest.test('method--delete', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows; var arg_name = 'foo'; var arg_force = true; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["force"]!.first, unittest.equals("$arg_force"), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.delete(arg_name, force: arg_force, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows; var arg_name = 'foo'; var arg_languageCode = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Flow()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, languageCode: arg_languageCode, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Flow( response as api.GoogleCloudDialogflowCxV3Flow); }); unittest.test('method--getValidationResult', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows; var arg_name = 'foo'; var arg_languageCode = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3FlowValidationResult()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.getValidationResult(arg_name, languageCode: arg_languageCode, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3FlowValidationResult( response as api.GoogleCloudDialogflowCxV3FlowValidationResult); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows; var arg_parent = 'foo'; var arg_languageCode = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3ListFlowsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, languageCode: arg_languageCode, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListFlowsResponse( response as api.GoogleCloudDialogflowCxV3ListFlowsResponse); }); unittest.test('method--patch', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows; var arg_request = buildGoogleCloudDialogflowCxV3Flow(); var arg_name = 'foo'; var arg_languageCode = 'foo'; var arg_updateMask = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Flow.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Flow( obj as api.GoogleCloudDialogflowCxV3Flow); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["updateMask"]!.first, unittest.equals(arg_updateMask), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Flow()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.patch(arg_request, arg_name, languageCode: arg_languageCode, updateMask: arg_updateMask, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Flow( response as api.GoogleCloudDialogflowCxV3Flow); }); unittest.test('method--train', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows; var arg_request = buildGoogleCloudDialogflowCxV3TrainFlowRequest(); var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3TrainFlowRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TrainFlowRequest( obj as api.GoogleCloudDialogflowCxV3TrainFlowRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.train(arg_request, arg_name, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation); }); unittest.test('method--validate', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows; var arg_request = buildGoogleCloudDialogflowCxV3ValidateFlowRequest(); var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3ValidateFlowRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ValidateFlowRequest( obj as api.GoogleCloudDialogflowCxV3ValidateFlowRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3FlowValidationResult()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.validate(arg_request, arg_name, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3FlowValidationResult( response as api.GoogleCloudDialogflowCxV3FlowValidationResult); }); }); unittest.group('resource-ProjectsLocationsAgentsFlowsPagesResource', () { unittest.test('method--create', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows.pages; var arg_request = buildGoogleCloudDialogflowCxV3Page(); var arg_parent = 'foo'; var arg_languageCode = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Page.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Page( obj as api.GoogleCloudDialogflowCxV3Page); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Page()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.create(arg_request, arg_parent, languageCode: arg_languageCode, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Page( response as api.GoogleCloudDialogflowCxV3Page); }); unittest.test('method--delete', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows.pages; var arg_name = 'foo'; var arg_force = true; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["force"]!.first, unittest.equals("$arg_force"), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.delete(arg_name, force: arg_force, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows.pages; var arg_name = 'foo'; var arg_languageCode = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Page()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, languageCode: arg_languageCode, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Page( response as api.GoogleCloudDialogflowCxV3Page); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows.pages; var arg_parent = 'foo'; var arg_languageCode = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3ListPagesResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, languageCode: arg_languageCode, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListPagesResponse( response as api.GoogleCloudDialogflowCxV3ListPagesResponse); }); unittest.test('method--patch', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows.pages; var arg_request = buildGoogleCloudDialogflowCxV3Page(); var arg_name = 'foo'; var arg_languageCode = 'foo'; var arg_updateMask = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Page.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Page( obj as api.GoogleCloudDialogflowCxV3Page); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["updateMask"]!.first, unittest.equals(arg_updateMask), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Page()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.patch(arg_request, arg_name, languageCode: arg_languageCode, updateMask: arg_updateMask, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Page( response as api.GoogleCloudDialogflowCxV3Page); }); }); unittest.group( 'resource-ProjectsLocationsAgentsFlowsTransitionRouteGroupsResource', () { unittest.test('method--create', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .flows .transitionRouteGroups; var arg_request = buildGoogleCloudDialogflowCxV3TransitionRouteGroup(); var arg_parent = 'foo'; var arg_languageCode = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3TransitionRouteGroup.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TransitionRouteGroup( obj as api.GoogleCloudDialogflowCxV3TransitionRouteGroup); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3TransitionRouteGroup()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.create(arg_request, arg_parent, languageCode: arg_languageCode, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3TransitionRouteGroup( response as api.GoogleCloudDialogflowCxV3TransitionRouteGroup); }); unittest.test('method--delete', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .flows .transitionRouteGroups; var arg_name = 'foo'; var arg_force = true; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["force"]!.first, unittest.equals("$arg_force"), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.delete(arg_name, force: arg_force, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .flows .transitionRouteGroups; var arg_name = 'foo'; var arg_languageCode = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3TransitionRouteGroup()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, languageCode: arg_languageCode, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3TransitionRouteGroup( response as api.GoogleCloudDialogflowCxV3TransitionRouteGroup); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .flows .transitionRouteGroups; var arg_parent = 'foo'; var arg_languageCode = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode( buildGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, languageCode: arg_languageCode, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse(response as api.GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse); }); unittest.test('method--patch', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .flows .transitionRouteGroups; var arg_request = buildGoogleCloudDialogflowCxV3TransitionRouteGroup(); var arg_name = 'foo'; var arg_languageCode = 'foo'; var arg_updateMask = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3TransitionRouteGroup.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TransitionRouteGroup( obj as api.GoogleCloudDialogflowCxV3TransitionRouteGroup); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["updateMask"]!.first, unittest.equals(arg_updateMask), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3TransitionRouteGroup()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.patch(arg_request, arg_name, languageCode: arg_languageCode, updateMask: arg_updateMask, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3TransitionRouteGroup( response as api.GoogleCloudDialogflowCxV3TransitionRouteGroup); }); }); unittest.group('resource-ProjectsLocationsAgentsFlowsVersionsResource', () { unittest.test('method--create', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows.versions; var arg_request = buildGoogleCloudDialogflowCxV3Version(); var arg_parent = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Version.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Version( obj as api.GoogleCloudDialogflowCxV3Version); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.create(arg_request, arg_parent, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation); }); unittest.test('method--delete', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows.versions; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.delete(arg_name, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows.versions; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Version()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Version( response as api.GoogleCloudDialogflowCxV3Version); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows.versions; var arg_parent = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3ListVersionsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListVersionsResponse( response as api.GoogleCloudDialogflowCxV3ListVersionsResponse); }); unittest.test('method--load', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows.versions; var arg_request = buildGoogleCloudDialogflowCxV3LoadVersionRequest(); var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3LoadVersionRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3LoadVersionRequest( obj as api.GoogleCloudDialogflowCxV3LoadVersionRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.load(arg_request, arg_name, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation); }); unittest.test('method--patch', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.flows.versions; var arg_request = buildGoogleCloudDialogflowCxV3Version(); var arg_name = 'foo'; var arg_updateMask = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Version.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Version( obj as api.GoogleCloudDialogflowCxV3Version); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["updateMask"]!.first, unittest.equals(arg_updateMask), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Version()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.patch(arg_request, arg_name, updateMask: arg_updateMask, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Version( response as api.GoogleCloudDialogflowCxV3Version); }); }); unittest.group('resource-ProjectsLocationsAgentsIntentsResource', () { unittest.test('method--create', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.intents; var arg_request = buildGoogleCloudDialogflowCxV3Intent(); var arg_parent = 'foo'; var arg_languageCode = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Intent.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Intent( obj as api.GoogleCloudDialogflowCxV3Intent); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Intent()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.create(arg_request, arg_parent, languageCode: arg_languageCode, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Intent( response as api.GoogleCloudDialogflowCxV3Intent); }); unittest.test('method--delete', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.intents; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.delete(arg_name, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.intents; var arg_name = 'foo'; var arg_languageCode = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Intent()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, languageCode: arg_languageCode, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Intent( response as api.GoogleCloudDialogflowCxV3Intent); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.intents; var arg_parent = 'foo'; var arg_intentView = 'foo'; var arg_languageCode = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["intentView"]!.first, unittest.equals(arg_intentView), ); unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3ListIntentsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, intentView: arg_intentView, languageCode: arg_languageCode, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListIntentsResponse( response as api.GoogleCloudDialogflowCxV3ListIntentsResponse); }); unittest.test('method--patch', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.intents; var arg_request = buildGoogleCloudDialogflowCxV3Intent(); var arg_name = 'foo'; var arg_languageCode = 'foo'; var arg_updateMask = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Intent.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Intent( obj as api.GoogleCloudDialogflowCxV3Intent); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["languageCode"]!.first, unittest.equals(arg_languageCode), ); unittest.expect( queryMap["updateMask"]!.first, unittest.equals(arg_updateMask), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Intent()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.patch(arg_request, arg_name, languageCode: arg_languageCode, updateMask: arg_updateMask, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Intent( response as api.GoogleCloudDialogflowCxV3Intent); }); }); unittest.group('resource-ProjectsLocationsAgentsSessionsResource', () { unittest.test('method--detectIntent', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.sessions; var arg_request = buildGoogleCloudDialogflowCxV3DetectIntentRequest(); var arg_session = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3DetectIntentRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3DetectIntentRequest( obj as api.GoogleCloudDialogflowCxV3DetectIntentRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3DetectIntentResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.detectIntent(arg_request, arg_session, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3DetectIntentResponse( response as api.GoogleCloudDialogflowCxV3DetectIntentResponse); }); unittest.test('method--fulfillIntent', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.sessions; var arg_request = buildGoogleCloudDialogflowCxV3FulfillIntentRequest(); var arg_session = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3FulfillIntentRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3FulfillIntentRequest( obj as api.GoogleCloudDialogflowCxV3FulfillIntentRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3FulfillIntentResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.fulfillIntent(arg_request, arg_session, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3FulfillIntentResponse( response as api.GoogleCloudDialogflowCxV3FulfillIntentResponse); }); unittest.test('method--matchIntent', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.sessions; var arg_request = buildGoogleCloudDialogflowCxV3MatchIntentRequest(); var arg_session = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3MatchIntentRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3MatchIntentRequest( obj as api.GoogleCloudDialogflowCxV3MatchIntentRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3MatchIntentResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.matchIntent(arg_request, arg_session, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3MatchIntentResponse( response as api.GoogleCloudDialogflowCxV3MatchIntentResponse); }); }); unittest.group('resource-ProjectsLocationsAgentsSessionsEntityTypesResource', () { unittest.test('method--create', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .sessions .entityTypes; var arg_request = buildGoogleCloudDialogflowCxV3SessionEntityType(); var arg_parent = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3SessionEntityType.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3SessionEntityType( obj as api.GoogleCloudDialogflowCxV3SessionEntityType); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3SessionEntityType()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.create(arg_request, arg_parent, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3SessionEntityType( response as api.GoogleCloudDialogflowCxV3SessionEntityType); }); unittest.test('method--delete', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .sessions .entityTypes; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.delete(arg_name, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .sessions .entityTypes; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3SessionEntityType()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3SessionEntityType( response as api.GoogleCloudDialogflowCxV3SessionEntityType); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .sessions .entityTypes; var arg_parent = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode( buildGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListSessionEntityTypesResponse(response as api.GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse); }); unittest.test('method--patch', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock) .projects .locations .agents .sessions .entityTypes; var arg_request = buildGoogleCloudDialogflowCxV3SessionEntityType(); var arg_name = 'foo'; var arg_updateMask = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3SessionEntityType.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3SessionEntityType( obj as api.GoogleCloudDialogflowCxV3SessionEntityType); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["updateMask"]!.first, unittest.equals(arg_updateMask), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3SessionEntityType()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.patch(arg_request, arg_name, updateMask: arg_updateMask, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3SessionEntityType( response as api.GoogleCloudDialogflowCxV3SessionEntityType); }); }); unittest.group('resource-ProjectsLocationsAgentsTestCasesResource', () { unittest.test('method--batchDelete', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.testCases; var arg_request = buildGoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest(); var arg_parent = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest( obj as api.GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.batchDelete(arg_request, arg_parent, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--batchRun', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.testCases; var arg_request = buildGoogleCloudDialogflowCxV3BatchRunTestCasesRequest(); var arg_parent = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3BatchRunTestCasesRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3BatchRunTestCasesRequest( obj as api.GoogleCloudDialogflowCxV3BatchRunTestCasesRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.batchRun(arg_request, arg_parent, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation); }); unittest.test('method--calculateCoverage', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.testCases; var arg_agent = 'foo'; var arg_type = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["type"]!.first, unittest.equals(arg_type), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3CalculateCoverageResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.calculateCoverage(arg_agent, type: arg_type, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3CalculateCoverageResponse( response as api.GoogleCloudDialogflowCxV3CalculateCoverageResponse); }); unittest.test('method--create', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.testCases; var arg_request = buildGoogleCloudDialogflowCxV3TestCase(); var arg_parent = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3TestCase.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TestCase( obj as api.GoogleCloudDialogflowCxV3TestCase); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3TestCase()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.create(arg_request, arg_parent, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3TestCase( response as api.GoogleCloudDialogflowCxV3TestCase); }); unittest.test('method--export', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.testCases; var arg_request = buildGoogleCloudDialogflowCxV3ExportTestCasesRequest(); var arg_parent = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3ExportTestCasesRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ExportTestCasesRequest( obj as api.GoogleCloudDialogflowCxV3ExportTestCasesRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.export(arg_request, arg_parent, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.testCases; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3TestCase()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3TestCase( response as api.GoogleCloudDialogflowCxV3TestCase); }); unittest.test('method--import', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.testCases; var arg_request = buildGoogleCloudDialogflowCxV3ImportTestCasesRequest(); var arg_parent = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3ImportTestCasesRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3ImportTestCasesRequest( obj as api.GoogleCloudDialogflowCxV3ImportTestCasesRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.import(arg_request, arg_parent, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.testCases; var arg_parent = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_view = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["view"]!.first, unittest.equals(arg_view), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3ListTestCasesResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken, view: arg_view, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListTestCasesResponse( response as api.GoogleCloudDialogflowCxV3ListTestCasesResponse); }); unittest.test('method--patch', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.testCases; var arg_request = buildGoogleCloudDialogflowCxV3TestCase(); var arg_name = 'foo'; var arg_updateMask = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3TestCase.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3TestCase( obj as api.GoogleCloudDialogflowCxV3TestCase); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["updateMask"]!.first, unittest.equals(arg_updateMask), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3TestCase()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.patch(arg_request, arg_name, updateMask: arg_updateMask, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3TestCase( response as api.GoogleCloudDialogflowCxV3TestCase); }); unittest.test('method--run', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.testCases; var arg_request = buildGoogleCloudDialogflowCxV3RunTestCaseRequest(); var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3RunTestCaseRequest.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3RunTestCaseRequest( obj as api.GoogleCloudDialogflowCxV3RunTestCaseRequest); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.run(arg_request, arg_name, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation); }); }); unittest.group('resource-ProjectsLocationsAgentsTestCasesResultsResource', () { unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.testCases.results; var arg_parent = 'foo'; var arg_filter = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["filter"]!.first, unittest.equals(arg_filter), ); unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode( buildGoogleCloudDialogflowCxV3ListTestCaseResultsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListTestCaseResultsResponse( response as api.GoogleCloudDialogflowCxV3ListTestCaseResultsResponse); }); }); unittest.group('resource-ProjectsLocationsAgentsWebhooksResource', () { unittest.test('method--create', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.webhooks; var arg_request = buildGoogleCloudDialogflowCxV3Webhook(); var arg_parent = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Webhook.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Webhook( obj as api.GoogleCloudDialogflowCxV3Webhook); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Webhook()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.create(arg_request, arg_parent, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Webhook( response as api.GoogleCloudDialogflowCxV3Webhook); }); unittest.test('method--delete', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.webhooks; var arg_name = 'foo'; var arg_force = true; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["force"]!.first, unittest.equals("$arg_force"), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.delete(arg_name, force: arg_force, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.webhooks; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Webhook()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Webhook( response as api.GoogleCloudDialogflowCxV3Webhook); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.webhooks; var arg_parent = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3ListWebhooksResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListWebhooksResponse( response as api.GoogleCloudDialogflowCxV3ListWebhooksResponse); }); unittest.test('method--patch', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.agents.webhooks; var arg_request = buildGoogleCloudDialogflowCxV3Webhook(); var arg_name = 'foo'; var arg_updateMask = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3Webhook.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3Webhook( obj as api.GoogleCloudDialogflowCxV3Webhook); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["updateMask"]!.first, unittest.equals(arg_updateMask), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleCloudDialogflowCxV3Webhook()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.patch(arg_request, arg_name, updateMask: arg_updateMask, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3Webhook( response as api.GoogleCloudDialogflowCxV3Webhook); }); }); unittest.group('resource-ProjectsLocationsOperationsResource', () { unittest.test('method--cancel', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.operations; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.cancel(arg_name, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.operations; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.operations; var arg_name = 'foo'; var arg_filter = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["filter"]!.first, unittest.equals(arg_filter), ); unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningListOperationsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_name, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleLongrunningListOperationsResponse( response as api.GoogleLongrunningListOperationsResponse); }); }); unittest.group('resource-ProjectsLocationsSecuritySettingsResource', () { unittest.test('method--create', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.securitySettings; var arg_request = buildGoogleCloudDialogflowCxV3SecuritySettings(); var arg_parent = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3SecuritySettings.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3SecuritySettings( obj as api.GoogleCloudDialogflowCxV3SecuritySettings); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3SecuritySettings()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.create(arg_request, arg_parent, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3SecuritySettings( response as api.GoogleCloudDialogflowCxV3SecuritySettings); }); unittest.test('method--delete', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.securitySettings; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.delete(arg_name, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.securitySettings; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3SecuritySettings()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3SecuritySettings( response as api.GoogleCloudDialogflowCxV3SecuritySettings); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.securitySettings; var arg_parent = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode( buildGoogleCloudDialogflowCxV3ListSecuritySettingsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3ListSecuritySettingsResponse(response as api.GoogleCloudDialogflowCxV3ListSecuritySettingsResponse); }); unittest.test('method--patch', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.locations.securitySettings; var arg_request = buildGoogleCloudDialogflowCxV3SecuritySettings(); var arg_name = 'foo'; var arg_updateMask = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = api.GoogleCloudDialogflowCxV3SecuritySettings.fromJson( json as core.Map<core.String, core.dynamic>); checkGoogleCloudDialogflowCxV3SecuritySettings( obj as api.GoogleCloudDialogflowCxV3SecuritySettings); var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["updateMask"]!.first, unittest.equals(arg_updateMask), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json .encode(buildGoogleCloudDialogflowCxV3SecuritySettings()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.patch(arg_request, arg_name, updateMask: arg_updateMask, $fields: arg_$fields); checkGoogleCloudDialogflowCxV3SecuritySettings( response as api.GoogleCloudDialogflowCxV3SecuritySettings); }); }); unittest.group('resource-ProjectsOperationsResource', () { unittest.test('method--cancel', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.operations; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleProtobufEmpty()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.cancel(arg_name, $fields: arg_$fields); checkGoogleProtobufEmpty(response as api.GoogleProtobufEmpty); }); unittest.test('method--get', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.operations; var arg_name = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningOperation()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.get(arg_name, $fields: arg_$fields); checkGoogleLongrunningOperation( response as api.GoogleLongrunningOperation); }); unittest.test('method--list', () async { var mock = HttpServerMock(); var res = api.DialogflowApi(mock).projects.operations; var arg_name = 'foo'; var arg_filter = 'foo'; var arg_pageSize = 42; var arg_pageToken = 'foo'; var arg_$fields = 'foo'; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; core.int index; core.String subPart; unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/"), ); pathOffset += 1; unittest.expect( path.substring(pathOffset, pathOffset + 3), unittest.equals("v3/"), ); pathOffset += 3; // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; var queryMap = <core.String, core.List<core.String>>{}; void addQueryParam(core.String n, core.String v) => queryMap.putIfAbsent(n, () => []).add(v); if (query.isNotEmpty) { for (var part in query.split('&')) { var keyValue = part.split('='); addQueryParam( core.Uri.decodeQueryComponent(keyValue[0]), core.Uri.decodeQueryComponent(keyValue[1]), ); } } unittest.expect( queryMap["filter"]!.first, unittest.equals(arg_filter), ); unittest.expect( core.int.parse(queryMap["pageSize"]!.first), unittest.equals(arg_pageSize), ); unittest.expect( queryMap["pageToken"]!.first, unittest.equals(arg_pageToken), ); unittest.expect( queryMap["fields"]!.first, unittest.equals(arg_$fields), ); var h = { 'content-type': 'application/json; charset=utf-8', }; var resp = convert.json.encode(buildGoogleLongrunningListOperationsResponse()); return async.Future.value(stringResponse(200, h, resp)); }), true); final response = await res.list(arg_name, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields); checkGoogleLongrunningListOperationsResponse( response as api.GoogleLongrunningListOperationsResponse); }); }); }
36.978676
114
0.727097
05d3b53badcd2e81af63cdcc9647944675b2bdf0
1,377
html
HTML
layouts/partials/head.html
leuzera/now-ui-gohugo-theme
a8c02fe10d87355f2e7fcdce604e5599f44ac25b
[ "MIT" ]
null
null
null
layouts/partials/head.html
leuzera/now-ui-gohugo-theme
a8c02fe10d87355f2e7fcdce604e5599f44ac25b
[ "MIT" ]
null
null
null
layouts/partials/head.html
leuzera/now-ui-gohugo-theme
a8c02fe10d87355f2e7fcdce604e5599f44ac25b
[ "MIT" ]
null
null
null
<head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta name="viewport" content="width=device-width,minimum-scale=1"> <title>{{- .Site.Title -}}</title> <!-- Fonts and icons --> <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet" /> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdn.rawgit.com/jpswalsh/academicons/master/css/academicons.min.css"> <!-- CSS Files --> <link href="{{ "css/bootstrap.min.css" | relURL }}" rel="stylesheet" /> {{ $style := resources.Get "scss/now-ui-kit.scss" | toCSS | minify | fingerprint }} <link rel="stylesheet" href="{{ $style.Permalink }}"> <!-- Custom CSS Files --> {{ range .Site.Params.custom_css -}} <link rel="stylesheet" href="{{ . | absURL }}"> {{- end }} <!-- Canonical SEO --> <link rel="canonical" href="{{ .Permalink }}" /> {{- template "_internal/opengraph.html" . -}} {{- template "_internal/google_news.html" . -}} {{- template "_internal/schema.html" . -}} {{- template "_internal/twitter_cards.html" . -}} </head>
44.419355
198
0.633987
2a23430b207b95cb71432205d009aa9c8ec4e75c
13,541
java
Java
gradoop-flink/src/main/java/org/gradoop/flink/model/api/epgm/LogicalGraphOperators.java
lz56wobe/gradoop
e489782e59d7cac3c63d180ed1a19791175e9617
[ "Apache-2.0" ]
null
null
null
gradoop-flink/src/main/java/org/gradoop/flink/model/api/epgm/LogicalGraphOperators.java
lz56wobe/gradoop
e489782e59d7cac3c63d180ed1a19791175e9617
[ "Apache-2.0" ]
null
null
null
gradoop-flink/src/main/java/org/gradoop/flink/model/api/epgm/LogicalGraphOperators.java
lz56wobe/gradoop
e489782e59d7cac3c63d180ed1a19791175e9617
[ "Apache-2.0" ]
null
null
null
/* * Copyright © 2014 - 2019 Leipzig University (Database Research Group) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.gradoop.flink.model.api.epgm; import org.apache.flink.api.java.DataSet; import org.gradoop.common.model.impl.metadata.MetaData; import org.gradoop.flink.io.api.DataSink; import org.gradoop.flink.model.api.functions.AggregateFunction; import org.gradoop.flink.model.api.operators.GraphsToGraphOperator; import org.gradoop.flink.model.api.operators.UnaryBaseGraphToBaseGraphCollectionOperator; import org.gradoop.flink.model.impl.epgm.GraphCollection; import org.gradoop.flink.model.impl.epgm.LogicalGraph; import org.gradoop.flink.model.impl.operators.cypher.capf.result.CAPFQueryResult; import org.gradoop.flink.model.impl.operators.matching.common.MatchStrategy; import org.gradoop.flink.model.impl.operators.matching.common.statistics.GraphStatistics; import org.gradoop.flink.model.impl.operators.sampling.SamplingAlgorithm; import java.io.IOException; import java.util.List; /** * Defines the operators that are available on a {@link LogicalGraph}. */ public interface LogicalGraphOperators { //---------------------------------------------------------------------------- // Unary Operators //---------------------------------------------------------------------------- /** * Evaluates the given cypher query using CAPF (Cypher for Apache Flink). CAPF implements the * default cypher morphism strategies, which is vertex homomorphism and edge isomorphism. The * result is a CAPFQueryResult, containing a flink table that can be converted to a * GraphCollection, if it contains vertices or edges. * * @param query the query string * @param metaData metaData object * @return the result, containing a flink table and possibly a GraphCollection */ CAPFQueryResult cypher(String query, MetaData metaData) throws Exception; /** * Evaluates the given cypher query using CAPF (Cypher for Apache Flink). CAPF implements the * default cypher morphism strategies, which is vertex homomorphism and edge isomorphism. The * result is a CAPFQueryResult, containing a flink table that can be converted to a * GraphCollection, if it contains vertices or edges. * <p> * In this overloaded function, the property maps are constructed automatically. This is * a lot slower and actually requires the job to be split in two parts to collect the property * maps. * * @param query the query string * @return the result, containing a flink table and possibly a GraphCollection */ CAPFQueryResult cypher(String query) throws Exception; /** * Evaluates the given query using the Cypher query engine. The engine uses default morphism * strategies, which is vertex homomorphism and edge isomorphism. The vertex and edge data of * the data graph elements is attached to the resulting vertices. * <p> * Note, that this method used no statistics about the data graph which may result in bad * runtime performance. Use {@link LogicalGraphOperators#query(String, GraphStatistics)} to * provide statistics for the query planner. * * @param query Cypher query * @return graph collection containing matching subgraphs */ GraphCollection query(String query); /** * Evaluates the given query using the Cypher query engine. The engine uses default morphism * strategies, which is vertex homomorphism and edge isomorphism. The vertex and edge data of * the data graph elements is attached to the resulting vertices. * <p> * Note, that this method used no statistics about the data graph which may result in bad * runtime performance. Use {@link LogicalGraphOperators#query(String, GraphStatistics)} to * provide statistics for the query planner. * <p> * In addition, the operator can be supplied with a construction pattern allowing the creation * of new graph elements based on variable bindings of the match pattern. Consider the following * example: * * <pre> * <code>graph.query( * "MATCH (a:Author)-[:WROTE]->(:Paper)<-[:WROTE]-(b:Author) WHERE a <> b", * "(a)-[:CO_AUTHOR]->(b)") * </code> * </pre> * <p> * The query pattern is looking for pairs of authors that worked on the same paper. The * construction pattern defines a new edge of type CO_AUTHOR between the two entities. * * @param query Cypher query string * @param constructionPattern Construction pattern * @return graph collection containing the output of the construct pattern */ GraphCollection query(String query, String constructionPattern); /** * Evaluates the given query using the Cypher query engine. The engine uses default morphism * strategies, which is vertex homomorphism and edge isomorphism. The vertex and edge data of * the data graph elements is attached to the resulting vertices. * * @param query Cypher query * @param graphStatistics statistics about the data graph * @return graph collection containing matching subgraphs */ GraphCollection query(String query, GraphStatistics graphStatistics); /** * Evaluates the given query using the Cypher query engine. The engine uses default morphism * strategies, which is vertex homomorphism and edge isomorphism. The vertex and edge data of * the data graph elements is attached to the resulting vertices. * <p> * In addition, the operator can be supplied with a construction pattern allowing the creation * of new graph elements based on variable bindings of the match pattern. Consider the following * example: * * <pre> * <code>graph.query( * "MATCH (a:Author)-[:WROTE]->(:Paper)<-[:WROTE]-(b:Author) WHERE a <> b", * "(a)-[:CO_AUTHOR]->(b)") * </code> * </pre> * <p> * The query pattern is looking for pairs of authors that worked on the same paper. The * construction pattern defines a new edge of type CO_AUTHOR between the two entities. * * @param query Cypher query * @param constructionPattern Construction pattern * @param graphStatistics statistics about the data graph * @return graph collection containing the output of the construct pattern */ GraphCollection query(String query, String constructionPattern, GraphStatistics graphStatistics); /** * Evaluates the given query using the Cypher query engine. * * @param query Cypher query * @param attachData attach original vertex and edge data to the result * @param vertexStrategy morphism setting for vertex mapping * @param edgeStrategy morphism setting for edge mapping * @param graphStatistics statistics about the data graph * @return graph collection containing matching subgraphs */ GraphCollection query(String query, boolean attachData, MatchStrategy vertexStrategy, MatchStrategy edgeStrategy, GraphStatistics graphStatistics); /** * Evaluates the given query using the Cypher query engine. * * @param query Cypher query * @param constructionPattern Construction pattern * @param attachData attach original vertex and edge data to the result * @param vertexStrategy morphism setting for vertex mapping * @param edgeStrategy morphism setting for edge mapping * @param graphStatistics statistics about the data graph * @return graph collection containing matching subgraphs */ GraphCollection query(String query, String constructionPattern, boolean attachData, MatchStrategy vertexStrategy, MatchStrategy edgeStrategy, GraphStatistics graphStatistics); /** * Creates a new graph from a randomly chosen subset of nodes and their * associated edges. * * @param algorithm used sampling algorithm * @return logical graph with random nodes and their associated edges */ LogicalGraph sample(SamplingAlgorithm algorithm); /** * Checks, if another logical graph contains exactly the same vertices and * edges (by id) as this graph. * * @param other other graph * @return 1-element dataset containing true, if equal by element ids */ DataSet<Boolean> equalsByElementIds(LogicalGraph other); /** * Checks, if another logical graph contains vertices and edges with the same * attached data (i.e. label and properties) as this graph. * * @param other other graph * @return 1-element dataset containing true, iff equal by element data */ DataSet<Boolean> equalsByElementData(LogicalGraph other); /** * Checks, if another logical graph has the same attached data and contains * vertices and edges with the same attached data as this graph. * * @param other other graph * @return 1-element dataset containing true, iff equal by element data */ DataSet<Boolean> equalsByData(LogicalGraph other); /** * Generates all combinations of the supplied vertex grouping keys according to the definition of * the rollUp operation in SQL and uses them together with all edge grouping keys for separate * grouping operations. For example, specifying the vertex grouping keys A, B and C leads to * three differently grouped graphs {A,B,C},{A,B},{A} within the resulting graph collection. * * @param vertexGroupingKeys grouping keys to group vertices * @param vertexAggregateFunctions aggregate functions to apply on super vertices * @param edgeGroupingKeys grouping keys to group edges * @param edgeAggregateFunctions aggregate functions to apply on super edges * @return graph collection containing all resulting graphs */ GraphCollection groupVerticesByRollUp( List<String> vertexGroupingKeys, List<AggregateFunction> vertexAggregateFunctions, List<String> edgeGroupingKeys, List<AggregateFunction> edgeAggregateFunctions); /** * Generates all combinations of the supplied edge grouping keys according to the definition of * the rollUp operation in SQL and uses them together with all vertex grouping keys for separate * grouping operations. For example, specifying the edge grouping keys A, B and C leads to * three differently grouped graphs {A,B,C},{A,B},{A} within the resulting graph collection. * * @param vertexGroupingKeys grouping keys to group vertices * @param vertexAggregateFunctions aggregate functions to apply on super vertices * @param edgeGroupingKeys grouping keys to group edges * @param edgeAggregateFunctions aggregate functions to apply on super edges * @return graph collection containing all resulting graphs */ GraphCollection groupEdgesByRollUp( List<String> vertexGroupingKeys, List<AggregateFunction> vertexAggregateFunctions, List<String> edgeGroupingKeys, List<AggregateFunction> edgeAggregateFunctions); //---------------------------------------------------------------------------- // Auxiliary Operators //---------------------------------------------------------------------------- /** * Splits the graph into multiple logical graphs using the property value * which is assigned to the given property key. Vertices and edges that do * not have this property will be removed from the resulting collection. * * @param propertyKey split property key * @return graph collection */ GraphCollection splitBy(String propertyKey); /** * Creates a logical graph from that graph and other graphs using the given operator. * * @param operator multi graph to graph operator * @param otherGraphs other graphs * @return result of given operator */ LogicalGraph callForGraph(GraphsToGraphOperator operator, LogicalGraph... otherGraphs); /** * Creates a graph collection from that graph using the given unary graph operator. * * @param operator unary graph to collection operator * @return result of given operator */ GraphCollection callForCollection( UnaryBaseGraphToBaseGraphCollectionOperator<LogicalGraph, GraphCollection> operator); /** * Returns a 1-element dataset containing a {@code boolean} value which indicates if the graph is empty. * * A graph is considered empty, if it contains no vertices. * * @return 1-element dataset containing {@code true}, if the collection is * empty or {@code false} if not */ DataSet<Boolean> isEmpty(); /** * Writes the graph to given data sink. * * @param dataSink The data sink to which the graph should be written. * @throws IOException if the graph can't be written to the sink */ void writeTo(DataSink dataSink) throws IOException; /** * Writes the graph to given data sink with an optional overwrite option. * * @param dataSink The data sink to which the graph should be written. * @param overWrite determines whether existing files are overwritten * @throws IOException if the graph can't be written to the sink */ void writeTo(DataSink dataSink, boolean overWrite) throws IOException; }
44.396721
106
0.718928
ffe8272be1b4733c12c781faeb41d2a60dbd85e3
350
html
HTML
application/view/view/index/test.html
shikong-sk/ThinkPHP_Study
d6fcb59d27f59b3ff07fe9d3e1963394276f43ee
[ "Apache-2.0" ]
1
2020-05-05T11:03:56.000Z
2020-05-05T11:03:56.000Z
application/view/view/index/test.html
shikong-sk/ThinkPHP_Study
d6fcb59d27f59b3ff07fe9d3e1963394276f43ee
[ "Apache-2.0" ]
null
null
null
application/view/view/index/test.html
shikong-sk/ThinkPHP_Study
d6fcb59d27f59b3ff07fe9d3e1963394276f43ee
[ "Apache-2.0" ]
null
null
null
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> Test.html {$name} <br> {literal} 模板原样输出 {$name} <br> 模板注释方法 {// $name} {/*$name*/} {/literal} <br> <!--加载外置解析库--> {taglib name="app\taglib\Html"} {html:font color="red" size="15"} 外置解析库 - 测试 {/html:font} </body> </html>
11.290323
33
0.554286
2f778c3e5116392d92170abbccc8830c23dc8f2d
4,279
php
PHP
module/Core/src/Core/Model/Model.php
romut/ledger
7d5734a3a07c4791e8b7c27fb186f73e815d6718
[ "BSD-3-Clause" ]
null
null
null
module/Core/src/Core/Model/Model.php
romut/ledger
7d5734a3a07c4791e8b7c27fb186f73e815d6718
[ "BSD-3-Clause" ]
null
null
null
module/Core/src/Core/Model/Model.php
romut/ledger
7d5734a3a07c4791e8b7c27fb186f73e815d6718
[ "BSD-3-Clause" ]
null
null
null
<?php /** * Created by PhpStorm. * User: rom * Date: 30.01.2017 * Time: 10:27 */ namespace Core\Model; use Core\Data\DataInterface; use Core\Exception\DataArrayNotDefinedException; use Core\Exception\StorageIsNullException; use Core\Storage\ModelStorageInterface; abstract class Model implements ModelInterface { static public function getClassFullName() { return __NAMESPACE__ . '\\' . __CLASS__; } const DATE_FORMAT = 'd.m.Y', TIME_FORMAT = 'H:i:s', DATETIME_FORMAT = 'd-m-Y H:i:s'; const DB_DATE_FORMAT = 'Y-m-d', DB_TIME_FORMAT = 'H:i:s', DB_DATETIME_FORMAT = 'Y-m-d H:i:s'; const DEFAULT_ENCODING = 'UTF-8', OS_ENCODING = 'CP1251', CONSOLE_ENCODING = 'CP866'; /** * @var ModelStorageInterface $storage */ private $storage; private $index; /** * @return ModelStorageInterface */ public function getStorage() { return $this->storage; } protected function isDataNotDefined($part = 0) { return is_null($this->getStorage()) || is_null($this->storage->getModelData($this, $part)); } /** * @param int $part * @throws DataArrayNotDefinedException * @throws StorageIsNullException * @return DataInterface */ protected function getData($part = 0) { if (is_null($this->getStorage())) throw new StorageIsNullException(); $data = $this->getStorage()->getModelData($this, $part); if (is_null($data)) throw new DataArrayNotDefinedException(); return $data; } protected function beforeSave() {} protected function afterSave() {} /** * @param $string * @return string */ static public function toOS($string) { return mb_convert_encoding($string, self::OS_ENCODING); } /** * @param $string * @return string */ static public function fromOS($string) { return mb_convert_encoding($string, self::DEFAULT_ENCODING, self::OS_ENCODING); } /** * @param $string * @return string */ static public function toConsole($string) { return mb_convert_encoding($string, self::CONSOLE_ENCODING); } /** * @param $string * @return string */ static public function fromConsole($string) { return mb_convert_encoding($string, self::DEFAULT_ENCODING, self::CONSOLE_ENCODING); } static public function toDBDate($date) { return date_create($date)->format(self::DB_DATE_FORMAT); } static public function toDBTime($date) { return date_create($date)->format(self::DB_TIME_FORMAT); } static public function toDBDateTime($date) { return date_create($date)->format(self::DB_DATETIME_FORMAT); } static public function fromDBDate($date) { return date_create($date)->format(self::DATE_FORMAT); } static public function fromDBTime($date) { return date_create($date)->format(self::TIME_FORMAT); } static public function fromDBDateTime($date) { return date_create($date)->format(self::DATETIME_FORMAT); } /** * @param ModelStorageInterface $storage * @param int $index */ public function __construct(ModelStorageInterface $storage, $index) { $this->storage = $storage; $this->index = $index; } public function __clone() { $this->index = $this->storage->createModelCopy($this); } public function __destruct() { $this->storage->removeModel($this); } /** * @return int */ public function getIndex() { return $this->index; } /** * @return int|null */ public function getModelId() { return null; } public function setModelId($modelId) { return $this; } /** * @return bool */ public function isModified() { return !is_null($this->storage) && $this->storage->isModified($this); } /** * @return ModelInterface */ public function save() { if (is_null($this->storage)) return $this; $this->beforeSave(); $this->getStorage()->save($this); $this->afterSave(); return $this; } }
22.170984
99
0.600608
3bdc2bf41f3cdb3d2d32209ccd64bf77447e3bf0
383
h
C
Twitter-Dumped/7.51.5/t1/TFNDirectMessageTombstonedCardAttachment.h
ichitaso/TwitterListEnabler
d4d9ba973e59ff7f0d97ae74fc473bdd0aea54df
[ "MIT" ]
1
2019-10-15T09:26:49.000Z
2019-10-15T09:26:49.000Z
Twitter-Dumped/7.52/TFNDirectMessageTombstonedCardAttachment.h
ichitaso/TwitterListEnabler
d4d9ba973e59ff7f0d97ae74fc473bdd0aea54df
[ "MIT" ]
null
null
null
Twitter-Dumped/7.52/TFNDirectMessageTombstonedCardAttachment.h
ichitaso/TwitterListEnabler
d4d9ba973e59ff7f0d97ae74fc473bdd0aea54df
[ "MIT" ]
1
2019-11-17T06:06:49.000Z
2019-11-17T06:06:49.000Z
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <T1Twitter/TFNDirectMessageAttachment.h> @interface TFNDirectMessageTombstonedCardAttachment : TFNDirectMessageAttachment { } - (void)setParameterDataForRequestDictionary:(id)arg1; @end
22.529412
90
0.746736
45ee170103a2d83863cf807c6ce2f28cdb0e361b
13,554
rs
Rust
src/lib.rs
paladinsoftware/rust-raytracing
e5731baebc944f1188cd3707a539bde2a0a20f3c
[ "Apache-2.0", "MIT" ]
null
null
null
src/lib.rs
paladinsoftware/rust-raytracing
e5731baebc944f1188cd3707a539bde2a0a20f3c
[ "Apache-2.0", "MIT" ]
null
null
null
src/lib.rs
paladinsoftware/rust-raytracing
e5731baebc944f1188cd3707a539bde2a0a20f3c
[ "Apache-2.0", "MIT" ]
null
null
null
mod utils; use wasm_bindgen::prelude::*; use std::fmt; use web_sys::console; // When the `wee_alloc` feature is enabled, use `wee_alloc` as the global // allocator. #[cfg(feature = "wee_alloc")] #[global_allocator] static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; #[wasm_bindgen] pub fn init_panic_hook() { console_error_panic_hook::set_once(); } #[wasm_bindgen] #[derive(Clone, Copy)] pub struct Vector { x: f32, y: f32, z: f32, } #[wasm_bindgen] impl Vector { pub fn up() -> Vector { Vector { x: 0.0, y: 1.0, z: 0.0 } } pub fn white() -> Vector { Vector { x: 255.0, y: 255.0, z: 255.0 } } pub fn zero() -> Vector { Vector { x: 0.0, y: 0.0, z: 0.0 } } pub fn subtract(&self, v: &Vector) -> Vector { Vector { x: self.x - v.x, y: self.y - v.y, z: self.z - v.z, } } pub fn scale(&self, t: f32) -> Vector { Vector { x: self.x * t, y: self.y * t, z: self.z * t, } } pub fn unit_vector(&self) -> Vector { self.scale(1.0 / self.length()) } pub fn dot_product(&self, a: &Vector) -> f32 { (self.x * a.x) + (self.y * a.y) + (self.z * a.z) } pub fn length(&self) -> f32 { self.dot_product(&self).sqrt() } pub fn add(&self, a: &Vector) -> Vector { Vector { x: self.x + a.x, y: self.y + a.y, z: self.z + a.z } } pub fn add3(&self, a: &Vector, b: &Vector) -> Vector { Vector { x: self.x + a.x + b.x, y: self.y + a.y + b.y, z: self.z + a.z + b.z } } pub fn cross_product(&self, a: &Vector) -> Vector { Vector { x: (self.y * a.z) - (self.z * a.y), y: (self.z * a.x) - (self.x * a.z), z: (self.x * a.y) - (self.y * a.x) } } pub fn reflect_through(&self, normal: &Vector) -> Vector { let d = normal.scale(self.dot_product(normal)); d.scale(2.0).subtract(&self) } } #[wasm_bindgen] pub struct Camera { point: Vector, field_of_view: f32, vector: Vector, } #[wasm_bindgen] #[derive(Clone, Debug)] pub struct Color { x: u8, y: u8, z: u8, checkered: bool, transparent: bool, } #[wasm_bindgen] pub enum ObjectType { Plane, Sphere, } #[wasm_bindgen] pub struct SceneObject { object_type: ObjectType, point: Vector, normal: Vector, color: Color, radius: f32, specular: f32, lambert: f32, ambient: f32 } #[wasm_bindgen] pub struct Scene { camera: Camera, lights: Vec<Vector>, objects: Vec<SceneObject>, width: f32, height: f32, pixels: Vec<u8>, planet1: f32, planet2: f32, } #[wasm_bindgen] pub struct Ray { point: Vector, vector: Vector, } #[wasm_bindgen] impl Scene { #[wasm_bindgen(constructor)] pub fn new() -> Scene { Scene { camera: Camera { point: Vector { x: 0.0, y: -3.0, z: 17.0 }, field_of_view: 45.0, vector: Vector { x: 0.0, y: 1.3, z: 1.0 } }, lights: vec![ Vector { x: -20.0, y: -15.0, z: 30.0 }, ], objects: vec![ SceneObject { object_type: ObjectType::Sphere, point: Vector { x: 0.0, y: 1.0, z: 0.0 }, normal: (Vector { x: 0.0, y: 1.0, z: 0.0 }).unit_vector(), color: Color { x: 53, y: 237, z: 180, checkered: false, transparent: false }, specular: 0.5, lambert: 0.2, ambient: 0.0, radius: 3.0, }, SceneObject { object_type: ObjectType::Sphere, point: Vector { x: 4.0, y: 0.0, z: 0.0 }, normal: (Vector { x: 0.0, y: 1.0, z: 0.0 }).unit_vector(), color: Color { x: 255, y: 0, z: 0, checkered: false, transparent: false }, specular: 0.0, lambert: 0.9, ambient: 0.0, radius: 0.75, }, SceneObject { object_type: ObjectType::Sphere, point: Vector { x: -2.5, y: -1.5, z: 1.0 }, normal: (Vector { x: 0.0, y: 1.0, z: 0.0 }).unit_vector(), color: Color { x: 0, y: 0, z: 255, checkered: false, transparent: false }, specular: 0.0, lambert: 0.7, ambient: 0.2, radius: 0.5, }, SceneObject { object_type: ObjectType::Sphere, point: Vector { x: -1.5, y: 1.0, z: 4.5 }, normal: (Vector { x: 0.0, y: 1.0, z: 0.0 }).unit_vector(), color: Color { x: 255, y: 0, z: 255, checkered: false, transparent: false }, specular: 0.0, lambert: 0.7, ambient: 0.1, radius: 0.5, }, SceneObject { object_type: ObjectType::Plane, point: Vector { x: 0.0, y: 4.0, z: 0.0 }, normal: (Vector { x: 0.0, y: 1.0, z: 0.0 }).unit_vector(), color: Color { x: 255, y: 0, z: 255, checkered: true, transparent: false }, specular: 0.0, lambert: 0.5, ambient: 0.2, radius: 0.0 }, SceneObject { object_type: ObjectType::Sphere, point: Vector { x: 6.0, y: 1.0, z: 2.0 }, normal: (Vector { x: 0.0, y: 1.0, z: 0.0 }).unit_vector(), color: Color { x: 53, y: 237, z: 180, checkered: false, transparent: false }, specular: 0.5, lambert: 0.2, ambient: 0.0, radius: 3.0, }, ], width: 640.0, height: 480.0, pixels: vec![], planet1: 0.0, planet2: 0.0, } } pub fn pixels(&self) -> *const u8 { self.pixels.as_ptr() } pub fn tick(&mut self) { self.planet1 += 0.15 * 2.0; self.planet2 += 0.075 * 2.0; self.objects[1].point.x = self.planet1.sin() * 4.5; self.objects[1].point.z = self.planet1.cos() * 4.5; self.objects[2].point.x = self.planet2.sin() * 3.5; self.objects[2].point.z = self.planet2.cos() * 3.5; } pub fn render(&mut self) { self.tick(); let camera = &self.camera; let objects = &self.objects; let lights = &self.lights; let mut next = Vec::with_capacity(640 * 480 * 3); let eye_vector = camera.vector.subtract(&camera.point).unit_vector(); let vp_right = eye_vector.cross_product(&Vector::up()).unit_vector(); let vp_up = vp_right.cross_product(&eye_vector).unit_vector(); let fov_radians = std::f32::consts::PI * (camera.field_of_view / 2.0) / 180.0; let height_width_radio = self.height / self.width; let half_width = fov_radians.tan(); let half_height = height_width_radio * half_width; let camera_width = half_width * 2.0; let camera_height = half_height * 2.0; let pixel_width = camera_width / (self.width - 1.0); let pixel_height = camera_width / (self.width - 1.0); let mut ray; for y in 0..(self.height as i32) { for x in 0..(self.width as i32) { let xcomp = vp_right.scale(((x as f32) * pixel_width) - half_width); let ycomp = vp_up.scale(((y as f32) * pixel_height) - half_height); ray = Ray { point: camera.point, vector: eye_vector.add3(&xcomp, &ycomp).unit_vector(), }; let color = trace(&ray, &self, 0); next.push(color.x); next.push(color.y); next.push(color.z); } } self.pixels = next; } } fn plane_intersect(plane: &SceneObject, ray: &Ray) -> Option<f32> { let d_dor_n = ray.vector.dot_product(&plane.normal); if (d_dor_n.abs() <= 0.15) { return None; } let dist = plane.point.dot_product(&plane.normal) - ray.point.dot_product(&plane.normal); let dist = plane.point.subtract(&ray.point).dot_product(&plane.normal); if (dist > 0.001) { return Some(dist / d_dor_n); } else { return None; } } fn sphere_intersect(sphere: &SceneObject, ray: &Ray) -> Option<f32> { let eye_to_center = sphere.point.subtract(&ray.point); let v = eye_to_center.dot_product(&ray.vector); let eo_dot = eye_to_center.dot_product(&eye_to_center); let discriminant = (sphere.radius * sphere.radius) - eo_dot + (v * v); if discriminant < 0.0 { return None; } else { return Some(v - discriminant.sqrt()); } } fn intersect_scene<'a>(ray: &Ray, scene: &'a Scene) -> (f32, Option<&'a SceneObject>) { let mut closestDistance = std::f32::INFINITY; let mut closestObject = None; for object in &scene.objects { match object.object_type { ObjectType::Sphere => { let dist = sphere_intersect(&object, &ray); match dist { Some(dist) if dist < closestDistance => { closestDistance = dist; closestObject = Some(object); }, _ => {} } }, ObjectType::Plane => { let dist = plane_intersect(&object, &ray); match dist { Some(dist) if dist < closestDistance => { closestDistance = dist; closestObject = Some(object); }, _ => {} } }, } } (closestDistance, closestObject) } fn trace(ray: &Ray, scene: &Scene, depth: u8) -> Color { if (depth > 2 ) { return Color { x: 0, y: 0, z: 0, checkered: false, transparent: true } } let (dist, object) = intersect_scene(&ray, &scene); if dist == std::f32::INFINITY { return Color { x: 200, y: 200, z: 200, checkered: false, transparent: false } } let point_at_time = ray.point.add(&ray.vector.scale(dist)); let normal = match object.unwrap().object_type { ObjectType::Sphere => sphere_normal(object.unwrap(), &point_at_time), ObjectType::Plane => plane_normal(object.unwrap(), &point_at_time), }; surface(&ray, &scene, &object.unwrap(), &point_at_time, &normal, depth) } fn sphere_normal(sphere: &SceneObject, pos: &Vector) -> Vector { pos.subtract(&sphere.point).unit_vector() } fn plane_normal(plane: &SceneObject, pos: &Vector) -> Vector { let v = Vector { x: 0.0, y: 0.0, z: 0.0 }; v.subtract(&pos.reflect_through(&plane.normal)).unit_vector() } fn surface(ray: &Ray, scene: &Scene, object: &SceneObject, point_at_time: &Vector, normal: &Vector, depth: u8) -> Color { let mut b = object.color.clone(); let mut lambert_amount = 0.0; let mut c = Vector { x: 0.0, y: 0.0, z: 0.0 }; if (b.checkered) { let square = (point_at_time.x.floor() + point_at_time.z.floor()) as i32; if square % 2 == 0 { b.x = 0; b.y = 0; b.z = 0; } else { b.x = 255; b.y = 255; b.z = 255; } } if (object.lambert > 0.0) { for light in &scene.lights { if (light_visible(&point_at_time, &scene, &light)) { let contribution = light .subtract(&point_at_time) .unit_vector() .dot_product(&normal); if contribution > 0.0 { lambert_amount += contribution; } } } } if (object.specular > 0.0) { let reflected_ray = Ray { point: *point_at_time, vector: ray.vector.reflect_through(&normal) }; let depth = depth + 1; let reflected_color = trace(&reflected_ray, &scene, depth); if (!reflected_color.transparent) { c = c.add(&color_to_vector(&reflected_color).scale(object.specular)); } } if (lambert_amount > 1.0) { lambert_amount = 1.0 } let amb = &object.ambient; let base_color = color_to_vector(&b); vector_to_color( &c.add3( &base_color.scale(lambert_amount * object.lambert), &base_color.scale(object.ambient), ) ) } fn color_to_vector(color: &Color) -> Vector { Vector { x: color.x as f32, y: color.y as f32, z: color.z as f32 } } fn vector_to_color(vector: &Vector) -> Color { Color { x: vector.x as u8, y: vector.y as u8, z: vector.z as u8, checkered: false, transparent: false } } fn light_visible(point_at_time: &Vector, scene: &Scene, light: &Vector) -> bool { let ray = Ray { point: *point_at_time, vector: point_at_time.subtract(&light).unit_vector() }; let (distance, _) = intersect_scene(&ray, &scene); distance > -0.005 }
28.899787
121
0.491515
19f04e13422338ad674d33db118068ae39844781
168
go
Go
server/api/benchmark/bench_test.go
alex730468/prox1_client_assembly
1d2b78a8b62ff8c264e370d6527f69ebf185d28c
[ "MIT" ]
null
null
null
server/api/benchmark/bench_test.go
alex730468/prox1_client_assembly
1d2b78a8b62ff8c264e370d6527f69ebf185d28c
[ "MIT" ]
null
null
null
server/api/benchmark/bench_test.go
alex730468/prox1_client_assembly
1d2b78a8b62ff8c264e370d6527f69ebf185d28c
[ "MIT" ]
null
null
null
package benchmark1 import ( "fmt" "testing" ) func BenchmarkSample(b *testing.B) { for i := 0; i < 10; i++ { test := make([]*string, 500) fmt.Print(test) } }
12
36
0.589286
b90e41674f3eaca4b28a821b94a8255fbab22d88
214
go
Go
owasp-top10-2016-mobile/m4/note-box/server/app/routes/healthcheck.go
secampos/secDevLabs
195234205b977cb03d94b75aa61919ea66fb1d5a
[ "BSD-3-Clause" ]
684
2018-12-21T20:08:24.000Z
2022-03-28T17:39:55.000Z
owasp-top10-2016-mobile/m4/note-box/server/app/routes/healthcheck.go
secampos/secDevLabs
195234205b977cb03d94b75aa61919ea66fb1d5a
[ "BSD-3-Clause" ]
306
2018-12-18T15:03:54.000Z
2022-03-31T14:26:52.000Z
owasp-top10-2016-mobile/m4/note-box/server/app/routes/healthcheck.go
secampos/secDevLabs
195234205b977cb03d94b75aa61919ea66fb1d5a
[ "BSD-3-Clause" ]
305
2018-12-27T18:36:52.000Z
2022-03-27T22:15:40.000Z
package routes import ( "net/http" "github.com/labstack/echo" ) // Healthcheck returns WORKING! if the API is up and running func Healthcheck(c echo.Context) error { return c.JSON(http.StatusOK, "WORKING") }
16.461538
60
0.728972
40a38f818645b5a8277fe2eff740e4fe684eff9e
456
py
Python
to_be_a_musician/musician/urls.py
romulojales/to-be-musician
6654051d275ee53cecc53f34874d959e5e6e4728
[ "Apache-2.0" ]
1
2020-05-26T23:15:51.000Z
2020-05-26T23:15:51.000Z
to_be_a_musician/musician/urls.py
romulojales/to-be-musician
6654051d275ee53cecc53f34874d959e5e6e4728
[ "Apache-2.0" ]
null
null
null
to_be_a_musician/musician/urls.py
romulojales/to-be-musician
6654051d275ee53cecc53f34874d959e5e6e4728
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import patterns, url from django.contrib.auth.decorators import login_required from musician.views import SongStateView, MusicianView song_state_view = login_required(SongStateView.as_view()) urlpatterns = patterns('', url(r'(?P<state>(learn|learning|learned))/(?P<id>\d+)/$', song_state_view, name='musician_song_state'), url(r'user/(?P<user_name>(.*))/$', MusicianView.as_view(), name='musician_page'), )
32.571429
62
0.719298
e966c5f5883c6e66ef08329425033cf46d0a46fd
1,791
ps1
PowerShell
Set-RegistryPermissions.ps1
Skatterbrainz/Utilities
fa2b036f098d366eb47bce8409c4ad236c071fa7
[ "MIT" ]
1
2018-11-13T18:37:20.000Z
2018-11-13T18:37:20.000Z
Set-RegistryPermissions.ps1
Skatterbrainz/Utilities
fa2b036f098d366eb47bce8409c4ad236c071fa7
[ "MIT" ]
null
null
null
Set-RegistryPermissions.ps1
Skatterbrainz/Utilities
fa2b036f098d366eb47bce8409c4ad236c071fa7
[ "MIT" ]
null
null
null
<# refer to: https://msdn.microsoft.com/en-us/library/cs50ebzk(v=vs.110).aspx #> function Set-RegistryPermissions { param ( [parameter(Mandatory=$True)] [string] $KeyPath, [parameter(Mandatory=$True)] [string] $AccountName, [parameter(Mandatory=$False)] [string] $OwnerName = "Administrators", [parameter(Mandatory=$True)] [ValidateSet("FullControl","Read","Write","Delete")] [string] $Permissions, [parameter(Mandatory=$True)] [ValidateSet("Allow","Deny")] [string] $Grant ) $AddACL = New-Object System.Security.AccessControl.RegistryAccessRule ("$AccountName","$Permissions","ObjectInherit,ContainerInherit","None","$Grant") $owner = [System.Security.Principal.NTAccount]$OwnerName $keyCR = [Microsoft.Win32.Registry]::ClassesRoot.OpenSubKey($KeyPath,[Microsoft.Win32.RegistryKeyPermissionCheck]::ReadWriteSubTree,[System.Security.AccessControl.RegistryRights]::takeownership) # Get a blank ACL since you don't have access and need ownership $aclCR = $keyCR.GetAccessControl([System.Security.AccessControl.AccessControlSections]::None) $aclCR.SetOwner($owner) $keyCR.SetAccessControl($aclCR) # Get the acl and modify it $aclCR = $keyCR.GetAccessControl() $aclCR.SetAccessRule($AddACL) $keyCR.SetAccessControl($aclCR) $keyCR.Close() } $testkey = "HKLM:SOFTWARE\Contoso" $testval = "fubar" if (!(Test-Path $testkey)) { Write-Host "registry key not found, creating it now..." New-Item -Path $testkey New-ItemProperty -Path $testkey -Name $testval -Value "Test 1" -PropertyType string } else { Write-Host "registry key verified" } Set-RegistryPermissions -KeyPath $testkey -AccountName "Users" -Permissions FullControl -Grant Allow
41.651163
199
0.698492
d961a8fa4133ccf331595e4ce769d8622be68b10
16
lua
Lua
nvim/init.lua
pmaresca/.dotfiles
006d4a06a3dd5186713420dd229d9f0070307a56
[ "MIT" ]
null
null
null
nvim/init.lua
pmaresca/.dotfiles
006d4a06a3dd5186713420dd229d9f0070307a56
[ "MIT" ]
null
null
null
nvim/init.lua
pmaresca/.dotfiles
006d4a06a3dd5186713420dd229d9f0070307a56
[ "MIT" ]
null
null
null
require("pman")
8
15
0.6875
05d71d760ee55ecbd71093d5d438b4e7c34712c1
3,054
html
HTML
demo.html
kluizeberg/Leaflet.Proj4js
edb3d437d7b80d3d3f7430410ad8e5869799ad1d
[ "MIT" ]
null
null
null
demo.html
kluizeberg/Leaflet.Proj4js
edb3d437d7b80d3d3f7430410ad8e5869799ad1d
[ "MIT" ]
1
2019-04-08T19:33:20.000Z
2019-04-08T19:33:20.000Z
demo.html
kluizeberg/Leaflet.Proj4js
edb3d437d7b80d3d3f7430410ad8e5869799ad1d
[ "MIT" ]
null
null
null
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Demo Leaflet.Proj4js</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.4.0/leaflet.css"> <style> body { margin: 0; padding: 0; position: absolute; top: 0; bottom: 0; width: 100%; } </style> </head> <body><!-- map container --> <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.4.0/leaflet.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.5.0/proj4.js"></script> <script src="leaflet.proj4.js"></script> <script> // source: https://tile.informatievlaanderen.be/ws/raadpleegdiensten/wmts?request=getcapabilities&service=wmts&version=1.0.0 // Belge 1972 / Belgian Lambert 72 var code = 'EPSG:31370'; var proj4def = '+proj=lcc +lat_1=51.16666723333333 +lat_2=49.8333339 +lat_0=90 +lon_0=4.367486666666666 +x_0=150000.013 +y_0=5400088.438 +ellps=intl ' + '+towgs84=-106.869,52.2978,-103.724,0.3366,-0.457,1.8422,-1.2747 +units=m +no_defs'; // source: http://epsg.io/31370 var bounds = [[9928.000000, 66928.000000], [272072.000000, 329072.000000]]; // BoundingBox switch (window.location.search.slice(1)) { // ?<variant> case '1': // variant 1 var crs = L.Proj4.crs(code, { bounds: bounds, // projection: undefined, proj4def: proj4def, // transformation: undefined, origin: [9928.000000, 329072.000000], // TopLeftCorner // scale: undefined, // resolution: undefined, scaleDenominator: 3657142.85714285727590322495 }); break; case '2': // variant 2 var projection = L.Proj4.projection(code, proj4def, bounds); var crs = L.Proj4.crs(code, { // bounds: undefined, projection: projection, // proj4def: undefined, // transformation: undefined, origin: [9928.000000, 329072.000000], // TopLeftCorner // scale: undefined, // resolution: undefined, scaleDenominator: 3657142.85714285727590322495 }); break; case '3': // fall through default: // variant 3 proj4.defs(code, proj4def); var crs = L.Proj4.crs(code, { bounds: bounds, // projection: undefined, // proj4def: undefined, // transformation: undefined, origin: [9928.000000, 329072.000000], // TopLeftCorner // scale: undefined, // resolution: undefined, scaleDenominator: 3657142.85714285727590322495 }); } var map = L.map(document.body, { crs: crs, // center: [50, 5], // Ardennes, BE // zoom: 5, layers: L.tileLayer('https://tile.informatievlaanderen.be/ws/raadpleegdiensten/wmts?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=grb_bsk&STYLE=&FORMAT=image/png&TILEMATRIXSET=BPL72VL&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}', { maxNativeZoom: 15, attribution: '<a href="https://overheid.vlaanderen.be/informatie-vlaanderen">Informatie Vlaanderen</a>' }) }); map.addControl(L.control.scale()); // Control.Scale requires crs' distance method map.fitBounds([[50.685, 2,53], [51.52, 5.92]]); // WGS84BoundingBox </script> </body> </html>
32.147368
230
0.692207
d1b0b4e0e481cad39eaaf5cba1e3d7e003adb9b8
1,803
ps1
PowerShell
cleanWindows.ps1
dragondaud/cleanWindows
b7b99ca95cad4aa8749a22e3f49196c828cf2908
[ "MIT" ]
3
2018-07-16T16:40:06.000Z
2018-12-12T18:33:56.000Z
cleanWindows.ps1
dragondaud/cleanWindows
b7b99ca95cad4aa8749a22e3f49196c828cf2908
[ "MIT" ]
null
null
null
cleanWindows.ps1
dragondaud/cleanWindows
b7b99ca95cad4aa8749a22e3f49196c828cf2908
[ "MIT" ]
null
null
null
<# cleanWindows.ps1 [-verify] remove bloatware from Windows 10 Build 17134 ps2exe.ps1 cleanWindows.ps1 cleanWindows.exe -requireAdmin -noConfigfile Copyright (c) 2018 David M Denney #> #Requires -Version 4 param ( [switch]$verify = $false ) function remove-appx { Param([string]$package) $appx = Get-AppxPackage -AllUsers $package if ($appx) { if ($verify) { $appx | select Name,PackageFullName | Format-List | Out-Host $ask = Read-Host "Remove? (Y/n/q) " if ($ask -eq "N") { return } elseif ($ask -eq "Q") { exit } } $appx | Remove-AppxPackage } } remove-appx -package "Microsoft.3DBuilder" remove-appx -package "Microsoft.Print3D" remove-appx -package "*bing*" remove-appx -package "Microsoft.WindowsCamera" remove-appx -package "Microsoft.WindowsCommunicationsApps" remove-appx -package "Microsoft.GetHelp" remove-appx -package "Microsoft.Getstarted" remove-appx -package "Microsoft.MicrosoftOfficeHub" remove-appx -package "Microsoft.WindowsMaps" remove-appx -package "Microsoft.Messaging" remove-appx -package "Microsoft.Office.OneNote" remove-appx -package "Microsoft.OneConnect" remove-appx -package "Microsoft.People" remove-appx -package "Microsoft.MicrosoftSolitaireCollection" remove-appx -package "Microsoft.MixedReality.Portal" remove-appx -package "Microsoft.MicrosoftStickyNotes" remove-appx -package "Microsoft.SkypeApp" remove-appx -package "Microsoft.Wallet" remove-appx -package "Microsoft.WindowsFeedbackHub" remove-appx -package "Microsoft.Xbox*Overlay" remove-appx -package "Microsoft.XboxApp" remove-appx -package "Microsoft.XboxIdentityProvider" remove-appx -package "*zune*" taskkill /f /im OneDrive.exe /fi "STATUS eq RUNNING" | Out-Null C:\Windows\SysWOW64\OneDriveSetup.exe /uninstall
32.196429
74
0.740433
b87e5874f12334688f61a345aa85b62f147f7463
203
sql
SQL
3. Database & JPA exercise 2/JDBC Studentlist (Optional)/src/main/resources/schema.sql
JoonasKulmala/Palvelinohjelmointi
077ce903b6fd9a28de23bec4961f87bf8f6ea62d
[ "MIT" ]
null
null
null
3. Database & JPA exercise 2/JDBC Studentlist (Optional)/src/main/resources/schema.sql
JoonasKulmala/Palvelinohjelmointi
077ce903b6fd9a28de23bec4961f87bf8f6ea62d
[ "MIT" ]
null
null
null
3. Database & JPA exercise 2/JDBC Studentlist (Optional)/src/main/resources/schema.sql
JoonasKulmala/Palvelinohjelmointi
077ce903b6fd9a28de23bec4961f87bf8f6ea62d
[ "MIT" ]
null
null
null
CREATE TABLE IF NOT EXISTS customer ( customer_id int(5) NOT NULL AUTO_INCREMENT, first_name varchar(50) DEFAULT NULL, last_name varchar(50) DEFAULT NULL, PRIMARY KEY(customer_id) );
29
47
0.719212
4321dc967b2c113d30ad61211dad80ec4ea49cbe
5,023
dart
Dart
lib/websocket_manager.dart
cjcv123/flutter_websocket_plugin
77db6eecdd1d166402845369f445f8a8f0ae4cd8
[ "MIT" ]
44
2019-11-15T19:55:10.000Z
2021-12-20T16:54:04.000Z
lib/websocket_manager.dart
cjcv123/flutter_websocket_plugin
77db6eecdd1d166402845369f445f8a8f0ae4cd8
[ "MIT" ]
21
2019-11-27T04:09:28.000Z
2022-01-20T14:55:23.000Z
lib/websocket_manager.dart
cjcv123/flutter_websocket_plugin
77db6eecdd1d166402845369f445f8a8f0ae4cd8
[ "MIT" ]
17
2020-01-01T09:40:49.000Z
2022-03-22T04:51:08.000Z
import 'dart:async'; import 'package:flutter/services.dart'; const String _PLUGIN_NAME = 'websocket_manager'; const String _EVENT_CHANNEL_MESSAGE = 'websocket_manager/message'; const String _EVENT_CHANNEL_DONE = '$_PLUGIN_NAME/done'; const String _METHOD_CHANNEL_CREATE = 'create'; const String _METHOD_CHANNEL_CONNECT = 'connect'; const String _METHOD_CHANNEL_DISCONNECT = 'disconnect'; const String _METHOD_CHANNEL_ON_MESSAGE = 'onMessage'; const String _METHOD_CHANNEL_ON_DONE = 'onDone'; const String _METHOD_CHANNEL_SEND = 'send'; const String _METHOD_CHANNEL_TEST_ECHO = 'echoTest'; /// Provides an easy way to create native websocket connection. class WebsocketManager { WebsocketManager(this.url, [this.header]) { _create(); } final String url; final Map<String, String> header; static const MethodChannel _channel = MethodChannel(_PLUGIN_NAME); static const EventChannel _eventChannelMessage = EventChannel(_EVENT_CHANNEL_MESSAGE); static const EventChannel _eventChannelClose = EventChannel(_EVENT_CHANNEL_DONE); static StreamSubscription<dynamic> _onMessageSubscription; static StreamSubscription<dynamic> _onCloseSubscription; static Stream<dynamic> _eventsMessage; static Stream<dynamic> _eventsClose; static Function(dynamic) _messageCallback; static Function(dynamic) _closeCallback; static Future<void> echoTest() async { final dynamic result = await _channel.invokeMethod<dynamic>(_METHOD_CHANNEL_TEST_ECHO); print(result); } Future<void> _create() async { _channel.setMethodCallHandler((MethodCall call) { switch (call.method) { case 'listen/message': _onMessage(); break; case 'listen/close': _onClose(); break; } return; }); // print(url); // print(header); await _channel .invokeMethod<dynamic>(_METHOD_CHANNEL_CREATE, <String, dynamic>{ 'url': url, 'header': header, }); _onMessage(); _onClose(); } /// Creates a new WebSocket connection after instantiated [WebsocketManager]. /// /// From this point the messages are being listened, but you need to /// call [onMessage] or [onClose] functions, providing a callback function, /// to be able to listen data sent from the server and a done event. Future<void> connect() async { _onMessage(); await _channel.invokeMethod<dynamic>(_METHOD_CHANNEL_CONNECT); } /// Closes the web socket connection. Future<void> close() async { await _channel.invokeMethod<String>(_METHOD_CHANNEL_DISCONNECT); _eventsMessage = null; if (_onMessageSubscription != null) { _onMessageSubscription.cancel(); _onMessageSubscription = null; } // _eventsClose = null; // if (_onCloseSubscription != null) { // _onCloseSubscription.cancel(); // _onCloseSubscription = null; // } } /// Send a [String] message to the connected WebSocket. void send(String message) { _channel.invokeMethod<dynamic>(_METHOD_CHANNEL_SEND, message); } /// Adds a callback handler to this WebSocket sent data. /// /// On each data event from this WebSocket, the subscriber's [onMessage] handler /// is called. If [onMessage] is `null`, nothing happens. /// /// If you received any message before setting this callback handler /// you are not going to received past data. void onMessage(Function(dynamic) callback) { _messageCallback = callback; _startMessageServices().then((_) { _onMessage(); }); } /// Adds a callback handler to this WebSocket close event. /// /// If this WebSocket closes a done event is triggered, the [onClose] handler is /// called. If [onClose] is `null`, nothing happens. /// /// If you are not listening to this close event you are not going to be able /// to know if the connection was closed. void onClose(Function(dynamic) callback) { _closeCallback = callback; _startCloseServices().then((_) { _onClose(); }); } Future<void> _startMessageServices() async { await _channel.invokeMethod<String>(_METHOD_CHANNEL_ON_MESSAGE); return; } void _onMessage() { if (_eventsMessage == null) { _eventsMessage = _eventChannelMessage.receiveBroadcastStream().asBroadcastStream(); _onMessageSubscription = _eventsMessage.listen(_messageListener); } } Future<void> _startCloseServices() async { await _channel.invokeMethod<dynamic>(_METHOD_CHANNEL_ON_DONE); return; } void _onClose() { if (_eventsClose == null) { _eventsClose = _eventChannelClose.receiveBroadcastStream(); _onCloseSubscription = _eventsClose.listen(_closeListener); } } void _messageListener(dynamic message) { // print('Received message: $message'); if (_messageCallback != null) { _messageCallback(message); } } void _closeListener(dynamic message) { print(message); if (_closeCallback != null) { _closeCallback(message); } } }
30.815951
82
0.699184
b1d28b266bf05f167f632b9655d703bc51984647
280
h
C
hal/dir.h
antisvin/er-301
54d1e553651b5b653afa318189d813f0b7e12a96
[ "MIT" ]
102
2021-03-01T10:39:56.000Z
2022-03-31T00:28:15.000Z
hal/dir.h
antisvin/er-301
54d1e553651b5b653afa318189d813f0b7e12a96
[ "MIT" ]
62
2021-03-01T19:38:54.000Z
2022-03-21T00:51:24.000Z
hal/dir.h
antisvin/er-301
54d1e553651b5b653afa318189d813f0b7e12a96
[ "MIT" ]
19
2021-03-01T19:52:10.000Z
2021-07-29T03:25:19.000Z
#pragma once #include <stdbool.h> #include <stdint.h> #ifdef __cplusplus extern "C" { #endif typedef void *dir_t; dir_t Dir_open(const char *path); void Dir_close(dir_t dir); bool Dir_read(dir_t dir, char **filename, uint32_t *attributes); #ifdef __cplusplus } #endif
14.736842
66
0.717857
df67505e248215d6e662d4086d1edc616677354f
10,005
ps1
PowerShell
src/BotService/custom/Export-AzBotServiceApp.ps1
nimaller/azure-powershell
a31eaed8e1d4f52752222d138436ce975b05dd5f
[ "MIT" ]
3
2021-02-08T06:47:47.000Z
2021-02-08T09:53:19.000Z
src/BotService/custom/Export-AzBotServiceApp.ps1
nimaller/azure-powershell
a31eaed8e1d4f52752222d138436ce975b05dd5f
[ "MIT" ]
null
null
null
src/BotService/custom/Export-AzBotServiceApp.ps1
nimaller/azure-powershell
a31eaed8e1d4f52752222d138436ce975b05dd5f
[ "MIT" ]
null
null
null
# ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Returns a BotService specified by the parameters. .Description Returns a BotService specified by the parameters. .Link https://docs.microsoft.com/en-us/powershell/module/az.botservice/export-azbotserviceapp #> function Export-AzBotServiceApp { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.BotService.Category('Path')] [System.String] # The name of the Bot resource group in the user subscription. ${ResourceGroupName}, [Alias('BotName')] [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.BotService.Category('Path')] [System.String] # The name of the Bot resource. ${Name}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.BotService.Category('Path')] [System.String] ${SavePath}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.BotService.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # Azure Subscription ID. ${SubscriptionId}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.BotService.Category('Azure')] [System.Management.Automation.PSObject] # The credentials, account, tenant, and subscription used for communication with Azure. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.BotService.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.BotService.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.BotService.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.BotService.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.BotService.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.BotService.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.BotService.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) process { try { $EnvPSBoundParameters = @{} if ($PSBoundParameters.ContainsKey('Debug')) { $EnvPSBoundParameters['Debug'] = $Debug } if ($PSBoundParameters.ContainsKey('HttpPipelineAppend')) { $EnvPSBoundParameters['HttpPipelineAppend'] = $HttpPipelineAppend } if ($PSBoundParameters.ContainsKey('HttpPipelinePrepend')) { $EnvPSBoundParameters['HttpPipelinePrepend'] = $HttpPipelinePrepend } if ($PSBoundParameters.ContainsKey('Proxy')) { $EnvPSBoundParameters['Proxy'] = $Proxy } if ($PSBoundParameters.ContainsKey('ProxyCredential')) { $EnvPSBoundParameters['ProxyCredential'] = $ProxyCredential } if ($PSBoundParameters.ContainsKey('ProxyUseDefaultCredentials')) { $EnvPSBoundParameters['ProxyUseDefaultCredentials'] = $ProxyUseDefaultCredentials } $BotService = Get-AzBotService -ResourceGroupName $ResourceGroupName -Name $Name @EnvPSBoundParameters if ('bot' -eq $BotService.Kind) { throw "Source download is not supported for registration only bots." } if (-not $PSBoundParameters.ContainsKey('SavePath')) { $SavePath = '.' Write-Host 'Parameter $SavePath not provided, defaulting to current working directory.' } $SavePath = Resolve-Path -Path $SavePath if (-not (Get-Item $SavePath) -is [System.IO.DirectoryInfo]) { throw "SavePath is not a valid directory." } DownloadBotZip -ResourceGroupName $ResourceGroupName -Name $Name -SavePath $SavePath -EnvParameters $EnvPSBoundParameters } catch { throw } } } function DownloadBotZip { [Microsoft.Azure.PowerShell.Cmdlets.BotService.DoNotExportAttribute()] param( [Parameter()] [System.String] ${ResourceGroupName}, [Parameter()] [System.String] ${Name}, [Parameter()] [System.String] ${SavePath}, [Parameter()] [hashtable] ${EnvParameters} ) process { $WebApp = Get-AzWebApp -ResourceGroupName $ResourceGroupName -Name $Name @EnvParameters foreach ($HostNameSslState in $WebApp.HostNameSslStates) { if ('Repository' -eq $HostNameSslState.HostType) { $HostName = $HostNameSslState.Name $ScmUrl = "https://$HostName" $PublishingProfileInfo = [xml](Get-AzWebAppPublishingProfile -ResourceGroupName $ResourceGroupName -Name $Name @EnvParameters) foreach ($publishProfile in $PublishingProfileInfo.publishData.publishProfile) { if ('MSDeploy' -eq $publishProfile.publishMethod) { $Username = $publishProfile.userName $UserPWD = $publishProfile.userPWD $JWT = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes("${Username}:${UserPWD}")) $OctetHeader = @{'content-type' = 'application/octet-stream'; 'authorization' = "Basic $JWT"} $NeedToPackSourceCode = $False try { $Response = Invoke-WebRequest -Method Get -Headers $OctetHeader -Uri "$ScmUrl/api/zip/site/clirepo/" if (200 -ne $Response.StatusCode) { $NeedToPackSourceCode = $True } } catch { $NeedToPackSourceCode = $True } if ($NeedToPackSourceCode) { $Payload = @{ "command" = "PostDeployScripts\\prepareSrc.cmd $userPWD"; "dir" = "site\wwwroot" } $Body = ConvertTo-Json $Payload $JsonHeader = @{'content-type' = 'application/json'; 'authorization' = "Basic $JWT"} $PrepareSrcResponse = Invoke-WebRequest -Method Post -Headers $JsonHeader -Uri "$ScmUrl/api/command" -Body $Body if (200 -ne $PrepareSrcResponse.StatusCode) { throw "Fail to pack the source code into bot-src.zip." } } $DownloadPath = [System.IO.Path]::Combine($SavePath, $Name) if (Test-Path -Path $DownloadPath) { throw "The path $DownloadPath already exists. Please delete this folder or specify an alternate path." } New-Item -Path $DownloadPath -ItemType Directory $ZipPath = [System.IO.Path]::Combine($SavePath, 'download.zip') $Response = Invoke-WebRequest -Method Get -Headers $OctetHeader -Uri "$ScmUrl/api/vfs/site/bot-src.zip" -OutFile $ZipPath Expand-Archive -Path $ZipPath -DestinationPath $DownloadPath Remove-Item -Path $ZipPath return } } throw "Cannot find web deploy profile for $Name." } } throw 'Failed to retrieve Scm Uri' } }
44.865471
146
0.551524
69dbaccb860678bf0deb7b0d721a8fa961c423b8
581
ps1
PowerShell
src/PSRule.Rules.Kubernetes/rules/Kubernetes.AKS.Rule.ps1
BernieWhite/PSRule.Kubernetes
3fe918b4e2b9553828ea37c9b92dd784b7e17b08
[ "MIT" ]
7
2020-05-09T14:01:14.000Z
2022-03-03T12:35:17.000Z
src/PSRule.Rules.Kubernetes/rules/Kubernetes.AKS.Rule.ps1
BernieWhite/PSRule.Kubernetes
3fe918b4e2b9553828ea37c9b92dd784b7e17b08
[ "MIT" ]
21
2019-05-07T13:38:01.000Z
2022-03-25T06:04:59.000Z
src/PSRule.Rules.Kubernetes/rules/Kubernetes.AKS.Rule.ps1
BernieWhite/PSRule.Rules.Kubernetes
5a907c0feaddd6db311e60440c71c92ea3206278
[ "MIT" ]
5
2020-06-30T15:39:18.000Z
2021-08-08T15:20:11.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # # Validation rules for Azure Kubernetes Service (AKS) # # Synopsis: Services should not include a public load balancer Rule 'Kubernetes.AKS.PublicLB' -Type Service -If { $PSRule.TargetName -ne 'addon-http-application-routing-nginx-ingress' } -Tag @{ group = 'AKS' } { if ($Assert.HasFieldValue($TargetObject, 'spec.type', 'LoadBalancer').Result) { Within 'metadata.annotations.''service.beta.kubernetes.io/azure-load-balancer-internal''' 'true' } else { return $True; } }
34.176471
148
0.698795
895c93885dfbe6f059462263a3ec5c4415227b0e
4,393
dart
Dart
social_media_app/lib/pages/news_feed_page.dart
zawhtetnaing10/PADC-Social-Media-App
b50fbadab4cccf1f36c7b881a14f03b24b3938cb
[ "MIT" ]
null
null
null
social_media_app/lib/pages/news_feed_page.dart
zawhtetnaing10/PADC-Social-Media-App
b50fbadab4cccf1f36c7b881a14f03b24b3938cb
[ "MIT" ]
null
null
null
social_media_app/lib/pages/news_feed_page.dart
zawhtetnaing10/PADC-Social-Media-App
b50fbadab4cccf1f36c7b881a14f03b24b3938cb
[ "MIT" ]
null
null
null
import 'package:firebase_crashlytics/firebase_crashlytics.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:social_media_app/blocs/news_feed_bloc.dart'; import 'package:social_media_app/pages/add_new_post_page.dart'; import 'package:social_media_app/pages/login_page.dart'; import 'package:social_media_app/resources/dimens.dart'; import 'package:social_media_app/utils/extensions.dart'; import 'package:social_media_app/viewitems/news_feed_item_view.dart'; class NewsFeedPage extends StatelessWidget { const NewsFeedPage({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return ChangeNotifierProvider( create: (context) => NewsFeedBloc(), child: Scaffold( appBar: AppBar( centerTitle: false, elevation: 0.0, automaticallyImplyLeading: false, backgroundColor: Colors.white, title: Container( margin: const EdgeInsets.only( left: MARGIN_MEDIUM, ), child: const Text( "Social", textAlign: TextAlign.start, style: TextStyle( fontWeight: FontWeight.bold, fontSize: TEXT_HEADING_1X, color: Colors.black, ), ), ), actions: [ GestureDetector( onTap: () {}, child: Container( margin: const EdgeInsets.only( right: MARGIN_LARGE, ), child: const Icon( Icons.search, color: Colors.grey, size: MARGIN_LARGE, ), ), ), Consumer<NewsFeedBloc>( builder: (context, bloc, child) => GestureDetector( onTap: () { bloc.onTapLogout().then( (_) => navigateToScreen(context, const LoginPage())); }, child: Container( margin: const EdgeInsets.only( right: MARGIN_LARGE, ), child: const Icon( Icons.logout, color: Colors.red, size: MARGIN_LARGE, ), ), ), ), ], ), floatingActionButton: FloatingActionButton( backgroundColor: Colors.black, onPressed: () { /// Navigate to Add New Post Page _navigateToAddNewPostPage(context); // FirebaseCrashlytics.instance.crash(); }, child: const Icon( Icons.add, color: Colors.white, ), ), body: Container( color: Colors.white, child: Consumer<NewsFeedBloc>( builder: (context, bloc, child) => ListView.separated( padding: const EdgeInsets.symmetric( vertical: MARGIN_LARGE, horizontal: MARGIN_LARGE, ), itemBuilder: (context, index) { return NewsFeedItemView( mNewsFeed: bloc.newsFeed?[index], onTapDelete: (newsFeedId) { bloc.onTapDeletePost(newsFeedId); }, onTapEdit: (newsFeedId) { Future.delayed(const Duration(milliseconds: 1000)) .then((value) { _navigateToEditPostPage(context, newsFeedId); }); }, ); }, separatorBuilder: (context, index) { return const SizedBox( height: MARGIN_XLARGE, ); }, itemCount: bloc.newsFeed?.length ?? 0, ), ), ), ), ); } void _navigateToAddNewPostPage(BuildContext context) { Navigator.of(context).push( MaterialPageRoute( builder: (context) => const AddNewPostPage(), ), ); } void _navigateToEditPostPage(BuildContext context, int newsFeedId) { Navigator.of(context).push( MaterialPageRoute( builder: (context) => AddNewPostPage( newsFeedId: newsFeedId, ), ), ); } }
31.833333
75
0.503301
d947a2d2086f086991cff50fe35aed9a7cc477b6
2,140
rs
Rust
crates/nu-cli/src/commands/config/get.rs
Amanita-muscaria/nushell
416ba1407b8553f5da4a6f8ad59c64b85fda3fb4
[ "MIT" ]
null
null
null
crates/nu-cli/src/commands/config/get.rs
Amanita-muscaria/nushell
416ba1407b8553f5da4a6f8ad59c64b85fda3fb4
[ "MIT" ]
null
null
null
crates/nu-cli/src/commands/config/get.rs
Amanita-muscaria/nushell
416ba1407b8553f5da4a6f8ad59c64b85fda3fb4
[ "MIT" ]
1
2020-08-10T10:44:28.000Z
2020-08-10T10:44:28.000Z
use crate::commands::WholeStreamCommand; use crate::context::CommandRegistry; use crate::prelude::*; use nu_errors::ShellError; use nu_protocol::{ReturnSuccess, Signature, SyntaxShape, UntaggedValue, Value}; use nu_source::Tagged; pub struct SubCommand; #[derive(Deserialize)] pub struct GetArgs { get: Tagged<String>, } #[async_trait] impl WholeStreamCommand for SubCommand { fn name(&self) -> &str { "config get" } fn signature(&self) -> Signature { Signature::build("config get").required( "get", SyntaxShape::Any, "value to get from the config", ) } fn usage(&self) -> &str { "Gets a value from the config" } async fn run( &self, args: CommandArgs, registry: &CommandRegistry, ) -> Result<OutputStream, ShellError> { get(args, registry).await } fn examples(&self) -> Vec<Example> { vec![Example { description: "Get the current startup commands", example: "config get startup", result: None, }] } } pub async fn get( args: CommandArgs, registry: &CommandRegistry, ) -> Result<OutputStream, ShellError> { let name_span = args.call_info.name_tag.clone(); let (GetArgs { get }, _) = args.process(&registry).await?; // NOTE: None because we are not loading a new config file, we just want to read from the // existing config let result = crate::data::config::read(name_span, &None)?; let key = get.to_string(); let value = result .get(&key) .ok_or_else(|| ShellError::labeled_error("Missing key in config", "key", get.tag()))?; Ok(match value { Value { value: UntaggedValue::Table(list), .. } => { let list: Vec<_> = list .iter() .map(|x| ReturnSuccess::value(x.clone())) .collect(); futures::stream::iter(list).to_output_stream() } x => { let x = x.clone(); OutputStream::one(ReturnSuccess::value(x)) } }) }
25.47619
94
0.566355
bcc55ac860e313bd23a49cf6348a7b47bb50f8f7
1,349
js
JavaScript
src/database/MongoRepository.js
cassioadrianodev/TobiasBot
1cae6227496d623e5db0dc68eac33207b0fefd8c
[ "0BSD" ]
5
2020-01-28T02:11:12.000Z
2020-05-05T15:21:47.000Z
src/database/MongoRepository.js
cassiomartimdev/TobiasBot
1cae6227496d623e5db0dc68eac33207b0fefd8c
[ "0BSD" ]
96
2020-05-14T07:23:19.000Z
2021-04-07T07:01:09.000Z
src/database/MongoRepository.js
cassiomartimdev/TobiasBot
1cae6227496d623e5db0dc68eac33207b0fefd8c
[ "0BSD" ]
7
2020-01-30T14:32:20.000Z
2020-03-31T19:12:11.000Z
const Repository = require('./Repository.js') const transformProps = require('transform-props') const castToString = arg => String(arg) module.exports = class MongoRepository extends Repository { constructor (mongoose, model) { super() if (!mongoose || !model) throw new Error('Mongoose model cannot be null.') this.mongoose = mongoose this.model = typeof model === 'string' ? mongoose.model(model) : model } get size () { return this.model.countDocuments() } parse (entity) { return entity ? transformProps( entity.toObject({ versionKey: false }), castToString, '_id' ) : null } add (entity) { return this.model.create(entity).then(this.parse) } get (id, projection) { return this.model .findById(id, projection) .then( e => (e && this.parse(e)) || this.add({ _id: id, ...this.getParse() }) ) } remove (id) { return this.model.findOneAndDelete({ _id: id }).then(this.parse) } findOne (id, projection) { return this.model.findById(id, projection).then(this.parse) } findAll (projection, types) { return this.model.find({}, projection, types).then(e => e.map(this.parse)) } update (id, entity, options = { upsert: true }) { return this.model.updateOne({ _id: id }, entity, options) } }
23.258621
78
0.618977
1238ff5055e016858759ce6498dfb7a06dbcce52
13,222
h
C
devel/include/vision_msgs/Detection3D.h
wpirm/catkin_wpirm
0e474a6ead4e1218f4cb3b87d27cc34e8f665d31
[ "MIT" ]
null
null
null
devel/include/vision_msgs/Detection3D.h
wpirm/catkin_wpirm
0e474a6ead4e1218f4cb3b87d27cc34e8f665d31
[ "MIT" ]
null
null
null
devel/include/vision_msgs/Detection3D.h
wpirm/catkin_wpirm
0e474a6ead4e1218f4cb3b87d27cc34e8f665d31
[ "MIT" ]
null
null
null
// Generated by gencpp from file vision_msgs/Detection3D.msg // DO NOT EDIT! #ifndef VISION_MSGS_MESSAGE_DETECTION3D_H #define VISION_MSGS_MESSAGE_DETECTION3D_H #include <string> #include <vector> #include <map> #include <ros/types.h> #include <ros/serialization.h> #include <ros/builtin_message_traits.h> #include <ros/message_operations.h> #include <std_msgs/Header.h> #include <vision_msgs/ObjectHypothesisWithPose.h> #include <vision_msgs/BoundingBox3D.h> #include <sensor_msgs/PointCloud2.h> namespace vision_msgs { template <class ContainerAllocator> struct Detection3D_ { typedef Detection3D_<ContainerAllocator> Type; Detection3D_() : header() , results() , bbox() , source_cloud() { } Detection3D_(const ContainerAllocator& _alloc) : header(_alloc) , results(_alloc) , bbox(_alloc) , source_cloud(_alloc) { (void)_alloc; } typedef ::std_msgs::Header_<ContainerAllocator> _header_type; _header_type header; typedef std::vector< ::vision_msgs::ObjectHypothesisWithPose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::vision_msgs::ObjectHypothesisWithPose_<ContainerAllocator> >::other > _results_type; _results_type results; typedef ::vision_msgs::BoundingBox3D_<ContainerAllocator> _bbox_type; _bbox_type bbox; typedef ::sensor_msgs::PointCloud2_<ContainerAllocator> _source_cloud_type; _source_cloud_type source_cloud; typedef boost::shared_ptr< ::vision_msgs::Detection3D_<ContainerAllocator> > Ptr; typedef boost::shared_ptr< ::vision_msgs::Detection3D_<ContainerAllocator> const> ConstPtr; }; // struct Detection3D_ typedef ::vision_msgs::Detection3D_<std::allocator<void> > Detection3D; typedef boost::shared_ptr< ::vision_msgs::Detection3D > Detection3DPtr; typedef boost::shared_ptr< ::vision_msgs::Detection3D const> Detection3DConstPtr; // constants requiring out of line definition template<typename ContainerAllocator> std::ostream& operator<<(std::ostream& s, const ::vision_msgs::Detection3D_<ContainerAllocator> & v) { ros::message_operations::Printer< ::vision_msgs::Detection3D_<ContainerAllocator> >::stream(s, "", v); return s; } } // namespace vision_msgs namespace ros { namespace message_traits { // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True} // {'sensor_msgs': ['/opt/ros/kinetic/share/sensor_msgs/cmake/../msg'], 'vision_msgs': ['/home/diggerdata/catkin_wpirm/src/vision_msgs/msg'], 'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/kinetic/share/geometry_msgs/cmake/../msg']} // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types'] template <class ContainerAllocator> struct IsFixedSize< ::vision_msgs::Detection3D_<ContainerAllocator> > : FalseType { }; template <class ContainerAllocator> struct IsFixedSize< ::vision_msgs::Detection3D_<ContainerAllocator> const> : FalseType { }; template <class ContainerAllocator> struct IsMessage< ::vision_msgs::Detection3D_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct IsMessage< ::vision_msgs::Detection3D_<ContainerAllocator> const> : TrueType { }; template <class ContainerAllocator> struct HasHeader< ::vision_msgs::Detection3D_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct HasHeader< ::vision_msgs::Detection3D_<ContainerAllocator> const> : TrueType { }; template<class ContainerAllocator> struct MD5Sum< ::vision_msgs::Detection3D_<ContainerAllocator> > { static const char* value() { return "7f3d8e29f3ab9853108801543aec1a5d"; } static const char* value(const ::vision_msgs::Detection3D_<ContainerAllocator>&) { return value(); } static const uint64_t static_value1 = 0x7f3d8e29f3ab9853ULL; static const uint64_t static_value2 = 0x108801543aec1a5dULL; }; template<class ContainerAllocator> struct DataType< ::vision_msgs::Detection3D_<ContainerAllocator> > { static const char* value() { return "vision_msgs/Detection3D"; } static const char* value(const ::vision_msgs::Detection3D_<ContainerAllocator>&) { return value(); } }; template<class ContainerAllocator> struct Definition< ::vision_msgs::Detection3D_<ContainerAllocator> > { static const char* value() { return "# Defines a 3D detection result.\n\ #\n\ # This extends a basic 3D classification by including position information,\n\ # allowing a classification result for a specific position in an image to\n\ # to be located in the larger image.\n\ \n\ Header header\n\ \n\ # Class probabilities. Does not have to include hypotheses for all possible\n\ # object ids, the scores for any ids not listed are assumed to be 0.\n\ ObjectHypothesisWithPose[] results\n\ \n\ # 3D bounding box surrounding the object.\n\ BoundingBox3D bbox\n\ \n\ # The 3D data that generated these results (i.e. region proposal cropped out of\n\ # the image). This information is not required for all detectors, so it may\n\ # be empty.\n\ sensor_msgs/PointCloud2 source_cloud\n\ \n\ ================================================================================\n\ MSG: std_msgs/Header\n\ # Standard metadata for higher-level stamped data types.\n\ # This is generally used to communicate timestamped data \n\ # in a particular coordinate frame.\n\ # \n\ # sequence ID: consecutively increasing ID \n\ uint32 seq\n\ #Two-integer timestamp that is expressed as:\n\ # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\ # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\ # time-handling sugar is provided by the client library\n\ time stamp\n\ #Frame this data is associated with\n\ # 0: no frame\n\ # 1: global frame\n\ string frame_id\n\ \n\ ================================================================================\n\ MSG: vision_msgs/ObjectHypothesisWithPose\n\ # An object hypothesis that contains position information.\n\ \n\ # The unique numeric ID of object detected. To get additional information about\n\ # this ID, such as its human-readable name, listeners should perform a lookup\n\ # in a metadata database. See vision_msgs/VisionInfo.msg for more detail.\n\ int64 id\n\ \n\ # The probability or confidence value of the detected object. By convention,\n\ # this value should lie in the range [0-1].\n\ float64 score\n\ \n\ # The 6D pose of the object hypothesis. This pose should be\n\ # defined as the pose of some fixed reference point on the object, such a\n\ # the geometric center of the bounding box or the center of mass of the\n\ # object.\n\ # Note that this pose is not stamped; frame information can be defined by\n\ # parent messages.\n\ # Also note that different classes predicted for the same input data may have\n\ # different predicted 6D poses.\n\ geometry_msgs/PoseWithCovariance pose\n\ ================================================================================\n\ MSG: geometry_msgs/PoseWithCovariance\n\ # This represents a pose in free space with uncertainty.\n\ \n\ Pose pose\n\ \n\ # Row-major representation of the 6x6 covariance matrix\n\ # The orientation parameters use a fixed-axis representation.\n\ # In order, the parameters are:\n\ # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\ float64[36] covariance\n\ \n\ ================================================================================\n\ MSG: geometry_msgs/Pose\n\ # A representation of pose in free space, composed of position and orientation. \n\ Point position\n\ Quaternion orientation\n\ \n\ ================================================================================\n\ MSG: geometry_msgs/Point\n\ # This contains the position of a point in free space\n\ float64 x\n\ float64 y\n\ float64 z\n\ \n\ ================================================================================\n\ MSG: geometry_msgs/Quaternion\n\ # This represents an orientation in free space in quaternion form.\n\ \n\ float64 x\n\ float64 y\n\ float64 z\n\ float64 w\n\ \n\ ================================================================================\n\ MSG: vision_msgs/BoundingBox3D\n\ # A 3D bounding box that can be positioned and rotated about its center (6 DOF)\n\ # Dimensions of this box are in meters, and as such, it may be migrated to\n\ # another package, such as geometry_msgs, in the future.\n\ \n\ # The 3D position and orientation of the bounding box center\n\ geometry_msgs/Pose center\n\ \n\ # The size of the bounding box, in meters, surrounding the object's center\n\ # pose.\n\ geometry_msgs/Vector3 size\n\ \n\ ================================================================================\n\ MSG: geometry_msgs/Vector3\n\ # This represents a vector in free space. \n\ # It is only meant to represent a direction. Therefore, it does not\n\ # make sense to apply a translation to it (e.g., when applying a \n\ # generic rigid transformation to a Vector3, tf2 will only apply the\n\ # rotation). If you want your data to be translatable too, use the\n\ # geometry_msgs/Point message instead.\n\ \n\ float64 x\n\ float64 y\n\ float64 z\n\ ================================================================================\n\ MSG: sensor_msgs/PointCloud2\n\ # This message holds a collection of N-dimensional points, which may\n\ # contain additional information such as normals, intensity, etc. The\n\ # point data is stored as a binary blob, its layout described by the\n\ # contents of the \"fields\" array.\n\ \n\ # The point cloud data may be organized 2d (image-like) or 1d\n\ # (unordered). Point clouds organized as 2d images may be produced by\n\ # camera depth sensors such as stereo or time-of-flight.\n\ \n\ # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\ # points).\n\ Header header\n\ \n\ # 2D structure of the point cloud. If the cloud is unordered, height is\n\ # 1 and width is the length of the point cloud.\n\ uint32 height\n\ uint32 width\n\ \n\ # Describes the channels and their layout in the binary data blob.\n\ PointField[] fields\n\ \n\ bool is_bigendian # Is this data bigendian?\n\ uint32 point_step # Length of a point in bytes\n\ uint32 row_step # Length of a row in bytes\n\ uint8[] data # Actual point data, size is (row_step*height)\n\ \n\ bool is_dense # True if there are no invalid points\n\ \n\ ================================================================================\n\ MSG: sensor_msgs/PointField\n\ # This message holds the description of one point entry in the\n\ # PointCloud2 message format.\n\ uint8 INT8 = 1\n\ uint8 UINT8 = 2\n\ uint8 INT16 = 3\n\ uint8 UINT16 = 4\n\ uint8 INT32 = 5\n\ uint8 UINT32 = 6\n\ uint8 FLOAT32 = 7\n\ uint8 FLOAT64 = 8\n\ \n\ string name # Name of field\n\ uint32 offset # Offset from start of point struct\n\ uint8 datatype # Datatype enumeration, see above\n\ uint32 count # How many elements in the field\n\ "; } static const char* value(const ::vision_msgs::Detection3D_<ContainerAllocator>&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template<class ContainerAllocator> struct Serializer< ::vision_msgs::Detection3D_<ContainerAllocator> > { template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) { stream.next(m.header); stream.next(m.results); stream.next(m.bbox); stream.next(m.source_cloud); } ROS_DECLARE_ALLINONE_SERIALIZER }; // struct Detection3D_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template<class ContainerAllocator> struct Printer< ::vision_msgs::Detection3D_<ContainerAllocator> > { template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vision_msgs::Detection3D_<ContainerAllocator>& v) { s << indent << "header: "; s << std::endl; Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); s << indent << "results[]" << std::endl; for (size_t i = 0; i < v.results.size(); ++i) { s << indent << " results[" << i << "]: "; s << std::endl; s << indent; Printer< ::vision_msgs::ObjectHypothesisWithPose_<ContainerAllocator> >::stream(s, indent + " ", v.results[i]); } s << indent << "bbox: "; s << std::endl; Printer< ::vision_msgs::BoundingBox3D_<ContainerAllocator> >::stream(s, indent + " ", v.bbox); s << indent << "source_cloud: "; s << std::endl; Printer< ::sensor_msgs::PointCloud2_<ContainerAllocator> >::stream(s, indent + " ", v.source_cloud); } }; } // namespace message_operations } // namespace ros #endif // VISION_MSGS_MESSAGE_DETECTION3D_H
33.902564
441
0.682574
27040ee2dbeda845ce0bef02e68f7eb57cc780c7
218
h
C
Lib/QPULib.h
kernhanda/QPULib
3a12ea984488725783922d70d984383535d07ea4
[ "MIT" ]
1
2019-07-04T06:32:25.000Z
2019-07-04T06:32:25.000Z
Lib/QPULib.h
kernhanda/QPULib
3a12ea984488725783922d70d984383535d07ea4
[ "MIT" ]
null
null
null
Lib/QPULib.h
kernhanda/QPULib
3a12ea984488725783922d70d984383535d07ea4
[ "MIT" ]
1
2020-12-10T17:47:44.000Z
2020-12-10T17:47:44.000Z
#ifndef _QPULIB_H_ #define _QPULIB_H_ #include "qpulib_config.h" #include "Source/Int.h" #include "Source/Float.h" #include "Source/Ptr.h" #include "Source/Cond.h" #include "Source/Stmt.h" #include "Kernel.h" #endif
16.769231
26
0.738532
41ffa285492d72c062032f19d76b98ea40eef0ad
1,500
sql
SQL
src/test/resources/randexpr1.test_1807.sql
jdkoren/sqlite-parser
9adf75ff5eca36f6e541594d2e062349f9ced654
[ "MIT" ]
131
2015-03-31T18:59:14.000Z
2022-03-09T09:51:06.000Z
src/test/resources/randexpr1.test_1807.sql
jdkoren/sqlite-parser
9adf75ff5eca36f6e541594d2e062349f9ced654
[ "MIT" ]
20
2015-03-31T21:35:38.000Z
2018-07-02T16:15:51.000Z
src/test/resources/randexpr1.test_1807.sql
jdkoren/sqlite-parser
9adf75ff5eca36f6e541594d2e062349f9ced654
[ "MIT" ]
43
2015-04-28T02:01:55.000Z
2021-06-06T09:33:38.000Z
-- randexpr1.test -- -- db eval {SELECT coalesce((select c from t1 where - -19-coalesce((select t1.e from t1 where not f<=b-17 or not -13>=f or (select -count(*) from t1) in (select t1.c from t1 union select 17 from t1)),b)*e not between case coalesce((select max(~case when 17>t1.e then d else 13 end) from t1 where not t1.c<=17),t1.c) when 13 then c else t1.e end+t1.c-t1.e and t1.e),t1.e) FROM t1 WHERE NOT (case ~case when not exists(select 1 from t1 where f<=~t1.d) then (abs(coalesce((select ~19 from t1 where d+t1.f=b),d))/abs(e)) when d in (select +min(11) from t1 union select ( -abs(count(distinct e)))+count(distinct t1.a) from t1) then e else t1.d end when -d then t1.e else t1.b end=t1.f or t1.d not in (t1.c,t1.e,t1.e) and t1.c not in (17,t1.a,e))} SELECT coalesce((select c from t1 where - -19-coalesce((select t1.e from t1 where not f<=b-17 or not -13>=f or (select -count(*) from t1) in (select t1.c from t1 union select 17 from t1)),b)*e not between case coalesce((select max(~case when 17>t1.e then d else 13 end) from t1 where not t1.c<=17),t1.c) when 13 then c else t1.e end+t1.c-t1.e and t1.e),t1.e) FROM t1 WHERE NOT (case ~case when not exists(select 1 from t1 where f<=~t1.d) then (abs(coalesce((select ~19 from t1 where d+t1.f=b),d))/abs(e)) when d in (select +min(11) from t1 union select ( -abs(count(distinct e)))+count(distinct t1.a) from t1) then e else t1.d end when -d then t1.e else t1.b end=t1.f or t1.d not in (t1.c,t1.e,t1.e) and t1.c not in (17,t1.a,e))
375
745
0.680667
9673f18423999f5206eb75eab0bc017cf25243d1
1,108
php
PHP
app/Models/Admin/Category.php
yanchuk-s/Real-Estate
21707e87fe1ca7fc6f4ff704affd2a98657cbff2
[ "MIT" ]
null
null
null
app/Models/Admin/Category.php
yanchuk-s/Real-Estate
21707e87fe1ca7fc6f4ff704affd2a98657cbff2
[ "MIT" ]
null
null
null
app/Models/Admin/Category.php
yanchuk-s/Real-Estate
21707e87fe1ca7fc6f4ff704affd2a98657cbff2
[ "MIT" ]
null
null
null
<?php namespace App\Models\Admin; use Illuminate\Database\Eloquent\Model; class Category extends Model { // Disable timestamps public $timestamps = false; // Enable columns to be filled with data protected $fillable = [ 'featured_image', 'map_icon', 'alias', 'order', ]; // Getting the content - Default Language public function contentDefault(){ $default = Language::where('default', 1)->first(); return $this->hasOne('App\Models\Admin\CategoryContent')->where('language_id', $default->id); } // Getting the content all Languages public function content($language_id = 1){ return $this->hasOne('App\Models\Admin\CategoryContent')->where('language_id', $language_id)->first(); } // Getting the content all Languages public function contentload(){ return $this->hasOne('App\Models\Admin\CategoryContent'); } // Featured image public function getFeaturedImageAttribute($value){ if($value){ return '/images/data/'. $value; }else{ return ''; } } }
26.380952
110
0.630866
c101d4e8d8685d388673ebc289c76b44e402914e
356
lua
Lua
.config/nvim/ftplugin/netrw.lua
potamides/dotfiles
6a61164f662071ff6eced60422f2347927f618f9
[ "MIT" ]
63
2020-08-06T12:30:50.000Z
2022-03-26T15:09:51.000Z
.config/nvim/ftplugin/netrw.lua
potamides/dotfiles
6a61164f662071ff6eced60422f2347927f618f9
[ "MIT" ]
2
2022-01-27T16:59:10.000Z
2022-03-31T17:12:15.000Z
.config/nvim/ftplugin/netrw.lua
potamides/dotfiles
6a61164f662071ff6eced60422f2347927f618f9
[ "MIT" ]
7
2020-08-08T16:34:06.000Z
2021-11-23T21:58:55.000Z
--[[ Map bookmark handler to 'b and `b in netrw windows. --]] if not vim.b.did_user_ftplugin then vim.api.nvim_buf_set_keymap(0, "n", "'b", "<Plug>NetrwBookHistHandler_gb", {silent = true, nowait = true}) vim.api.nvim_buf_set_keymap(0, "n", '`b', "<Plug>NetrwBookHistHandler_gb", {silent = true, nowait = true}) vim.b.did_user_ftplugin = true end
35.6
108
0.69382
785a5232384129f2a24174d62d42649ea17fa01a
4,721
swift
Swift
ScriptWidget/View/CodeEditor/ScriptCodeEditorView.swift
0x1306a94/ScriptWidget
8aed2e999f9336305493f4b43a91d722578921d8
[ "MIT" ]
113
2021-09-12T01:09:36.000Z
2022-03-30T17:25:22.000Z
ScriptWidget/View/CodeEditor/ScriptCodeEditorView.swift
0x1306a94/ScriptWidget
8aed2e999f9336305493f4b43a91d722578921d8
[ "MIT" ]
null
null
null
ScriptWidget/View/CodeEditor/ScriptCodeEditorView.swift
0x1306a94/ScriptWidget
8aed2e999f9336305493f4b43a91d722578921d8
[ "MIT" ]
16
2021-09-12T03:06:46.000Z
2022-03-24T12:08:23.000Z
// // ScriptCodeEditorView.swift // ScriptWidget // // Created by everettjf on 2020/10/24. // import SwiftUI import SwiftUIX enum ScriptCodeEditorViewMode { case creator case editor } struct ScriptCodeEditorNavButtonView: View { let image: String let text: String let action: () -> Void var body: some View { Button(action: action) { HStack { Image(systemName: image) .font(.title3) Text(text.uppercased()) .font(.caption) .fontWeight(.bold) } } } } class ScriptCodeEditorViewDataObject : ObservableObject { @Published var scriptModel: ScriptModel init(scriptModel: ScriptModel) { self.scriptModel = scriptModel NotificationCenter.default.addObserver(forName: ScriptWidgetListViewDataObject.scriptRenameNotification, object: nil, queue: OperationQueue.main) { (noti) in guard let newName = noti.userInfo?["newName"] as? String else { return } self.scriptModel = sharedScriptManager.getScript(scriptId: newName) NotificationCenter.default.post(name: CodeEditorViewController.changeFileNotification, object: nil, userInfo: ["file": self.scriptModel.file]) } } } struct ScriptCodeEditorView: View { @Environment(\.presentationMode) var presentationMode @ObservedObject var dataObject: ScriptCodeEditorViewDataObject let mode: ScriptCodeEditorViewMode let actionCreate: (() -> Void)? @State var showRunnerView = false @State var showEditAttributesView = false @State var showShareActivity: Bool = false init(mode: ScriptCodeEditorViewMode, scriptModel: ScriptModel) { self.mode = mode self.dataObject = ScriptCodeEditorViewDataObject(scriptModel: scriptModel) self.actionCreate = nil } init(mode: ScriptCodeEditorViewMode, scriptModel: ScriptModel, actionCreate: @escaping () -> Void) { self.mode = mode self.dataObject = ScriptCodeEditorViewDataObject(scriptModel: scriptModel) self.actionCreate = actionCreate } var body: some View { VStack { CodeEditorInternalView(file: self.dataObject.scriptModel.file) .navigationBarTitle(self.dataObject.scriptModel.name, displayMode: .inline) .navigationBarItems( leading: HStack { if self.mode != .creator { ScriptCodeEditorNavButtonView(image: "pencil.circle", text: "Edit") { self.showEditAttributesView.toggle() } .fullScreenCover(isPresented: $showEditAttributesView, content: { EditAttributesView(scriptModel: self.dataObject.scriptModel) { self.presentationMode.wrappedValue.dismiss() } }) } }, trailing: HStack { ScriptCodeEditorNavButtonView(image: "square.and.arrow.up", text: "Share") { self.showShareActivity.toggle() } .sheet(isPresented: $showShareActivity, content: { AppActivityView(activityItems: [self.dataObject.scriptModel.file.fileURL]) }) ScriptCodeEditorNavButtonView(image: "play", text: "Play") { self.showRunnerView.toggle() } .fullScreenCover(isPresented: $showRunnerView, content: { ScriptCodeRunnerView(file: self.dataObject.scriptModel.file) }) if self.mode == .creator { ScriptCodeEditorNavButtonView(image: "plus.square", text: "Create") { print("create tapped") if let action = self.actionCreate { action() } } } } ) } } } struct ScriptCodeEditorView_Previews: PreviewProvider { static var previews: some View { NavigationView { ScriptCodeEditorView(mode: .editor, scriptModel: globalScriptModel) } } }
35.765152
165
0.531879
7487c03a37832a2f96e83097ac7cd4f2fe1b9740
1,805
swift
Swift
WavesWallet-iOS/CustomViews/AddressBookButton.swift
bianxiang/WavesWallet-iOS-FirebaseRemoved
4e59840cf4b351db92081455156f00dd9a9fda60
[ "MIT" ]
null
null
null
WavesWallet-iOS/CustomViews/AddressBookButton.swift
bianxiang/WavesWallet-iOS-FirebaseRemoved
4e59840cf4b351db92081455156f00dd9a9fda60
[ "MIT" ]
null
null
null
WavesWallet-iOS/CustomViews/AddressBookButton.swift
bianxiang/WavesWallet-iOS-FirebaseRemoved
4e59840cf4b351db92081455156f00dd9a9fda60
[ "MIT" ]
1
2020-10-22T03:01:07.000Z
2020-10-22T03:01:07.000Z
// // AddressBookButton.swift // WavesWallet-iOS // // Created by rprokofev on 11/03/2019. // Copyright © 2019 Waves Platform. All rights reserved. // import Foundation import UIKit final class AddressBookButton: UIButton { enum Kind { case edit case add } override func awakeFromNib() { super.awakeFromNib() titleLabel?.font = .systemFont(ofSize: 13, weight: .regular) setTitleColor(.white, for: .normal) setBackgroundImage(UIColor.submit300.image, for: .normal) setBackgroundImage(UIColor.submit200.image, for: .highlighted) imageEdgeInsets = UIEdgeInsets(top: 0, left: -4, bottom: 0, right: 0) contentEdgeInsets = UIEdgeInsets(top: 0, left: 8, bottom: 0, right: 8) imageView?.tintColor = .white layer.masksToBounds = true layer.cornerRadius = 4 update(with: .edit) } } extension AddressBookButton: ViewConfiguration { func update(with model: AddressBookButton.Kind) { switch model { case .edit: setTitle(Localizable.Waves.Addressbookbutton.Title.editName, for: .normal) setImage(Images.editaddress24Submit300.image, for: .normal) setImage(Images.editaddress24Submit200.image, for: .highlighted) case .add: setTitle(Localizable.Waves.Addressbookbutton.Title.saveAddress, for: .normal) setImage(Images.addaddress24Submit300.image, for: .normal) setImage(Images.addaddress24Submit200.image, for: .highlighted) } } }
29.112903
89
0.570083
543d993d985ae4b7e5b665faaf0191243095aa4d
232
swift
Swift
Xcodes/Frontend/View+Conditional.swift
mohsinalimat/XcodesApp
c52f742556c15e2b73cd483770bda5aefde6318b
[ "MIT" ]
2,560
2021-01-20T13:29:34.000Z
2022-03-31T21:07:23.000Z
Xcodes/Frontend/View+Conditional.swift
mohsinalimat/XcodesApp
c52f742556c15e2b73cd483770bda5aefde6318b
[ "MIT" ]
94
2021-01-20T05:57:58.000Z
2022-03-31T10:05:51.000Z
Xcodes/Frontend/View+Conditional.swift
mohsinalimat/XcodesApp
c52f742556c15e2b73cd483770bda5aefde6318b
[ "MIT" ]
75
2021-02-02T12:03:48.000Z
2022-03-29T03:41:58.000Z
import SwiftUI extension View { @ViewBuilder func `if`<Other: View>(_ predicate: Bool, then: (Self) -> Other) -> some View { if predicate { then(self) } else { self } } }
17.846154
83
0.491379
fb47b147aa0f6608beb12f29e3dd45d2f0b57fd6
4,902
java
Java
src/main/java/com/example/fourthhomeworkrsmciftci/service/LoanService.java
n11-TalentHub-Java-Bootcamp/fourth-homework-rsmciftci
f0c395ca8c1f576af0ed66eeb9284abdd912a7c9
[ "MIT" ]
null
null
null
src/main/java/com/example/fourthhomeworkrsmciftci/service/LoanService.java
n11-TalentHub-Java-Bootcamp/fourth-homework-rsmciftci
f0c395ca8c1f576af0ed66eeb9284abdd912a7c9
[ "MIT" ]
null
null
null
src/main/java/com/example/fourthhomeworkrsmciftci/service/LoanService.java
n11-TalentHub-Java-Bootcamp/fourth-homework-rsmciftci
f0c395ca8c1f576af0ed66eeb9284abdd912a7c9
[ "MIT" ]
null
null
null
package com.example.fourthhomeworkrsmciftci.service; import com.example.fourthhomeworkrsmciftci.converter.LoanConverter; import com.example.fourthhomeworkrsmciftci.converter.LoanMapper; import com.example.fourthhomeworkrsmciftci.dto.LoanDto; import com.example.fourthhomeworkrsmciftci.dto.LoanSavingDto; import com.example.fourthhomeworkrsmciftci.dto.LoanSumOfLoansOfUser; import com.example.fourthhomeworkrsmciftci.dto.LoanTotalInterestDto; import com.example.fourthhomeworkrsmciftci.entity.Loan; import com.example.fourthhomeworkrsmciftci.enums.LoanType; import com.example.fourthhomeworkrsmciftci.service.entityService.LoanEntityService; import lombok.AllArgsConstructor; import org.springframework.stereotype.Service; import java.math.BigDecimal; import java.time.LocalDate; import java.util.List; @Service @AllArgsConstructor public class LoanService { private LoanEntityService loanEntityService; public LoanDto save(LoanSavingDto loanSavingDto){ LoanMapper mapper = LoanMapper.INSTANCE; Loan loan = mapper.convertLoanSavingDtoToLoan(loanSavingDto); LocalDate now = LocalDate.now(); BigDecimal unpaidLoanAmount = loan.getLoanAmount(); loan.setLoanCreationDate(now); loan.setUnpaidLoanAmount(unpaidLoanAmount); loan.setLoanType(LoanType.PRINCIPAL_DEBT); Loan savedLoan = loanEntityService.save(loan); LoanDto loanDto = mapper.convertLoanToLoanDto(savedLoan); return loanDto; } public List<LoanDto> findLoanByLoanCreationDateBetweenAndLoanTypeIs(LocalDate date1, LocalDate date2, LoanType loanType){ LocalDate earlierDate; LocalDate laterDate; if(date1.isBefore(date2)){ earlierDate = date1; laterDate = date2; }else{ earlierDate = date2; laterDate = date1; } List<Loan> loanList = loanEntityService.findLoanByLoanCreationDateBetweenAndLoanTypeIs(earlierDate,laterDate,loanType); LoanMapper mapper = LoanMapper.INSTANCE; List<LoanDto> loanDtoList = mapper.convertLoanListToLoanDtoList(loanList); loanDtoList = LoanConverter.addInterestToList(loanDtoList); return loanDtoList; } public List<LoanDto> findPrincipleLoansOfUser(Long id, LoanType loanType){ BigDecimal unpaidLoanAmountGreaterThan = BigDecimal.ZERO; LoanMapper mapper = LoanMapper.INSTANCE; List<Loan> principleLoanListOfUser = loanEntityService.findLoansByCustomerIdAndUnpaidLoanAmountGreaterThanAndLoanTypeIs(id,unpaidLoanAmountGreaterThan,loanType); List<LoanDto> principleLoanDtoListOfUser = mapper.convertLoanListToLoanDtoList(principleLoanListOfUser); principleLoanDtoListOfUser = LoanConverter.addInterestToList(principleLoanDtoListOfUser); return principleLoanDtoListOfUser; } public List<LoanDto> findOverduePrincipleLoansOfUser(Long id, LoanType loanType){ BigDecimal unpaidLoanAmountGreaterThan = BigDecimal.ZERO; LocalDate localDateNow = LocalDate.now(); LoanMapper mapper = LoanMapper.INSTANCE; List<Loan> overduePrincipleLoanListOfUser = loanEntityService.findLoansByCustomerIdAndUnpaidLoanAmountGreaterThanAndPaymentDueDateBeforeAndLoanTypeIs(id,unpaidLoanAmountGreaterThan,localDateNow,loanType); List<LoanDto> overduePrincipleLoanDtoListOfUser = mapper.convertLoanListToLoanDtoList(overduePrincipleLoanListOfUser); overduePrincipleLoanDtoListOfUser = LoanConverter.addInterestToList(overduePrincipleLoanDtoListOfUser); return overduePrincipleLoanDtoListOfUser; } public List<Loan> calculateSumOfUnpaidLoansOfUser(Long id){ LoanType loanType = LoanType.PRINCIPAL_DEBT; BigDecimal loanAmountGreaterThan = BigDecimal.ZERO; List<Loan> loanListOfUser = loanEntityService.calculateSumOfUnpaidLoansOfUser(id,loanAmountGreaterThan,loanType); return loanListOfUser; } public List<Loan> calculateSumOfOverdueUnpaidLoansOfUser(Long id){ LoanType loanType = LoanType.PRINCIPAL_DEBT; BigDecimal loanAmountGreaterThan = BigDecimal.ZERO; LocalDate now = LocalDate.now(); List<Loan> overdueLoanListOfUser = loanEntityService.calculateSumOfOverdueUnpaidLoansOfUser(id,loanAmountGreaterThan,loanType,now); return overdueLoanListOfUser; } public List<Loan> calculateTotalInterestOfUser(Long id){ LoanType loanType = LoanType.PRINCIPAL_DEBT; BigDecimal loanAmountGreaterThan = BigDecimal.ZERO; LocalDate now = LocalDate.now(); List<Loan> overdueLoanListOfUser = loanEntityService.calculateSumOfOverdueUnpaidLoansOfUser(id,loanAmountGreaterThan,loanType,now); LoanTotalInterestDto totalInterest = LoanConverter.converLoanListOfUserToLoanTotalInterestDto(overdueLoanListOfUser); return overdueLoanListOfUser; } }
39.532258
212
0.774786
756de8bb04545b4b9bd948c698f692d24171edd4
613
c
C
src/gbpAstro/gbpTrees/analysis/find_treesnap_z.c
gbpoole/gbpCode
5157d2e377edbd4806258d1c16b329373186d43a
[ "MIT" ]
1
2015-10-20T11:39:53.000Z
2015-10-20T11:39:53.000Z
src/gbpAstro/gbpTrees/analysis/find_treesnap_z.c
gbpoole/gbpCode
5157d2e377edbd4806258d1c16b329373186d43a
[ "MIT" ]
2
2017-07-30T11:10:49.000Z
2019-06-18T00:40:46.000Z
src/gbpAstro/gbpTrees/analysis/find_treesnap_z.c
gbpoole/gbpCode
5157d2e377edbd4806258d1c16b329373186d43a
[ "MIT" ]
4
2015-01-23T00:50:40.000Z
2016-08-01T08:14:24.000Z
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <gbpLib.h> #include <gbpMath.h> #include <gbpHalos.h> #include <gbpTrees_build.h> #include <gbpTrees_analysis.h> int find_treesnap_z(tree_info *trees, double z_obs_exact) { int i_z_obs = 0; double delta_z; double delta_z_min = 1e6; for(int i_z = 0; i_z < trees->n_snaps; i_z++) { delta_z = fabs(trees->z_list[i_z] - z_obs_exact); if(delta_z < delta_z_min) { i_z_obs = i_z; delta_z_min = delta_z; } } return (i_z_obs); }
24.52
59
0.623165
200e7c04c6a98ee8d1d0f96a2c5d690df3fafeb0
678
css
CSS
public/src/components/Info/Info.css
yadleo/Nick-05-05
7a19287b4688a5497f41763193918e498ea50980
[ "MIT" ]
1
2018-11-20T05:29:25.000Z
2018-11-20T05:29:25.000Z
public/src/components/Info/Info.css
yadleo/Nick-05-05
7a19287b4688a5497f41763193918e498ea50980
[ "MIT" ]
null
null
null
public/src/components/Info/Info.css
yadleo/Nick-05-05
7a19287b4688a5497f41763193918e498ea50980
[ "MIT" ]
null
null
null
.mainWrapper { visibility: visible; } .mainContainer { max-width: 140rem; margin-right: auto; margin-left: auto; } .info { font-size: 1.6rem; -ms-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; max-width: 100%; display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; -ms-flex-align: center; align-items: center; padding: 3.2rem 2.4rem 4rem; } .infoBio { color: white; max-width: 50rem; line-height: 1.55; } .infoEmail { margin-top: 2em; } .infoContact { margin-top: 1em; } .infoEmail a, .infoContact a { color: white; } .infoEmail a { font-weight: bolder; } a:hover, a:active { color: rgba(255, 255, 255, 0.678); }
12.792453
35
0.654867
f1a750388eef4667ac27b412121353fdbe684ccd
450
rb
Ruby
app/models/user_session.rb
blogmitnik/rails2_code
2392486677fc9828f41f41eac8ba85f81f13fd94
[ "MIT" ]
null
null
null
app/models/user_session.rb
blogmitnik/rails2_code
2392486677fc9828f41f41eac8ba85f81f13fd94
[ "MIT" ]
null
null
null
app/models/user_session.rb
blogmitnik/rails2_code
2392486677fc9828f41f41eac8ba85f81f13fd94
[ "MIT" ]
null
null
null
class UserSession < Authlogic::Session::Base def self.oauth_consumer OAuth::Consumer.new(APP_CONFIG['api_key'], APP_CONFIG['secret_key'], { :site=>"https://api.linkedin.com", :scheme => :header, :request_token_url => 'https://api.linkedin.com/uas/oauth/requestToken', :access_token_url => 'https://api.linkedin.com/uas/oauth/accessToken', :authorize_url => "https://api.linkedin.com/uas/oauth/authorize" }) end end
45
78
0.688889
4544a3f73d543f57eeb4ec4c6b9a977279255b77
482
kt
Kotlin
kotlin/src/test/kotlinIntegration/com/artemkaxboy/telerest/controller/Extensions.kt
artemkaxboy/LockStockBot
f5f1c80ab020453bb6450d7dfbf537be8885b1e1
[ "Apache-2.0" ]
null
null
null
kotlin/src/test/kotlinIntegration/com/artemkaxboy/telerest/controller/Extensions.kt
artemkaxboy/LockStockBot
f5f1c80ab020453bb6450d7dfbf537be8885b1e1
[ "Apache-2.0" ]
7
2020-07-07T07:58:36.000Z
2020-08-18T13:47:44.000Z
kotlin/src/test/kotlinIntegration/com/artemkaxboy/telerest/controller/Extensions.kt
artemkaxboy/LockStockBot
f5f1c80ab020453bb6450d7dfbf537be8885b1e1
[ "Apache-2.0" ]
3
2020-07-19T16:26:44.000Z
2022-03-15T14:02:53.000Z
package com.artemkaxboy.telerest.controller import org.springframework.http.HttpStatus import org.springframework.http.MediaType import org.springframework.test.web.reactive.server.WebTestClient fun WebTestClient.ResponseSpec.expectJson200() = expectStatus().isOk.expectHeader().contentType(MediaType.APPLICATION_JSON) fun WebTestClient.ResponseSpec.expectJson(status: HttpStatus) = expectStatus().isEqualTo(status).expectHeader().contentType(MediaType.APPLICATION_JSON)
40.166667
91
0.842324
81e2f192eecb799eef7d51d8d6a4a0ff8ad19512
1,194
go
Go
daemon/stats.go
lizf-os/docker
9ad87523c03fb0d313a4170a7f595a95b3d8497b
[ "Apache-2.0" ]
null
null
null
daemon/stats.go
lizf-os/docker
9ad87523c03fb0d313a4170a7f595a95b3d8497b
[ "Apache-2.0" ]
null
null
null
daemon/stats.go
lizf-os/docker
9ad87523c03fb0d313a4170a7f595a95b3d8497b
[ "Apache-2.0" ]
1
2019-12-10T14:00:58.000Z
2019-12-10T14:00:58.000Z
package daemon import ( "encoding/json" "io" "github.com/docker/docker/api/types" "github.com/docker/docker/daemon/execdriver" ) func (daemon *Daemon) ContainerStats(name string, stream bool, out io.Writer) error { updates, err := daemon.SubscribeToContainerStats(name) if err != nil { return err } var preCpuStats types.CpuStats getStat := func(v interface{}) *types.Stats { update := v.(*execdriver.ResourceStats) ss := convertStatsToAPITypes(update.Stats) ss.PreCpuStats = preCpuStats ss.MemoryStats.Limit = uint64(update.MemoryLimit) ss.Read = update.Read ss.CpuStats.SystemUsage = update.SystemUsage preCpuStats = ss.CpuStats return ss } enc := json.NewEncoder(out) if !stream { // prime the cpu stats so they aren't 0 in the final output s := getStat(<-updates) // now pull stats again with the cpu stats primed s = getStat(<-updates) err := enc.Encode(s) daemon.UnsubscribeToContainerStats(name, updates) return err } for v := range updates { s := getStat(v) if err := enc.Encode(s); err != nil { // TODO: handle the specific broken pipe daemon.UnsubscribeToContainerStats(name, updates) return err } } return nil }
22.961538
85
0.70603
c76e29be4b866c0fac39da19f01a2144a435e756
553
asm
Assembly
oeis/013/A013928.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/013/A013928.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/013/A013928.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A013928: Number of (positive) squarefree numbers < n. ; Submitted by Jamie Morken(s2.) ; 0,1,2,3,3,4,5,6,6,6,7,8,8,9,10,11,11,12,12,13,13,14,15,16,16,16,17,17,17,18,19,20,20,21,22,23,23,24,25,26,26,27,28,29,29,29,30,31,31,31,31,32,32,33,33,34,34,35,36,37,37,38,39,39,39,40,41,42,42,43,44,45,45,46,47,47,47,48,49,50,50,50,51,52,52,53,54,55,55,56,56,57,57,58,59,60,60,61,61,61 mov $2,$0 add $2,1 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 trn $0,1 seq $0,8966 ; a(n) = 1 if n is squarefree, otherwise 0. add $1,$0 lpe mov $0,$1 sub $0,1
30.722222
287
0.622061
a693932216d79f1bd463f7b29a5d0cabd2af8795
258
sql
SQL
docker-db-init-mssql.sql
cresta/schema
097c015706e7357ddafe85b238e39aa09a76f1d6
[ "BSD-3-Clause" ]
40
2018-02-27T03:40:19.000Z
2022-03-29T11:19:00.000Z
docker-db-init-mssql.sql
cresta/schema
097c015706e7357ddafe85b238e39aa09a76f1d6
[ "BSD-3-Clause" ]
17
2018-11-13T20:20:05.000Z
2021-08-13T19:49:01.000Z
docker-db-init-mssql.sql
cresta/schema
097c015706e7357ddafe85b238e39aa09a76f1d6
[ "BSD-3-Clause" ]
13
2019-01-31T10:31:13.000Z
2022-01-05T23:55:46.000Z
CREATE LOGIN test_user WITH PASSWORD = 'Password-123'; GO CREATE USER test_user FOR LOGIN test_user; GO CREATE SCHEMA test_db AUTHORIZATION test_user; GO ALTER USER test_user WITH default_schema = test_db; GO EXEC sp_addrolemember db_ddladmin, test_user; GO
23.454545
54
0.825581
a1df675cc7902f89636644b0f4aa2e41914429ab
741
sql
SQL
importer/src/main/resources/scripts/file-centric/file-centric-snapshot-mrcm-attribute-domain-valid-refsetid.sql
aehrc/release-validation-framework
8d003f95128f36b48890ab75df817a9b6318d20e
[ "Apache-2.0" ]
1
2021-04-22T00:04:25.000Z
2021-04-22T00:04:25.000Z
importer/src/main/resources/scripts/file-centric/file-centric-snapshot-mrcm-attribute-domain-valid-refsetid.sql
aehrc/release-validation-framework
8d003f95128f36b48890ab75df817a9b6318d20e
[ "Apache-2.0" ]
null
null
null
importer/src/main/resources/scripts/file-centric/file-centric-snapshot-mrcm-attribute-domain-valid-refsetid.sql
aehrc/release-validation-framework
8d003f95128f36b48890ab75df817a9b6318d20e
[ "Apache-2.0" ]
null
null
null
/******************************************************************************** file-centric-snapshot-mrcm-refset-attribute-domain-valid-refsetid.sql Assertion: Refset ID is valid in MRCM Attribute Domain Refset snapshot. ********************************************************************************/ insert into qa_result (runid, assertionuuid, concept_id, details) select <RUNID>, '<ASSERTIONUUID>', a.refsetid, concat('MRCM ATTRIBUTE DOMAIN: id=',a.id,' : refsetId=',a.refsetid,' MRCM Attribute Domain Refset contains a RefsetId that does not exist in the Concept snapshot.') from curr_mrcmAttributeDomainRefset_s a left join curr_concept_s b on a.refsetid = b.id where a.active = 1 and (b.active=0 or b.id is null);
46.3125
166
0.593792
83f9494f9b837deb8d300c5594f63c8952c0b4c4
5,000
go
Go
opsmngr/clusters.go
sunny-b/go-client-mongodb-ops-manager
bf37c3aa89f0073592fa9a03c25b94aaccdfe6a7
[ "Apache-2.0" ]
null
null
null
opsmngr/clusters.go
sunny-b/go-client-mongodb-ops-manager
bf37c3aa89f0073592fa9a03c25b94aaccdfe6a7
[ "Apache-2.0" ]
12
2021-05-17T08:56:53.000Z
2022-02-08T13:21:14.000Z
opsmngr/clusters.go
sunny-b/go-client-mongodb-ops-manager
bf37c3aa89f0073592fa9a03c25b94aaccdfe6a7
[ "Apache-2.0" ]
null
null
null
// Copyright 2020 MongoDB Inc // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package opsmngr import ( "context" "fmt" "net/http" atlas "go.mongodb.org/atlas/mongodbatlas" ) const ( clustersBasePath = "groups/%s/clusters" ) // ClustersService provides access to the cluster related functions in the Ops Manager API. // // See more: https://docs.opsmanager.mongodb.com/current/reference/api/clusters/ type ClustersService interface { List(context.Context, string, *atlas.ListOptions) (*Clusters, *atlas.Response, error) Get(context.Context, string, string) (*Cluster, *atlas.Response, error) ListAll(ctx context.Context) (*AllClustersProjects, *atlas.Response, error) } // ClustersServiceOp provides an implementation of the ClustersService interface type ClustersServiceOp service // List all clusters for a project // // See more: https://docs.opsmanager.mongodb.com/current/reference/api/clusters/#get-all-clusters func (s *ClustersServiceOp) List(ctx context.Context, groupID string, listOptions *atlas.ListOptions) (*Clusters, *atlas.Response, error) { if groupID == "" { return nil, nil, atlas.NewArgError("groupId", "must be set") } basePath := fmt.Sprintf(clustersBasePath, groupID) path, err := setQueryParams(basePath, listOptions) if err != nil { return nil, nil, err } req, err := s.Client.NewRequest(ctx, http.MethodGet, path, nil) if err != nil { return nil, nil, err } root := new(Clusters) resp, err := s.Client.Do(ctx, req, root) return root, resp, err } // Get get a single cluster by ID. // // See more: https://docs.opsmanager.mongodb.com/current/reference/api/clusters/#get-a-cluster func (s *ClustersServiceOp) Get(ctx context.Context, groupID, clusterID string) (*Cluster, *atlas.Response, error) { if groupID == "" { return nil, nil, atlas.NewArgError("groupId", "must be set") } if clusterID == "" { return nil, nil, atlas.NewArgError("clusterID", "must be set") } basePath := fmt.Sprintf(clustersBasePath, groupID) path := fmt.Sprintf("%s/%s", basePath, clusterID) req, err := s.Client.NewRequest(ctx, http.MethodGet, path, nil) if err != nil { return nil, nil, err } root := new(Cluster) resp, err := s.Client.Do(ctx, req, root) return root, resp, err } // Cluster represents a cluster in Ops Manager. type Cluster struct { ClusterName string `json:"clusterName,omitempty"` GroupID string `json:"groupId,omitempty"` ID string `json:"id,omitempty"` LastHeartbeat string `json:"lastHeartbeat,omitempty"` Links []*atlas.Link `json:"links,omitempty"` ReplicaSetName string `json:"replicaSetName,omitempty"` ShardName string `json:"shardName,omitempty"` TypeName string `json:"typeName,omitempty"` } // Clusters is a list of clusters. type Clusters struct { Links []*atlas.Link `json:"links"` Results []*Cluster `json:"results"` TotalCount int `json:"totalCount"` } // ListAll list all clusters available to the user. func (s *ClustersServiceOp) ListAll(ctx context.Context) (*AllClustersProjects, *atlas.Response, error) { req, err := s.Client.NewRequest(ctx, http.MethodGet, "clusters", nil) if err != nil { return nil, nil, err } root := new(AllClustersProjects) resp, err := s.Client.Do(ctx, req, root) return root, resp, err } type AllClustersProject struct { GroupName string `json:"groupName"` OrgName string `json:"orgName"` PlanType string `json:"planType,omitempty"` GroupID string `json:"groupId"` OrgID string `json:"orgId"` Tags []string `json:"tags"` Clusters []AllClustersCluster `json:"clusters"` } // AllClustersCluster represents MongoDB cluster. type AllClustersCluster struct { ClusterID string `json:"clusterId"` Name string `json:"name"` Type string `json:"type"` Availability string `json:"availability"` Versions []string `json:"versions"` BackupEnabled bool `json:"backupEnabled"` AuthEnabled bool `json:"authEnabled"` SSLEnabled bool `json:"sslEnabled"` AlertCount int64 `json:"alertCount"` DataSizeBytes int64 `json:"dataSizeBytes"` NodeCount int64 `json:"nodeCount"` } type AllClustersProjects struct { Links []*atlas.Link `json:"links"` Results []*AllClustersProject `json:"results"` TotalCount int `json:"totalCount"` }
33.333333
139
0.6842
3396e14b5d6c4a9ae856d639b940759e0b376f56
3,937
swift
Swift
test/IRGen/type_layout_reference_storage.swift
AbdouSarr/swift
65d8f03448c2c167198148ff0874bd0c57f09bec
[ "Apache-2.0" ]
17
2017-03-07T08:51:45.000Z
2022-03-24T00:39:22.000Z
test/IRGen/type_layout_reference_storage.swift
AbdouSarr/swift
65d8f03448c2c167198148ff0874bd0c57f09bec
[ "Apache-2.0" ]
2
2017-07-11T22:20:24.000Z
2020-07-08T16:48:50.000Z
test/IRGen/type_layout_reference_storage.swift
AbdouSarr/swift
65d8f03448c2c167198148ff0874bd0c57f09bec
[ "Apache-2.0" ]
8
2016-11-13T18:28:25.000Z
2021-07-21T19:46:20.000Z
// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %s --check-prefix=CHECK-%target-ptrsize --check-prefix=CHECK class C {} protocol P: class {} protocol Q: class {} // CHECK: @_TMPV29type_layout_reference_storage26ReferenceStorageTypeLayout = hidden global {{.*}} @create_generic_metadata_ReferenceStorageTypeLayout // CHECK: define private %swift.type* @create_generic_metadata_ReferenceStorageTypeLayout struct ReferenceStorageTypeLayout<T> { var z: T // -- Known-Swift-refcounted type // CHECK: store i8** getelementptr inbounds (i8*, i8** @_TWVXoBo, i32 17) unowned(safe) var cs: C // CHECK: store i8** getelementptr inbounds (i8*, i8** @_TWVMBo, i32 17) unowned(unsafe) var cu: C // CHECK: store i8** getelementptr inbounds (i8*, i8** @_TWVXwGSqBo_, i32 17) weak var cwo: C? // CHECK: store i8** getelementptr inbounds (i8*, i8** @_TWVXwGSqBo_, i32 17) weak var cwi: C! // -- Open-code layout for protocol types with witness tables. // Note that the layouts for unowned(safe) references are // only bitwise takable when ObjC interop is disabled. // CHECK-64: store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @type_layout_16_8_[[UNOWNED_XI:[0-9a-f]+]]{{(,|_bt,)}} i32 0, i32 0) // CHECK-32: store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @type_layout_8_4_[[UNOWNED_XI:[0-9a-f]+]]{{(,|_bt,)}} i32 0, i32 0) unowned(safe) var ps: P // CHECK-64: store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @type_layout_16_8_[[REF_XI:[0-9a-f]+]]_pod, i32 0, i32 0) // CHECK-32: store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @type_layout_8_4_[[REF_XI:[0-9a-f]+]]_pod, i32 0, i32 0) unowned(unsafe) var pu: P // CHECK-64: store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @type_layout_16_8_[[WEAK_XI:[0-9a-f]+]], i32 0, i32 0) // CHECK-32: store i8** getelementptr inbounds ([3 x i8*], [3 x i8*]* @type_layout_8_4_[[WEAK_XI:[0-9a-f]+]], i32 0, i32 0) weak var pwo: P? // CHECK-64: store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @type_layout_16_8_[[WEAK_XI]], i32 0, i32 0) // CHECK-32: store i8** getelementptr inbounds ([3 x i8*], [3 x i8*]* @type_layout_8_4_[[WEAK_XI]], i32 0, i32 0) weak var pwi: P! // CHECK-64: store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @type_layout_24_8_[[UNOWNED_XI]]{{(,|_bt,)}} i32 0, i32 0) // CHECK-32: store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @type_layout_12_4_[[UNOWNED_XI]]{{(,|_bt,)}} i32 0, i32 0) unowned(safe) var pqs: P & Q // CHECK-64: store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @type_layout_24_8_[[REF_XI]]_pod, i32 0, i32 0) // CHECK-32: store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @type_layout_12_4_[[REF_XI]]_pod, i32 0, i32 0) unowned(unsafe) var pqu: P & Q // CHECK-64: store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @type_layout_24_8_[[WEAK_XI]], i32 0, i32 0) // CHECK-32: store i8** getelementptr inbounds ([3 x i8*], [3 x i8*]* @type_layout_12_4_[[WEAK_XI]], i32 0, i32 0) weak var pqwo: (P & Q)? // CHECK-64: store i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @type_layout_24_8_[[WEAK_XI]], i32 0, i32 0) // CHECK-32: store i8** getelementptr inbounds ([3 x i8*], [3 x i8*]* @type_layout_12_4_[[WEAK_XI]], i32 0, i32 0) weak var pqwi: (P & Q)! // -- Unknown-refcounted existential without witness tables. // CHECK: store i8** getelementptr inbounds (i8*, i8** @_TWVXo[[UNKNOWN:B[Oo]]], i32 17) unowned(safe) var aos: AnyObject // CHECK: store i8** getelementptr inbounds (i8*, i8** @_TWVMBo, i32 17) unowned(unsafe) var aou: AnyObject // CHECK: store i8** getelementptr inbounds (i8*, i8** @_TWVXwGSq[[UNKNOWN]]_, i32 17) weak var aowo: AnyObject? // CHECK: store i8** getelementptr inbounds (i8*, i8** @_TWVXwGSq[[UNKNOWN]]_, i32 17) weak var aowi: AnyObject! }
64.540984
150
0.643891
291f9cee5afa53d09a165503968f3335aabd2b49
2,867
py
Python
python/topology/generator.py
marcfrei/scion
73d2bf883525c94a6761b015a7af6055154af028
[ "Apache-2.0" ]
211
2017-12-12T21:40:49.000Z
2022-03-20T13:45:17.000Z
python/topology/generator.py
marcfrei/scion
73d2bf883525c94a6761b015a7af6055154af028
[ "Apache-2.0" ]
1,360
2017-11-30T18:29:31.000Z
2022-03-28T09:31:58.000Z
python/topology/generator.py
marcfrei/scion
73d2bf883525c94a6761b015a7af6055154af028
[ "Apache-2.0" ]
85
2017-11-30T16:30:21.000Z
2022-03-08T17:22:48.000Z
#!/usr/bin/env python3 # Copyright 2014 ETH Zurich # Copyright 2018 ETH Zurich, Anapaya Systems # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """ :mod:`generator` --- SCION topology generator ============================================= """ # Stdlib import argparse # SCION from python.lib.defines import ( GEN_PATH, ) from python.topology.config import ( ConfigGenerator, ConfigGenArgs, DEFAULT_TOPOLOGY_FILE, ) def add_arguments(parser): parser.add_argument('-c', '--topo-config', default=DEFAULT_TOPOLOGY_FILE, help='Path policy file') parser.add_argument('-d', '--docker', action='store_true', help='Create a docker-compose configuration') parser.add_argument('-n', '--network', help='Network to create subnets in (E.g. "127.0.0.0/8"') parser.add_argument('-o', '--output-dir', default=GEN_PATH, help='Output directory') parser.add_argument('--random-ifids', action='store_true', help='Generate random IFIDs') parser.add_argument('--docker-registry', help='Specify docker registry to pull images from') parser.add_argument('--image-tag', help='Docker image tag') parser.add_argument('--sig', action='store_true', help='Generate a SIG per AS (only available with -d, the SIG image needs\ to be built manually e.g. when running acceptance tests)') parser.add_argument('-qos', '--colibri', action='store_true', help='Generate COLIBRI service') parser.add_argument('--features', help='Feature flags to enable, a comma separated list\ e.g. foo,bar enables foo and bar feature.') return parser def init_features(raw_args): features = getattr(raw_args, 'features') if features is None: features = '' feature_dict = {} for f in features.split(','): if f != '': feature_dict[f] = True setattr(raw_args, 'features', feature_dict) def main(): """ Main function. """ parser = argparse.ArgumentParser() add_arguments(parser) raw_args = parser.parse_args() init_features(raw_args) args = ConfigGenArgs(raw_args) confgen = ConfigGenerator(args) confgen.generate_all() if __name__ == "__main__": main()
34.542169
97
0.639693
9b9284a22817adf1f6328d794c6704b750eb8fb8
1,488
js
JavaScript
node_modules/mdi-material-ui/CellphoneSettingsVariant.js
Ashvith07/gwl-adventum-user
4603a15afd6562b6e1cf77512a201114b8f8a5ff
[ "MIT" ]
null
null
null
node_modules/mdi-material-ui/CellphoneSettingsVariant.js
Ashvith07/gwl-adventum-user
4603a15afd6562b6e1cf77512a201114b8f8a5ff
[ "MIT" ]
2
2021-05-11T05:44:20.000Z
2022-01-27T16:09:36.000Z
node_modules/mdi-material-ui/CellphoneSettingsVariant.js
Ashvith07/gwl-adventum-user
4603a15afd6562b6e1cf77512a201114b8f8a5ff
[ "MIT" ]
1
2020-07-20T20:50:01.000Z
2020-07-20T20:50:01.000Z
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _createIcon = require('./util/createIcon'); var _createIcon2 = _interopRequireDefault(_createIcon); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.default = (0, _createIcon2.default)(_react2.default.createElement( 'g', null, _react2.default.createElement('path', { d: 'M9.82,12.5C9.84,12.33 9.86,12.17 9.86,12C9.86,11.83 9.84,11.67 9.82,11.5L10.9,10.69C11,10.62 11,10.5 10.96,10.37L9.93,8.64C9.87,8.53 9.73,8.5 9.62,8.53L8.34,9.03C8.07,8.83 7.78,8.67 7.47,8.54L7.27,7.21C7.27,7.09 7.16,7 7.03,7H5C4.85,7 4.74,7.09 4.72,7.21L4.5,8.53C4.21,8.65 3.92,8.83 3.65,9L2.37,8.5C2.25,8.47 2.12,8.5 2.06,8.63L1.03,10.36C0.97,10.5 1,10.61 1.1,10.69L2.18,11.5C2.16,11.67 2.15,11.84 2.15,12C2.15,12.17 2.17,12.33 2.19,12.5L1.1,13.32C1,13.39 1,13.53 1.04,13.64L2.07,15.37C2.13,15.5 2.27,15.5 2.38,15.5L3.66,15C3.93,15.18 4.22,15.34 4.53,15.47L4.73,16.79C4.74,16.91 4.85,17 5,17H7.04C7.17,17 7.28,16.91 7.29,16.79L7.5,15.47C7.8,15.35 8.09,15.17 8.36,15L9.64,15.5C9.76,15.53 9.89,15.5 9.95,15.37L11,13.64C11.04,13.53 11,13.4 10.92,13.32L9.82,12.5M6,13.75C5,13.75 4.2,12.97 4.2,12C4.2,11.03 5,10.25 6,10.25C7,10.25 7.8,11.03 7.8,12C7.8,12.97 7,13.75 6,13.75M17,1H7C5.9,1 5,1.9 5,3V6H7V4H17V20H7V18H5V21C5,22.1 5.9,23 7,23H17C18.1,23 19,22.1 19,21V3C19,1.9 18.1,1 17,1Z' }) ));
70.857143
1,031
0.688172
7f9b6beae713d5a26c50ed017a2bf99dccc6f080
961
rs
Rust
src/libs/my_mod.rs
byteshiva/rust-kickstart
7594b048cb393d55e5ff3383358723992e8d3770
[ "Apache-2.0" ]
1
2020-02-17T06:19:29.000Z
2020-02-17T06:19:29.000Z
src/libs/my_mod.rs
byteshiva/rust-kickstart
7594b048cb393d55e5ff3383358723992e8d3770
[ "Apache-2.0" ]
9
2020-02-13T16:28:00.000Z
2020-02-22T11:23:07.000Z
src/libs/my_mod.rs
byteshiva/rust-kickstart
7594b048cb393d55e5ff3383358723992e8d3770
[ "Apache-2.0" ]
null
null
null
// A module named `libs` mod libs { // Items in modules default to private visibility. fn private_function() { println!("called `libs::private_function()`"); } // Use the `pub` modifier to override default visibility. pub fn function() { println!("called `libs::function()`"); } // Items can access other items in the same module, // even when private. pub fn indirect_access() { print!("called `libs::indirect_access()`, that\n> "); private_function(); } pub fn call_public_function_in_libs() { print!("called `libs::call_public_function_in_libs()`, that\n> "); nested::public_function_in_libs(); print!("> "); nested::public_function_in_super_mod(); } // pub(crate) makes functions visible only within the current crate pub(crate) fn public_function_in_crate() { println!("called `libs::public_function_in_crate()`"); } }
29.121212
74
0.623309
c35923cc64a3344815231d74b240442b20fe613d
2,048
dart
Dart
packages/smooth_app/lib/temp/product_preferences_selection.dart
PatcharaMoolmai/smooth-app
ece4d5b49b3d8046e444d53d16bb1ed0e5827614
[ "Apache-2.0" ]
null
null
null
packages/smooth_app/lib/temp/product_preferences_selection.dart
PatcharaMoolmai/smooth-app
ece4d5b49b3d8046e444d53d16bb1ed0e5827614
[ "Apache-2.0" ]
null
null
null
packages/smooth_app/lib/temp/product_preferences_selection.dart
PatcharaMoolmai/smooth-app
ece4d5b49b3d8046e444d53d16bb1ed0e5827614
[ "Apache-2.0" ]
null
null
null
/// Where the preferences regarding the importance of attributes are accessed /// /// You are free to use whatever solution to set and get /// the importance of an attribute, and to notify listeners after refresh. /// E.g. `SharedPreferences` and provider. /// Some simple app may even use simple fix solution. class ProductPreferencesSelection { ProductPreferencesSelection( this._setImportance, this._getImportance, this._notify, ); /// Sets the importance of an attribute, e.g. in a SharedPreferences. /// /// Ex: /// ```dart /// (String attributeId, String importanceIndex) async => /// await mySharedPreferences.setString(attributeId, importanceId) /// ``` /// For pre-determined fix settings, that can be more simple: /// ```dart /// (String attributeId, String importanceIndex) async {} /// ``` final Future<void> Function( String attributeId, String importanceId, ) _setImportance; Future<void> setImportance( final String attributeId, final String importanceId, ) => _setImportance(attributeId, importanceId); /// Gets the importance of an attribute, e.g. from a SharedPreferences. /// /// Ex: /// ```dart /// (String attributeId) => /// mySharedPreferences.getString(attributeId) /// ?? PreferenceImportance.ID_NOT_IMPORTANT /// ``` /// For pre-determined fix settings, that can be more simple: /// ```dart /// (String attributeId) => /// attributeId == AvailableAttributeGroups.ATTRIBUTE_VEGAN /// ? PreferenceImportance.ID_MANDATORY /// : PreferenceImportance.ID_NOT_IMPORTANT /// ``` final String Function(String attributeId) _getImportance; String getImportance(String attributeId) => _getImportance(attributeId); /// Notifies listeners about a refresh. /// /// Ex: /// ```dart /// () => myProvider.notifyListeners() /// ``` /// For pre-determined fix settings, that can be more simple: /// ```dart /// () {} /// ``` final void Function() _notify; void notify() => _notify(); }
29.681159
77
0.66748
e51f431931a19c48c55474416f25c5bd88cc035a
8,302
html
HTML
index.html
james-iorgovan/IT202-project3
167945d1c8c4e8741d76e4040e6a7afabb559973
[ "MIT" ]
null
null
null
index.html
james-iorgovan/IT202-project3
167945d1c8c4e8741d76e4040e6a7afabb559973
[ "MIT" ]
null
null
null
index.html
james-iorgovan/IT202-project3
167945d1c8c4e8741d76e4040e6a7afabb559973
[ "MIT" ]
null
null
null
<!DOCTYPE html> <html lang="en-us"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Don't Burn Out!</title> </head> <body style="margin:10px;"> <canvas id="canvas" style="background:#000;"></canvas> <script type="text/javascript"> var canvas = document.getElementById('canvas'), c = canvas.getContext('2d'); var innerWidth = 500, innerHeight = 700; canvas.width = innerWidth; canvas.height = innerHeight; var score = 0, lastTime = 0; var level = 1, lastTime = 0; var title = 'Nooblet', lastTime = 0; // Key event listeners var map = { 37: false, // Left arrow key 39: false, // Right arrow key } addEventListener('keydown', function(event) { if(event.keyCode in map) { map[event.keyCode] = true; if(map[37]) { player.x += -20; } else if(map[39]) { player.x += 20; } } }); addEventListener('keyup', function(event) { if(event.keyCode in map) { map[event.keyCode] = false; } }); // Player specs var player = {}, player_width = 50, player_height = 50, player_img = new Image(); player_img.src = './fire.jpg'; // Create player player = { width: player_width, height: player_height, x: innerWidth / 2 - player_width / 2, y: innerHeight - (player_height + 10), lives: 5, // player health/lives draw: function() { if(this.x <= 0) { this.x = 0; } else if(this.x >= (innerWidth - this.width)) { this.x = (innerWidth - this.width); } if(this.y <= 0) { this.y = 0; } else if(this.y >= (innerHeight - this.height)) { this.y = (innerHeight - this.height); } c.drawImage(player_img, this.x, this.y, this.width, this.height); } }; // Falling object specs var enemyArray = [], enemyIndex = 0, enemy_width = 20, enemy_height = 40, enemy_timer = 300, // enemy object spawn timer enemy_img = new Image(); enemy_img.src = './water.png'; // Enemy spawn function and score counter function create_enemy() { var x = Math.random() * (innerWidth + enemy_width); var y = -enemy_height; var dx = 2; // enemy speed var dy = 2; var rotation = Math.random(); new enemy(x, y, dx, dy, enemy_img, enemy_width, enemy_height, rotation); } // Create falling object function enemy(x, y, dx, dy, enemy_img, enemy_width, enemy_height, rotation) { this.x = x; this.y = y; this.dx = dx; this.dy = dy; this.img = enemy_img; this.width = enemy_width; this.height = enemy_height; this.rotation = rotation; enemyIndex++; score++; // Implement game leveling and title upgrades if(score === 50) { level = 2; title = "Amateur"; } else if(score === 100) { level = 3; title = "Beginner"; } else if(score === 200) { level = 4; title = "Novice"; } else if(score === 400) { level = 5; title = "Apprentice"; } else if(score === 800) { level = 6; title = "Beast"; } else if(score === 1600) { level = 7; title = "Legendary"; } else if(score === 2500) { level = 8; title = "Unstoppable"; } else if(score === 3500) { level = 9; title = "Godlike"; } else if(score === 5000) { level = 10; title = "Butterscotch"; } enemyArray[enemyIndex] = this; this.id = enemyIndex; // Release next falling object if(this.rotation < 0.2) { // make some enemy objects move diagonally this.dx = -this.dx; } else if(this.rotation > 0.7) { this.dx = -this.dx; } else { this.dx = 0; this.dy = this.dy; } this.update = function() { this.y += this.dy; this.x += this.dx; if(this.x + this.width >= innerWidth) { this.dx = -this.dx; } else if(this.x <= 0) { this.dx = Math.abs(this.dx); } if(this.y > innerHeight + this.height) { this.delete(); } this.draw(); } this.delete = function() { delete enemyArray[this.id]; } this.draw = function() { c.drawImage(this.img, this.x, this.y, this.width, this.height); } } // Bullet array var bulletsArray = [], bulletIndex = 0, bullet_width = 5, bullet_height = 20, speed = 10, bullet_last_time = 0, bullet_timer = 300; // Create bullets function bullet(x, y, width, height, speed){ this.x = x; this.y = y; this.width = width; this.height = height; this.speed = speed; bulletIndex++; bulletsArray[bulletIndex] = this; this.id = bulletIndex; this.update = function(){ this.y += -this.speed; if(this.y < -this.height){ delete this.delete(); } this.draw(); } this.delete = function(){ delete bulletsArray[this.id]; } this.draw = function(){ c.beginPath(); c.rect(this.x, this.y, this.width, this.height); c.fillStyle = '#efab00'; c.fill(); c.stroke(); } } // Fire bullets function fire(){ var x = (player.x + player.width / 2) - bullet_width / 2; var y = player.y; new bullet(x, y, bullet_width, bullet_height, speed); } // Collision formula math function collisionFunction(a, b) { return a.x < b.x + b.width && a.x + a.width > b.x && a.y < b.y + b.height && a.y + a.height > b.y; } // Detect when object hits player or player shoots object function collisionDetection() { bulletsArray.forEach(function(bullet){ enemyArray.forEach(function(enemy){ if(collisionFunction(bullet, enemy)){ bullet.delete(); enemy.delete(); score += 2; } }); }); enemyArray.forEach(function(enemy) { if(collisionFunction(player, enemy)) { player.lives += -1; enemy.delete(); } }); } // Animate loop function animate(currentTime) { var animation = requestAnimationFrame(animate); c.clearRect(0, 0, canvas.width, canvas.height); // Score c.font = '18px arial'; c.fillStyle = '#faff00'; c.fillText('SCORE: ' + score, 215, 22); // Level c.font = '18px arial'; c.fillStyle = '#00f2ff'; c.fillText('LEVEL: ' + level, 120, 22); // Lives c.font = '18px arial'; c.fillStyle = '#08ff00'; c.fillText('HEALTH: ' + player.lives, 10, 22); // Title c.font = '18px arial'; c.fillStyle = '#ff0000'; c.fillText('TITLE: ' + title, 335, 22); // Player player.draw(); // Create enemy loop if(currentTime >= lastTime + enemy_timer) { lastTime = currentTime; create_enemy(); } // Update for new enemy position enemyArray.forEach(function(enemy) { enemy.update(); }); // Fire bullets if(currentTime >= bullet_last_time + bullet_timer){ bullet_last_time = currentTime; fire(); } // Update bullet location bulletsArray.forEach(function(bullet){ bullet.update(); }); collisionDetection(); // If player reaches 0 lives if(player.lives <= 0) { cancelAnimationFrame(animation); alert("GAME OVER! YOU BURNT OUT! Hit OK to play again"); document.location.reload(); } } // Functions for button movements function moveleft() { player.x -= 20; } function moveright() { player.x += 20; } function keypress(e) { if (e.keydown == 80) pauseGame(); } function pauseGame() { game = clearTimeout(game); } function pauseGame() { if (!gamePaused) { game = clearTimeout(game); gamePaused = true; } else if (gamePaused) { game = setTimeout(gameLoop, 1000 / 30); gamePaused = false; } } animate(); </script> <button onclick="moveleft()">LEFT</button> <button onclick="moveright()">RIGHT</button> </body> </html>
24.063768
104
0.537702
8a8d37c34c73bb54cbbad24d65f2f7567c9ae8fe
1,066
sql
SQL
Data definition and datatypes/15.Create SoftUni Database.sql
yani-valeva/Databases-Basics-MySQL
7eb694a64361aef1355771d82d93798412c11c4d
[ "MIT" ]
null
null
null
Data definition and datatypes/15.Create SoftUni Database.sql
yani-valeva/Databases-Basics-MySQL
7eb694a64361aef1355771d82d93798412c11c4d
[ "MIT" ]
null
null
null
Data definition and datatypes/15.Create SoftUni Database.sql
yani-valeva/Databases-Basics-MySQL
7eb694a64361aef1355771d82d93798412c11c4d
[ "MIT" ]
null
null
null
CREATE DATABASE softuni; USE softuni; CREATE TABLE towns ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(20), CONSTRAINT pk_towns PRIMARY KEY (id) ); CREATE TABLE addresses ( id INT NOT NULL AUTO_INCREMENT, address_text TEXT, town_id INT, CONSTRAINT pk_addresses PRIMARY KEY (id), CONSTRAINT fk_addresses_towns FOREIGN KEY (town_id) REFERENCES towns (id) ); CREATE TABLE departments ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(50), CONSTRAINT pk_departments PRIMARY KEY (id) ); CREATE TABLE employees ( id INT NOT NULL AUTO_INCREMENT, first_name VARCHAR(20) NOT NULL, middle_name VARCHAR(20), last_name VARCHAR(20) NOT NULL, job_title VARCHAR(50), department_id INT, hire_date DATE, salary DECIMAL(10,2), address_id INT, CONSTRAINT pk_employees PRIMARY KEY (id), CONSTRAINT fk_employees_departments FOREIGN KEY (department_id) REFERENCES departments (id), CONSTRAINT fk_employees_addresses FOREIGN KEY (address_id) REFERENCES addresses (id) );
26
67
0.713884
d6f3ccea64280ace61d806aab4bd0480243c0dbc
1,131
kt
Kotlin
poc-multiple-nav-hosts/src/main/java/com/adamkobus/compose/navigation/poc/multinavhost/PocApplication.kt
AdamKobus/compose-navigation
161406ba5c0d5b9f7428d387dd3e08f4fccdea79
[ "MIT" ]
4
2022-02-03T21:49:14.000Z
2022-03-02T23:23:31.000Z
poc-multiple-nav-hosts/src/main/java/com/adamkobus/compose/navigation/poc/multinavhost/PocApplication.kt
AdamKobus/compose-navigation
161406ba5c0d5b9f7428d387dd3e08f4fccdea79
[ "MIT" ]
100
2022-02-01T23:52:53.000Z
2022-03-12T13:27:39.000Z
poc-multiple-nav-hosts/src/main/java/com/adamkobus/compose/navigation/poc/multinavhost/PocApplication.kt
AdamKobus/compose-navigation
161406ba5c0d5b9f7428d387dd3e08f4fccdea79
[ "MIT" ]
null
null
null
package com.adamkobus.compose.navigation.poc.multinavhost import android.app.Application import android.util.Log import com.adamkobus.compose.navigation.ComposeNavigation import com.adamkobus.compose.navigation.NavActionVerifier import com.adamkobus.compose.navigation.VerifyResult import com.adamkobus.compose.navigation.action.NavAction import com.adamkobus.compose.navigation.destination.GlobalGraph import com.adamkobus.compose.navigation.destination.NavState import dagger.hilt.android.HiltAndroidApp @HiltAndroidApp class PocApplication : Application() { override fun onCreate() { super.onCreate() ComposeNavigation.setLogLevel(Log.VERBOSE) .addNavActionVerifiers(PocNavActionVerifier) } } private object PocNavActionVerifier : NavActionVerifier { override fun isNavActionAllowed(navState: NavState, action: NavAction): VerifyResult { if (action.fromDestination.graph == GlobalGraph) return VerifyResult.Allow return if (navState.isCurrent(action.fromDestination)) { VerifyResult.Allow } else { VerifyResult.Discard } } }
35.34375
90
0.770999
865843bfc455100e0ab0718a683a1b40872de0c7
360
go
Go
core/DatabaseManagement/DTOTable/Sys_Process_State.go
sRafieidev/zframe
cc5c4c1729fd1e97cae4de0c8b8a820faedba8e0
[ "Apache-2.0" ]
1
2022-02-22T11:05:43.000Z
2022-02-22T11:05:43.000Z
core/DatabaseManagement/DTOTable/Sys_Process_State.go
sRafieidev/zframe
cc5c4c1729fd1e97cae4de0c8b8a820faedba8e0
[ "Apache-2.0" ]
null
null
null
core/DatabaseManagement/DTOTable/Sys_Process_State.go
sRafieidev/zframe
cc5c4c1729fd1e97cae4de0c8b8a820faedba8e0
[ "Apache-2.0" ]
null
null
null
package DTOTable type Sys_Process_State struct { SYS_PROCESS_STATE_ID int32 SYS_PROCESS_ID int32 SYS_OBJECT_ID int32 STATENAME string STATEINDEX int32 DESCRIPTION string LIMITDAY int32 ACTIVE bool GRIDSOURCEQUERYINTHISSTATE string }
25.714286
34
0.572222
7b8dc178e70311b93b0f0ad45151790fab4c3943
223
rb
Ruby
db/migrate/20200210092306_add_unique_index_to_email_submissions.rb
uk-gov-mirror/ministryofjustice.c100-application
d23bfa8ffb73e4db098956cded850d03100e4e75
[ "MIT" ]
1
2020-03-04T14:24:04.000Z
2020-03-04T14:24:04.000Z
db/migrate/20200210092306_add_unique_index_to_email_submissions.rb
uk-gov-mirror/ministryofjustice.c100-application
d23bfa8ffb73e4db098956cded850d03100e4e75
[ "MIT" ]
101
2017-10-12T16:09:20.000Z
2022-03-22T10:15:10.000Z
db/migrate/20200210092306_add_unique_index_to_email_submissions.rb
uk-gov-mirror/ministryofjustice.c100-application
d23bfa8ffb73e4db098956cded850d03100e4e75
[ "MIT" ]
6
2017-11-08T10:47:49.000Z
2021-12-08T12:02:23.000Z
class AddUniqueIndexToEmailSubmissions < ActiveRecord::Migration[5.2] def change remove_index :email_submissions, :c100_application_id add_index :email_submissions, :c100_application_id, unique: true end end
31.857143
71
0.798206
e149710bafb966372c763a3564231c0098d9ed17
232
swift
Swift
GTProgressBar/Classes/GTProgressBarLabelPosition.swift
udayabhishek/GTProgrssBar
47cea855ac3222a348303ed3fafbf52e3de3b49c
[ "MIT" ]
248
2016-10-02T12:09:23.000Z
2022-03-21T06:23:12.000Z
GTProgressBar/Classes/GTProgressBarLabelPosition.swift
udayabhishek/GTProgrssBar
47cea855ac3222a348303ed3fafbf52e3de3b49c
[ "MIT" ]
33
2016-10-27T08:10:30.000Z
2021-06-04T18:11:06.000Z
GTProgressBar/Classes/GTProgressBarLabelPosition.swift
udayabhishek/GTProgrssBar
47cea855ac3222a348303ed3fafbf52e3de3b49c
[ "MIT" ]
44
2016-10-26T08:46:30.000Z
2021-06-14T11:19:31.000Z
// // GTProgressBarLabelPosition.swift // Pods // // Created by Grzegorz Tatarzyn on 15/04/2017. // // import Foundation public enum GTProgressBarLabelPosition: Int { case left case right case top case bottom }
13.647059
47
0.685345
2f041ceecb6fa78f858adb0cb43308cfa41c5d39
62
html
HTML
src/org/lockss/servlet/package.html
rondinelisaad/lockss-daemon
563a3bcd106908b0967f510ee4cf88525a48651a
[ "BSD-3-Clause" ]
51
2015-09-02T22:50:09.000Z
2022-03-14T23:53:58.000Z
src/org/lockss/servlet/package.html
rondinelisaad/lockss-daemon
563a3bcd106908b0967f510ee4cf88525a48651a
[ "BSD-3-Clause" ]
5
2016-03-22T06:10:02.000Z
2020-09-24T17:18:47.000Z
src/main/java/org/lockss/servlet/package.html
lockss/lockss-core
defe3cb2319eb3dd00f89f2d85e7b9a322dc5632
[ "BSD-3-Clause" ]
13
2016-01-28T16:40:22.000Z
2022-03-03T20:04:22.000Z
<html> <body> LOCKSS user interface servlets. </body> </html>
10.333333
31
0.693548
fc7e11c4c3c262ff46e5b61c1c70eb4ad305ffb6
334
css
CSS
client/src/style/global.css
sp3c73r2038/elasticsearch-comrade
ed0c94e071d2fe701a14429981390b9a89df79a7
[ "MIT" ]
256
2019-09-09T10:09:34.000Z
2022-03-28T04:15:21.000Z
client/src/style/global.css
sp3c73r2038/elasticsearch-comrade
ed0c94e071d2fe701a14429981390b9a89df79a7
[ "MIT" ]
503
2019-07-31T17:01:12.000Z
2022-03-28T13:19:26.000Z
client/src/style/global.css
nmeisels/elasticsearch-comrade
57dc600e5ffd7f9d4c055b584124bef9365e538c
[ "MIT" ]
25
2019-08-30T13:04:31.000Z
2022-03-09T09:50:32.000Z
.v-input--selection-controls { margin: 0; padding: 0; } body { font-size: 14px; } .theme--light.v-application { background-color: var(--v-bg-color-base); } .theme--dark.v-application { background-color: var(--v-bg-color-base); } .v-list--dense .v-list-item { min-height: 20px; } .v-menu--inline { display: unset; }
14.521739
43
0.634731
6b50bd75ca63a50064799a7b08a490449d112148
387
h
C
BallLabelDemo/BallLabelDemo/BallLabelDemo/DemoView/BallPoint.h
jlideasoft/WheelButton
fd2b9105d1955ea627b8c675047f8bc221d3a970
[ "MIT" ]
12
2016-03-23T08:45:40.000Z
2018-05-08T04:52:42.000Z
BallLabelDemo/BallLabelDemo/BallLabelDemo/DemoView/BallPoint.h
jlideasoft/WheelButton
fd2b9105d1955ea627b8c675047f8bc221d3a970
[ "MIT" ]
null
null
null
BallLabelDemo/BallLabelDemo/BallLabelDemo/DemoView/BallPoint.h
jlideasoft/WheelButton
fd2b9105d1955ea627b8c675047f8bc221d3a970
[ "MIT" ]
null
null
null
// // BallPoint.h // BallLabelDemo // // Created by Win10 on 2018/5/7. // Copyright © 2018年 Win10. All rights reserved. // #import <UIKit/UIKit.h> @interface BallPoint : NSObject @property (nonatomic,assign) CGFloat theta; @property (nonatomic,assign) CGFloat phi; @property (nonatomic,assign) CGFloat r; - (instancetype)initWithphi:(CGFloat)p theta:(CGFloat)t r:(CGFloat)r; @end
21.5
69
0.72093
3c10a7ad1ffb9e6764cc0ddde57d38f4b4d62716
11,090
lua
Lua
elepower_tome/i_functions.lua
sirrobzeroone/elepower
5d14083f2c20d939be2e5ff3219fb677178e1768
[ "MIT" ]
4
2021-06-12T23:47:42.000Z
2022-01-05T20:14:37.000Z
elepower_tome/i_functions.lua
sirrobzeroone/elepower
5d14083f2c20d939be2e5ff3219fb677178e1768
[ "MIT" ]
5
2021-06-28T06:33:53.000Z
2022-01-29T03:54:12.000Z
elepower_tome/i_functions.lua
sirrobzeroone/elepower
5d14083f2c20d939be2e5ff3219fb677178e1768
[ "MIT" ]
null
null
null
--------------------------------------------------- -- ___ _ -- -- | __| |___ _ __ _____ __ _____ _ _ -- -- | _|| / -_) '_ \/ _ \ V V / -_) '_| -- -- |___|_\___| .__/\___/\_/\_/\___|_| -- -- |_| -- -- _____ -- -- |_ _|__ _ __ ___ -- -- | |/ _ \ ' \/ -_) -- -- |_|\___/_|_|_\___| -- --------------------------------------------------- -- Functions -- --------------------------------------------------- ---------------------------------- -- Determine if a text string -- -- is for an image or not -- ---------------------------------- function eletome.is_image(text) local value = false if type(text) == "string" then if string.find(text,".png") then value = true end end return value end ----------------------------------------------------------- -- The below gets all the nodes in a group, additionally -- -- it filters out any "_active" versions of the node and -- -- removes any numerical versions of the node > 0 -- -- additionally it removes any node that is not a -- -- standalone machine as a single node -- -- two returns mach_key and mach_sort -- ----------------------------------------------------------- function eletome.get_nodes_in_group(group_name) local mach_key = {} local mach_sort = {} for name, def in pairs(minetest.registered_nodes) do if def.groups[group_name] then -- have to remove registered nodes with same name but -- different number versions eg powercells, also remove -- "active" versions if not string.find(name, "active") and (tonumber(string.sub(name, -1))or 0) == 0 then -- this line creates a slight issue were it will remove other legitimate nodes that end in a number - org code tonumber((string.match(name,"%d+"))or 0) local description = def.description if string.find(description,"\n") then description = string.match(description,"(.+)\n") end if group_name == "ele_user" and not def.groups["ele_storage"] then -- Simple one node machines are found in machine and farming mods, remove pump - complex. if name ~= "elepower_machines:pump" and string.find(name,"machines:") or string.find(name,"farming:") then table.insert(mach_sort,description) mach_key[description] = name end else table.insert(mach_sort,description) mach_key[description] = name end end end end return mach_key, mach_sort end ----------------------------------------------------- -- table sorting function which will sort nodes by -- -- any field avaliable on node registration -- -- Output is mach_sort and mach_key -- ----------------------------------------------------- function eletome.sort_by(sort_by,mach_sort,mach_key) local key = {} local sort = {} local unique = 1 -- create new key table using sort_by with -- field to sort_by and node.description for des,name in pairs(mach_key)do local node_value = minetest.registered_nodes[name][sort_by] if type(node_value) == "string" then node_value = node_value..unique elseif type(node_value) == "number" then node_value = node_value + unique end table.insert(sort,node_value) key[node_value] = des unique = unique+1 end -- standard table sort table.sort(sort) -- rebuild mach_sort mach_sort = {} for k,v in pairs(sort) do mach_sort[k] = key[v] end return mach_sort,mach_key end -------------------------------------------------------------- -- Returns content of page, content of page + bwd_fwd nav -- -- or content of specific page num with bwd/fwd nav buttons -- -------------------------------------------------------------- -- Assumed Input Formats ---- page_ref = string - name of main page/how main page identified ---- itemlist = structured table of values pre-formated in formspec format ---- this includes correct x/y positions for pgs 2/3 etc ---- itemlist = {"formspec for item_1","formspec for item_2", etc} ---- max_items_pp = How many items from itemlist to put on each page ---- page_num = Int of the page number user going too ---- button_name = This is the buttons "field" name eg "mach_bwd_fwd" ---- used in on_recieve to identify what formspec to return function eletome.p_nav_bwd_fwd(page_ref,item_list,max_items_pp,page_num,button_name) local recipe_pg = "" local num_recipe = #item_list local i = 1 if page_num > 1 then -- Check if we need another fwd button if page_num*max_items_pp < num_recipe then recipe_pg = recipe_pg .."button[15,0;2.5,0.5;"..button_name..";Page "..(page_num + 1).." >>]" end -- Always need back button recipe_pg = recipe_pg .."button[12.5,0;2.5,0.5;"..button_name..";<< "..(page_num - 1).." Page]" elseif num_recipe > max_items_pp then recipe_pg = recipe_pg .."button[15,0;2.5,0.5;"..button_name..";Page "..(page_num + 1).." >>]" end -- Pass page reference value to player recieve fields when fwd/bwd pressed - not visible on formspec recipe_pg = recipe_pg .."field[10,12;1,0.5;description;;"..page_ref.."]" -- used to add a num/offset so we get correct recipes on pg 1/2/etc local pg_offset = (page_num-1)*max_items_pp i = i+pg_offset -- Create the final output while i <= (max_items_pp + pg_offset) and i <= num_recipe do recipe_pg = recipe_pg ..item_list[i] i=i+1 end return recipe_pg end -------------------------------------------------------------------------------- -- Returns a table of items which make up the craft recipe for the registered -- -- node in elepower note max grid recipe is 3x1 output assigned to keys 4/5/6 -- -- Structured as: -- -- recipe_output = {items = {[4] = "item 1", [5] = "item 2", [6] = "item 3"}, -- -- num = {[4 = 2 , [5] = 1 , [6] = 6 }, -- -- craft_name = "elepower craft name" eg can, -- -- craft_des = "elepower craft description" eg canning } -- -------------------------------------------------------------------------------- function eletome.get_craft_recipe(reg_node_name) local recipe_output = {} recipe_output.items = {} recipe_output.num = {} local all_crafts = table.copy(elepm.craft.types) for craft_name,craft_def in pairs(all_crafts) do for k,reg_craft_def in pairs(elepm.craft[craft_name]) do local itemstring = reg_craft_def.output local stack = ItemStack(itemstring) stack = stack:to_table() if stack then if stack.name == reg_node_name then -- get inputs for craft local craft_in = craft_def.inputs local pos = {4,5,6} if craft_in == 1 then pos = {5} elseif craft_in == 2 then pos = {5,6} end recipe_output.craft_name = craft_name recipe_output.craft_des = craft_def.description for item_pos,item in pairs(reg_craft_def.recipe) do for name,num in pairs(item) do recipe_output.items[pos[item_pos]] = name recipe_output.num[pos[item_pos]] = num end end end else -- some not in stack format (saw - catch later) end end end return recipe_output end ------------------------------------------------------------------ -- Generates the visual craft output grid recipe for the node -- -- nominally this is either a 3x3 grid (std MT Recipe or a -- -- 1x3,1x2,1x1 grid for elepower craft recipes. -- -- Takes into account customisation from additional info -- -- Input list of items for node recipe as a numeric key table -- -- keys 1-9 - note keys can be missing but can't exceed 9 -- -- basically accepts output from "eletome.get_craft_recipe" -- -- Outputs: -- -- formspec formated grid of ingredients -- -- Current y offset - y_off -- ------------------------------------------------------------------ function eletome.gen_craft_grid(recipe,y_off,no_items) local x_cnt = 1 local x_off = 0 local dis_recipe = "" local sty_h3s = eletome.common_styles.style_h3s local sty_h3e = eletome.common_styles.style_h3e while x_cnt <= 9 do -- catch for node with un-handled/non-exsitant recipe if no_items == 1 then -- output nothing as no recipe -- recipe item or image output elseif recipe.items[x_cnt] then -- handle when recipe includes groups if string.find(recipe.items[x_cnt],"group") then local grp_name = string.gsub(recipe.items[x_cnt],"group:","") local node_name for name,def in pairs(minetest.registered_nodes) do if def.groups[grp_name] and not def.groups["wall"] then node_name = name break end end dis_recipe = dis_recipe.."item_image_button["..(12+x_off)..","..(1+y_off)..";0.75,0.75;"..node_name..";"..node_name..";G]".. "tooltip["..node_name..";"..recipe.items[x_cnt]..";"..eletome.tooltip_color.."]" -- handle a custom png image elseif string.find(recipe.items[x_cnt],".png") then dis_recipe = dis_recipe.."image["..(12+x_off)..","..(1+y_off)..";0.75,0.75;"..recipe.items[x_cnt].."]" dis_recipe = dis_recipe.."tooltip["..(12+x_off)..","..(1+y_off)..";0.75,0.75;"..recipe.craft_des..";"..eletome.tooltip_color.."]" else dis_recipe = dis_recipe.."item_image_button["..(12+x_off)..","..(1+y_off)..";0.75,0.75;"..recipe.items[x_cnt]..";"..recipe.items[x_cnt]..";]" end -- Special case to insert elepower craft name in grid pos[1] or -- Custom additional info "craft name" eg "Right Click" elseif recipe.craft_name and x_cnt == 1 then -- only provide a link if a elepower craft name if elepm.craft[recipe.craft_name] then dis_recipe = dis_recipe.."hypertext["..(11.5+x_off)..","..(1.2+y_off).. ";2.5,1;craft_click;"..sty_h3s.."<action name="..recipe.craft_des..">"..recipe.craft_des.."</action>"..sty_h3e.."]" else dis_recipe = dis_recipe.."hypertext["..(11.5+x_off)..","..(1.2+y_off).. ";2.5,1;craft_click;"..sty_h3s..recipe.craft_des..sty_h3e.."]" end -- Custom craft but no ingredient/need for craft slot elseif recipe.craft_name then -- output nothing as no slot on custom craft -- Normal MT craft output empty craft slot. else dis_recipe = dis_recipe.."image["..(12+x_off)..","..(1+y_off)..";0.75,0.75;elepower_tome_bgimg_2.png]" end -- counters and offsets if x_cnt == 3 or x_cnt == 6 then x_off = 0 y_off = y_off + 0.8 else x_off = x_off + 0.8 end x_cnt = x_cnt+1 end return dis_recipe, y_off end
37.466216
240
0.560054
859f86ba4deb22283ae8b141a7495975910521c2
2,117
js
JavaScript
src/commands/fun/trump.js
VyrekXD/gidget
1681d3bf65dd27b6d6e3b47199b4a8e070a927f1
[ "Apache-2.0" ]
1
2021-03-17T19:58:38.000Z
2021-03-17T19:58:38.000Z
src/commands/fun/trump.js
VyrekXD/gidget
1681d3bf65dd27b6d6e3b47199b4a8e070a927f1
[ "Apache-2.0" ]
null
null
null
src/commands/fun/trump.js
VyrekXD/gidget
1681d3bf65dd27b6d6e3b47199b4a8e070a927f1
[ "Apache-2.0" ]
null
null
null
import path from 'path'; import commons from '../../utils/commons.js'; const { __dirname } = commons(import.meta.url); import { MessageAttachment } from 'discord.js'; import Jimp from 'jimp'; let font; let meme; export default class extends Command { constructor(options) { super(options); this.description = 'An image of Trump where he grabs a book with your text.'; this.permissions = { user: [0, 0], bot: [0, 32768] } } async run(bot, message, args) { if (!args[1]) return message.channel.send("Put something..."); message.channel.startTyping(); if(!font) font = await Jimp.loadFont(Jimp.FONT_SANS_32_BLACK); if(!meme) meme = await Jimp.read(path.join(__dirname, "../../assets/TrumpApi.png")); const realtext = getWellText(args.slice(1).join(" "), 14, 88); meme.rotate(7); meme.print(font, 670, 320, realtext, 260); meme.rotate(-7, false); meme.autocrop(); const render = await meme.getBufferAsync(Jimp.MIME_PNG); const attachment = new MessageAttachment(render, "trump.png"); await message.channel.send(attachment); message.channel.stopTyping(); } } /** * Obtener un texto con los saltos de linea correctos cuando una sóla palabra excede el límite especificado. * * @param {string} text - El texto a revisar. * @param {number} maxWordLength - Longitud que debe tener la palabra antes de dividirla y hacer salto de linea. * @param {Number} maxTextLength - Si el texto resultante es mayor a esta longuitud, detener el bucle. * @returns {String} El texto a imprimir */ function getWellText(text, maxWordLength, maxTextLength = Infinity) { let realtext = "", post_text = ""; for (let i = 0; i < text.length; i++) { if (realtext.length > maxTextLength) break; post_text += text[i]; if (text[i] === " ") { post_text = " "; realtext += text[i]; continue; } if (post_text.length > maxWordLength) { realtext += " " + text[i]; post_text = " "; } else { realtext += text[i]; } } return realtext; }
35.283333
113
0.631554
39d8a3817344a6664b5af312d22a6ac403fd89a0
254,520
js
JavaScript
server/public/static/js/chunk-361b1b6d.3df8d46b.js
Gxuebin/quark-h5-201910chuban
548288c6c4a50a7998fe3501b696afabc3bfb9af
[ "Apache-2.0" ]
2
2021-06-01T07:17:12.000Z
2021-06-07T04:42:18.000Z
server/public/static/js/chunk-361b1b6d.3df8d46b.js
lgb020/quark-h5
277f551cd9cdfc9ab54b3d4e080f649b0d01a7d8
[ "Apache-2.0" ]
null
null
null
server/public/static/js/chunk-361b1b6d.3df8d46b.js
lgb020/quark-h5
277f551cd9cdfc9ab54b3d4e080f649b0d01a7d8
[ "Apache-2.0" ]
2
2021-07-20T10:15:23.000Z
2021-07-20T15:25:42.000Z
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-361b1b6d"],{"018b":function(A,e,t){},"0580":function(A,e,t){},"0596":function(A,e,t){},"05a6":function(A,e,t){},1173:function(A,e){A.exports=function(A,e,t,n){if(!(A instanceof e)||void 0!==n&&n in A)throw TypeError(t+": incorrect invocation!");return A}},1367:function(A,e,t){},"16b2":function(A,e,t){"use strict";var n=t("a2b9"),r=t.n(n);r.a},"24c5":function(A,e,t){"use strict";var n,r,i,a,o=t("b8e3"),s=t("e53d"),c=t("d864"),l=t("40c3"),B=t("63b6"),u=t("f772"),d=t("79aa"),Q=t("1173"),p=t("a22a"),w=t("f201"),h=t("4178").set,g=t("aba2")(),f=t("656e"),C=t("4439"),U=t("bc13"),E=t("cd78"),m="Promise",F=s.TypeError,v=s.process,b=v&&v.versions,H=b&&b.v8||"",N=s[m],y="process"==l(v),K=function(){},I=r=f.f,O=!!function(){try{var A=N.resolve(1),e=(A.constructor={})[t("5168")("species")]=function(A){A(K,K)};return(y||"function"==typeof PromiseRejectionEvent)&&A.then(K)instanceof e&&0!==H.indexOf("6.6")&&-1===U.indexOf("Chrome/66")}catch(n){}}(),T=function(A){var e;return!(!u(A)||"function"!=typeof(e=A.then))&&e},S=function(A,e){if(!A._n){A._n=!0;var t=A._c;g((function(){var n=A._v,r=1==A._s,i=0,a=function(e){var t,i,a,o=r?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{o?(r||(2==A._h&&R(A),A._h=1),!0===o?t=n:(l&&l.enter(),t=o(n),l&&(l.exit(),a=!0)),t===e.promise?c(F("Promise-chain cycle")):(i=T(t))?i.call(t,s,c):s(t)):c(n)}catch(B){l&&!a&&l.exit(),c(B)}};while(t.length>i)a(t[i++]);A._c=[],A._n=!1,e&&!A._h&&_(A)}))}},_=function(A){h.call(s,(function(){var e,t,n,r=A._v,i=D(A);if(i&&(e=C((function(){y?v.emit("unhandledRejection",r,A):(t=s.onunhandledrejection)?t({promise:A,reason:r}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",r)})),A._h=y||D(A)?2:1),A._a=void 0,i&&e.e)throw e.v}))},D=function(A){return 1!==A._h&&0===(A._a||A._c).length},R=function(A){h.call(s,(function(){var e;y?v.emit("rejectionHandled",A):(e=s.onrejectionhandled)&&e({promise:A,reason:A._v})}))},L=function(A){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=A,e._s=2,e._a||(e._a=e._c.slice()),S(e,!0))},x=function(A){var e,t=this;if(!t._d){t._d=!0,t=t._w||t;try{if(t===A)throw F("Promise can't be resolved itself");(e=T(A))?g((function(){var n={_w:t,_d:!1};try{e.call(A,c(x,n,1),c(L,n,1))}catch(r){L.call(n,r)}})):(t._v=A,t._s=1,S(t,!1))}catch(n){L.call({_w:t,_d:!1},n)}}};O||(N=function(A){Q(this,N,m,"_h"),d(A),n.call(this);try{A(c(x,this,1),c(L,this,1))}catch(e){L.call(this,e)}},n=function(A){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=t("5c95")(N.prototype,{then:function(A,e){var t=I(w(this,N));return t.ok="function"!=typeof A||A,t.fail="function"==typeof e&&e,t.domain=y?v.domain:void 0,this._c.push(t),this._a&&this._a.push(t),this._s&&S(this,!1),t.promise},catch:function(A){return this.then(void 0,A)}}),i=function(){var A=new n;this.promise=A,this.resolve=c(x,A,1),this.reject=c(L,A,1)},f.f=I=function(A){return A===N||A===a?new i(A):r(A)}),B(B.G+B.W+B.F*!O,{Promise:N}),t("45f2")(N,m),t("4c95")(m),a=t("584a")[m],B(B.S+B.F*!O,m,{reject:function(A){var e=I(this),t=e.reject;return t(A),e.promise}}),B(B.S+B.F*(o||!O),m,{resolve:function(A){return E(o&&this===a?N:this,A)}}),B(B.S+B.F*!(O&&t("4ee1")((function(A){N.all(A)["catch"](K)}))),m,{all:function(A){var e=this,t=I(e),n=t.resolve,r=t.reject,i=C((function(){var t=[],i=0,a=1;p(A,!1,(function(A){var o=i++,s=!1;t.push(void 0),a++,e.resolve(A).then((function(A){s||(s=!0,t[o]=A,--a||n(t))}),r)})),--a||n(t)}));return i.e&&r(i.v),t.promise},race:function(A){var e=this,t=I(e),n=t.reject,r=C((function(){p(A,!1,(function(A){e.resolve(A).then(t.resolve,n)}))}));return r.e&&n(r.v),t.promise}})},2507:function(A,e,t){"use strict";var n=t("e6bf"),r=t.n(n);r.a},"2b26":function(A,e,t){},"2fdb":function(A,e,t){"use strict";var n=t("5ca1"),r=t("d2c8"),i="includes";n(n.P+n.F*t("5147")(i),"String",{includes:function(A){return!!~r(this,A,i).indexOf(A,arguments.length>1?arguments[1]:void 0)}})},3024:function(A,e){A.exports=function(A,e,t){var n=void 0===t;switch(e.length){case 0:return n?A():A.call(t);case 1:return n?A(e[0]):A.call(t,e[0]);case 2:return n?A(e[0],e[1]):A.call(t,e[0],e[1]);case 3:return n?A(e[0],e[1],e[2]):A.call(t,e[0],e[1],e[2]);case 4:return n?A(e[0],e[1],e[2],e[3]):A.call(t,e[0],e[1],e[2],e[3])}return A.apply(t,e)}},"38a7":function(A,e,t){"use strict";var n=t("644d"),r=t.n(n);r.a},"3c11":function(A,e,t){"use strict";var n=t("63b6"),r=t("584a"),i=t("e53d"),a=t("f201"),o=t("cd78");n(n.P+n.R,"Promise",{finally:function(A){var e=a(this,r.Promise||i.Promise),t="function"==typeof A;return this.then(t?function(t){return o(e,A()).then((function(){return t}))}:A,t?function(t){return o(e,A()).then((function(){throw t}))}:A)}})},"3eba":function(A,e,t){},4052:function(A,e,t){},4178:function(A,e,t){var n,r,i,a=t("d864"),o=t("3024"),s=t("32fc"),c=t("1ec9"),l=t("e53d"),B=l.process,u=l.setImmediate,d=l.clearImmediate,Q=l.MessageChannel,p=l.Dispatch,w=0,h={},g="onreadystatechange",f=function(){var A=+this;if(h.hasOwnProperty(A)){var e=h[A];delete h[A],e()}},C=function(A){f.call(A.data)};u&&d||(u=function(A){var e=[],t=1;while(arguments.length>t)e.push(arguments[t++]);return h[++w]=function(){o("function"==typeof A?A:Function(A),e)},n(w),w},d=function(A){delete h[A]},"process"==t("6b4c")(B)?n=function(A){B.nextTick(a(f,A,1))}:p&&p.now?n=function(A){p.now(a(f,A,1))}:Q?(r=new Q,i=r.port2,r.port1.onmessage=C,n=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(A){l.postMessage(A+"","*")},l.addEventListener("message",C,!1)):n=g in c("script")?function(A){s.appendChild(c("script"))[g]=function(){s.removeChild(this),f.call(A)}}:function(A){setTimeout(a(f,A,1),0)}),A.exports={set:u,clear:d}},"43fc":function(A,e,t){"use strict";var n=t("63b6"),r=t("656e"),i=t("4439");n(n.S,"Promise",{try:function(A){var e=r.f(this),t=i(A);return(t.e?e.reject:e.resolve)(t.v),e.promise}})},4439:function(A,e){A.exports=function(A){try{return{e:!1,v:A()}}catch(e){return{e:!0,v:e}}}},"4c95":function(A,e,t){"use strict";var n=t("e53d"),r=t("584a"),i=t("d9f6"),a=t("8e60"),o=t("5168")("species");A.exports=function(A){var e="function"==typeof r[A]?r[A]:n[A];a&&e&&!e[o]&&i.f(e,o,{configurable:!0,get:function(){return this}})}},5147:function(A,e,t){var n=t("2b4c")("match");A.exports=function(A){var e=/./;try{"/./"[A](e)}catch(t){try{return e[n]=!1,!"/./"[A](e)}catch(r){}}return!0}},"51dc":function(A,e,t){"use strict";var n=t("cb45"),r=t.n(n);r.a},"51eb":function(A,e,t){"use strict";var n=t("1367"),r=t.n(n);r.a},5744:function(A,e,t){"use strict";var n=t("b02a"),r=t.n(n);r.a},"576a":function(A,e,t){"use strict";var n=t("4052"),r=t.n(n);r.a},"5c95":function(A,e,t){var n=t("35e8");A.exports=function(A,e,t){for(var r in e)t&&A[r]?A[r]=e[r]:n(A,r,e[r]);return A}},"5d76":function(A,e,t){"use strict";var n=t("05a6"),r=t.n(n);r.a},"644d":function(A,e,t){},"656e":function(A,e,t){"use strict";var n=t("79aa");function r(A){var e,t;this.promise=new A((function(A,n){if(void 0!==e||void 0!==t)throw TypeError("Bad Promise constructor");e=A,t=n})),this.resolve=n(e),this.reject=n(t)}A.exports.f=function(A){return new r(A)}},6817:function(A,e,t){"use strict";var n=t("cf38"),r=t.n(n);r.a},6965:function(A,e,t){"use strict";var n=t("0596"),r=t.n(n);r.a},"696e":function(A,e,t){t("c207"),t("1654"),t("6c1c"),t("24c5"),t("3c11"),t("43fc"),A.exports=t("584a").Promise},7039:function(A,e,t){},"78cc":function(A,e,t){"use strict";var n=t("b10c"),r=t.n(n);r.a},"795b":function(A,e,t){A.exports=t("696e")},"7d5b":function(A,e,t){"use strict";var n=t("a305"),r=t.n(n);r.a},"8ad8":function(A,e,t){},"8c19":function(A,e,t){},"8c48":function(A,e,t){"use strict";var n=t("2b26"),r=t.n(n);r.a},"96cf":function(A,e,t){var n=function(A){"use strict";var e,t=Object.prototype,n=t.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(A,e,t,n){var r=e&&e.prototype instanceof p?e:p,i=Object.create(r.prototype),a=new N(n||[]);return i._invoke=F(A,t,a),i}function c(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(n){return{type:"throw",arg:n}}}A.wrap=s;var l="suspendedStart",B="suspendedYield",u="executing",d="completed",Q={};function p(){}function w(){}function h(){}var g={};g[i]=function(){return this};var f=Object.getPrototypeOf,C=f&&f(f(y([])));C&&C!==t&&n.call(C,i)&&(g=C);var U=h.prototype=p.prototype=Object.create(g);function E(A){["next","throw","return"].forEach((function(e){A[e]=function(A){return this._invoke(e,A)}}))}function m(A){function e(t,r,i,a){var o=c(A[t],A,r);if("throw"!==o.type){var s=o.arg,l=s.value;return l&&"object"===typeof l&&n.call(l,"__await")?Promise.resolve(l.__await).then((function(A){e("next",A,i,a)}),(function(A){e("throw",A,i,a)})):Promise.resolve(l).then((function(A){s.value=A,i(s)}),(function(A){return e("throw",A,i,a)}))}a(o.arg)}var t;function r(A,n){function r(){return new Promise((function(t,r){e(A,n,t,r)}))}return t=t?t.then(r,r):r()}this._invoke=r}function F(A,e,t){var n=l;return function(r,i){if(n===u)throw new Error("Generator is already running");if(n===d){if("throw"===r)throw i;return K()}t.method=r,t.arg=i;while(1){var a=t.delegate;if(a){var o=v(a,t);if(o){if(o===Q)continue;return o}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(n===l)throw n=d,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);n=u;var s=c(A,e,t);if("normal"===s.type){if(n=t.done?d:B,s.arg===Q)continue;return{value:s.arg,done:t.done}}"throw"===s.type&&(n=d,t.method="throw",t.arg=s.arg)}}}function v(A,t){var n=A.iterator[t.method];if(n===e){if(t.delegate=null,"throw"===t.method){if(A.iterator["return"]&&(t.method="return",t.arg=e,v(A,t),"throw"===t.method))return Q;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return Q}var r=c(n,A.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,Q;var i=r.arg;return i?i.done?(t[A.resultName]=i.value,t.next=A.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,Q):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,Q)}function b(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function H(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function N(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(b,this),this.reset(!0)}function y(A){if(A){var t=A[i];if(t)return t.call(A);if("function"===typeof A.next)return A;if(!isNaN(A.length)){var r=-1,a=function t(){while(++r<A.length)if(n.call(A,r))return t.value=A[r],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}return{next:K}}function K(){return{value:e,done:!0}}return w.prototype=U.constructor=h,h.constructor=w,h[o]=w.displayName="GeneratorFunction",A.isGeneratorFunction=function(A){var e="function"===typeof A&&A.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},A.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,h):(A.__proto__=h,o in A||(A[o]="GeneratorFunction")),A.prototype=Object.create(U),A},A.awrap=function(A){return{__await:A}},E(m.prototype),m.prototype[a]=function(){return this},A.AsyncIterator=m,A.async=function(e,t,n,r){var i=new m(s(e,t,n,r));return A.isGeneratorFunction(t)?i:i.next().then((function(A){return A.done?A.value:i.next()}))},E(U),U[o]="Generator",U[i]=function(){return this},U.toString=function(){return"[object Generator]"},A.keys=function(A){var e=[];for(var t in A)e.push(t);return e.reverse(),function t(){while(e.length){var n=e.pop();if(n in A)return t.value=n,t.done=!1,t}return t.done=!0,t}},A.values=y,N.prototype={constructor:N,reset:function(A){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(H),!A)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var A=this.tryEntries[0],e=A.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var t=this;function r(n,r){return o.type="throw",o.arg=A,t.next=n,r&&(t.method="next",t.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(A,e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===A||"continue"===A)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=A,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,Q):this.complete(a)},complete:function(A,e){if("throw"===A.type)throw A.arg;return"break"===A.type||"continue"===A.type?this.next=A.arg:"return"===A.type?(this.rval=this.arg=A.arg,this.method="return",this.next="end"):"normal"===A.type&&e&&(this.next=e),Q},finish:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),H(t),Q}},catch:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var n=t.completion;if("throw"===n.type){var r=n.arg;H(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(A,t,n){return this.delegate={iterator:y(A),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=e),Q}},A}(A.exports);try{regeneratorRuntime=n}catch(r){Function("r","regeneratorRuntime = r")(n)}},a22a:function(A,e,t){var n=t("d864"),r=t("b0dc"),i=t("3702"),a=t("e4ae"),o=t("b447"),s=t("7cd6"),c={},l={};e=A.exports=function(A,e,t,B,u){var d,Q,p,w,h=u?function(){return A}:s(A),g=n(t,B,e?2:1),f=0;if("function"!=typeof h)throw TypeError(A+" is not iterable!");if(i(h)){for(d=o(A.length);d>f;f++)if(w=e?g(a(Q=A[f])[0],Q[1]):g(A[f]),w===c||w===l)return w}else for(p=h.call(A);!(Q=p.next()).done;)if(w=r(p,g,Q.value,e),w===c||w===l)return w};e.BREAK=c,e.RETURN=l},a2b9:function(A,e,t){},a305:function(A,e,t){},a863:function(A,e,t){"use strict";var n=t("3eba"),r=t.n(n);r.a},aa77:function(A,e,t){var n=t("5ca1"),r=t("be13"),i=t("79e5"),a=t("fdef"),o="["+a+"]",s="​…",c=RegExp("^"+o+o+"*"),l=RegExp(o+o+"*$"),B=function(A,e,t){var r={},o=i((function(){return!!a[A]()||s[A]()!=s})),c=r[A]=o?e(u):a[A];t&&(r[t]=c),n(n.P+n.F*o,"String",r)},u=B.trim=function(A,e){return A=String(r(A)),1&e&&(A=A.replace(c,"")),2&e&&(A=A.replace(l,"")),A};A.exports=B},aba2:function(A,e,t){var n=t("e53d"),r=t("4178").set,i=n.MutationObserver||n.WebKitMutationObserver,a=n.process,o=n.Promise,s="process"==t("6b4c")(a);A.exports=function(){var A,e,t,c=function(){var n,r;s&&(n=a.domain)&&n.exit();while(A){r=A.fn,A=A.next;try{r()}catch(i){throw A?t():e=void 0,i}}e=void 0,n&&n.enter()};if(s)t=function(){a.nextTick(c)};else if(!i||n.navigator&&n.navigator.standalone)if(o&&o.resolve){var l=o.resolve(void 0);t=function(){l.then(c)}}else t=function(){r.call(n,c)};else{var B=!0,u=document.createTextNode("");new i(c).observe(u,{characterData:!0}),t=function(){u.data=B=!B}}return function(n){var r={fn:n,next:void 0};e&&(e.next=r),A||(A=r,t()),e=r}}},ae3b:function(A,e,t){"use strict";var n=t("8c19"),r=t.n(n);r.a},ae4a:function(A,e,t){"use strict";var n=t("018b"),r=t.n(n);r.a},af05:function(A,e,t){"use strict";var n=t("c6ee"),r=t.n(n);r.a},b02a:function(A,e,t){},b10c:function(A,e,t){},bc13:function(A,e,t){var n=t("e53d"),r=n.navigator;A.exports=r&&r.userAgent||""},bd56:function(A,e,t){"use strict";var n=t("f7e4"),r=t.n(n);r.a},c04c:function(A,e,t){"use strict";var n=t("0580"),r=t.n(n);r.a},c5f6:function(A,e,t){"use strict";var n=t("7726"),r=t("69a8"),i=t("2d95"),a=t("5dbc"),o=t("6a99"),s=t("79e5"),c=t("9093").f,l=t("11e9").f,B=t("86cc").f,u=t("aa77").trim,d="Number",Q=n[d],p=Q,w=Q.prototype,h=i(t("2aeb")(w))==d,g="trim"in String.prototype,f=function(A){var e=o(A,!1);if("string"==typeof e&&e.length>2){e=g?e.trim():u(e,3);var t,n,r,i=e.charCodeAt(0);if(43===i||45===i){if(t=e.charCodeAt(2),88===t||120===t)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+e}for(var a,s=e.slice(2),c=0,l=s.length;c<l;c++)if(a=s.charCodeAt(c),a<48||a>r)return NaN;return parseInt(s,n)}}return+e};if(!Q(" 0o1")||!Q("0b1")||Q("+0x1")){Q=function(A){var e=arguments.length<1?0:A,t=this;return t instanceof Q&&(h?s((function(){w.valueOf.call(t)})):i(t)!=d)?a(new p(f(e)),t,Q):f(e)};for(var C,U=t("9e1e")?c(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;U.length>E;E++)r(p,C=U[E])&&!r(Q,C)&&B(Q,C,l(p,C));Q.prototype=w,w.constructor=Q,t("2aba")(n,d,Q)}},c6ee:function(A,e,t){},cb45:function(A,e,t){},cc66:function(A,e,t){"use strict";var n=t("7039"),r=t.n(n);r.a},cd78:function(A,e,t){var n=t("e4ae"),r=t("f772"),i=t("656e");A.exports=function(A,e){if(n(A),r(e)&&e.constructor===A)return e;var t=i.f(A),a=t.resolve;return a(e),t.promise}},cf38:function(A,e,t){},d2c8:function(A,e,t){var n=t("aae3"),r=t("be13");A.exports=function(A,e,t){if(n(e))throw TypeError("String#"+t+" doesn't accept regex!");return String(r(A))}},e6bf:function(A,e,t){},e81a:function(A,e,t){ /*! * html2canvas 1.0.0-rc.5 <https://html2canvas.hertzen.com> * Copyright (c) 2019 Niklas von Hertzen <https://hertzen.com> * Released under MIT License */ (function(e,t){A.exports=t()})(0,(function(){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var A=function(e,t){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)e.hasOwnProperty(t)&&(A[t]=e[t])},A(e,t)};function e(e,t){function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var t=function(){return t=Object.assign||function(A){for(var e,t=1,n=arguments.length;t<n;t++)for(var r in e=arguments[t],e)Object.prototype.hasOwnProperty.call(e,r)&&(A[r]=e[r]);return A},t.apply(this,arguments)};function n(A,e,t,n){return new(t||(t=Promise))((function(r,i){function a(A){try{s(n.next(A))}catch(Le){i(Le)}}function o(A){try{s(n["throw"](A))}catch(Le){i(Le)}}function s(A){A.done?r(A.value):new t((function(e){e(A.value)})).then(a,o)}s((n=n.apply(A,e||[])).next())}))}function r(A,e){var t,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(A){return function(e){return s([A,e])}}function s(i){if(t)throw new TypeError("Generator is already executing.");while(a)try{if(t=1,n&&(r=2&i[0]?n["return"]:i[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!(r=r.length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(A,a)}catch(Le){i=[6,Le],n=0}finally{t=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}for(var i=function(){function A(A,e,t,n){this.left=A,this.top=e,this.width=t,this.height=n}return A.prototype.add=function(e,t,n,r){return new A(this.left+e,this.top+t,this.width+n,this.height+r)},A.fromClientRect=function(e){return new A(e.left,e.top,e.width,e.height)},A}(),a=function(A){return i.fromClientRect(A.getBoundingClientRect())},o=function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),r=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new i(0,0,n,r)},s=function(A){var e=[],t=0,n=A.length;while(t<n){var r=A.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){var i=A.charCodeAt(t++);56320===(64512&i)?e.push(((1023&r)<<10)+(1023&i)+65536):(e.push(r),t--)}else e.push(r)}return e},c=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";var n=[],r=-1,i="";while(++r<t){var a=A[r];a<=65535?n.push(a):(a-=65536,n.push(55296+(a>>10),a%1024+56320)),(r+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B="undefined"===typeof Uint8Array?[]:new Uint8Array(256),u=0;u<l.length;u++)B[l.charCodeAt(u)]=u;var d,Q=function(A){var e,t,n,r,i,a=.75*A.length,o=A.length,s=0;"="===A[A.length-1]&&(a--,"="===A[A.length-2]&&a--);var c="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),l=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e<o;e+=4)t=B[A.charCodeAt(e)],n=B[A.charCodeAt(e+1)],r=B[A.charCodeAt(e+2)],i=B[A.charCodeAt(e+3)],l[s++]=t<<2|n>>4,l[s++]=(15&n)<<4|r>>2,l[s++]=(3&r)<<6|63&i;return c},p=function(A){for(var e=A.length,t=[],n=0;n<e;n+=2)t.push(A[n+1]<<8|A[n]);return t},w=function(A){for(var e=A.length,t=[],n=0;n<e;n+=4)t.push(A[n+3]<<24|A[n+2]<<16|A[n+1]<<8|A[n]);return t},h=5,g=11,f=2,C=g-h,U=65536>>h,E=1<<h,m=E-1,F=1024>>h,v=U+F,b=v,H=32,N=b+H,y=65536>>g,K=1<<C,I=K-1,O=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},T=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},S=function(A){var e=Q(A),t=Array.isArray(e)?w(e):new Uint32Array(e),n=Array.isArray(e)?p(e):new Uint16Array(e),r=24,i=O(n,r/2,t[4]/2),a=2===t[5]?O(n,(r+t[4])/2):T(t,Math.ceil((r+t[4])/4));return new _(t[0],t[1],t[2],t[3],i,a)},_=function(){function A(A,e,t,n,r,i){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=n,this.index=r,this.data=i}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>h],e=(e<<f)+(A&m),this.data[e];if(A<=65535)return e=this.index[U+(A-55296>>h)],e=(e<<f)+(A&m),this.data[e];if(A<this.highStart)return e=N-y+(A>>g),e=this.index[e],e+=A>>h&I,e=this.index[e],e=(e<<f)+(A&m),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),D="KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA",R=50,L=1,x=2,P=3,M=4,k=5,z=7,V=8,X=9,G=10,J=11,j=12,W=13,Y=14,q=15,$=16,Z=17,AA=18,eA=19,tA=20,nA=21,rA=22,iA=23,aA=24,oA=25,sA=26,cA=27,lA=28,BA=29,uA=30,dA=31,QA=32,pA=33,wA=34,hA=35,gA=36,fA=37,CA=38,UA=39,EA=40,mA=41,FA=42,vA=43,bA="!",HA="×",NA="÷",yA=S(D),KA=[uA,gA],IA=[L,x,P,k],OA=[G,V],TA=[cA,sA],SA=IA.concat(OA),_A=[CA,UA,EA,wA,hA],DA=[q,W],RA=function(A,e){void 0===e&&(e="strict");var t=[],n=[],r=[];return A.forEach((function(A,i){var a=yA.get(A);if(a>R?(r.push(!0),a-=R):r.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return n.push(i),t.push($);if(a===M||a===J){if(0===i)return n.push(i),t.push(uA);var o=t[i-1];return-1===SA.indexOf(o)?(n.push(n[i-1]),t.push(o)):(n.push(i),t.push(uA))}return n.push(i),a===dA?t.push("strict"===e?nA:fA):a===FA?t.push(uA):a===BA?t.push(uA):a===vA?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(fA):t.push(uA):void t.push(a)})),[n,t,r]},LA=function(A,e,t,n){var r=n[t];if(Array.isArray(A)?-1!==A.indexOf(r):A===r){var i=t;while(i<=n.length){i++;var a=n[i];if(a===e)return!0;if(a!==G)break}}if(r===G){i=t;while(i>0){i--;var o=n[i];if(Array.isArray(A)?-1!==A.indexOf(o):A===o){var s=t;while(s<=n.length){s++;a=n[s];if(a===e)return!0;if(a!==G)break}}if(o!==G)break}}return!1},xA=function(A,e){var t=A;while(t>=0){var n=e[t];if(n!==G)return n;t--}return 0},PA=function(A,e,t,n,r){if(0===t[n])return HA;var i=n-1;if(Array.isArray(r)&&!0===r[i])return HA;var a=i-1,o=i+1,s=e[i],c=a>=0?e[a]:0,l=e[o];if(s===x&&l===P)return HA;if(-1!==IA.indexOf(s))return bA;if(-1!==IA.indexOf(l))return HA;if(-1!==OA.indexOf(l))return HA;if(xA(i,e)===V)return NA;if(yA.get(A[i])===J&&(l===fA||l===QA||l===pA))return HA;if(s===z||l===z)return HA;if(s===X)return HA;if(-1===[G,W,q].indexOf(s)&&l===X)return HA;if(-1!==[Z,AA,eA,aA,lA].indexOf(l))return HA;if(xA(i,e)===rA)return HA;if(LA(iA,rA,i,e))return HA;if(LA([Z,AA],nA,i,e))return HA;if(LA(j,j,i,e))return HA;if(s===G)return NA;if(s===iA||l===iA)return HA;if(l===$||s===$)return NA;if(-1!==[W,q,nA].indexOf(l)||s===Y)return HA;if(c===gA&&-1!==DA.indexOf(s))return HA;if(s===lA&&l===gA)return HA;if(l===tA&&-1!==KA.concat(tA,eA,oA,fA,QA,pA).indexOf(s))return HA;if(-1!==KA.indexOf(l)&&s===oA||-1!==KA.indexOf(s)&&l===oA)return HA;if(s===cA&&-1!==[fA,QA,pA].indexOf(l)||-1!==[fA,QA,pA].indexOf(s)&&l===sA)return HA;if(-1!==KA.indexOf(s)&&-1!==TA.indexOf(l)||-1!==TA.indexOf(s)&&-1!==KA.indexOf(l))return HA;if(-1!==[cA,sA].indexOf(s)&&(l===oA||-1!==[rA,q].indexOf(l)&&e[o+1]===oA)||-1!==[rA,q].indexOf(s)&&l===oA||s===oA&&-1!==[oA,lA,aA].indexOf(l))return HA;if(-1!==[oA,lA,aA,Z,AA].indexOf(l)){var B=i;while(B>=0){var u=e[B];if(u===oA)return HA;if(-1===[lA,aA].indexOf(u))break;B--}}if(-1!==[cA,sA].indexOf(l)){B=-1!==[Z,AA].indexOf(s)?a:i;while(B>=0){u=e[B];if(u===oA)return HA;if(-1===[lA,aA].indexOf(u))break;B--}}if(CA===s&&-1!==[CA,UA,wA,hA].indexOf(l)||-1!==[UA,wA].indexOf(s)&&-1!==[UA,EA].indexOf(l)||-1!==[EA,hA].indexOf(s)&&l===EA)return HA;if(-1!==_A.indexOf(s)&&-1!==[tA,sA].indexOf(l)||-1!==_A.indexOf(l)&&s===cA)return HA;if(-1!==KA.indexOf(s)&&-1!==KA.indexOf(l))return HA;if(s===aA&&-1!==KA.indexOf(l))return HA;if(-1!==KA.concat(oA).indexOf(s)&&l===rA||-1!==KA.concat(oA).indexOf(l)&&s===AA)return HA;if(s===mA&&l===mA){var d=t[i],Q=1;while(d>0){if(d--,e[d]!==mA)break;Q++}if(Q%2!==0)return HA}return s===QA&&l===pA?HA:NA},MA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=RA(A,e.lineBreak),n=t[0],r=t[1],i=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(r=r.map((function(A){return-1!==[oA,uA,FA].indexOf(A)?fA:A})));var a="keep-all"===e.wordBreak?i.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):void 0;return[n,r,a]},kA=function(){function A(A,e,t,n){this.codePoints=A,this.required=e===bA,this.start=t,this.end=n}return A.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),zA=function(A,e){var t=s(A),n=MA(t,e),r=n[0],i=n[1],a=n[2],o=t.length,c=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};var A=HA;while(l<o&&(A=PA(t,i,r,++l,a))===HA);if(A!==HA||l===o){var e=new kA(t,A,c,l);return c=l,{value:e,done:!1}}return{done:!0,value:null}}}};(function(A){A[A["STRING_TOKEN"]=0]="STRING_TOKEN",A[A["BAD_STRING_TOKEN"]=1]="BAD_STRING_TOKEN",A[A["LEFT_PARENTHESIS_TOKEN"]=2]="LEFT_PARENTHESIS_TOKEN",A[A["RIGHT_PARENTHESIS_TOKEN"]=3]="RIGHT_PARENTHESIS_TOKEN",A[A["COMMA_TOKEN"]=4]="COMMA_TOKEN",A[A["HASH_TOKEN"]=5]="HASH_TOKEN",A[A["DELIM_TOKEN"]=6]="DELIM_TOKEN",A[A["AT_KEYWORD_TOKEN"]=7]="AT_KEYWORD_TOKEN",A[A["PREFIX_MATCH_TOKEN"]=8]="PREFIX_MATCH_TOKEN",A[A["DASH_MATCH_TOKEN"]=9]="DASH_MATCH_TOKEN",A[A["INCLUDE_MATCH_TOKEN"]=10]="INCLUDE_MATCH_TOKEN",A[A["LEFT_CURLY_BRACKET_TOKEN"]=11]="LEFT_CURLY_BRACKET_TOKEN",A[A["RIGHT_CURLY_BRACKET_TOKEN"]=12]="RIGHT_CURLY_BRACKET_TOKEN",A[A["SUFFIX_MATCH_TOKEN"]=13]="SUFFIX_MATCH_TOKEN",A[A["SUBSTRING_MATCH_TOKEN"]=14]="SUBSTRING_MATCH_TOKEN",A[A["DIMENSION_TOKEN"]=15]="DIMENSION_TOKEN",A[A["PERCENTAGE_TOKEN"]=16]="PERCENTAGE_TOKEN",A[A["NUMBER_TOKEN"]=17]="NUMBER_TOKEN",A[A["FUNCTION"]=18]="FUNCTION",A[A["FUNCTION_TOKEN"]=19]="FUNCTION_TOKEN",A[A["IDENT_TOKEN"]=20]="IDENT_TOKEN",A[A["COLUMN_TOKEN"]=21]="COLUMN_TOKEN",A[A["URL_TOKEN"]=22]="URL_TOKEN",A[A["BAD_URL_TOKEN"]=23]="BAD_URL_TOKEN",A[A["CDC_TOKEN"]=24]="CDC_TOKEN",A[A["CDO_TOKEN"]=25]="CDO_TOKEN",A[A["COLON_TOKEN"]=26]="COLON_TOKEN",A[A["SEMICOLON_TOKEN"]=27]="SEMICOLON_TOKEN",A[A["LEFT_SQUARE_BRACKET_TOKEN"]=28]="LEFT_SQUARE_BRACKET_TOKEN",A[A["RIGHT_SQUARE_BRACKET_TOKEN"]=29]="RIGHT_SQUARE_BRACKET_TOKEN",A[A["UNICODE_RANGE_TOKEN"]=30]="UNICODE_RANGE_TOKEN",A[A["WHITESPACE_TOKEN"]=31]="WHITESPACE_TOKEN",A[A["EOF_TOKEN"]=32]="EOF_TOKEN"})(d||(d={}));var VA=1,XA=2,GA=4,JA=8,jA=10,WA=47,YA=92,qA=9,$A=32,ZA=34,Ae=61,ee=35,te=36,ne=37,re=39,ie=40,ae=41,oe=95,se=45,ce=33,le=60,Be=62,ue=64,de=91,Qe=93,pe=61,we=123,he=63,ge=125,fe=124,Ce=126,Ue=128,Ee=65533,me=42,Fe=43,ve=44,be=58,He=59,Ne=46,ye=0,Ke=8,Ie=11,Oe=14,Te=31,Se=127,_e=-1,De=48,Re=97,Le=101,xe=102,Pe=117,Me=122,ke=65,ze=69,Ve=70,Xe=85,Ge=90,Je=function(A){return A>=De&&A<=57},je=function(A){return A>=55296&&A<=57343},We=function(A){return Je(A)||A>=ke&&A<=Ve||A>=Re&&A<=xe},Ye=function(A){return A>=Re&&A<=Me},qe=function(A){return A>=ke&&A<=Ge},$e=function(A){return Ye(A)||qe(A)},Ze=function(A){return A>=Ue},At=function(A){return A===jA||A===qA||A===$A},et=function(A){return $e(A)||Ze(A)||A===oe},tt=function(A){return et(A)||Je(A)||A===se},nt=function(A){return A>=ye&&A<=Ke||A===Ie||A>=Oe&&A<=Te||A===Se},rt=function(A,e){return A===YA&&e!==jA},it=function(A,e,t){return A===se?et(e)||rt(e,t):!!et(A)||!(A!==YA||!rt(A,e))},at=function(A,e,t){return A===Fe||A===se?!!Je(e)||e===Ne&&Je(t):Je(A===Ne?e:A)},ot=function(A){var e=0,t=1;A[e]!==Fe&&A[e]!==se||(A[e]===se&&(t=-1),e++);var n=[];while(Je(A[e]))n.push(A[e++]);var r=n.length?parseInt(c.apply(void 0,n),10):0;A[e]===Ne&&e++;var i=[];while(Je(A[e]))i.push(A[e++]);var a=i.length,o=a?parseInt(c.apply(void 0,i),10):0;A[e]!==ze&&A[e]!==Le||e++;var s=1;A[e]!==Fe&&A[e]!==se||(A[e]===se&&(s=-1),e++);var l=[];while(Je(A[e]))l.push(A[e++]);var B=l.length?parseInt(c.apply(void 0,l),10):0;return t*(r+o*Math.pow(10,-a))*Math.pow(10,s*B)},st={type:d.LEFT_PARENTHESIS_TOKEN},ct={type:d.RIGHT_PARENTHESIS_TOKEN},lt={type:d.COMMA_TOKEN},Bt={type:d.SUFFIX_MATCH_TOKEN},ut={type:d.PREFIX_MATCH_TOKEN},dt={type:d.COLUMN_TOKEN},Qt={type:d.DASH_MATCH_TOKEN},pt={type:d.INCLUDE_MATCH_TOKEN},wt={type:d.LEFT_CURLY_BRACKET_TOKEN},ht={type:d.RIGHT_CURLY_BRACKET_TOKEN},gt={type:d.SUBSTRING_MATCH_TOKEN},ft={type:d.BAD_URL_TOKEN},Ct={type:d.BAD_STRING_TOKEN},Ut={type:d.CDO_TOKEN},Et={type:d.CDC_TOKEN},mt={type:d.COLON_TOKEN},Ft={type:d.SEMICOLON_TOKEN},vt={type:d.LEFT_SQUARE_BRACKET_TOKEN},bt={type:d.RIGHT_SQUARE_BRACKET_TOKEN},Ht={type:d.WHITESPACE_TOKEN},Nt={type:d.EOF_TOKEN},yt=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(s(A))},A.prototype.read=function(){var A=[],e=this.consumeToken();while(e!==Nt)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case ZA:return this.consumeStringToken(ZA);case ee:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(tt(e)||rt(t,n)){var r=it(e,t,n)?XA:VA,i=this.consumeName();return{type:d.HASH_TOKEN,value:i,flags:r}}break;case te:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),Bt;break;case re:return this.consumeStringToken(re);case ie:return st;case ae:return ct;case me:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),gt;break;case Fe:if(at(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case ve:return lt;case se:var a=A,o=this.peekCodePoint(0),s=this.peekCodePoint(1);if(at(a,o,s))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(it(a,o,s))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(o===se&&s===Be)return this.consumeCodePoint(),this.consumeCodePoint(),Et;break;case Ne:if(at(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case WA:if(this.peekCodePoint(0)===me){this.consumeCodePoint();while(1){var l=this.consumeCodePoint();if(l===me&&(l=this.consumeCodePoint(),l===WA))return this.consumeToken();if(l===_e)return this.consumeToken()}}break;case be:return mt;case He:return Ft;case le:if(this.peekCodePoint(0)===ce&&this.peekCodePoint(1)===se&&this.peekCodePoint(2)===se)return this.consumeCodePoint(),this.consumeCodePoint(),Ut;break;case ue:var B=this.peekCodePoint(0),u=this.peekCodePoint(1),Q=this.peekCodePoint(2);if(it(B,u,Q)){i=this.consumeName();return{type:d.AT_KEYWORD_TOKEN,value:i}}break;case de:return vt;case YA:if(rt(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Qe:return bt;case pe:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),ut;break;case we:return wt;case ge:return ht;case Pe:case Xe:var p=this.peekCodePoint(0),w=this.peekCodePoint(1);return p!==Fe||!We(w)&&w!==he||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case fe:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),Qt;if(this.peekCodePoint(0)===fe)return this.consumeCodePoint(),dt;break;case Ce:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),pt;break;case _e:return Nt}return At(A)?(this.consumeWhiteSpace(),Ht):Je(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):et(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:d.DELIM_TOKEN,value:c(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return"undefined"===typeof A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){var A=[],e=this.consumeCodePoint();while(We(e)&&A.length<6)A.push(e),e=this.consumeCodePoint();var t=!1;while(e===he&&A.length<6)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(c.apply(void 0,A.map((function(A){return A===he?De:A}))),16),r=parseInt(c.apply(void 0,A.map((function(A){return A===he?Ve:A}))),16);return{type:d.UNICODE_RANGE_TOKEN,start:n,end:r}}var i=parseInt(c.apply(void 0,A),16);if(this.peekCodePoint(0)===se&&We(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();var a=[];while(We(e)&&a.length<6)a.push(e),e=this.consumeCodePoint();r=parseInt(c.apply(void 0,a),16);return{type:d.UNICODE_RANGE_TOKEN,start:i,end:r}}return{type:d.UNICODE_RANGE_TOKEN,start:i,end:i}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&this.peekCodePoint(0)===ie?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ie?(this.consumeCodePoint(),{type:d.FUNCTION_TOKEN,value:A}):{type:d.IDENT_TOKEN,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===_e)return{type:d.URL_TOKEN,value:""};var e=this.peekCodePoint(0);if(e===re||e===ZA){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===d.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===_e||this.peekCodePoint(0)===ae)?(this.consumeCodePoint(),{type:d.URL_TOKEN,value:t.value}):(this.consumeBadUrlRemnants(),ft)}while(1){var n=this.consumeCodePoint();if(n===_e||n===ae)return{type:d.URL_TOKEN,value:c.apply(void 0,A)};if(At(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===_e||this.peekCodePoint(0)===ae?(this.consumeCodePoint(),{type:d.URL_TOKEN,value:c.apply(void 0,A)}):(this.consumeBadUrlRemnants(),ft);if(n===ZA||n===re||n===ie||nt(n))return this.consumeBadUrlRemnants(),ft;if(n===YA){if(!rt(n,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),ft;A.push(this.consumeEscapedCodePoint())}else A.push(n)}},A.prototype.consumeWhiteSpace=function(){while(At(this.peekCodePoint(0)))this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){while(1){var A=this.consumeCodePoint();if(A===ae||A===_e)return;rt(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){var e=6e4,t="";while(A>0){var n=Math.min(e,A);t+=c.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),t},A.prototype.consumeStringToken=function(A){var e="",t=0;do{var n=this._value[t];if(n===_e||void 0===n||n===A)return e+=this.consumeStringSlice(t),{type:d.STRING_TOKEN,value:e};if(n===jA)return this._value.splice(0,t),Ct;if(n===YA){var r=this._value[t+1];r!==_e&&void 0!==r&&(r===jA?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):rt(n,r)&&(e+=this.consumeStringSlice(t),e+=c(this.consumeEscapedCodePoint()),t=-1))}t++}while(1)},A.prototype.consumeNumber=function(){var A=[],e=GA,t=this.peekCodePoint(0);t!==Fe&&t!==se||A.push(this.consumeCodePoint());while(Je(this.peekCodePoint(0)))A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(t===Ne&&Je(n)){A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=JA;while(Je(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}t=this.peekCodePoint(0),n=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((t===ze||t===Le)&&((n===Fe||n===se)&&Je(r)||Je(n))){A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=JA;while(Je(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}return[ot(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],n=this.peekCodePoint(0),r=this.peekCodePoint(1),i=this.peekCodePoint(2);if(it(n,r,i)){var a=this.consumeName();return{type:d.DIMENSION_TOKEN,number:e,flags:t,unit:a}}return n===ne?(this.consumeCodePoint(),{type:d.PERCENTAGE_TOKEN,number:e,flags:t}):{type:d.NUMBER_TOKEN,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(We(A)){var e=c(A);while(We(this.peekCodePoint(0))&&e.length<6)e+=c(this.consumeCodePoint());At(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||je(t)||t>1114111?Ee:t}return A===_e?Ee:A},A.prototype.consumeName=function(){var A="";while(1){var e=this.consumeCodePoint();if(tt(e))A+=c(e);else{if(!rt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=c(this.consumeEscapedCodePoint())}}},A}(),Kt=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new yt;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){var A=this.consumeToken();while(A.type===d.WHITESPACE_TOKEN)A=this.consumeToken();if(A.type===d.EOF_TOKEN)throw new SyntaxError("Error parsing CSS components value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(A.type===d.WHITESPACE_TOKEN);if(A.type===d.EOF_TOKEN)return e;throw new SyntaxError("Error parsing CSS components value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){var A=[];while(1){var e=this.consumeComponentValue();if(e.type===d.EOF_TOKEN)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case d.LEFT_CURLY_BRACKET_TOKEN:case d.LEFT_SQUARE_BRACKET_TOKEN:case d.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(A.type);case d.FUNCTION_TOKEN:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){var e={type:A,values:[]},t=this.consumeToken();while(1){if(t.type===d.EOF_TOKEN||xt(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){var e={name:A.value,values:[],type:d.FUNCTION};while(1){var t=this.consumeToken();if(t.type===d.EOF_TOKEN||t.type===d.RIGHT_PARENTHESIS_TOKEN)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return"undefined"===typeof A?Nt:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),It=function(A){return A.type===d.DIMENSION_TOKEN},Ot=function(A){return A.type===d.NUMBER_TOKEN},Tt=function(A){return A.type===d.IDENT_TOKEN},St=function(A){return A.type===d.STRING_TOKEN},_t=function(A,e){return Tt(A)&&A.value===e},Dt=function(A){return A.type!==d.WHITESPACE_TOKEN},Rt=function(A){return A.type!==d.WHITESPACE_TOKEN&&A.type!==d.COMMA_TOKEN},Lt=function(A){var e=[],t=[];return A.forEach((function(A){if(A.type===d.COMMA_TOKEN){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}A.type!==d.WHITESPACE_TOKEN&&t.push(A)})),t.length&&e.push(t),e},xt=function(A,e){return e===d.LEFT_CURLY_BRACKET_TOKEN&&A.type===d.RIGHT_CURLY_BRACKET_TOKEN||(e===d.LEFT_SQUARE_BRACKET_TOKEN&&A.type===d.RIGHT_SQUARE_BRACKET_TOKEN||e===d.LEFT_PARENTHESIS_TOKEN&&A.type===d.RIGHT_PARENTHESIS_TOKEN)},Pt=function(A){return A.type===d.NUMBER_TOKEN||A.type===d.DIMENSION_TOKEN},Mt=function(A){return A.type===d.PERCENTAGE_TOKEN||Pt(A)},kt=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},zt={type:d.NUMBER_TOKEN,number:0,flags:GA},Vt={type:d.PERCENTAGE_TOKEN,number:50,flags:GA},Xt={type:d.PERCENTAGE_TOKEN,number:100,flags:GA},Gt=function(A,e,t){var n=A[0],r=A[1];return[Jt(n,e),Jt("undefined"!==typeof r?r:n,t)]},Jt=function(A,e){if(A.type===d.PERCENTAGE_TOKEN)return A.number/100*e;if(It(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},jt="deg",Wt="grad",Yt="rad",qt="turn",$t={name:"angle",parse:function(A){if(A.type===d.DIMENSION_TOKEN)switch(A.unit){case jt:return Math.PI*A.number/180;case Wt:return Math.PI/200*A.number;case Yt:return A.number;case qt:return 2*Math.PI*A.number}throw new Error("Unsupported angle type")}},Zt=function(A){return A.type===d.DIMENSION_TOKEN&&(A.unit===jt||A.unit===Wt||A.unit===Yt||A.unit===qt)},An=function(A){var e=A.filter(Tt).map((function(A){return A.value})).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[zt,zt];case"to top":case"bottom":return en(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[zt,Xt];case"to right":case"left":return en(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Xt,Xt];case"to bottom":case"top":return en(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Xt,zt];case"to left":case"right":return en(270)}return 0},en=function(A){return Math.PI*A/180},tn={name:"color",parse:function(A){if(A.type===d.FUNCTION){var e=dn[A.name];if("undefined"===typeof e)throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(A.values)}if(A.type===d.HASH_TOKEN){if(3===A.value.length){var t=A.value.substring(0,1),n=A.value.substring(1,2),r=A.value.substring(2,3);return an(parseInt(t+t,16),parseInt(n+n,16),parseInt(r+r,16),1)}if(4===A.value.length){t=A.value.substring(0,1),n=A.value.substring(1,2),r=A.value.substring(2,3);var i=A.value.substring(3,4);return an(parseInt(t+t,16),parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16)/255)}if(6===A.value.length){t=A.value.substring(0,2),n=A.value.substring(2,4),r=A.value.substring(4,6);return an(parseInt(t,16),parseInt(n,16),parseInt(r,16),1)}if(8===A.value.length){t=A.value.substring(0,2),n=A.value.substring(2,4),r=A.value.substring(4,6),i=A.value.substring(6,8);return an(parseInt(t,16),parseInt(n,16),parseInt(r,16),parseInt(i,16)/255)}}if(A.type===d.IDENT_TOKEN){var a=Qn[A.value.toUpperCase()];if("undefined"!==typeof a)return a}return Qn.TRANSPARENT}},nn=function(A){return 0===(255&A)},rn=function(A){var e=255&A,t=255&A>>8,n=255&A>>16,r=255&A>>24;return e<255?"rgba("+r+","+n+","+t+","+e/255+")":"rgb("+r+","+n+","+t+")"},an=function(A,e,t,n){return(A<<24|e<<16|t<<8|Math.round(255*n)<<0)>>>0},on=function(A,e){if(A.type===d.NUMBER_TOKEN)return A.number;if(A.type===d.PERCENTAGE_TOKEN){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},sn=function(A){var e=A.filter(Rt);if(3===e.length){var t=e.map(on),n=t[0],r=t[1],i=t[2];return an(n,r,i,1)}if(4===e.length){var a=e.map(on),o=(n=a[0],r=a[1],i=a[2],a[3]);return an(n,r,i,o)}return 0};function cn(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var ln,Bn,un=function(A){var e=A.filter(Rt),t=e[0],n=e[1],r=e[2],i=e[3],a=(t.type===d.NUMBER_TOKEN?en(t.number):$t.parse(t))/(2*Math.PI),o=Mt(n)?n.number/100:0,s=Mt(r)?r.number/100:0,c="undefined"!==typeof i&&Mt(i)?Jt(i,1):1;if(0===o)return an(255*s,255*s,255*s,1);var l=s<=.5?s*(o+1):s+o-s*o,B=2*s-l,u=cn(B,l,a+1/3),Q=cn(B,l,a),p=cn(B,l,a-1/3);return an(255*u,255*Q,255*p,c)},dn={hsl:un,hsla:un,rgb:sn,rgba:sn},Qn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(function(A){A[A["VALUE"]=0]="VALUE",A[A["LIST"]=1]="LIST",A[A["IDENT_VALUE"]=2]="IDENT_VALUE",A[A["TYPE_VALUE"]=3]="TYPE_VALUE",A[A["TOKEN_VALUE"]=4]="TOKEN_VALUE"})(ln||(ln={})),function(A){A[A["BORDER_BOX"]=0]="BORDER_BOX",A[A["PADDING_BOX"]=1]="PADDING_BOX",A[A["CONTENT_BOX"]=2]="CONTENT_BOX"}(Bn||(Bn={}));var pn,wn={name:"background-clip",initialValue:"border-box",prefix:!1,type:ln.LIST,parse:function(A){return A.map((function(A){if(Tt(A))switch(A.value){case"padding-box":return Bn.PADDING_BOX;case"content-box":return Bn.CONTENT_BOX}return Bn.BORDER_BOX}))}},hn={name:"background-color",initialValue:"transparent",prefix:!1,type:ln.TYPE_VALUE,format:"color"},gn=function(A){var e=tn.parse(A[0]),t=A[1];return t&&Mt(t)?{color:e,stop:t}:{color:e,stop:null}},fn=function(A,e){var t=A[0],n=A[A.length-1];null===t.stop&&(t.stop=zt),null===n.stop&&(n.stop=Xt);for(var r=[],i=0,a=0;a<A.length;a++){var o=A[a].stop;if(null!==o){var s=Jt(o,e);s>i?r.push(s):r.push(i),i=s}else r.push(null)}var c=null;for(a=0;a<r.length;a++){var l=r[a];if(null===l)null===c&&(c=a);else if(null!==c){for(var B=a-c,u=r[c-1],d=(l-u)/(B+1),Q=1;Q<=B;Q++)r[c+Q-1]=d*Q;c=null}}return A.map((function(A,t){var n=A.color;return{color:n,stop:Math.max(Math.min(1,r[t]/e),0)}}))},Cn=function(A,e,t){var n=e/2,r=t/2,i=Jt(A[0],e)-n,a=r-Jt(A[1],t);return(Math.atan2(a,i)+2*Math.PI)%(2*Math.PI)},Un=function(A,e,t){var n="number"===typeof A?A:Cn(A,e,t),r=Math.abs(e*Math.sin(n))+Math.abs(t*Math.cos(n)),i=e/2,a=t/2,o=r/2,s=Math.sin(n-Math.PI/2)*o,c=Math.cos(n-Math.PI/2)*o;return[r,i-c,i+c,a-s,a+s]},En=function(A,e){return Math.sqrt(A*A+e*e)},mn=function(A,e,t,n,r){var i=[[0,0],[0,e],[A,0],[A,e]];return i.reduce((function(A,e){var i=e[0],a=e[1],o=En(t-i,n-a);return(r?o<A.optimumDistance:o>A.optimumDistance)?{optimumCorner:e,optimumDistance:o}:A}),{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},Fn=function(A,e,t,n,r){var i=0,a=0;switch(A.size){case ir.CLOSEST_SIDE:A.shape===rr.CIRCLE?i=a=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===rr.ELLIPSE&&(i=Math.min(Math.abs(e),Math.abs(e-n)),a=Math.min(Math.abs(t),Math.abs(t-r)));break;case ir.CLOSEST_CORNER:if(A.shape===rr.CIRCLE)i=a=Math.min(En(e,t),En(e,t-r),En(e-n,t),En(e-n,t-r));else if(A.shape===rr.ELLIPSE){var o=Math.min(Math.abs(t),Math.abs(t-r))/Math.min(Math.abs(e),Math.abs(e-n)),s=mn(n,r,e,t,!0),c=s[0],l=s[1];i=En(c-e,(l-t)/o),a=o*i}break;case ir.FARTHEST_SIDE:A.shape===rr.CIRCLE?i=a=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-r)):A.shape===rr.ELLIPSE&&(i=Math.max(Math.abs(e),Math.abs(e-n)),a=Math.max(Math.abs(t),Math.abs(t-r)));break;case ir.FARTHEST_CORNER:if(A.shape===rr.CIRCLE)i=a=Math.max(En(e,t),En(e,t-r),En(e-n,t),En(e-n,t-r));else if(A.shape===rr.ELLIPSE){o=Math.max(Math.abs(t),Math.abs(t-r))/Math.max(Math.abs(e),Math.abs(e-n));var B=mn(n,r,e,t,!1);c=B[0],l=B[1];i=En(c-e,(l-t)/o),a=o*i}break}return Array.isArray(A.size)&&(i=Jt(A.size[0],n),a=2===A.size.length?Jt(A.size[1],r):i),[i,a]},vn=function(A){var e=en(180),t=[];return Lt(A).forEach((function(A,n){if(0===n){var r=A[0];if(r.type===d.IDENT_TOKEN&&"to"===r.value)return void(e=An(A));if(Zt(r))return void(e=$t.parse(r))}var i=gn(A);t.push(i)})),{angle:e,stops:t,type:pn.LINEAR_GRADIENT}},bn=function(A){var e=en(180),t=[];return Lt(A).forEach((function(A,n){if(0===n){var r=A[0];if(r.type===d.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(r.value))return void(e=An(A));if(Zt(r))return void(e=($t.parse(r)+en(270))%en(360))}var i=gn(A);t.push(i)})),{angle:e,stops:t,type:pn.LINEAR_GRADIENT}},Hn=function(A){var e=123;if(A.createRange){var t=A.createRange();if(t.getBoundingClientRect){var n=A.createElement("boundtest");n.style.height=e+"px",n.style.display="block",A.body.appendChild(n),t.selectNode(n);var r=t.getBoundingClientRect(),i=Math.round(r.height);if(A.body.removeChild(n),i===e)return!0}}return!1},Nn=function(){return"undefined"!==typeof(new Image).crossOrigin},yn=function(){return"string"===typeof(new XMLHttpRequest).responseType},Kn=function(A){var e=new Image,t=A.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),t.toDataURL()}catch(Le){return!1}return!0},In=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},On=function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);var r=new Image,i=e.toDataURL();r.src=i;var a=Tn(t,t,0,0,r);return n.fillStyle="red",n.fillRect(0,0,t,t),Sn(a).then((function(e){n.drawImage(e,0,0);var r=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);var a=A.createElement("div");return a.style.backgroundImage="url("+i+")",a.style.height=t+"px",In(r)?Sn(Tn(t,t,0,0,a)):Promise.reject(!1)})).then((function(A){return n.drawImage(A,0,0),In(n.getImageData(0,0,t,t).data)})).catch((function(){return!1}))},Tn=function(A,e,t,n,r){var i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return a.setAttributeNS(null,"width",A.toString()),a.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",t.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(o),o.appendChild(r),a},Sn=function(A){return new Promise((function(e,t){var n=new Image;n.onload=function(){return e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},_n={get SUPPORT_RANGE_BOUNDS(){var A=Hn(document);return Object.defineProperty(_n,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=Kn(document);return Object.defineProperty(_n,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"===typeof Array.from&&"function"===typeof window.fetch?On(document):Promise.resolve(!1);return Object.defineProperty(_n,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=Nn();return Object.defineProperty(_n,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=yn();return Object.defineProperty(_n,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(_n,"SUPPORT_CORS_XHR",{value:A}),A}},Dn=function(){function A(A){var e=A.id,t=A.enabled;this.id=e,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(A)):this.info.apply(this,A))},A.prototype.getTime=function(){return Date.now()-this.start},A.create=function(e){A.instances[e.id]=new A(e)},A.destroy=function(e){delete A.instances[e]},A.getInstance=function(e){var t=A.instances[e];if("undefined"===typeof t)throw new Error("No logger instance found with id "+e);return t},A.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(A))},A.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(A)):this.info.apply(this,A))},A.instances={},A}(),Rn=function(){function A(){}return A.create=function(e,t){return A._caches[e]=new Ln(e,t)},A.destroy=function(e){delete A._caches[e]},A.open=function(e){var t=A._caches[e];if("undefined"!==typeof t)return t;throw new Error('Cache with key "'+e+'" not found')},A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A.getInstance=function(){var e=A._current;if(null===e)throw new Error("No cache instance attached");return e},A.attachInstance=function(e){A._current=e},A.detachInstance=function(){A._current=null},A._caches={},A._origin="about:blank",A._current=null,A}(),Ln=function(){function A(A,e){this.id=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)?e:Xn(A)||kn(A)?(this._cache[A]=this.loadImage(A),e):e},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return n(this,void 0,void 0,(function(){var e,t,n,i,a=this;return r(this,(function(r){switch(r.label){case 0:return e=Rn.isSameOrigin(A),t=!zn(A)&&!0===this._options.useCORS&&_n.SUPPORT_CORS_IMAGES&&!e,n=!zn(A)&&!e&&"string"===typeof this._options.proxy&&_n.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||zn(A)||n||t?(i=A,n?[4,this.proxy(i)]:[3,2]):[2];case 1:i=r.sent(),r.label=2;case 2:return Dn.getInstance(this.id).debug("Added image "+A.substring(0,256)),[4,new Promise((function(A,e){var n=new Image;n.onload=function(){return A(n)},n.onerror=e,(Vn(i)||t)&&(n.crossOrigin="anonymous"),n.src=i,!0===n.complete&&setTimeout((function(){return A(n)}),500),a._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+a._options.imageTimeout+"ms) loading image")}),a._options.imageTimeout)}))];case 3:return[2,r.sent()]}}))}))},A.prototype.has=function(A){return"undefined"!==typeof this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise((function(r,i){var a=_n.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;if(o.onload=function(){if(200===o.status)if("text"===a)r(o.response);else{var A=new FileReader;A.addEventListener("load",(function(){return r(A.result)}),!1),A.addEventListener("error",(function(A){return i(A)}),!1),A.readAsDataURL(o.response)}else i("Failed to proxy resource "+n+" with status code "+o.status)},o.onerror=i,o.open("GET",t+"?url="+encodeURIComponent(A)+"&responseType="+a),"text"!==a&&o instanceof XMLHttpRequest&&(o.responseType=a),e._options.imageTimeout){var s=e._options.imageTimeout;o.timeout=s,o.ontimeout=function(){return i("Timed out ("+s+"ms) proxying "+n)}}o.send()}))},A}(),xn=/^data:image\/svg\+xml/i,Pn=/^data:image\/.*;base64,/i,Mn=/^data:image\/.*/i,kn=function(A){return _n.SUPPORT_SVG_DRAWING||!Gn(A)},zn=function(A){return Mn.test(A)},Vn=function(A){return Pn.test(A)},Xn=function(A){return"blob"===A.substr(0,4)},Gn=function(A){return"svg"===A.substr(-3).toLowerCase()||xn.test(A)},Jn=function(A){var e=en(180),t=[],n=pn.LINEAR_GRADIENT,r=rr.CIRCLE,i=ir.FARTHEST_CORNER,a=[];return Lt(A).forEach((function(A,e){var r=A[0];if(0===e){if(Tt(r)&&"linear"===r.value)return void(n=pn.LINEAR_GRADIENT);if(Tt(r)&&"radial"===r.value)return void(n=pn.RADIAL_GRADIENT)}if(r.type===d.FUNCTION)if("from"===r.name){var i=tn.parse(r.values[0]);t.push({stop:zt,color:i})}else if("to"===r.name){i=tn.parse(r.values[0]);t.push({stop:Xt,color:i})}else if("color-stop"===r.name){var a=r.values.filter(Rt);if(2===a.length){i=tn.parse(a[1]);var o=a[0];Ot(o)&&t.push({stop:{type:d.PERCENTAGE_TOKEN,number:100*o.number,flags:o.flags},color:i})}}})),n===pn.LINEAR_GRADIENT?{angle:(e+en(180))%en(360),stops:t,type:n}:{size:i,shape:r,stops:t,position:a,type:n}},jn="closest-side",Wn="farthest-side",Yn="closest-corner",qn="farthest-corner",$n="circle",Zn="ellipse",Ar="cover",er="contain",tr=function(A){var e=rr.CIRCLE,t=ir.FARTHEST_CORNER,n=[],r=[];return Lt(A).forEach((function(A,i){var a=!0;if(0===i){var o=!1;a=A.reduce((function(A,n){if(o)if(Tt(n))switch(n.value){case"center":return r.push(Vt),A;case"top":case"left":return r.push(zt),A;case"right":case"bottom":return r.push(Xt),A}else(Mt(n)||Pt(n))&&r.push(n);else if(Tt(n))switch(n.value){case $n:return e=rr.CIRCLE,!1;case Zn:return e=rr.ELLIPSE,!1;case"at":return o=!0,!1;case jn:return t=ir.CLOSEST_SIDE,!1;case Ar:case Wn:return t=ir.FARTHEST_SIDE,!1;case er:case Yn:return t=ir.CLOSEST_CORNER,!1;case qn:return t=ir.FARTHEST_CORNER,!1}else if(Pt(n)||Mt(n))return Array.isArray(t)||(t=[]),t.push(n),!1;return A}),a)}if(a){var s=gn(A);n.push(s)}})),{size:t,shape:e,stops:n,position:r,type:pn.RADIAL_GRADIENT}},nr=function(A){var e=rr.CIRCLE,t=ir.FARTHEST_CORNER,n=[],r=[];return Lt(A).forEach((function(A,i){var a=!0;if(0===i?a=A.reduce((function(A,e){if(Tt(e))switch(e.value){case"center":return r.push(Vt),!1;case"top":case"left":return r.push(zt),!1;case"right":case"bottom":return r.push(Xt),!1}else if(Mt(e)||Pt(e))return r.push(e),!1;return A}),a):1===i&&(a=A.reduce((function(A,n){if(Tt(n))switch(n.value){case $n:return e=rr.CIRCLE,!1;case Zn:return e=rr.ELLIPSE,!1;case er:case jn:return t=ir.CLOSEST_SIDE,!1;case Wn:return t=ir.FARTHEST_SIDE,!1;case Yn:return t=ir.CLOSEST_CORNER,!1;case Ar:case qn:return t=ir.FARTHEST_CORNER,!1}else if(Pt(n)||Mt(n))return Array.isArray(t)||(t=[]),t.push(n),!1;return A}),a)),a){var o=gn(A);n.push(o)}})),{size:t,shape:e,stops:n,position:r,type:pn.RADIAL_GRADIENT}};(function(A){A[A["URL"]=0]="URL",A[A["LINEAR_GRADIENT"]=1]="LINEAR_GRADIENT",A[A["RADIAL_GRADIENT"]=2]="RADIAL_GRADIENT"})(pn||(pn={}));var rr,ir,ar=function(A){return A.type===pn.LINEAR_GRADIENT},or=function(A){return A.type===pn.RADIAL_GRADIENT};(function(A){A[A["CIRCLE"]=0]="CIRCLE",A[A["ELLIPSE"]=1]="ELLIPSE"})(rr||(rr={})),function(A){A[A["CLOSEST_SIDE"]=0]="CLOSEST_SIDE",A[A["FARTHEST_SIDE"]=1]="FARTHEST_SIDE",A[A["CLOSEST_CORNER"]=2]="CLOSEST_CORNER",A[A["FARTHEST_CORNER"]=3]="FARTHEST_CORNER"}(ir||(ir={}));var sr={name:"image",parse:function(A){if(A.type===d.URL_TOKEN){var e={url:A.value,type:pn.URL};return Rn.getInstance().addImage(A.value),e}if(A.type===d.FUNCTION){var t=Br[A.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(A.values)}throw new Error("Unsupported image type")}};function cr(A){return A.type!==d.FUNCTION||Br[A.name]}var lr,Br={"linear-gradient":vn,"-moz-linear-gradient":bn,"-ms-linear-gradient":bn,"-o-linear-gradient":bn,"-webkit-linear-gradient":bn,"radial-gradient":tr,"-moz-radial-gradient":nr,"-ms-radial-gradient":nr,"-o-radial-gradient":nr,"-webkit-radial-gradient":nr,"-webkit-gradient":Jn},ur={name:"background-image",initialValue:"none",type:ln.LIST,prefix:!1,parse:function(A){if(0===A.length)return[];var e=A[0];return e.type===d.IDENT_TOKEN&&"none"===e.value?[]:A.filter((function(A){return Rt(A)&&cr(A)})).map(sr.parse)}},dr={name:"background-origin",initialValue:"border-box",prefix:!1,type:ln.LIST,parse:function(A){return A.map((function(A){if(Tt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Qr={name:"background-position",initialValue:"0% 0%",type:ln.LIST,prefix:!1,parse:function(A){return Lt(A).map((function(A){return A.filter(Mt)})).map(kt)}};(function(A){A[A["REPEAT"]=0]="REPEAT",A[A["NO_REPEAT"]=1]="NO_REPEAT",A[A["REPEAT_X"]=2]="REPEAT_X",A[A["REPEAT_Y"]=3]="REPEAT_Y"})(lr||(lr={}));var pr,wr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:ln.LIST,parse:function(A){return Lt(A).map((function(A){return A.filter(Tt).map((function(A){return A.value})).join(" ")})).map(hr)}},hr=function(A){switch(A){case"no-repeat":return lr.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return lr.REPEAT_X;case"repeat-y":case"no-repeat repeat":return lr.REPEAT_Y;case"repeat":default:return lr.REPEAT}};(function(A){A["AUTO"]="auto",A["CONTAIN"]="contain",A["COVER"]="cover"})(pr||(pr={}));var gr,fr={name:"background-size",initialValue:"0",prefix:!1,type:ln.LIST,parse:function(A){return Lt(A).map((function(A){return A.filter(Cr)}))}},Cr=function(A){return Tt(A)||Mt(A)},Ur=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:ln.TYPE_VALUE,format:"color"}},Er=Ur("top"),mr=Ur("right"),Fr=Ur("bottom"),vr=Ur("left"),br=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:ln.LIST,parse:function(A){return kt(A.filter(Mt))}}},Hr=br("top-left"),Nr=br("top-right"),yr=br("bottom-right"),Kr=br("bottom-left");(function(A){A[A["NONE"]=0]="NONE",A[A["SOLID"]=1]="SOLID"})(gr||(gr={}));var Ir,Or=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:ln.IDENT_VALUE,parse:function(A){switch(A){case"none":return gr.NONE}return gr.SOLID}}},Tr=Or("top"),Sr=Or("right"),_r=Or("bottom"),Dr=Or("left"),Rr=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:ln.VALUE,prefix:!1,parse:function(A){return It(A)?A.number:0}}},Lr=Rr("top"),xr=Rr("right"),Pr=Rr("bottom"),Mr=Rr("left"),kr={name:"color",initialValue:"transparent",prefix:!1,type:ln.TYPE_VALUE,format:"color"},zr={name:"display",initialValue:"inline-block",prefix:!1,type:ln.LIST,parse:function(A){return A.filter(Tt).reduce((function(A,e){return A|Vr(e.value)}),0)}},Vr=function(A){switch(A){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};(function(A){A[A["NONE"]=0]="NONE",A[A["LEFT"]=1]="LEFT",A[A["RIGHT"]=2]="RIGHT",A[A["INLINE_START"]=3]="INLINE_START",A[A["INLINE_END"]=4]="INLINE_END"})(Ir||(Ir={}));var Xr,Gr={name:"float",initialValue:"none",prefix:!1,type:ln.IDENT_VALUE,parse:function(A){switch(A){case"left":return Ir.LEFT;case"right":return Ir.RIGHT;case"inline-start":return Ir.INLINE_START;case"inline-end":return Ir.INLINE_END}return Ir.NONE}},Jr={name:"letter-spacing",initialValue:"0",prefix:!1,type:ln.VALUE,parse:function(A){return A.type===d.IDENT_TOKEN&&"normal"===A.value?0:A.type===d.NUMBER_TOKEN?A.number:A.type===d.DIMENSION_TOKEN?A.number:0}};(function(A){A["NORMAL"]="normal",A["STRICT"]="strict"})(Xr||(Xr={}));var jr,Wr={name:"line-break",initialValue:"normal",prefix:!1,type:ln.IDENT_VALUE,parse:function(A){switch(A){case"strict":return Xr.STRICT;case"normal":default:return Xr.NORMAL}}},Yr={name:"line-height",initialValue:"normal",prefix:!1,type:ln.TOKEN_VALUE},qr=function(A,e){return Tt(A)&&"normal"===A.value?1.2*e:A.type===d.NUMBER_TOKEN?e*A.number:Mt(A)?Jt(A,e):e},$r={name:"list-style-image",initialValue:"none",type:ln.VALUE,prefix:!1,parse:function(A){return A.type===d.IDENT_TOKEN&&"none"===A.value?null:sr.parse(A)}};(function(A){A[A["INSIDE"]=0]="INSIDE",A[A["OUTSIDE"]=1]="OUTSIDE"})(jr||(jr={}));var Zr,Ai={name:"list-style-position",initialValue:"outside",prefix:!1,type:ln.IDENT_VALUE,parse:function(A){switch(A){case"inside":return jr.INSIDE;case"outside":default:return jr.OUTSIDE}}};(function(A){A[A["NONE"]=-1]="NONE",A[A["DISC"]=0]="DISC",A[A["CIRCLE"]=1]="CIRCLE",A[A["SQUARE"]=2]="SQUARE",A[A["DECIMAL"]=3]="DECIMAL",A[A["CJK_DECIMAL"]=4]="CJK_DECIMAL",A[A["DECIMAL_LEADING_ZERO"]=5]="DECIMAL_LEADING_ZERO",A[A["LOWER_ROMAN"]=6]="LOWER_ROMAN",A[A["UPPER_ROMAN"]=7]="UPPER_ROMAN",A[A["LOWER_GREEK"]=8]="LOWER_GREEK",A[A["LOWER_ALPHA"]=9]="LOWER_ALPHA",A[A["UPPER_ALPHA"]=10]="UPPER_ALPHA",A[A["ARABIC_INDIC"]=11]="ARABIC_INDIC",A[A["ARMENIAN"]=12]="ARMENIAN",A[A["BENGALI"]=13]="BENGALI",A[A["CAMBODIAN"]=14]="CAMBODIAN",A[A["CJK_EARTHLY_BRANCH"]=15]="CJK_EARTHLY_BRANCH",A[A["CJK_HEAVENLY_STEM"]=16]="CJK_HEAVENLY_STEM",A[A["CJK_IDEOGRAPHIC"]=17]="CJK_IDEOGRAPHIC",A[A["DEVANAGARI"]=18]="DEVANAGARI",A[A["ETHIOPIC_NUMERIC"]=19]="ETHIOPIC_NUMERIC",A[A["GEORGIAN"]=20]="GEORGIAN",A[A["GUJARATI"]=21]="GUJARATI",A[A["GURMUKHI"]=22]="GURMUKHI",A[A["HEBREW"]=22]="HEBREW",A[A["HIRAGANA"]=23]="HIRAGANA",A[A["HIRAGANA_IROHA"]=24]="HIRAGANA_IROHA",A[A["JAPANESE_FORMAL"]=25]="JAPANESE_FORMAL",A[A["JAPANESE_INFORMAL"]=26]="JAPANESE_INFORMAL",A[A["KANNADA"]=27]="KANNADA",A[A["KATAKANA"]=28]="KATAKANA",A[A["KATAKANA_IROHA"]=29]="KATAKANA_IROHA",A[A["KHMER"]=30]="KHMER",A[A["KOREAN_HANGUL_FORMAL"]=31]="KOREAN_HANGUL_FORMAL",A[A["KOREAN_HANJA_FORMAL"]=32]="KOREAN_HANJA_FORMAL",A[A["KOREAN_HANJA_INFORMAL"]=33]="KOREAN_HANJA_INFORMAL",A[A["LAO"]=34]="LAO",A[A["LOWER_ARMENIAN"]=35]="LOWER_ARMENIAN",A[A["MALAYALAM"]=36]="MALAYALAM",A[A["MONGOLIAN"]=37]="MONGOLIAN",A[A["MYANMAR"]=38]="MYANMAR",A[A["ORIYA"]=39]="ORIYA",A[A["PERSIAN"]=40]="PERSIAN",A[A["SIMP_CHINESE_FORMAL"]=41]="SIMP_CHINESE_FORMAL",A[A["SIMP_CHINESE_INFORMAL"]=42]="SIMP_CHINESE_INFORMAL",A[A["TAMIL"]=43]="TAMIL",A[A["TELUGU"]=44]="TELUGU",A[A["THAI"]=45]="THAI",A[A["TIBETAN"]=46]="TIBETAN",A[A["TRAD_CHINESE_FORMAL"]=47]="TRAD_CHINESE_FORMAL",A[A["TRAD_CHINESE_INFORMAL"]=48]="TRAD_CHINESE_INFORMAL",A[A["UPPER_ARMENIAN"]=49]="UPPER_ARMENIAN",A[A["DISCLOSURE_OPEN"]=50]="DISCLOSURE_OPEN",A[A["DISCLOSURE_CLOSED"]=51]="DISCLOSURE_CLOSED"})(Zr||(Zr={}));var ei,ti={name:"list-style-type",initialValue:"none",prefix:!1,type:ln.IDENT_VALUE,parse:function(A){switch(A){case"disc":return Zr.DISC;case"circle":return Zr.CIRCLE;case"square":return Zr.SQUARE;case"decimal":return Zr.DECIMAL;case"cjk-decimal":return Zr.CJK_DECIMAL;case"decimal-leading-zero":return Zr.DECIMAL_LEADING_ZERO;case"lower-roman":return Zr.LOWER_ROMAN;case"upper-roman":return Zr.UPPER_ROMAN;case"lower-greek":return Zr.LOWER_GREEK;case"lower-alpha":return Zr.LOWER_ALPHA;case"upper-alpha":return Zr.UPPER_ALPHA;case"arabic-indic":return Zr.ARABIC_INDIC;case"armenian":return Zr.ARMENIAN;case"bengali":return Zr.BENGALI;case"cambodian":return Zr.CAMBODIAN;case"cjk-earthly-branch":return Zr.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Zr.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Zr.CJK_IDEOGRAPHIC;case"devanagari":return Zr.DEVANAGARI;case"ethiopic-numeric":return Zr.ETHIOPIC_NUMERIC;case"georgian":return Zr.GEORGIAN;case"gujarati":return Zr.GUJARATI;case"gurmukhi":return Zr.GURMUKHI;case"hebrew":return Zr.HEBREW;case"hiragana":return Zr.HIRAGANA;case"hiragana-iroha":return Zr.HIRAGANA_IROHA;case"japanese-formal":return Zr.JAPANESE_FORMAL;case"japanese-informal":return Zr.JAPANESE_INFORMAL;case"kannada":return Zr.KANNADA;case"katakana":return Zr.KATAKANA;case"katakana-iroha":return Zr.KATAKANA_IROHA;case"khmer":return Zr.KHMER;case"korean-hangul-formal":return Zr.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Zr.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Zr.KOREAN_HANJA_INFORMAL;case"lao":return Zr.LAO;case"lower-armenian":return Zr.LOWER_ARMENIAN;case"malayalam":return Zr.MALAYALAM;case"mongolian":return Zr.MONGOLIAN;case"myanmar":return Zr.MYANMAR;case"oriya":return Zr.ORIYA;case"persian":return Zr.PERSIAN;case"simp-chinese-formal":return Zr.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Zr.SIMP_CHINESE_INFORMAL;case"tamil":return Zr.TAMIL;case"telugu":return Zr.TELUGU;case"thai":return Zr.THAI;case"tibetan":return Zr.TIBETAN;case"trad-chinese-formal":return Zr.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Zr.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Zr.UPPER_ARMENIAN;case"disclosure-open":return Zr.DISCLOSURE_OPEN;case"disclosure-closed":return Zr.DISCLOSURE_CLOSED;case"none":default:return Zr.NONE}}},ni=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:ln.TOKEN_VALUE}},ri=ni("top"),ii=ni("right"),ai=ni("bottom"),oi=ni("left");(function(A){A[A["VISIBLE"]=0]="VISIBLE",A[A["HIDDEN"]=1]="HIDDEN",A[A["SCROLL"]=2]="SCROLL",A[A["AUTO"]=3]="AUTO"})(ei||(ei={}));var si,ci={name:"overflow",initialValue:"visible",prefix:!1,type:ln.LIST,parse:function(A){return A.filter(Tt).map((function(A){switch(A.value){case"hidden":return ei.HIDDEN;case"scroll":return ei.SCROLL;case"auto":return ei.AUTO;case"visible":default:return ei.VISIBLE}}))}};(function(A){A["NORMAL"]="normal",A["BREAK_WORD"]="break-word"})(si||(si={}));var li,Bi={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:ln.IDENT_VALUE,parse:function(A){switch(A){case"break-word":return si.BREAK_WORD;case"normal":default:return si.NORMAL}}},ui=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:ln.TYPE_VALUE,format:"length-percentage"}},di=ui("top"),Qi=ui("right"),pi=ui("bottom"),wi=ui("left");(function(A){A[A["LEFT"]=0]="LEFT",A[A["CENTER"]=1]="CENTER",A[A["RIGHT"]=2]="RIGHT"})(li||(li={}));var hi,gi={name:"text-align",initialValue:"left",prefix:!1,type:ln.IDENT_VALUE,parse:function(A){switch(A){case"right":return li.RIGHT;case"center":case"justify":return li.CENTER;case"left":default:return li.LEFT}}};(function(A){A[A["STATIC"]=0]="STATIC",A[A["RELATIVE"]=1]="RELATIVE",A[A["ABSOLUTE"]=2]="ABSOLUTE",A[A["FIXED"]=3]="FIXED",A[A["STICKY"]=4]="STICKY"})(hi||(hi={}));var fi,Ci={name:"position",initialValue:"static",prefix:!1,type:ln.IDENT_VALUE,parse:function(A){switch(A){case"relative":return hi.RELATIVE;case"absolute":return hi.ABSOLUTE;case"fixed":return hi.FIXED;case"sticky":return hi.STICKY}return hi.STATIC}},Ui={name:"text-shadow",initialValue:"none",type:ln.LIST,prefix:!1,parse:function(A){return 1===A.length&&_t(A[0],"none")?[]:Lt(A).map((function(A){for(var e={color:Qn.TRANSPARENT,offsetX:zt,offsetY:zt,blur:zt},t=0,n=0;n<A.length;n++){var r=A[n];Pt(r)?(0===t?e.offsetX=r:1===t?e.offsetY=r:e.blur=r,t++):e.color=tn.parse(r)}return e}))}};(function(A){A[A["NONE"]=0]="NONE",A[A["LOWERCASE"]=1]="LOWERCASE",A[A["UPPERCASE"]=2]="UPPERCASE",A[A["CAPITALIZE"]=3]="CAPITALIZE"})(fi||(fi={}));var Ei,mi={name:"text-transform",initialValue:"none",prefix:!1,type:ln.IDENT_VALUE,parse:function(A){switch(A){case"uppercase":return fi.UPPERCASE;case"lowercase":return fi.LOWERCASE;case"capitalize":return fi.CAPITALIZE}return fi.NONE}},Fi={name:"transform",initialValue:"none",prefix:!0,type:ln.VALUE,parse:function(A){if(A.type===d.IDENT_TOKEN&&"none"===A.value)return null;if(A.type===d.FUNCTION){var e=Hi[A.name];if("undefined"===typeof e)throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},vi=function(A){var e=A.filter((function(A){return A.type===d.NUMBER_TOKEN})).map((function(A){return A.number}));return 6===e.length?e:null},bi=function(A){var e=A.filter((function(A){return A.type===d.NUMBER_TOKEN})).map((function(A){return A.number})),t=e[0],n=e[1],r=(e[2],e[3],e[4]),i=e[5],a=(e[6],e[7],e[8],e[9],e[10],e[11],e[12]),o=e[13];e[14],e[15];return 16===e.length?[t,n,r,i,a,o]:null},Hi={matrix:vi,matrix3d:bi},Ni={type:d.PERCENTAGE_TOKEN,number:50,flags:GA},yi=[Ni,Ni],Ki={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:ln.LIST,parse:function(A){var e=A.filter(Mt);return 2!==e.length?yi:[e[0],e[1]]}};(function(A){A[A["VISIBLE"]=0]="VISIBLE",A[A["HIDDEN"]=1]="HIDDEN",A[A["COLLAPSE"]=2]="COLLAPSE"})(Ei||(Ei={}));var Ii,Oi={name:"visible",initialValue:"none",prefix:!1,type:ln.IDENT_VALUE,parse:function(A){switch(A){case"hidden":return Ei.HIDDEN;case"collapse":return Ei.COLLAPSE;case"visible":default:return Ei.VISIBLE}}};(function(A){A["NORMAL"]="normal",A["BREAK_ALL"]="break-all",A["KEEP_ALL"]="keep-all"})(Ii||(Ii={}));var Ti,Si={name:"word-break",initialValue:"normal",prefix:!1,type:ln.IDENT_VALUE,parse:function(A){switch(A){case"break-all":return Ii.BREAK_ALL;case"keep-all":return Ii.KEEP_ALL;case"normal":default:return Ii.NORMAL}}},_i={name:"z-index",initialValue:"auto",prefix:!1,type:ln.VALUE,parse:function(A){if(A.type===d.IDENT_TOKEN)return{auto:!0,order:0};if(Ot(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},Di={name:"opacity",initialValue:"1",type:ln.VALUE,prefix:!1,parse:function(A){return Ot(A)?A.number:1}},Ri={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:ln.TYPE_VALUE,format:"color"},Li={name:"text-decoration-line",initialValue:"none",prefix:!1,type:ln.LIST,parse:function(A){return A.filter(Tt).map((function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(A){return 0!==A}))}},xi={name:"font-family",initialValue:"",prefix:!1,type:ln.LIST,parse:function(A){return A.filter(Pi).map((function(A){return A.value}))}},Pi=function(A){return A.type===d.STRING_TOKEN||A.type===d.IDENT_TOKEN},Mi={name:"font-size",initialValue:"0",prefix:!1,type:ln.TYPE_VALUE,format:"length"},ki={name:"font-weight",initialValue:"normal",type:ln.VALUE,prefix:!1,parse:function(A){if(Ot(A))return A.number;if(Tt(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},zi={name:"font-variant",initialValue:"none",type:ln.LIST,prefix:!1,parse:function(A){return A.filter(Tt).map((function(A){return A.value}))}};(function(A){A["NORMAL"]="normal",A["ITALIC"]="italic",A["OBLIQUE"]="oblique"})(Ti||(Ti={}));var Vi,Xi={name:"font-style",initialValue:"normal",prefix:!1,type:ln.IDENT_VALUE,parse:function(A){switch(A){case"oblique":return Ti.OBLIQUE;case"italic":return Ti.ITALIC;case"normal":default:return Ti.NORMAL}}},Gi=function(A,e){return 0!==(A&e)},Ji={name:"content",initialValue:"none",type:ln.LIST,prefix:!1,parse:function(A){if(0===A.length)return[];var e=A[0];return e.type===d.IDENT_TOKEN&&"none"===e.value?[]:A}},ji={name:"counter-increment",initialValue:"none",prefix:!0,type:ln.LIST,parse:function(A){if(0===A.length)return null;var e=A[0];if(e.type===d.IDENT_TOKEN&&"none"===e.value)return null;for(var t=[],n=A.filter(Dt),r=0;r<n.length;r++){var i=n[r],a=n[r+1];if(i.type===d.IDENT_TOKEN){var o=a&&Ot(a)?a.number:1;t.push({counter:i.value,increment:o})}}return t}},Wi={name:"counter-reset",initialValue:"none",prefix:!0,type:ln.LIST,parse:function(A){if(0===A.length)return[];for(var e=[],t=A.filter(Dt),n=0;n<t.length;n++){var r=t[n],i=t[n+1];if(Tt(r)&&"none"!==r.value){var a=i&&Ot(i)?i.number:0;e.push({counter:r.value,reset:a})}}return e}},Yi={name:"quotes",initialValue:"none",prefix:!0,type:ln.LIST,parse:function(A){if(0===A.length)return null;var e=A[0];if(e.type===d.IDENT_TOKEN&&"none"===e.value)return null;var t=[],n=A.filter(St);if(n.length%2!==0)return null;for(var r=0;r<n.length;r+=2){var i=n[r].value,a=n[r+1].value;t.push({open:i,close:a})}return t}},qi=function(A,e,t){if(!A)return"";var n=A[Math.min(e,A.length-1)];return n?t?n.open:n.close:""},$i={name:"box-shadow",initialValue:"none",type:ln.LIST,prefix:!1,parse:function(A){return 1===A.length&&_t(A[0],"none")?[]:Lt(A).map((function(A){for(var e={color:255,offsetX:zt,offsetY:zt,blur:zt,spread:zt,inset:!1},t=0,n=0;n<A.length;n++){var r=A[n];_t(r,"inset")?e.inset=!0:Pt(r)?(0===t?e.offsetX=r:1===t?e.offsetY=r:2===t?e.blur=r:e.spread=r,t++):e.color=tn.parse(r)}return e}))}},Zi=function(){function A(A){this.backgroundClip=ta(wn,A.backgroundClip),this.backgroundColor=ta(hn,A.backgroundColor),this.backgroundImage=ta(ur,A.backgroundImage),this.backgroundOrigin=ta(dr,A.backgroundOrigin),this.backgroundPosition=ta(Qr,A.backgroundPosition),this.backgroundRepeat=ta(wr,A.backgroundRepeat),this.backgroundSize=ta(fr,A.backgroundSize),this.borderTopColor=ta(Er,A.borderTopColor),this.borderRightColor=ta(mr,A.borderRightColor),this.borderBottomColor=ta(Fr,A.borderBottomColor),this.borderLeftColor=ta(vr,A.borderLeftColor),this.borderTopLeftRadius=ta(Hr,A.borderTopLeftRadius),this.borderTopRightRadius=ta(Nr,A.borderTopRightRadius),this.borderBottomRightRadius=ta(yr,A.borderBottomRightRadius),this.borderBottomLeftRadius=ta(Kr,A.borderBottomLeftRadius),this.borderTopStyle=ta(Tr,A.borderTopStyle),this.borderRightStyle=ta(Sr,A.borderRightStyle),this.borderBottomStyle=ta(_r,A.borderBottomStyle),this.borderLeftStyle=ta(Dr,A.borderLeftStyle),this.borderTopWidth=ta(Lr,A.borderTopWidth),this.borderRightWidth=ta(xr,A.borderRightWidth),this.borderBottomWidth=ta(Pr,A.borderBottomWidth),this.borderLeftWidth=ta(Mr,A.borderLeftWidth),this.boxShadow=ta($i,A.boxShadow),this.color=ta(kr,A.color),this.display=ta(zr,A.display),this.float=ta(Gr,A.cssFloat),this.fontFamily=ta(xi,A.fontFamily),this.fontSize=ta(Mi,A.fontSize),this.fontStyle=ta(Xi,A.fontStyle),this.fontVariant=ta(zi,A.fontVariant),this.fontWeight=ta(ki,A.fontWeight),this.letterSpacing=ta(Jr,A.letterSpacing),this.lineBreak=ta(Wr,A.lineBreak),this.lineHeight=ta(Yr,A.lineHeight),this.listStyleImage=ta($r,A.listStyleImage),this.listStylePosition=ta(Ai,A.listStylePosition),this.listStyleType=ta(ti,A.listStyleType),this.marginTop=ta(ri,A.marginTop),this.marginRight=ta(ii,A.marginRight),this.marginBottom=ta(ai,A.marginBottom),this.marginLeft=ta(oi,A.marginLeft),this.opacity=ta(Di,A.opacity);var e=ta(ci,A.overflow);this.overflowX=e[0],this.overflowY=e[e.length>1?1:0],this.overflowWrap=ta(Bi,A.overflowWrap),this.paddingTop=ta(di,A.paddingTop),this.paddingRight=ta(Qi,A.paddingRight),this.paddingBottom=ta(pi,A.paddingBottom),this.paddingLeft=ta(wi,A.paddingLeft),this.position=ta(Ci,A.position),this.textAlign=ta(gi,A.textAlign),this.textDecorationColor=ta(Ri,A.textDecorationColor||A.color),this.textDecorationLine=ta(Li,A.textDecorationLine),this.textShadow=ta(Ui,A.textShadow),this.textTransform=ta(mi,A.textTransform),this.transform=ta(Fi,A.transform),this.transformOrigin=ta(Ki,A.transformOrigin),this.visibility=ta(Oi,A.visibility),this.wordBreak=ta(Si,A.wordBreak),this.zIndex=ta(_i,A.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Ei.VISIBLE},A.prototype.isTransparent=function(){return nn(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return this.position!==hi.STATIC},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==Ir.NONE},A.prototype.isInlineLevel=function(){return Gi(this.display,4)||Gi(this.display,33554432)||Gi(this.display,268435456)||Gi(this.display,536870912)||Gi(this.display,67108864)||Gi(this.display,134217728)},A}(),Aa=function(){function A(A){this.content=ta(Ji,A.content),this.quotes=ta(Yi,A.quotes)}return A}(),ea=function(){function A(A){this.counterIncrement=ta(ji,A.counterIncrement),this.counterReset=ta(Wi,A.counterReset)}return A}(),ta=function(A,e){var t=new yt,n=null!==e&&"undefined"!==typeof e?e.toString():A.initialValue;t.write(n);var r=new Kt(t.read());switch(A.type){case ln.IDENT_VALUE:var i=r.parseComponentValue();return A.parse(Tt(i)?i.value:A.initialValue);case ln.VALUE:return A.parse(r.parseComponentValue());case ln.LIST:return A.parse(r.parseComponentValues());case ln.TOKEN_VALUE:return r.parseComponentValue();case ln.TYPE_VALUE:switch(A.format){case"angle":return $t.parse(r.parseComponentValue());case"color":return tn.parse(r.parseComponentValue());case"image":return sr.parse(r.parseComponentValue());case"length":var a=r.parseComponentValue();return Pt(a)?a:zt;case"length-percentage":var o=r.parseComponentValue();return Mt(o)?o:zt}}throw new Error("Attempting to parse unsupported css format type "+A.format)},na=function(){function A(A){this.styles=new Zi(window.getComputedStyle(A,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&Pa(A)&&(A.style.transform="none"),this.bounds=a(A),this.flags=0}return A}(),ra=function(){function A(A,e){this.text=A,this.bounds=e}return A}(),ia=function(A,e,t){var n=sa(A,e),r=[],i=0;return n.forEach((function(A){if(e.textDecorationLine.length||A.trim().length>0)if(_n.SUPPORT_RANGE_BOUNDS)r.push(new ra(A,oa(t,i,A.length)));else{var n=t.splitText(A.length);r.push(new ra(A,aa(t))),t=n}else _n.SUPPORT_RANGE_BOUNDS||(t=t.splitText(A.length));i+=A.length})),r},aa=function(A){var e=A.ownerDocument;if(e){var t=e.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(t,A);var r=a(t);return t.firstChild&&n.replaceChild(t.firstChild,t),r}}return new i(0,0,0,0)},oa=function(A,e,t){var n=A.ownerDocument;if(!n)throw new Error("Node has no owner document");var r=n.createRange();return r.setStart(A,e),r.setEnd(A,e+t),i.fromClientRect(r.getBoundingClientRect())},sa=function(A,e){return 0!==e.letterSpacing?s(A).map((function(A){return c(A)})):ca(A,e)},ca=function(A,e){var t,n=zA(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap===si.BREAK_WORD?"break-word":e.wordBreak}),r=[];while(!(t=n.next()).done)t.value&&r.push(t.value.slice());return r},la=function(){function A(A,e){this.text=Ba(A.data,e.textTransform),this.textBounds=ia(this.text,e,A)}return A}(),Ba=function(A,e){switch(e){case fi.LOWERCASE:return A.toLowerCase();case fi.CAPITALIZE:return A.replace(ua,da);case fi.UPPERCASE:return A.toUpperCase();default:return A}},ua=/(^|\s|:|-|\(|\))([a-z])/g,da=function(A,e,t){return A.length>0?e+t.toUpperCase():A},Qa=function(A){function t(e){var t=A.call(this,e)||this;return t.src=e.currentSrc||e.src,t.intrinsicWidth=e.naturalWidth,t.intrinsicHeight=e.naturalHeight,Rn.getInstance().addImage(t.src),t}return e(t,A),t}(na),pa=function(A){function t(e){var t=A.call(this,e)||this;return t.canvas=e,t.intrinsicWidth=e.width,t.intrinsicHeight=e.height,t}return e(t,A),t}(na),wa=function(A){function t(e){var t=A.call(this,e)||this,n=new XMLSerializer;return t.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(e)),t.intrinsicWidth=e.width.baseVal.value,t.intrinsicHeight=e.height.baseVal.value,Rn.getInstance().addImage(t.svg),t}return e(t,A),t}(na),ha=function(A){function t(e){var t=A.call(this,e)||this;return t.value=e.value,t}return e(t,A),t}(na),ga=function(A){function t(e){var t=A.call(this,e)||this;return t.start=e.start,t.reversed="boolean"===typeof e.reversed&&!0===e.reversed,t}return e(t,A),t}(na),fa=[{type:d.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],Ca=[{type:d.PERCENTAGE_TOKEN,flags:0,number:50}],Ua=function(A){return A.width>A.height?new i(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new i(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},Ea=function(A){var e=A.type===va?new Array(A.value.length+1).join("•"):A.value;return 0===e.length?A.placeholder||"":e},ma="checkbox",Fa="radio",va="password",ba=707406591,Ha=function(A){function t(e){var t=A.call(this,e)||this;switch(t.type=e.type.toLowerCase(),t.checked=e.checked,t.value=Ea(e),t.type!==ma&&t.type!==Fa||(t.styles.backgroundColor=3739148031,t.styles.borderTopColor=t.styles.borderRightColor=t.styles.borderBottomColor=t.styles.borderLeftColor=2779096575,t.styles.borderTopWidth=t.styles.borderRightWidth=t.styles.borderBottomWidth=t.styles.borderLeftWidth=1,t.styles.borderTopStyle=t.styles.borderRightStyle=t.styles.borderBottomStyle=t.styles.borderLeftStyle=gr.SOLID,t.styles.backgroundClip=[Bn.BORDER_BOX],t.styles.backgroundOrigin=[0],t.bounds=Ua(t.bounds)),t.type){case ma:t.styles.borderTopRightRadius=t.styles.borderTopLeftRadius=t.styles.borderBottomRightRadius=t.styles.borderBottomLeftRadius=fa;break;case Fa:t.styles.borderTopRightRadius=t.styles.borderTopLeftRadius=t.styles.borderBottomRightRadius=t.styles.borderBottomLeftRadius=Ca;break}return t}return e(t,A),t}(na),Na=function(A){function t(e){var t=A.call(this,e)||this,n=e.options[e.selectedIndex||0];return t.value=n&&n.text||"",t}return e(t,A),t}(na),ya=function(A){function t(e){var t=A.call(this,e)||this;return t.value=e.value,t}return e(t,A),t}(na),Ka=function(A){return tn.parse(Kt.create(A).parseComponentValue())},Ia=function(A){function t(e){var t=A.call(this,e)||this;t.src=e.src,t.width=parseInt(e.width,10)||0,t.height=parseInt(e.height,10)||0,t.backgroundColor=t.styles.backgroundColor;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement){t.tree=_a(e.contentWindow.document.documentElement);var n=e.contentWindow.document.documentElement?Ka(getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):Qn.TRANSPARENT,r=e.contentWindow.document.body?Ka(getComputedStyle(e.contentWindow.document.body).backgroundColor):Qn.TRANSPARENT;t.backgroundColor=nn(n)?nn(r)?t.styles.backgroundColor:r:n}}catch(Le){}return t}return e(t,A),t}(na),Oa=["OL","UL","MENU"],Ta=function(A,e,t){for(var n=A.firstChild,r=void 0;n;n=r)if(r=n.nextSibling,La(n)&&n.data.trim().length>0)e.textNodes.push(new la(n,e.styles));else if(xa(n)){var i=Sa(n);i.styles.isVisible()&&(Da(n,i,t)?i.flags|=4:Ra(i.styles)&&(i.flags|=2),-1!==Oa.indexOf(n.tagName)&&(i.flags|=8),e.elements.push(i),$a(n)||Xa(n)||Za(n)||Ta(n,i,t))}},Sa=function(A){return ja(A)?new Qa(A):Ja(A)?new pa(A):Xa(A)?new wa(A):Ma(A)?new ha(A):ka(A)?new ga(A):za(A)?new Ha(A):Za(A)?new Na(A):$a(A)?new ya(A):Wa(A)?new Ia(A):new na(A)},_a=function(A){var e=Sa(A);return e.flags|=4,Ta(A,e,e),e},Da=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Ga(A)&&t.styles.isTransparent()},Ra=function(A){return A.isPositioned()||A.isFloating()},La=function(A){return A.nodeType===Node.TEXT_NODE},xa=function(A){return A.nodeType===Node.ELEMENT_NODE},Pa=function(A){return"undefined"!==typeof A.style},Ma=function(A){return"LI"===A.tagName},ka=function(A){return"OL"===A.tagName},za=function(A){return"INPUT"===A.tagName},Va=function(A){return"HTML"===A.tagName},Xa=function(A){return"svg"===A.tagName},Ga=function(A){return"BODY"===A.tagName},Ja=function(A){return"CANVAS"===A.tagName},ja=function(A){return"IMG"===A.tagName},Wa=function(A){return"IFRAME"===A.tagName},Ya=function(A){return"STYLE"===A.tagName},qa=function(A){return"SCRIPT"===A.tagName},$a=function(A){return"TEXTAREA"===A.tagName},Za=function(A){return"SELECT"===A.tagName},Ao=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},A.prototype.pop=function(A){var e=this;A.forEach((function(A){return e.counters[A].pop()}))},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,n=A.counterReset,r=!0;null!==t&&t.forEach((function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(r=!1,t[Math.max(0,t.length-1)]+=A.increment)}));var i=[];return r&&n.forEach((function(A){var t=e.counters[A.counter];i.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),i},A}(),eo={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},to={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},no={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ro={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},io=function(A,e,t,n,r,i){return A<e||A>t?fo(A,r,i.length>0):n.integers.reduce((function(e,t,r){while(A>=t)A-=t,e+=n.values[r];return e}),"")+i},ao=function(A,e,t,n){var r="";do{t||A--,r=n(A)+r,A/=e}while(A*e>=e);return r},oo=function(A,e,t,n,r){var i=t-e+1;return(A<0?"-":"")+(ao(Math.abs(A),i,n,(function(A){return c(Math.floor(A%i)+e)}))+r)},so=function(A,e,t){void 0===t&&(t=". ");var n=e.length;return ao(Math.abs(A),n,!1,(function(A){return e[Math.floor(A%n)]}))+t},co=1,lo=2,Bo=4,uo=8,Qo=function(A,e,t,n,r,i){if(A<-9999||A>9999)return fo(A,Zr.CJK_DECIMAL,r.length>0);var a=Math.abs(A),o=r;if(0===a)return e[0]+o;for(var s=0;a>0&&s<=4;s++){var c=a%10;0===c&&Gi(i,co)&&""!==o?o=e[c]+o:c>1||1===c&&0===s||1===c&&1===s&&Gi(i,lo)||1===c&&1===s&&Gi(i,Bo)&&A>100||1===c&&s>1&&Gi(i,uo)?o=e[c]+(s>0?t[s-1]:"")+o:1===c&&s>0&&(o=t[s-1]+o),a=Math.floor(a/10)}return(A<0?n:"")+o},po="十百千萬",wo="拾佰仟萬",ho="マイナス",go="마이너스",fo=function(A,e,t){var n=t?". ":"",r=t?"、":"",i=t?", ":"",a=t?" ":"";switch(e){case Zr.DISC:return"•"+a;case Zr.CIRCLE:return"◦"+a;case Zr.SQUARE:return"◾"+a;case Zr.DECIMAL_LEADING_ZERO:var o=oo(A,48,57,!0,n);return o.length<4?"0"+o:o;case Zr.CJK_DECIMAL:return so(A,"〇一二三四五六七八九",r);case Zr.LOWER_ROMAN:return io(A,1,3999,eo,Zr.DECIMAL,n).toLowerCase();case Zr.UPPER_ROMAN:return io(A,1,3999,eo,Zr.DECIMAL,n);case Zr.LOWER_GREEK:return oo(A,945,969,!1,n);case Zr.LOWER_ALPHA:return oo(A,97,122,!1,n);case Zr.UPPER_ALPHA:return oo(A,65,90,!1,n);case Zr.ARABIC_INDIC:return oo(A,1632,1641,!0,n);case Zr.ARMENIAN:case Zr.UPPER_ARMENIAN:return io(A,1,9999,to,Zr.DECIMAL,n);case Zr.LOWER_ARMENIAN:return io(A,1,9999,to,Zr.DECIMAL,n).toLowerCase();case Zr.BENGALI:return oo(A,2534,2543,!0,n);case Zr.CAMBODIAN:case Zr.KHMER:return oo(A,6112,6121,!0,n);case Zr.CJK_EARTHLY_BRANCH:return so(A,"子丑寅卯辰巳午未申酉戌亥",r);case Zr.CJK_HEAVENLY_STEM:return so(A,"甲乙丙丁戊己庚辛壬癸",r);case Zr.CJK_IDEOGRAPHIC:case Zr.TRAD_CHINESE_INFORMAL:return Qo(A,"零一二三四五六七八九",po,"負",r,lo|Bo|uo);case Zr.TRAD_CHINESE_FORMAL:return Qo(A,"零壹貳參肆伍陸柒捌玖",wo,"負",r,co|lo|Bo|uo);case Zr.SIMP_CHINESE_INFORMAL:return Qo(A,"零一二三四五六七八九",po,"负",r,lo|Bo|uo);case Zr.SIMP_CHINESE_FORMAL:return Qo(A,"零壹贰叁肆伍陆柒捌玖",wo,"负",r,co|lo|Bo|uo);case Zr.JAPANESE_INFORMAL:return Qo(A,"〇一二三四五六七八九","十百千万",ho,r,0);case Zr.JAPANESE_FORMAL:return Qo(A,"零壱弐参四伍六七八九","拾百千万",ho,r,co|lo|Bo);case Zr.KOREAN_HANGUL_FORMAL:return Qo(A,"영일이삼사오육칠팔구","십백천만",go,i,co|lo|Bo);case Zr.KOREAN_HANJA_INFORMAL:return Qo(A,"零一二三四五六七八九","十百千萬",go,i,0);case Zr.KOREAN_HANJA_FORMAL:return Qo(A,"零壹貳參四五六七八九","拾百千",go,i,co|lo|Bo);case Zr.DEVANAGARI:return oo(A,2406,2415,!0,n);case Zr.GEORGIAN:return io(A,1,19999,ro,Zr.DECIMAL,n);case Zr.GUJARATI:return oo(A,2790,2799,!0,n);case Zr.GURMUKHI:return oo(A,2662,2671,!0,n);case Zr.HEBREW:return io(A,1,10999,no,Zr.DECIMAL,n);case Zr.HIRAGANA:return so(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case Zr.HIRAGANA_IROHA:return so(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case Zr.KANNADA:return oo(A,3302,3311,!0,n);case Zr.KATAKANA:return so(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",r);case Zr.KATAKANA_IROHA:return so(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",r);case Zr.LAO:return oo(A,3792,3801,!0,n);case Zr.MONGOLIAN:return oo(A,6160,6169,!0,n);case Zr.MYANMAR:return oo(A,4160,4169,!0,n);case Zr.ORIYA:return oo(A,2918,2927,!0,n);case Zr.PERSIAN:return oo(A,1776,1785,!0,n);case Zr.TAMIL:return oo(A,3046,3055,!0,n);case Zr.TELUGU:return oo(A,3174,3183,!0,n);case Zr.THAI:return oo(A,3664,3673,!0,n);case Zr.TIBETAN:return oo(A,3872,3881,!0,n);case Zr.DECIMAL:default:return oo(A,48,57,!0,n)}},Co="data-html2canvas-ignore",Uo=function(){function A(A,e){if(this.options=e,this.scrolledElements=[],this.referenceElement=A,this.counters=new Ao,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement)}return A.prototype.toIFrame=function(A,e){var t=this,i=mo(A,e);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var a=A.defaultView.pageXOffset,o=A.defaultView.pageYOffset,s=i.contentWindow,c=s.document,l=Fo(i).then((function(){return n(t,void 0,void 0,(function(){var A;return r(this,(function(t){switch(t.label){case 0:return this.scrolledElements.forEach(No),s&&(s.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===e.top&&s.scrollX===e.left||(c.documentElement.style.top=-e.top+"px",c.documentElement.style.left=-e.left+"px",c.documentElement.style.position="absolute")),A=this.options.onclone,"undefined"===typeof this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:t.sent(),t.label=2;case 2:return"function"===typeof A?[2,Promise.resolve().then((function(){return A(c)})).then((function(){return i}))]:[2,i]}}))}))}));return c.open(),c.write(bo(document.doctype)+"<html></html>"),Ho(this.referenceElement.ownerDocument,a,o),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),l},A.prototype.createElementClone=function(A){return Ja(A)?this.createCanvasClone(A):Ya(A)?this.createStyleClone(A):A.cloneNode(!1)},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce((function(A,e){return e&&"string"===typeof e.cssText?A+e.cssText:A}),""),n=A.cloneNode(!1);return n.textContent=t,n}}catch(Le){if(Dn.getInstance(this.options.id).error("Unable to access cssRules property",Le),"SecurityError"!==Le.name)throw Le}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){if(this.options.inlineImages&&A.ownerDocument){var e=A.ownerDocument.createElement("img");try{return e.src=A.toDataURL(),e}catch(Le){Dn.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var t=A.cloneNode(!1);try{t.width=A.width,t.height=A.height;var n=A.getContext("2d"),r=t.getContext("2d");return r&&(n?r.putImageData(n.getImageData(0,0,A.width,A.height),0,0):r.drawImage(A,0,0)),t}catch(Le){}return t},A.prototype.cloneNode=function(A){if(La(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var e=A.ownerDocument.defaultView;if(Pa(A)&&e){var t=this.createElementClone(A),n=e.getComputedStyle(A),r=e.getComputedStyle(A,":before"),i=e.getComputedStyle(A,":after");this.referenceElement===A&&(this.clonedReferenceElement=t),Ga(t)&&So(t);for(var a=this.counters.parse(new ea(n)),o=this.resolvePseudoContent(A,t,r,Vi.BEFORE),s=A.firstChild;s;s=s.nextSibling)xa(s)&&(qa(s)||s.hasAttribute(Co)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(s))||this.options.copyStyles&&xa(s)&&Ya(s)||t.appendChild(this.cloneNode(s));o&&t.insertBefore(o,t.firstChild);var c=this.resolvePseudoContent(A,t,i,Vi.AFTER);return c&&t.appendChild(c),this.counters.pop(a),n&&this.options.copyStyles&&!Wa(A)&&vo(n,t),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([t,A.scrollLeft,A.scrollTop]),($a(A)||Za(A))&&($a(t)||Za(t))&&(t.value=A.value),t}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,n){var r=this;if(t){var i=t.content,a=e.ownerDocument;if(a&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==t.display){this.counters.parse(new ea(t));var o=new Aa(t),s=a.createElement("html2canvaspseudoelement");return vo(t,s),o.content.forEach((function(e){if(e.type===d.STRING_TOKEN)s.appendChild(a.createTextNode(e.value));else if(e.type===d.URL_TOKEN){var t=a.createElement("img");t.src=e.value,t.style.opacity="1",s.appendChild(t)}else if(e.type===d.FUNCTION){if("attr"===e.name){var n=e.values.filter(Tt);n.length&&s.appendChild(a.createTextNode(A.getAttribute(n[0].value)||""))}else if("counter"===e.name){var i=e.values.filter(Rt),c=i[0],l=i[1];if(c&&Tt(c)){var B=r.counters.getCounterValue(c.value),u=l&&Tt(l)?ti.parse(l.value):Zr.DECIMAL;s.appendChild(a.createTextNode(fo(B,u,!1)))}}else if("counters"===e.name){var Q=e.values.filter(Rt),p=(c=Q[0],Q[1]);l=Q[2];if(c&&Tt(c)){var w=r.counters.getCounterValues(c.value),h=l&&Tt(l)?ti.parse(l.value):Zr.DECIMAL,g=p&&p.type===d.STRING_TOKEN?p.value:"",f=w.map((function(A){return fo(A,h,!1)})).join(g);s.appendChild(a.createTextNode(f))}}}else if(e.type===d.IDENT_TOKEN)switch(e.value){case"open-quote":s.appendChild(a.createTextNode(qi(o.quotes,r.quoteDepth++,!0)));break;case"close-quote":s.appendChild(a.createTextNode(qi(o.quotes,--r.quoteDepth,!1)));break;default:s.appendChild(a.createTextNode(e.value))}})),s.className=Io+" "+Oo,e.className+=n===Vi.BEFORE?" "+Io:" "+Oo,s}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();(function(A){A[A["BEFORE"]=0]="BEFORE",A[A["AFTER"]=1]="AFTER"})(Vi||(Vi={}));var Eo,mo=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(Co,"true"),A.body.appendChild(t),t},Fo=function(A){return new Promise((function(e,t){var n=A.contentWindow;if(!n)return t("No window assigned for iframe");var r=n.document;n.onload=A.onload=r.onreadystatechange=function(){n.onload=A.onload=r.onreadystatechange=null;var t=setInterval((function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(t),e(A))}),50)}}))},vo=function(A,e){for(var t=A.length-1;t>=0;t--){var n=A.item(t);"content"!==n&&e.style.setProperty(n,A.getPropertyValue(n))}return e},bo=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},Ho=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},No=function(A){var e=A[0],t=A[1],n=A[2];e.scrollLeft=t,e.scrollTop=n},yo=":before",Ko=":after",Io="___html2canvas___pseudoelement_before",Oo="___html2canvas___pseudoelement_after",To='{\n content: "" !important;\n display: none !important;\n}',So=function(A){_o(A,"."+Io+yo+To+"\n ."+Oo+Ko+To)},_o=function(A,e){var t=A.ownerDocument;if(t){var n=t.createElement("style");n.textContent=e,A.appendChild(n)}};(function(A){A[A["VECTOR"]=0]="VECTOR",A[A["BEZIER_CURVE"]=1]="BEZIER_CURVE"})(Eo||(Eo={}));var Do,Ro=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},Lo=function(A,e,t,n,r){return A.map((function(A,i){switch(i){case 0:return A.add(e,t);case 1:return A.add(e+n,t);case 2:return A.add(e+n,t+r);case 3:return A.add(e,t+r)}return A}))},xo=function(){function A(A,e){this.type=Eo.VECTOR,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),Po=function(A,e,t){return new xo(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Mo=function(){function A(A,e,t,n){this.type=Eo.BEZIER_CURVE,this.start=A,this.startControl=e,this.endControl=t,this.end=n}return A.prototype.subdivide=function(e,t){var n=Po(this.start,this.startControl,e),r=Po(this.startControl,this.endControl,e),i=Po(this.endControl,this.end,e),a=Po(n,r,e),o=Po(r,i,e),s=Po(a,o,e);return t?new A(this.start,n,a,s):new A(s,o,i,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),ko=function(A){return A.type===Eo.BEZIER_CURVE},zo=function(){function A(A){var e=A.styles,t=A.bounds,n=Gt(e.borderTopLeftRadius,t.width,t.height),r=n[0],i=n[1],a=Gt(e.borderTopRightRadius,t.width,t.height),o=a[0],s=a[1],c=Gt(e.borderBottomRightRadius,t.width,t.height),l=c[0],B=c[1],u=Gt(e.borderBottomLeftRadius,t.width,t.height),d=u[0],Q=u[1],p=[];p.push((r+o)/t.width),p.push((d+l)/t.width),p.push((i+Q)/t.height),p.push((s+B)/t.height);var w=Math.max.apply(Math,p);w>1&&(r/=w,i/=w,o/=w,s/=w,l/=w,B/=w,d/=w,Q/=w);var h=t.width-o,g=t.height-B,f=t.width-l,C=t.height-Q,U=e.borderTopWidth,E=e.borderRightWidth,m=e.borderBottomWidth,F=e.borderLeftWidth,v=Jt(e.paddingTop,A.bounds.width),b=Jt(e.paddingRight,A.bounds.width),H=Jt(e.paddingBottom,A.bounds.width),N=Jt(e.paddingLeft,A.bounds.width);this.topLeftBorderBox=r>0||i>0?Vo(t.left,t.top,r,i,Do.TOP_LEFT):new xo(t.left,t.top),this.topRightBorderBox=o>0||s>0?Vo(t.left+h,t.top,o,s,Do.TOP_RIGHT):new xo(t.left+t.width,t.top),this.bottomRightBorderBox=l>0||B>0?Vo(t.left+f,t.top+g,l,B,Do.BOTTOM_RIGHT):new xo(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=d>0||Q>0?Vo(t.left,t.top+C,d,Q,Do.BOTTOM_LEFT):new xo(t.left,t.top+t.height),this.topLeftPaddingBox=r>0||i>0?Vo(t.left+F,t.top+U,Math.max(0,r-F),Math.max(0,i-U),Do.TOP_LEFT):new xo(t.left+F,t.top+U),this.topRightPaddingBox=o>0||s>0?Vo(t.left+Math.min(h,t.width+F),t.top+U,h>t.width+F?0:o-F,s-U,Do.TOP_RIGHT):new xo(t.left+t.width-E,t.top+U),this.bottomRightPaddingBox=l>0||B>0?Vo(t.left+Math.min(f,t.width-F),t.top+Math.min(g,t.height+U),Math.max(0,l-E),B-m,Do.BOTTOM_RIGHT):new xo(t.left+t.width-E,t.top+t.height-m),this.bottomLeftPaddingBox=d>0||Q>0?Vo(t.left+F,t.top+C,Math.max(0,d-F),Q-m,Do.BOTTOM_LEFT):new xo(t.left+F,t.top+t.height-m),this.topLeftContentBox=r>0||i>0?Vo(t.left+F+N,t.top+U+v,Math.max(0,r-(F+N)),Math.max(0,i-(U+v)),Do.TOP_LEFT):new xo(t.left+F+N,t.top+U+v),this.topRightContentBox=o>0||s>0?Vo(t.left+Math.min(h,t.width+F+N),t.top+U+v,h>t.width+F+N?0:o-F+N,s-(U+v),Do.TOP_RIGHT):new xo(t.left+t.width-(E+b),t.top+U+v),this.bottomRightContentBox=l>0||B>0?Vo(t.left+Math.min(f,t.width-(F+N)),t.top+Math.min(g,t.height+U+v),Math.max(0,l-(E+b)),B-(m+H),Do.BOTTOM_RIGHT):new xo(t.left+t.width-(E+b),t.top+t.height-(m+H)),this.bottomLeftContentBox=d>0||Q>0?Vo(t.left+F+N,t.top+C,Math.max(0,d-(F+N)),Q-(m+H),Do.BOTTOM_LEFT):new xo(t.left+F+N,t.top+t.height-(m+H))}return A}();(function(A){A[A["TOP_LEFT"]=0]="TOP_LEFT",A[A["TOP_RIGHT"]=1]="TOP_RIGHT",A[A["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",A[A["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(Do||(Do={}));var Vo=function(A,e,t,n,r){var i=(Math.sqrt(2)-1)/3*4,a=t*i,o=n*i,s=A+t,c=e+n;switch(r){case Do.TOP_LEFT:return new Mo(new xo(A,c),new xo(A,c-o),new xo(s-a,e),new xo(s,e));case Do.TOP_RIGHT:return new Mo(new xo(A,e),new xo(A+a,e),new xo(s,c-o),new xo(s,c));case Do.BOTTOM_RIGHT:return new Mo(new xo(s,e),new xo(s,e+o),new xo(A+a,c),new xo(A,c));case Do.BOTTOM_LEFT:default:return new Mo(new xo(s,c),new xo(s-a,c),new xo(A,e+o),new xo(A,e))}},Xo=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},Go=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Jo=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},jo=function(){function A(A,e,t){this.type=0,this.offsetX=A,this.offsetY=e,this.matrix=t,this.target=6}return A}(),Wo=function(){function A(A,e){this.type=1,this.target=e,this.path=A}return A}(),Yo=function(A){return 0===A.type},qo=function(A){return 1===A.type},$o=function(){function A(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),Zo=function(){function A(A,e){if(this.container=A,this.effects=e.slice(0),this.curves=new zo(A),null!==A.styles.transform){var t=A.bounds.left+A.styles.transformOrigin[0].number,n=A.bounds.top+A.styles.transformOrigin[1].number,r=A.styles.transform;this.effects.push(new jo(t,n,r))}if(A.styles.overflowX!==ei.VISIBLE){var i=Xo(this.curves),a=Jo(this.curves);Ro(i,a)?this.effects.push(new Wo(i,6)):(this.effects.push(new Wo(i,2)),this.effects.push(new Wo(a,4)))}}return A.prototype.getParentEffects=function(){var A=this.effects.slice(0);if(this.container.styles.overflowX!==ei.VISIBLE){var e=Xo(this.curves),t=Jo(this.curves);Ro(e,t)||A.push(new Wo(t,6))}return A},A}(),As=function(A,e,t,n){A.container.elements.forEach((function(r){var i=Gi(r.flags,4),a=Gi(r.flags,2),o=new Zo(r,A.getParentEffects());Gi(r.styles.display,2048)&&n.push(o);var s=Gi(r.flags,8)?[]:n;if(i||a){var c=i||r.styles.isPositioned()?t:e,l=new $o(o);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var B=r.styles.zIndex.order;if(B<0){var u=0;c.negativeZIndex.some((function(A,e){return B>A.element.container.styles.zIndex.order?(u=e,!1):u>0})),c.negativeZIndex.splice(u,0,l)}else if(B>0){var d=0;c.positiveZIndex.some((function(A,e){return B>A.element.container.styles.zIndex.order?(d=e+1,!1):d>0})),c.positiveZIndex.splice(d,0,l)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else r.styles.isFloating()?c.nonPositionedFloats.push(l):c.nonPositionedInlineLevel.push(l);As(o,l,i?l:t,s)}else r.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),As(o,e,t,s);Gi(r.flags,8)&&es(r,s)}))},es=function(A,e){for(var t=A instanceof ga?A.start:1,n=A instanceof ga&&A.reversed,r=0;r<e.length;r++){var i=e[r];i.container instanceof ha&&"number"===typeof i.container.value&&0!==i.container.value&&(t=i.container.value),i.listValue=fo(t,i.container.styles.listStyleType,!0),t+=n?-1:1}},ts=function(A){var e=new Zo(A,[]),t=new $o(e),n=[];return As(e,t,t,n),es(e.container,n),t},ns=function(A,e){switch(e){case 0:return rs(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return rs(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return rs(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return rs(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},rs=function(A,e,t,n){var r=[];return ko(A)?r.push(A.subdivide(.5,!1)):r.push(A),ko(t)?r.push(t.subdivide(.5,!0)):r.push(t),ko(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),ko(e)?r.push(e.subdivide(.5,!1).reverse()):r.push(e),r},is=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},as=function(A){var e=A.styles,t=A.bounds,n=Jt(e.paddingLeft,t.width),r=Jt(e.paddingRight,t.width),i=Jt(e.paddingTop,t.width),a=Jt(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+r),-(e.borderTopWidth+e.borderBottomWidth+i+a))},os=function(A,e){return 0===A?e.bounds:2===A?as(e):is(e)},ss=function(A,e){return A===Bn.BORDER_BOX?e.bounds:A===Bn.CONTENT_BOX?as(e):is(e)},cs=function(A,e,t){var n=os(ds(A.styles.backgroundOrigin,e),A),r=ss(ds(A.styles.backgroundClip,e),A),i=us(ds(A.styles.backgroundSize,e),t,n),a=i[0],o=i[1],s=Gt(ds(A.styles.backgroundPosition,e),n.width-a,n.height-o),c=Qs(ds(A.styles.backgroundRepeat,e),s,i,n,r),l=Math.round(n.left+s[0]),B=Math.round(n.top+s[1]);return[c,l,B,a,o]},ls=function(A){return Tt(A)&&A.value===pr.AUTO},Bs=function(A){return"number"===typeof A},us=function(A,e,t){var n=e[0],r=e[1],i=e[2],a=A[0],o=A[1];if(Mt(a)&&o&&Mt(o))return[Jt(a,t.width),Jt(o,t.height)];var s=Bs(i);if(Tt(a)&&(a.value===pr.CONTAIN||a.value===pr.COVER)){if(Bs(i)){var c=t.width/t.height;return c<i!==(a.value===pr.COVER)?[t.width,t.width/i]:[t.height*i,t.height]}return[t.width,t.height]}var l=Bs(n),B=Bs(r),u=l||B;if(ls(a)&&(!o||ls(o))){if(l&&B)return[n,r];if(!s&&!u)return[t.width,t.height];if(u&&s){var d=l?n:r*i,Q=B?r:n/i;return[d,Q]}var p=l?n:t.width,w=B?r:t.height;return[p,w]}if(s){var h=0,g=0;return Mt(a)?h=Jt(a,t.width):Mt(o)&&(g=Jt(o,t.height)),ls(a)?h=g*i:o&&!ls(o)||(g=h/i),[h,g]}var f=null,C=null;if(Mt(a)?f=Jt(a,t.width):o&&Mt(o)&&(C=Jt(o,t.height)),null===f||o&&!ls(o)||(C=l&&B?f/n*r:t.height),null!==C&&ls(a)&&(f=l&&B?C/r*n:t.width),null!==f&&null!==C)return[f,C];throw new Error("Unable to calculate background-size for element")},ds=function(A,e){var t=A[e];return"undefined"===typeof t?A[0]:t},Qs=function(A,e,t,n,r){var i=e[0],a=e[1],o=t[0],s=t[1];switch(A){case lr.REPEAT_X:return[new xo(Math.round(n.left),Math.round(n.top+a)),new xo(Math.round(n.left+n.width),Math.round(n.top+a)),new xo(Math.round(n.left+n.width),Math.round(s+n.top+a)),new xo(Math.round(n.left),Math.round(s+n.top+a))];case lr.REPEAT_Y:return[new xo(Math.round(n.left+i),Math.round(n.top)),new xo(Math.round(n.left+i+o),Math.round(n.top)),new xo(Math.round(n.left+i+o),Math.round(n.height+n.top)),new xo(Math.round(n.left+i),Math.round(n.height+n.top))];case lr.NO_REPEAT:return[new xo(Math.round(n.left+i),Math.round(n.top+a)),new xo(Math.round(n.left+i+o),Math.round(n.top+a)),new xo(Math.round(n.left+i+o),Math.round(n.top+a+s)),new xo(Math.round(n.left+i),Math.round(n.top+a+s))];default:return[new xo(Math.round(r.left),Math.round(r.top)),new xo(Math.round(r.left+r.width),Math.round(r.top)),new xo(Math.round(r.left+r.width),Math.round(r.height+r.top)),new xo(Math.round(r.left),Math.round(r.height+r.top))]}},ps="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ws="Hidden Text",hs=function(){function A(A){this._data={},this._document=A}return A.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),n=this._document.createElement("img"),r=this._document.createElement("span"),i=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",i.appendChild(t),n.src=ps,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",r.style.fontFamily=A,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode(ws)),t.appendChild(r),t.appendChild(n);var a=n.offsetTop-r.offsetTop+2;t.removeChild(r),t.appendChild(this._document.createTextNode(ws)),t.style.lineHeight="normal",n.style.verticalAlign="super";var o=n.offsetTop-t.offsetTop+2;return i.removeChild(t),{baseline:a,middle:o}},A.prototype.getMetrics=function(A,e){var t=A+" "+e;return"undefined"===typeof this._data[t]&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},A}(),gs=1e4,fs=function(){function A(A){this._activeEffects=[],this.canvas=A.canvas?A.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=A,A.canvas||(this.canvas.width=Math.floor(A.width*A.scale),this.canvas.height=Math.floor(A.height*A.scale),this.canvas.style.width=A.width+"px",this.canvas.style.height=A.height+"px"),this.fontMetrics=new hs(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-A.x+A.scrollX,-A.y+A.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],Dn.getInstance(A.id).debug("Canvas renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale)}return A.prototype.applyEffects=function(A,e){var t=this;while(this._activeEffects.length)this.popEffect();A.filter((function(A){return Gi(A.target,e)})).forEach((function(A){return t.applyEffect(A)}))},A.prototype.applyEffect=function(A){this.ctx.save(),Yo(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),qo(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(A){return n(this,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:return e=A.element.container.styles,e.isVisible()?(this.ctx.globalAlpha=e.opacity,[4,this.renderStackContent(A)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},A.prototype.renderNode=function(A){return n(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(A)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},A.prototype.renderTextWithLetterSpacing=function(A,e){var t=this;if(0===e)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+A.bounds.height);else{var n=s(A.text).map((function(A){return c(A)}));n.reduce((function(e,n){return t.ctx.fillText(n,e,A.bounds.top+A.bounds.height),e+t.ctx.measureText(n).width}),A.bounds.left)}},A.prototype.createFontStyle=function(A){var e=A.fontVariant.filter((function(A){return"normal"===A||"small-caps"===A})).join(""),t=A.fontFamily.join(", "),n=It(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,n,t].join(" "),t,n]},A.prototype.renderTextNode=function(A,e){return n(this,void 0,void 0,(function(){var t,n,i,a,o=this;return r(this,(function(r){return t=this.createFontStyle(e),n=t[0],i=t[1],a=t[2],this.ctx.font=n,A.textBounds.forEach((function(A){o.ctx.fillStyle=rn(e.color),o.renderTextWithLetterSpacing(A,e.letterSpacing);var t=e.textShadow;t.length&&A.text.trim().length&&(t.slice(0).reverse().forEach((function(e){o.ctx.shadowColor=rn(e.color),o.ctx.shadowOffsetX=e.offsetX.number*o.options.scale,o.ctx.shadowOffsetY=e.offsetY.number*o.options.scale,o.ctx.shadowBlur=e.blur.number,o.ctx.fillText(A.text,A.bounds.left,A.bounds.top+A.bounds.height)})),o.ctx.shadowColor="",o.ctx.shadowOffsetX=0,o.ctx.shadowOffsetY=0,o.ctx.shadowBlur=0),e.textDecorationLine.length&&(o.ctx.fillStyle=rn(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:var t=o.fontMetrics.getMetrics(i,a).baseline;o.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top+t),A.bounds.width,1);break;case 2:o.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top),A.bounds.width,1);break;case 3:var n=o.fontMetrics.getMetrics(i,a).middle;o.ctx.fillRect(A.bounds.left,Math.ceil(A.bounds.top+n),A.bounds.width,1);break}})))})),[2]}))}))},A.prototype.renderReplacedElement=function(A,e,t){if(t&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var n=as(A),r=Jo(e);this.path(r),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return n(this,void 0,void 0,(function(){var t,n,a,o,s,c,l,B,u,d,Q,p,w,h,g;return r(this,(function(r){switch(r.label){case 0:this.applyEffects(e.effects,4),t=e.container,n=e.curves,a=t.styles,o=0,s=t.textNodes,r.label=1;case 1:return o<s.length?(c=s[o],[4,this.renderTextNode(c,a)]):[3,4];case 2:r.sent(),r.label=3;case 3:return o++,[3,1];case 4:if(!(t instanceof Qa))return[3,8];r.label=5;case 5:return r.trys.push([5,7,,8]),[4,this.options.cache.match(t.src)];case 6:return w=r.sent(),this.renderReplacedElement(t,n,w),[3,8];case 7:return r.sent(),Dn.getInstance(this.options.id).error("Error loading image "+t.src),[3,8];case 8:if(t instanceof pa&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof wa))return[3,12];r.label=9;case 9:return r.trys.push([9,11,,12]),[4,this.options.cache.match(t.svg)];case 10:return w=r.sent(),this.renderReplacedElement(t,n,w),[3,12];case 11:return r.sent(),Dn.getInstance(this.options.id).error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof Ia&&t.tree?(l=new A({id:this.options.id,scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:t.width,height:t.height,cache:this.options.cache,windowWidth:t.width,windowHeight:t.height}),[4,l.render(t.tree)]):[3,14];case 13:B=r.sent(),t.width&&t.height&&this.ctx.drawImage(B,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),r.label=14;case 14:if(t instanceof Ha&&(u=Math.min(t.bounds.width,t.bounds.height),t.type===ma?t.checked&&(this.ctx.save(),this.path([new xo(t.bounds.left+.39363*u,t.bounds.top+.79*u),new xo(t.bounds.left+.16*u,t.bounds.top+.5549*u),new xo(t.bounds.left+.27347*u,t.bounds.top+.44071*u),new xo(t.bounds.left+.39694*u,t.bounds.top+.5649*u),new xo(t.bounds.left+.72983*u,t.bounds.top+.23*u),new xo(t.bounds.left+.84*u,t.bounds.top+.34085*u),new xo(t.bounds.left+.39363*u,t.bounds.top+.79*u)]),this.ctx.fillStyle=rn(ba),this.ctx.fill(),this.ctx.restore()):t.type===Fa&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+u/2,t.bounds.top+u/2,u/4,0,2*Math.PI,!0),this.ctx.fillStyle=rn(ba),this.ctx.fill(),this.ctx.restore())),Cs(t)&&t.value.length){switch(this.ctx.font=this.createFontStyle(a)[0],this.ctx.fillStyle=rn(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign=Es(t.styles.textAlign),g=as(t),d=0,t.styles.textAlign){case li.CENTER:d+=g.width/2;break;case li.RIGHT:d+=g.width;break}Q=g.add(d,0,0,-g.height/2+1),this.ctx.save(),this.path([new xo(g.left,g.top),new xo(g.left+g.width,g.top),new xo(g.left+g.width,g.top+g.height),new xo(g.left,g.top+g.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ra(t.value,Q),a.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!Gi(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(p=t.styles.listStyleImage,p.type!==pn.URL)return[3,18];w=void 0,h=p.url,r.label=15;case 15:return r.trys.push([15,17,,18]),[4,this.options.cache.match(h)];case 16:return w=r.sent(),this.ctx.drawImage(w,t.bounds.left-(w.width+10),t.bounds.top),[3,18];case 17:return r.sent(),Dn.getInstance(this.options.id).error("Error loading list-style-image "+h),[3,18];case 18:return[3,20];case 19:e.listValue&&t.styles.listStyleType!==Zr.NONE&&(this.ctx.font=this.createFontStyle(a)[0],this.ctx.fillStyle=rn(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",g=new i(t.bounds.left,t.bounds.top+Jt(t.styles.paddingTop,t.bounds.width),t.bounds.width,qr(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ra(e.listValue,g),a.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),r.label=20;case 20:return[2]}}))}))},A.prototype.renderStackContent=function(A){return n(this,void 0,void 0,(function(){var e,t,n,i,a,o,s,c,l,B,u,d,Q,p,w;return r(this,(function(r){switch(r.label){case 0:return[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:r.sent(),e=0,t=A.negativeZIndex,r.label=2;case 2:return e<t.length?(w=t[e],[4,this.renderStack(w)]):[3,5];case 3:r.sent(),r.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:r.sent(),n=0,i=A.nonInlineLevel,r.label=7;case 7:return n<i.length?(w=i[n],[4,this.renderNode(w)]):[3,10];case 8:r.sent(),r.label=9;case 9:return n++,[3,7];case 10:a=0,o=A.nonPositionedFloats,r.label=11;case 11:return a<o.length?(w=o[a],[4,this.renderStack(w)]):[3,14];case 12:r.sent(),r.label=13;case 13:return a++,[3,11];case 14:s=0,c=A.nonPositionedInlineLevel,r.label=15;case 15:return s<c.length?(w=c[s],[4,this.renderStack(w)]):[3,18];case 16:r.sent(),r.label=17;case 17:return s++,[3,15];case 18:l=0,B=A.inlineLevel,r.label=19;case 19:return l<B.length?(w=B[l],[4,this.renderNode(w)]):[3,22];case 20:r.sent(),r.label=21;case 21:return l++,[3,19];case 22:u=0,d=A.zeroOrAutoZIndexOrTransformedOrOpacity,r.label=23;case 23:return u<d.length?(w=d[u],[4,this.renderStack(w)]):[3,26];case 24:r.sent(),r.label=25;case 25:return u++,[3,23];case 26:Q=0,p=A.positiveZIndex,r.label=27;case 27:return Q<p.length?(w=p[Q],[4,this.renderStack(w)]):[3,30];case 28:r.sent(),r.label=29;case 29:return Q++,[3,27];case 30:return[2]}}))}))},A.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},A.prototype.formatPath=function(A){var e=this;A.forEach((function(A,t){var n=ko(A)?A.start:A;0===t?e.ctx.moveTo(n.x,n.y):e.ctx.lineTo(n.x,n.y),ko(A)&&e.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)}))},A.prototype.renderRepeat=function(A,e,t,n){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,n),this.ctx.fill(),this.ctx.translate(-t,-n)},A.prototype.resizeImage=function(A,e,t){if(A.width===e&&A.height===t)return A;var n=this.canvas.ownerDocument.createElement("canvas");n.width=e,n.height=t;var r=n.getContext("2d");return r.drawImage(A,0,0,A.width,A.height,0,0,e,t),n},A.prototype.renderBackgroundImage=function(A){return n(this,void 0,void 0,(function(){var e,t,n,i,a,o;return r(this,(function(s){switch(s.label){case 0:e=A.styles.backgroundImage.length-1,t=function(t){var i,a,o,s,c,l,B,u,d,Q,p,w,h,g,f,C,U,E,m,F,v,b,H,N,y,K,I,O,T,S,_;return r(this,(function(r){switch(r.label){case 0:if(t.type!==pn.URL)return[3,5];i=void 0,a=t.url,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.options.cache.match(a)];case 2:return i=r.sent(),[3,4];case 3:return r.sent(),Dn.getInstance(n.options.id).error("Error loading background-image "+a),[3,4];case 4:return i&&(o=cs(A,e,[i.width,i.height,i.width/i.height]),C=o[0],b=o[1],H=o[2],m=o[3],F=o[4],g=n.ctx.createPattern(n.resizeImage(i,m,F),"repeat"),n.renderRepeat(C,g,b,H)),[3,6];case 5:ar(t)?(s=cs(A,e,[null,null,null]),C=s[0],b=s[1],H=s[2],m=s[3],F=s[4],c=Un(t.angle,m,F),l=c[0],B=c[1],u=c[2],d=c[3],Q=c[4],p=document.createElement("canvas"),p.width=m,p.height=F,w=p.getContext("2d"),h=w.createLinearGradient(B,d,u,Q),fn(t.stops,l).forEach((function(A){return h.addColorStop(A.stop,rn(A.color))})),w.fillStyle=h,w.fillRect(0,0,m,F),m>0&&F>0&&(g=n.ctx.createPattern(p,"repeat"),n.renderRepeat(C,g,b,H))):or(t)&&(f=cs(A,e,[null,null,null]),C=f[0],U=f[1],E=f[2],m=f[3],F=f[4],v=0===t.position.length?[Vt]:t.position,b=Jt(v[0],m),H=Jt(v[v.length-1],F),N=Fn(t,b,H,m,F),y=N[0],K=N[1],y>0&&y>0&&(I=n.ctx.createRadialGradient(U+b,E+H,0,U+b,E+H,y),fn(t.stops,2*y).forEach((function(A){return I.addColorStop(A.stop,rn(A.color))})),n.path(C),n.ctx.fillStyle=I,y!==K?(O=A.bounds.left+.5*A.bounds.width,T=A.bounds.top+.5*A.bounds.height,S=K/y,_=1/S,n.ctx.save(),n.ctx.translate(O,T),n.ctx.transform(1,0,0,S,0,0),n.ctx.translate(-O,-T),n.ctx.fillRect(U,_*(E-T)+T,m,F*_),n.ctx.restore()):n.ctx.fill())),r.label=6;case 6:return e--,[2]}}))},n=this,i=0,a=A.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:return i<a.length?(o=a[i],[5,t(o)]):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}))},A.prototype.renderBorder=function(A,e,t){return n(this,void 0,void 0,(function(){return r(this,(function(n){return this.path(ns(t,e)),this.ctx.fillStyle=rn(A),this.ctx.fill(),[2]}))}))},A.prototype.renderNodeBackgroundAndBorders=function(A){return n(this,void 0,void 0,(function(){var e,t,n,i,a,o,s,c,l=this;return r(this,(function(r){switch(r.label){case 0:return this.applyEffects(A.effects,2),e=A.container.styles,t=!nn(e.backgroundColor)||e.backgroundImage.length,n=[{style:e.borderTopStyle,color:e.borderTopColor},{style:e.borderRightStyle,color:e.borderRightColor},{style:e.borderBottomStyle,color:e.borderBottomColor},{style:e.borderLeftStyle,color:e.borderLeftColor}],i=Us(ds(e.backgroundClip,0),A.curves),t||e.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),nn(e.backgroundColor)||(this.ctx.fillStyle=rn(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:r.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){l.ctx.save();var t=Xo(A.curves),n=e.inset?0:gs,r=Lo(t,-n+(e.inset?1:-1)*e.spread.number,(e.inset?1:-1)*e.spread.number,e.spread.number*(e.inset?-2:2),e.spread.number*(e.inset?-2:2));e.inset?(l.path(t),l.ctx.clip(),l.mask(r)):(l.mask(t),l.ctx.clip(),l.path(r)),l.ctx.shadowOffsetX=e.offsetX.number+n,l.ctx.shadowOffsetY=e.offsetY.number,l.ctx.shadowColor=rn(e.color),l.ctx.shadowBlur=e.blur.number,l.ctx.fillStyle=e.inset?rn(e.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()})),r.label=2;case 2:a=0,o=0,s=n,r.label=3;case 3:return o<s.length?(c=s[o],c.style===gr.NONE||nn(c.color)?[3,5]:[4,this.renderBorder(c.color,a,A.curves)]):[3,7];case 4:r.sent(),r.label=5;case 5:a++,r.label=6;case 6:return o++,[3,3];case 7:return[2]}}))}))},A.prototype.render=function(A){return n(this,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=rn(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),e=ts(A),[4,this.renderStack(e)];case 1:return t.sent(),this.applyEffects([],2),[2,this.canvas]}}))}))},A}(),Cs=function(A){return A instanceof ya||(A instanceof Na||A instanceof Ha&&A.type!==Fa&&A.type!==ma)},Us=function(A,e){switch(A){case Bn.BORDER_BOX:return Xo(e);case Bn.CONTENT_BOX:return Go(e);case Bn.PADDING_BOX:default:return Jo(e)}},Es=function(A){switch(A){case li.CENTER:return"center";case li.RIGHT:return"right";case li.LEFT:default:return"left"}},ms=function(){function A(A){this.canvas=A.canvas?A.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=A,this.canvas.width=Math.floor(A.width*A.scale),this.canvas.height=Math.floor(A.height*A.scale),this.canvas.style.width=A.width+"px",this.canvas.style.height=A.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-A.x+A.scrollX,-A.y+A.scrollY),Dn.getInstance(A.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale)}return A.prototype.render=function(A){return n(this,void 0,void 0,(function(){var e,t;return r(this,(function(n){switch(n.label){case 0:return e=Tn(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,A),[4,Fs(e)];case 1:return t=n.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=rn(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(t,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},A}(),Fs=function(A){return new Promise((function(e,t){var n=new Image;n.onload=function(){e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},vs=void 0,bs=function(A){return tn.parse(Kt.create(A).parseComponentValue())},Hs=function(A,e){return void 0===e&&(e={}),Ns(A,e)};Rn.setContext(window);var Ns=function(A,e){return n(vs,void 0,void 0,(function(){var n,s,c,l,B,u,d,Q,p,w,h,g,f,C,U,E,m,F,v,b,H,N,y,K,I;return r(this,(function(r){switch(r.label){case 0:if(n=A.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(s=n.defaultView,!s)throw new Error("Document is not attached to a Window");return c=(Math.round(1e3*Math.random())+Date.now()).toString(16),l=Ga(A)||Va(A)?o(n):a(A),B=l.width,u=l.height,d=l.left,Q=l.top,p={allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},w=t({},p,e),h={backgroundColor:"#ffffff",cache:e.cache?e.cache:Rn.create(c,w),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:s.devicePixelRatio||1,windowWidth:s.innerWidth,windowHeight:s.innerHeight,scrollX:s.pageXOffset,scrollY:s.pageYOffset,x:d,y:Q,width:Math.ceil(B),height:Math.ceil(u),id:c},g=t({},h,w,e),f=new i(g.scrollX,g.scrollY,g.windowWidth,g.windowHeight),Dn.create({id:c,enabled:g.logging}),Dn.getInstance(c).debug("Starting document clone"),C=new Uo(A,{id:c,onclone:g.onclone,ignoreElements:g.ignoreElements,inlineImages:g.foreignObjectRendering,copyStyles:g.foreignObjectRendering}),U=C.clonedReferenceElement,U?[4,C.toIFrame(n,f)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return E=r.sent(),m=n.documentElement?bs(getComputedStyle(n.documentElement).backgroundColor):Qn.TRANSPARENT,F=n.body?bs(getComputedStyle(n.body).backgroundColor):Qn.TRANSPARENT,v=e.backgroundColor,b="string"===typeof v?bs(v):null===v?Qn.TRANSPARENT:4294967295,H=A===n.documentElement?nn(m)?nn(F)?b:F:m:b,N={id:c,cache:g.cache,canvas:g.canvas,backgroundColor:H,scale:g.scale,x:g.x,y:g.y,scrollX:g.scrollX,scrollY:g.scrollY,width:g.width,height:g.height,windowWidth:g.windowWidth,windowHeight:g.windowHeight},g.foreignObjectRendering?(Dn.getInstance(c).debug("Document cloned, using foreign object rendering"),I=new ms(N),[4,I.render(U)]):[3,3];case 2:return y=r.sent(),[3,5];case 3:return Dn.getInstance(c).debug("Document cloned, using computed rendering"),Rn.attachInstance(g.cache),Dn.getInstance(c).debug("Starting DOM parsing"),K=_a(U),Rn.detachInstance(),H===K.styles.backgroundColor&&(K.styles.backgroundColor=Qn.TRANSPARENT),Dn.getInstance(c).debug("Starting renderer"),I=new fs(N),[4,I.render(K)];case 4:y=r.sent(),r.label=5;case 5:return!0===g.removeContainer&&(Uo.destroy(E)||Dn.getInstance(c).error("Cannot detach cloned iframe as it is not in the DOM anymore")),Dn.getInstance(c).debug("Finished rendering"),Dn.destroy(c),Rn.destroy(c),[2,y]}}))}))};return Hs}))},f201:function(A,e,t){var n=t("e4ae"),r=t("79aa"),i=t("5168")("species");A.exports=function(A,e){var t,a=n(A).constructor;return void 0===a||void 0==(t=n(a)[i])?e:r(t)}},f7e4:function(A,e,t){},fbd7:function(A,e,t){"use strict";t.r(e);var n=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:A.loading,expression:"loading"}],staticClass:"page-editor editor-wrapper"},[t("div",{staticClass:"editor-side-bar border-R"},[t("el-tabs",{staticStyle:{height:"100%"},attrs:{"tab-position":"left"},model:{value:A.activeSideBar,callback:function(e){A.activeSideBar=e},expression:"activeSideBar"}},A._l(A.sidebarMenus,(function(A,e){return t("el-tab-pane",{key:e,attrs:{name:A.value}},[t("el-tooltip",{staticClass:"item",attrs:{slot:"label",effect:"dark",content:A.label,placement:"right"},slot:"label"},[t("i",{class:A.elementUiIcon})])],1)})),1)],1),t("div",{staticClass:"editor-page-edit-wrapper"},["componentLibs"===A.activeSideBar?t("componentLibs"):A._e(),"pageManage"===A.activeSideBar?t("pageManage"):A._e(),"templateLibs"===A.activeSideBar?t("templateLibs"):A._e()],1),t("div",{staticClass:"editor-main"},[t("div",{staticClass:"control-bar-wrapper"},[t("controlBar",{attrs:{scale:A.canvasConfig.scale},on:{"update:scale":function(e){return A.$set(A.canvasConfig,"scale",e)},"import-psd-data":A.importPsdData,showPreview:A.showPreviewFn,save:A.save}})],1),t("editorPan",{attrs:{scale:A.canvasConfig.scale},on:{"update:scale":function(e){return A.$set(A.canvasConfig,"scale",e)}}})],1),t("div",{staticClass:"el-attr-edit-wrapper scrollbar-wrapper"},[t("el-tabs",{attrs:{stretch:""},model:{value:A.activeAttr,callback:function(e){A.activeAttr=e},expression:"activeAttr"}},[t("el-tab-pane",{attrs:{label:"属性",name:"属性"}},[t("attrEdit")],1),t("el-tab-pane",{attrs:{label:"事件",name:"事件"}},[t("eventEdit")],1),t("el-tab-pane",{attrs:{label:"动画",name:"动画"}},[t("animationEdit")],1),t("el-tab-pane",{attrs:{label:"JS脚本",name:"脚本"}},[t("scriptEdit")],1),t("el-tab-pane",{attrs:{label:"页面设置",name:"页面属性"}},[t("pageAttrEdit")],1)],1)],1),A.showPreview?t("previewPage",{attrs:{pageId:A.id},on:{closePreview:function(e){A.showPreview=!1}}}):A._e(),t("imageLibs")],1)},r=[],i=(t("8e6e"),t("456d"),t("ac6a"),t("96cf"),t("795b")),a=t.n(i);function o(A,e,t,n,r,i,o){try{var s=A[i](o),c=s.value}catch(l){return void t(l)}s.done?e(c):a.a.resolve(c).then(n,r)}function s(A){return function(){var e=this,t=arguments;return new a.a((function(n,r){var i=A.apply(e,t);function a(A){o(i,n,r,a,s,"next",A)}function s(A){o(i,n,r,a,s,"throw",A)}a(void 0)}))}}var c=t("bd86"),l=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"components-libs-wrapper scrollbar-wrapper"},[t("p",{staticClass:"page-title text-center"},[A._v("组件库")]),t("el-scrollbar",{staticStyle:{height:"100%"}},[t("ul",{staticClass:"scrollbar-wrapper"},A._l(A.componentsList,(function(e,n){return t("li",{key:n,staticClass:"clearfix paddingB30"},[t("div",{staticClass:"components-libs-title"},[t("p",[A._v(A._s(e.title))])]),e.components&&e.components.length?t("div",A._l(e.components,(function(e,n){return t("div",{key:n,staticClass:"components-lib-item",on:{click:function(t){return A.handleClick(e)}}},[t("div",{staticClass:"lib-item-img"},[t("i",{class:[e.icon]})]),t("p",{staticClass:"lib-item-title"},[A._v(A._s(e.title))])])})),0):t("div",[t("p",{staticClass:"gray text-center paddingT20"},[A._v("待完善...")])])])})),0)])],1)},B=[],u=(t("6762"),t("2fdb"),t("391c")),d=t("9b2a"),Q=[{title:"基础组件",components:[{elName:"qk-text",title:"文字",icon:"iconfont iconwenben",valueType:"",defaultStyle:{height:40}},{elName:"qk-image",title:"图片",icon:"iconfont icontupian",valueType:"",defaultStyle:{height:200}},{elName:"qk-button",title:"按钮",icon:"iconfont iconanniuzu",valueType:"",defaultStyle:{width:140,height:40,paddingTop:10,paddingBottom:10,borderColor:"#999999",borderStyle:"solid",borderWidth:1,borderRadius:4}},{elName:"qk-rectangle-border",title:"矩形边框",icon:"iconfont iconjuxing",valueType:"",defaultStyle:{width:120,height:100,borderColor:"#999999",borderStyle:"solid",borderWidth:2}},{elName:"qk-rectangle-border",title:"分割线",icon:"iconfont icon758bianjiqi_fengexian",valueType:"",defaultStyle:{height:1,width:300,backgroundColor:"#999999"}},{elName:"qk-image-carousel",title:"图片轮播",icon:"iconfont iconshouyelunbotu",valueType:"",defaultStyle:{height:210}},{elName:"qk-iframe",title:"内嵌iframe",icon:"iconfont iconiframetianjia",valueType:"",defaultStyle:{width:d["a"].canvasH5Width,height:300,paddingTop:10,paddingBottom:10}},{elName:"map",title:"地图",icon:"iconfont iconditu",valueType:"",defaultStyle:{width:300,height:200,paddingTop:10,paddingBottom:10},needProps:{}},{elName:"video",title:"视频",icon:"iconfont iconshipin",valueType:"",defaultStyle:{width:d["a"].canvasH5Width,height:300,paddingTop:10,paddingBottom:10},needProps:{url:"http://www.baidu.com"}}]},{title:"表单组件",components:[{elName:"input",title:"文本框",icon:"iconfont iconwenbenkuang"},{elName:"radio",title:"单选框",icon:"iconfont iconplus-radio"},{elName:"checkbox",title:"复选框",icon:"iconfont iconduoxuan"},{elName:"date",title:"日期选择器",icon:"iconfont iconriqi"},{elName:"time",title:"时间选择器",icon:"iconfont iconshijian"},{elName:"datetime",title:"日期时间",icon:"iconfont iconriqishijian"}]},{title:"业务组件",components:[]},{title:"工具组件",components:[]}],p=(t("7f7f"),function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"qk-text"},[A._v("\n "+A._s(A.text)+"\n")])}),w=[],h={name:"QkText",props:{text:{type:String,default:"这是一段文字"}}},g=h,f=t("2877"),C=Object(f["a"])(g,p,w,!1,null,"92c044a0",null),U=C.exports;U.install=function(A){A.component(U.name,U)};var E=U,m=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"qk-image"},[t("img",{attrs:{src:A.imageSrc,alt:""}})])},F=[],v={name:"QkImage",props:{imageSrc:{type:String,default:"http://seopic.699pic.com/photo/50051/4111.jpg_wh1200.jpg"}}},b=v,H=(t("8c48"),Object(f["a"])(b,m,F,!1,null,"a8cbde36",null)),N=H.exports;N.install=function(A){A.component(N.name,N)};var y=N,K=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"qk-image"},[t("el-carousel",{attrs:{interval:A.interval}},A._l(A.imageSrcList,(function(A,e){return t("el-carousel-item",{key:e},[t("img",{attrs:{src:A,alt:""}})])})),1)],1)},I=[],O=(t("c5f6"),{name:"QkImageCarousel",props:{imageSrcList:{type:Array,default:function(){return["https://photo.16pic.com/00/72/63/16pic_7263937_b.jpg","https://photo.16pic.com/00/66/10/16pic_6610004_b.jpg","https://photo.16pic.com/00/65/58/16pic_6558126_b.jpg"]}},interval:{type:Number,default:3e3}},data:function(){return{}},methods:{}}),T=O,S=Object(f["a"])(T,K,I,!1,null,"0f2e016f",null),_=S.exports;_.install=function(A){A.component(_.name,_)};var D=_,R=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"qk-rectangle-border"})},L=[],x={name:"QkRectangleBorder"},P=x,M=Object(f["a"])(P,R,L,!1,null,"fe3ae6b6",null),k=M.exports;k.install=function(A){A.component(k.name,k)};var z=k,V=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"qk-iframe"},[t("iframe",{staticStyle:{"background-color":"transparent",width:"100%","min-height":"100%"},attrs:{src:A.url,frameborder:"0"}})])},X=[],G={name:"QkIframe",props:{url:{type:String,default:"http://m.baidu.com/"}},data:function(){return{}},methods:{}},J=G,j=Object(f["a"])(J,V,X,!1,null,"702b6dc4",null),W=j.exports;W.install=function(A){A.component(W.name,W)};var Y=W,q=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"qk-button"},[A._v("\n "+A._s(A.text)+"\n")])},$=[],Z={name:"QkButton",props:{text:{type:String,default:"按 钮"}}},AA=Z,eA=Object(f["a"])(AA,q,$,!1,null,"7573f943",null),tA=eA.exports;tA.install=function(A){A.component(tA.name,tA)};var nA=tA,rA=[E,y,D,z,Y,nA],iA=function A(e){A.installed||(A.installed=!0,rA.map((function(A){return e.component(A.name,A)})))};"undefined"!==typeof window&&window.Vue&&iA(window.Vue);var aA={};rA.forEach((function(A){aA[A.name]=A}));function oA(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function sA(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?oA(t,!0).forEach((function(e){Object(c["a"])(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):oA(t).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}var cA={name:"component-libs",data:function(){return{componentsList:Q}},methods:{handleClick:function(A){var e=this.getComponentProps(A.elName);this.$store.dispatch("addElement",sA({},A,{needProps:e}))},getComponentProps:function(A){var e;for(var t in aA)if(t.toLowerCase()===Object(u["camelCase"])(A).toLowerCase()){e=aA[t];break}if(!e)return{};var n={};for(var r in e.props)n[r]=[Object,Array].includes(e.props[r].type)?e.props[r].default():e.props[r].default;return n}}},lA=cA,BA=(t("38a7"),Object(f["a"])(lA,l,B,!1,null,"21bc4a9c",null)),uA=BA.exports,dA=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"components-page-manage scrollbar-wrapper"},[t("p",{staticClass:"page-title text-center"},[A._v("页面管理")]),t("el-scrollbar",{staticClass:"components-main-conten",staticStyle:{height:"100%"}},[t("div",{staticClass:"page-item clearfix"},[t("div",{staticClass:"inline-block"},[t("span",{staticClass:"page-item-index"},[t("i",{staticClass:"iconfont iconloading"})]),A._v("\n 加载页\n ")]),t("div",{staticClass:"pull-right custom-loading-btn"},[t("el-button",{attrs:{size:"mini"}},[A._v("自定义设置")])],1)]),A._l(A.projectData.pages,(function(e,n){return t("div",{key:e.uuid,staticClass:"page-item clearfix",class:{active:A.activePageUUID===e.uuid},on:{click:function(t){return A.changeActivePage(e)}}},[t("div",{staticClass:"inline-block"},[t("span",{staticClass:"page-item-index"},[A._v(A._s(n+1))]),A._v("\n 第"+A._s(n+1)+"页\n ")]),t("div",{staticClass:"page-item-btn-wrapper pull-right width20"},[t("el-dropdown",[t("span",{staticClass:"el-dropdown-link"},[t("i",{staticClass:"el-icon-more-outline"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",[t("div",{staticClass:"btn-item",on:{click:function(t){return A.copyPage(e)}}},[t("i",{staticClass:"el-icon-document-copy"}),A._v(" 复制页面")])]),t("el-dropdown-item",[t("div",{staticClass:"btn-item",on:{click:function(t){return A.addPage(e)}}},[t("i",{staticClass:"el-icon-document-add"}),A._v(" 新增页面")])]),t("el-dropdown-item",[t("div",{staticClass:"btn-item",on:{click:function(t){return A.deletePage(e)}}},[t("i",{staticClass:"el-icon-delete"}),A._v(" 删除页面")])])],1)],1)],1)])}))],2),t("div",{staticClass:"bottom-btn-wrapper"},[t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return A.addPage()}}},[A._v("新增空页面")])],1)],1)},QA=[],pA=t("2f62");function wA(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function hA(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?wA(t,!0).forEach((function(e){Object(c["a"])(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):wA(t).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}var gA={computed:hA({},Object(pA["d"])({projectData:function(A){return A.editor.projectData},activePageUUID:function(A){return A.editor.activePageUUID},activeElementUUID:function(A){return A.editor.activeElementUUID}})),methods:{changeActivePage:function(A){this.$store.dispatch("setActivePageUUID",A.uuid)},copyPage:function(A){this.$store.dispatch("copyPage",A.uuid)},addPage:function(A){this.$store.dispatch("addPage",A?A.uuid:"")},deletePage:function(A){this.$store.dispatch("deletePage",A.uuid)}}},fA=gA,CA=(t("5744"),Object(f["a"])(fA,dA,QA,!1,null,"ccec819c",null)),UA=CA.exports,EA=function(){var A=this,e=A.$createElement;A._self._c;return A._m(0)},mA=[function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",[t("p",{staticClass:"page-title text-center"},[A._v("模板库")]),t("p",{staticClass:"gray text-center paddingT20"},[A._v("待完善...")])])}],FA={name:"template-libs"},vA=FA,bA=Object(f["a"])(vA,EA,mA,!1,null,"df9b429e",null),HA=bA.exports,NA=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"editor-pane",on:{click:A.handleClickCanvas,keyup:function(e){return!e.type.indexOf("key")&&A._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:A.handleKeyup(e)}}},[t("div",{staticClass:"editor-pane-inner"},[t("div",{staticClass:"editor-main",style:{transform:"scale("+A.scale+")"}},[t("div",{ref:"canvas-panel",staticClass:"page-preview-wrapper",style:A.getCommonStyle(A.activePage.commonStyle),attrs:{id:"canvas-panel"}},A._l(A.activePage.elements,(function(e){return t("edit-shape",{key:e.uuid,style:A.getCommonStyle(e.commonStyle),attrs:{uuid:e.uuid,defaultStyle:e.commonStyle,active:e.uuid===A.activeElementUUID},on:{handleElementClick:function(t){return A.handleElementClick(e.uuid)},resize:A.handleElementResize}},[t(e.elName,A._b({tag:"component",staticClass:"element-on-edit-pane"},"component",e.propsValue,!1))],1)})),1),t("div",{staticClass:"page-wrapper-mask"}),t("div",{staticClass:"page-wrapper-menu-operation menu-item-on-edit-panel",class:{active:A.activeElementUUID}},A._l(A.menuOptions,(function(e,n){return t("el-tooltip",{key:n,attrs:{effect:"dark",content:e.title,placement:"right"}},[t("div",{staticClass:"menu-item menu-item-on-edit-panel",on:{click:function(t){return A.handleElementCommand(e.value)}}},[t("i",{staticClass:"menu-item-on-edit-panel",class:[e.icon]})])])})),1)])])])},yA=[],KA=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"components-edit-shape",class:{active:this.active},on:{click:A.handleTopWrapperClick,mousedown:A.handleMouseDownOnElement}},[A._l(A.active?A.pointList:[],(function(e){return t("div",{key:e,staticClass:"edit-shape-point",style:A.getPointStyle(e),on:{mousedown:function(t){return A.handleMouseDownOnPoint(e)}}})})),A._t("default")],2)},IA=[];t("28a5"),t("551c");function OA(A){return TA.apply(this,arguments)}function TA(){return TA=s(regeneratorRuntime.mark((function A(e){var t,n,r,i,a,o,s=arguments;return regeneratorRuntime.wrap((function(A){while(1)switch(A.prev=A.next){case 0:t=s.length>1&&void 0!==s[1]?s[1]:[],n=s.length>2?s[2]:void 0,r=s.length>3?s[3]:void 0,i=function(A){return new Promise((function(t){e.style.animationName=A.type,e.style.animationDuration="".concat(A.duration,"s"),e.style.animationIterationCount=A.infinite?n?1:"infinite":A.interationCount,e.style.animationDelay="".concat(A.delay,"s"),e.style.animationFillMode="both";var r=function A(){e.removeEventListener("animationend",A,!1),e.addEventListener("animationcancel",A,!1),t()};e.addEventListener("animationend",r,!1),e.addEventListener("animationcancel",r,!1)}))},a=0,o=t.length;case 5:if(!(a<o)){A.next=11;break}return A.next=8,i(t[a]);case 8:a++,A.next=5;break;case 11:r&&r();case 12:case"end":return A.stop()}}),A)}))),TA.apply(this,arguments)}var SA=t("2b0e"),_A=new SA["default"];function DA(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function RA(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?DA(t,!0).forEach((function(e){Object(c["a"])(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):DA(t).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}var LA={name:"EditShape",props:{active:{type:Boolean,default:!1},defaultStyle:{require:!0,type:Object},uuid:String},data:function(){return{pointList:["lt","rt","lb","rb","l","r","t","b"],directionKey:{t:"n",b:"s",l:"w",r:"e"}}},mounted:function(){var A=this;this.animatePlaying=!1,_A.$on("RUN_ANIMATIONS",(function(e,t){if(e===A.uuid&&!A.animatePlaying){var n=A.$el.style.cssText;A.animatePlaying=!0,OA(A.$el,t,!0,(function(){A.$el.style.cssText=n,A.animatePlaying=!1}))}}))},methods:{getPointStyle:function(A){var e=this,t=this.defaultStyle,n=t.height,r=t.width,i=/t/.test(A),a=/b/.test(A),o=/l/.test(A),s=/r/.test(A),c=0,l=0;2===A.length?(c=o?0:r,l=i?0:n):((i||a)&&(c=r/2,l=i?0:n),(o||s)&&(c=o?0:r,l=n/2));var B={marginLeft:o||s?"-5px":0,marginTop:i||a?"-5px":0,left:"".concat(c,"px"),top:"".concat(l,"px"),cursor:A.split("").reverse().map((function(A){return e.directionKey[A]})).join("")+"-resize"};return B},handleTopWrapperClick:function(A){A.stopPropagation(),A.preventDefault()},handleMouseDownOnElement:function(A){var e=this;this.$emit("handleElementClick");var t=RA({},this.defaultStyle),n=A.clientY,r=A.clientX,i=t.top,a=t.left,o="",s="";o=(new Date).getTime();var c=function(A){A.stopPropagation(),A.preventDefault();var o=A.clientX,s=A.clientY;t.top=s-n+i,t.left=o-r+a,e.$emit("resize",t)},l=function A(){s=(new Date).getTime(),s-o>200&&e.$emit("resize"),document.removeEventListener("mousemove",c,!0),document.removeEventListener("mouseup",A,!0)};return document.addEventListener("mousemove",c,!0),document.addEventListener("mouseup",l,!0),!0},handleMouseDownOnPoint:function(A){var e=this,t=event;this.$emit("handleElementClick"),t.stopPropagation(),t.preventDefault();var n=RA({},this.defaultStyle),r=n.height,i=n.width,a=n.top,o=n.left,s=t.clientX,c=t.clientY,l=function(t){var l=t.clientX,B=t.clientY,u=B-c,d=l-s,Q=/t/.test(A),p=/b/.test(A),w=/l/.test(A),h=/r/.test(A),g=+r+(Q?-u:p?u:0),f=+i+(w?-d:h?d:0);n.height=g>0?g:0,n.width=f>0?f:0,n.left=+o+(w?d:0),n.top=+a+(Q?u:0),e.$emit("resize",n)},B=function A(){e.$emit("resize"),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",A)};document.addEventListener("mousemove",l),document.addEventListener("mouseup",B)}}},xA=LA,PA=(t("c04c"),Object(f["a"])(xA,KA,IA,!1,null,"57175d14",null)),MA=PA.exports,kA=t("1336"),zA=t("e81a"),VA=t.n(zA);function XA(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function GA(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?XA(t,!0).forEach((function(e){Object(c["a"])(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):XA(t).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}window._qk_register_components_object=aA;var JA={props:{scale:{type:Number,default:1}},components:GA({},aA,Object(c["a"])({},MA.name,MA)),data:function(){return{getCommonStyle:kA["a"].getCommonStyle,menuOptions:[{title:"复制",icon:"iconfont iconfuzhi",value:"copy"},{title:"删除",icon:"iconfont iconshanchu",value:"delete"},{title:"字体放大",icon:"iconfont iconzitifangda",value:"fontA+"},{title:"字体缩小",icon:"iconfont iconzitisuoxiao",value:"fontA-"},{title:"字体加粗",icon:"iconfont iconzitijiacu",value:"fontB"},{title:"图层上移",icon:"iconfont iconziyuan1",value:"layerUp"},{title:"图层下移",icon:"iconfont iconxiayiyiceng",value:"layerDown"},{title:"图层置顶",icon:"iconfont iconcontrol-top",value:"layerTop"},{title:"图层置底",icon:"iconfont iconcontrol-bottom",value:"layerBottom"}]}},computed:GA({},Object(pA["d"])({projectData:function(A){return A.editor.projectData},activePageUUID:function(A){return A.editor.activePageUUID},activeElementUUID:function(A){return A.editor.activeElementUUID}}),{},Object(pA["c"])(["currentPageIndex","activeElementIndex","activeElement","activePage"])),mounted:function(){},methods:{handleElementClick:function(A){this.$store.dispatch("setActiveElementUUID",A)},handleElementResize:function(A){A?(this.projectData.pages[this.currentPageIndex].elements[this.activeElementIndex].commonStyle.left=A.left,this.projectData.pages[this.currentPageIndex].elements[this.activeElementIndex].commonStyle=GA({},A)):this.$store.dispatch("addHistoryCache")},handleClickCanvas:function(A){A.target.classList.contains("element-on-edit-pane")||A.target.classList.contains("menu-item-on-edit-panel")||this.$store.dispatch("setActiveElementUUID","")},handleElementCommand:function(A){this.$store.dispatch("elementCommand",A)},handleKeyup:function(A){console.log(1111,A)},screenshots:function(){var A=this,e=document.querySelector("#canvas-panel");VA()(e,{width:375,height:667,proxy:"/htmltocanvas/corsproxy"}).then((function(e){var t=e.toDataURL("image/jpeg");A.$store.commit("updateCoverImage",t)}))}}},jA=JA,WA=(t("ae4a"),Object(f["a"])(jA,NA,yA,!1,null,"27e91372",null)),YA=WA.exports,qA=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("el-scrollbar",{staticClass:"components-attr-edit"},[A.activeElementUUID?t("div",{staticClass:"attr-edit-inner"},[t("div",{staticClass:"props-attr-style"},[t("propsAttr")],1),t("div",{staticClass:"common-attr-style"},[t("baseAttr")],1)]):t("div",[t("p",{staticClass:"gray paddingT30 text-center"},[A._v("请在画板上选择需要编辑得元素")])])])},$A=[],ZA=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",[t("p",{staticClass:"page-title fontBold"},[A._v("基础样式")]),t("el-collapse",{model:{value:A.activeNames,callback:function(e){A.activeNames=e},expression:"activeNames"}},[t("el-collapse-item",{attrs:{title:"尺寸与位置:",name:"1"}},[t("div",{staticClass:"attr-item-edit-wrapper marginB15"},[t("p",{staticClass:"attr-item-title"},[A._v("快捷定位:")]),t("div",{staticClass:"sizeAndPosition-wrapper"},A._l(A.alignTypeList,(function(e){return t("div",{key:e.type,staticClass:"align-type-item",on:{click:function(t){return A.changeAlignType(e.type)}}},[t("el-tooltip",{attrs:{effect:"dark",content:e.title,placement:"bottom"}},[t("i",{class:[e.icon]})])],1)})),0)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("尺寸:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:0},model:{value:A.activeElement.commonStyle.width,callback:function(e){A.$set(A.activeElement.commonStyle,"width",e)},expression:"activeElement.commonStyle.width"}}),t("div",{staticClass:"attr-item-edit-input-des"},[A._v("宽度")])],1),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:0},model:{value:A.activeElement.commonStyle.height,callback:function(e){A.$set(A.activeElement.commonStyle,"height",e)},expression:"activeElement.commonStyle.height"}}),t("div",{staticClass:"attr-item-edit-input-des"},[A._v("高度")])],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("快捷resize:")]),t("div",{staticClass:"sizeAndPosition-wrapper"},[t("div",{staticClass:"align-type-item clearFlex",on:{click:function(e){return A.handleResizeClick("wh")}}},[t("el-tooltip",{attrs:{effect:"dark",content:"满屏",placement:"bottom"}},[t("i",{staticClass:"iconfont iconquanping"})])],1),t("div",{staticClass:"align-type-item clearFlex",on:{click:function(e){return A.handleResizeClick("w")}}},[t("el-tooltip",{attrs:{effect:"dark",content:"宽100%",placement:"bottom"}},[t("i",{staticClass:"iconfont iconcolumn-width"})])],1),t("div",{staticClass:"align-type-item clearFlex",on:{click:function(e){return A.handleResizeClick("h")}}},[t("el-tooltip",{attrs:{effect:"dark",content:"高100%",placement:"bottom"}},[t("i",{staticClass:"iconfont iconcolum-height"})])],1)])]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("位置:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right"},model:{value:A.activeElement.commonStyle.top,callback:function(e){A.$set(A.activeElement.commonStyle,"top",e)},expression:"activeElement.commonStyle.top"}}),t("div",{staticClass:"attr-item-edit-input-des"},[A._v("X")])],1),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right"},model:{value:A.activeElement.commonStyle.left,callback:function(e){A.$set(A.activeElement.commonStyle,"left",e)},expression:"activeElement.commonStyle.left"}}),t("div",{staticClass:"attr-item-edit-input-des"},[A._v("Y")])],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("旋转:")]),t("div",{staticClass:"col-1 attr-item-edit-input"},[t("el-slider",{attrs:{"show-input":"",min:-180,max:180,marks:{0:"",90:"","-90":""},"input-size":"mini"},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.rotate,callback:function(e){A.$set(A.activeElement.commonStyle,"rotate",e)},expression:"activeElement.commonStyle.rotate"}})],1)])]),t("el-collapse-item",{attrs:{title:"边框边距:",name:"2"}},[t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("边框:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:0},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.borderWidth,callback:function(e){A.$set(A.activeElement.commonStyle,"borderWidth",e)},expression:"activeElement.commonStyle.borderWidth"}}),t("div",{staticClass:"attr-item-edit-input-des"},[A._v("尺寸")])],1),t("div",{staticClass:"col-3 attr-item-edit-input"},[t("el-color-picker",{attrs:{size:"mini"},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.borderColor,callback:function(e){A.$set(A.activeElement.commonStyle,"borderColor",e)},expression:"activeElement.commonStyle.borderColor"}}),t("div",{staticClass:"attr-item-edit-input-des"},[A._v("颜色")])],1),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-select",{attrs:{size:"mini"},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.borderStyle,callback:function(e){A.$set(A.activeElement.commonStyle,"borderStyle",e)},expression:"activeElement.commonStyle.borderStyle"}},A._l(A.borderStyleList,(function(A){return t("el-option",{key:A.value,attrs:{label:A.label,value:A.value}})})),1),t("div",{staticClass:"attr-item-edit-input-des"},[A._v("样式")])],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("边框圆弧:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:0},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.borderRadius,callback:function(e){A.$set(A.activeElement.commonStyle,"borderRadius",e)},expression:"activeElement.commonStyle.borderRadius"}})],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("上下边距:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:0},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.paddingTop,callback:function(e){A.$set(A.activeElement.commonStyle,"paddingTop",e)},expression:"activeElement.commonStyle.paddingTop"}})],1),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:0},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.paddingBottom,callback:function(e){A.$set(A.activeElement.commonStyle,"paddingBottom",e)},expression:"activeElement.commonStyle.paddingBottom"}})],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("左右边距:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:0},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.paddingLeft,callback:function(e){A.$set(A.activeElement.commonStyle,"paddingLeft",e)},expression:"activeElement.commonStyle.paddingLeft"}})],1),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:0},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.paddingRight,callback:function(e){A.$set(A.activeElement.commonStyle,"paddingRight",e)},expression:"activeElement.commonStyle.paddingRight"}})],1)])]),t("el-collapse-item",{attrs:{title:"阴影样式:",name:"3"}},[t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("阴影位置:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right"},on:{change:A.boxShadowChange},model:{value:A.boxShadow.h,callback:function(e){A.$set(A.boxShadow,"h",e)},expression:"boxShadow.h"}}),t("div",{staticClass:"attr-item-edit-input-des"},[A._v("水平阴影位置")])],1),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right"},on:{change:A.boxShadowChange},model:{value:A.boxShadow.v,callback:function(e){A.$set(A.boxShadow,"v",e)},expression:"boxShadow.v"}}),t("div",{staticClass:"attr-item-edit-input-des"},[A._v("垂直阴影位置")])],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("阴影位置:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right"},on:{change:A.boxShadowChange},model:{value:A.boxShadow.blur,callback:function(e){A.$set(A.boxShadow,"blur",e)},expression:"boxShadow.blur"}}),t("div",{staticClass:"attr-item-edit-input-des"},[A._v("水平阴影位置")])],1),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right"},on:{change:A.boxShadowChange},model:{value:A.boxShadow.spread,callback:function(e){A.$set(A.boxShadow,"spread",e)},expression:"boxShadow.spread"}}),t("div",{staticClass:"attr-item-edit-input-des"},[A._v("垂直阴影位置")])],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("阴影颜色:")]),t("div",{staticClass:"attr-item-edit-input"},[t("el-color-picker",{attrs:{size:"mini"},on:{change:A.boxShadowChange},model:{value:A.boxShadow.color,callback:function(e){A.$set(A.boxShadow,"color",e)},expression:"boxShadow.color"}})],1)])]),t("el-collapse-item",{attrs:{title:"字体:",name:"4"}},[t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("字体大小:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:0},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.fontSize,callback:function(e){A.$set(A.activeElement.commonStyle,"fontSize",e)},expression:"activeElement.commonStyle.fontSize"}})],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("字体粗细:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:300,step:100,max:900},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.fontWeight,callback:function(e){A.$set(A.activeElement.commonStyle,"fontWeight",e)},expression:"activeElement.commonStyle.fontWeight"}})],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("行间距:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:0,step:.1},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.lineHeight,callback:function(e){A.$set(A.activeElement.commonStyle,"lineHeight",e)},expression:"activeElement.commonStyle.lineHeight"}})],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("字间距:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:0},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.letterSpacing,callback:function(e){A.$set(A.activeElement.commonStyle,"letterSpacing",e)},expression:"activeElement.commonStyle.letterSpacing"}})],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("对齐方式:")]),t("div",{staticClass:"sizeAndPosition-wrapper"},[t("div",{staticClass:"align-type-item clearFlex",on:{click:function(e){return A.handleTextAlignClick("left")}}},[t("el-tooltip",{attrs:{effect:"dark",content:"左对齐",placement:"bottom"}},[t("i",{staticClass:"iconfont iconzuoduiqi1"})])],1),t("div",{staticClass:"align-type-item clearFlex",on:{click:function(e){return A.handleTextAlignClick("center")}}},[t("el-tooltip",{attrs:{effect:"dark",content:"居中对齐",placement:"bottom"}},[t("i",{staticClass:"iconfont iconjuzhongduiqi"})])],1),t("div",{staticClass:"align-type-item clearFlex",on:{click:function(e){return A.handleTextAlignClick("right")}}},[t("el-tooltip",{attrs:{effect:"dark",content:"右对齐",placement:"bottom"}},[t("i",{staticClass:"iconfont iconyouduiqi2"})])],1)])]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("字体颜色:")]),t("div",{staticClass:"attr-item-edit-input"},[t("el-color-picker",{attrs:{size:"mini"},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.color,callback:function(e){A.$set(A.activeElement.commonStyle,"color",e)},expression:"activeElement.commonStyle.color"}})],1)])]),t("el-collapse-item",{attrs:{title:"背景&&透明度:",name:"5"}},[t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("背景颜色:")]),t("div",{staticClass:"attr-item-edit-input no-top"},[t("el-color-picker",{attrs:{size:"mini","show-alpha":!0},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.backgroundColor,callback:function(e){A.$set(A.activeElement.commonStyle,"backgroundColor",e)},expression:"activeElement.commonStyle.backgroundColor"}})],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("背景图片:")]),t("div",{staticClass:"attr-item-edit-input"},[t("imageSelect",{attrs:{url:A.activeElement.commonStyle.backgroundImage},on:{"update:url":function(e){return A.$set(A.activeElement.commonStyle,"backgroundImage",e)},change:A.throttleAddHistory}})],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("透明度:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:0,max:1,step:.1},on:{change:A.throttleAddHistory},model:{value:A.activeElement.commonStyle.opacity,callback:function(e){A.$set(A.activeElement.commonStyle,"opacity",e)},expression:"activeElement.commonStyle.opacity"}})],1)])])],1)],1)},Ae=[],ee=(t("a481"),function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"components-image-select",on:{click:A.handleClick}},[A.url?t("img",{attrs:{src:A.url,alt:""}}):t("div",{staticClass:"image-preview-null"},[t("i",{staticClass:"el-icon-plus"}),t("p",[A._v("选择图片")])])])}),te=[],ne={props:{url:String},data:function(){return{selectId:+new Date}},created:function(){_A.$on("select-image",this.changeIamge)},methods:{changeIamge:function(A,e){A===this.selectId&&(this.$emit("update:url",e),this.$emit("change",e))},handleClick:function(){_A.$emit("show-select-image",this.selectId)}}},re=ne,ie=(t("6965"),Object(f["a"])(re,ee,te,!1,null,"ce494a32",null)),ae=ie.exports;function oe(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function se(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?oe(t,!0).forEach((function(e){Object(c["a"])(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):oe(t).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}var ce,le={components:{imageSelect:ae},data:function(){return{activeNames:["1"],alignTypeList:[{title:"左对齐",icon:"iconfont iconzuoduiqi",type:"l"},{title:"上对齐",icon:"iconfont iconshangduiqi",type:"t"},{title:"右对齐",icon:"iconfont iconyouduiqi",type:"r"},{title:"下对齐",icon:"iconfont iconxiaduiqi",type:"b"},{title:"垂直居中对齐",icon:"iconfont iconchuizhijuzhongduiqi",type:"tb"},{title:"水平居中对齐",icon:"iconfont iconshuipingjuzhongduiqi",type:"lr"}],borderStyleList:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"},{label:"双线",value:"double"}],boxShadow:{h:0,v:0,blur:0,spread:0,color:"#000000"}}},computed:se({},Object(pA["d"])({projectData:function(A){return A.editor.projectData},activePageUUID:function(A){return A.editor.activePageUUID},activeElementUUID:function(A){return A.editor.activeElementUUID},activeAttrEditCollapse:function(A){return A.editor.activeAttrEditCollapse}}),{},Object(pA["c"])(["currentPageIndex","activeElementIndex","activeElement","activePage"])),watch:{activeElementUUID:function(){var A=this;this.$nextTick((function(){A.initBoxShadowEdit()}))},activeNames:function(){this.$store.commit("updateActiveAttrEditCollapse",this.activeNames)}},created:function(){this.throttleAddHistory=Object(u["throttle"])(this.addHistory,3e3)},mounted:function(){this.initBoxShadowEdit(),this.activeNames=this.activeAttrEditCollapse},methods:{addHistory:function(){this.$store.dispatch("addHistoryCache")},changeAlignType:function(A){var e=this.$config.canvasH5Width,t=this.$config.canvasH5Height,n=this.activeElement.commonStyle.width,r=this.activeElement.commonStyle.height;switch(A){case"t":this.activeElement.commonStyle.top=0;break;case"b":this.activeElement.commonStyle.top=Object(u["subtract"])(t-r);break;case"l":this.activeElement.commonStyle.left=0;break;case"r":this.activeElement.commonStyle.left=Object(u["subtract"])(e-n);break;case"tb":this.activeElement.commonStyle.top=Object(u["ceil"])(Object(u["divide"])(Object(u["subtract"])(t-r),2),2);break;case"lr":this.activeElement.commonStyle.left=Object(u["ceil"])(Object(u["divide"])(Object(u["subtract"])(e-n),2),2);break}},initBoxShadowEdit:function(){var A=this.activeElement.commonStyle.boxShadow,e={h:0,v:0,blur:0,spread:0,color:"#000000"};if(A&&"none"!==A){var t=A.split(" ");e={h:parseInt(t[0].replace("px","")),v:parseInt(t[1].replace("px","")),blur:parseInt(t[2].replace("px","")),spread:parseInt(t[3].replace("px","")),color:t[4]},this.boxShadow=e}else this.boxShadow=e},boxShadowChange:function(){var A="".concat(this.boxShadow.h,"px ").concat(this.boxShadow.v,"px ").concat(this.boxShadow.blur,"px ").concat(this.boxShadow.spread,"px ").concat(this.boxShadow.color);this.activeElement.commonStyle.boxShadow=A},handleTextAlignClick:function(A){this.activeElement.commonStyle.textAlign=A},handleResizeClick:function(A){A.includes("w")&&(this.activeElement.commonStyle.left=0,this.activeElement.commonStyle.width=375),A.includes("h")&&(this.activeElement.commonStyle.top=0,this.activeElement.commonStyle.height=667)}}},Be=le,ue=(t("5d76"),t("51dc"),Object(f["a"])(Be,ZA,Ae,!1,null,"a824b54e",null)),de=ue.exports,Qe=function(){var A=this,e=A.$createElement,t=A._self._c||e;return A.currentElementProps.length?t("div",[t("div",{staticClass:"attr-title marginB10 fontBold"},[A._v("组件属性")]),t("el-form",A._l(A.currentElementProps,(function(e){return t("attr-qk-"+e,A._b({key:e,tag:"component"},"component",A.activeElement.propsValue,!1,!0))})),1)],1):A._e()},pe=[],we=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("el-form-item",{attrs:{label:"文本内容:"}},[t("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入文本内容"},model:{value:A.tempText,callback:function(e){A.tempText=e},expression:"tempText"}})],1)},he=[],ge={name:"attr-qk-text",props:{text:String},data:function(){return{tempText:""}},mounted:function(){this.tempText=this.text},watch:{text:function(){this.tempText=this.text},tempText:function(){this.$emit("update:text",this.tempText)}}},fe=ge,Ce=Object(f["a"])(fe,we,he,!1,null,"7c8cd3c1",null),Ue=Ce.exports,Ee=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("el-form-item",{attrs:{label:"图片:"}},[t("imageSelect",{attrs:{url:A.tempValue},on:{"update:url":function(e){A.tempValue=e}}})],1)},me=[],Fe={name:"attr-qk-imageSrc",props:{imageSrc:String},components:{imageSelect:ae},data:function(){return{tempValue:""}},mounted:function(){this.tempValue=this.imageSrc},watch:{imageSrc:function(A){this.tempValue=A},tempValue:function(){this.$emit("update:imageSrc",this.tempValue)}}},ve=Fe,be=Object(f["a"])(ve,Ee,me,!1,null,"f2791798",null),He=be.exports,Ne=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("el-form-item",{attrs:{label:"url地址:"}},[t("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入url地址"},model:{value:A.tempValue,callback:function(e){A.tempValue=e},expression:"tempValue"}})],1)},ye=[],Ke={name:"attr-qk-url",props:{url:String},data:function(){return{tempValue:""}},mounted:function(){this.tempValue=this.url},watch:{url:function(A){this.tempValue=A},tempValue:function(){this.$emit("update:url",this.tempValue)}}},Ie=Ke,Oe=Object(f["a"])(Ie,Ne,ye,!1,null,"6f0538ec",null),Te=Oe.exports,Se=(ce={},Object(c["a"])(ce,Ue.name,Ue),Object(c["a"])(ce,He.name,He),Object(c["a"])(ce,Te.name,Te),ce);function _e(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function De(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?_e(t,!0).forEach((function(e){Object(c["a"])(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):_e(t).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}var Re={components:De({},Se),computed:De({},Object(pA["d"])({projectData:function(A){return A.editor.projectData},activePageUUID:function(A){return A.editor.activePageUUID},activeElementUUID:function(A){return A.editor.activeElementUUID}}),{},Object(pA["c"])(["currentPageIndex","activeElementIndex","activeElement","activePage"]),{currentElementProps:function(){if(!this.activeElement.propsValue)return[];var A=Object.keys(this.activeElement.propsValue),e=Object.keys(Se);return A=A.filter((function(A){return e.includes("attr-qk-"+A)})),A}})},Le=Re,xe=Object(f["a"])(Le,Qe,pe,!1,null,"80aecd5e",null),Pe=xe.exports;function Me(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function ke(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Me(t,!0).forEach((function(e){Object(c["a"])(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):Me(t).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}var ze={props:{},components:{baseAttr:de,propsAttr:Pe},computed:ke({},Object(pA["d"])({projectData:function(A){return A.editor.projectData},activePageUUID:function(A){return A.editor.activePageUUID},activeElementUUID:function(A){return A.editor.activeElementUUID}}),{},Object(pA["c"])(["currentPageIndex","activeElementIndex"]))},Ve=ze,Xe=(t("2507"),t("78cc"),Object(f["a"])(Ve,qA,$A,!1,null,"12ef628a",null)),Ge=Xe.exports,Je=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"components-attr-edit components-attr-animate-edit"},[t("el-scrollbar",{staticClass:"components-attr-edit"},[A.activeElementUUID?t("div",{staticClass:"attr-edit-inner"},[t("div",{staticClass:"animate-edit-btn-wrapper"},[t("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:A.addAnimate}},[A._v("添加动画")]),t("el-button",{attrs:{icon:"el-icon-caret-right",size:"small"},on:{click:function(e){return A.runAnimate(void 0)}}},[A._v("预览动画")])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:A.activeElement.animations.length,expression:"activeElement.animations.length"}],staticClass:"el-animate-list-wrapper paddingT20"},[t("el-collapse",{attrs:{accordion:""}},A._l(A.activeElement.animations,(function(e,n){return t("el-collapse-item",{key:n},[t("template",{slot:"title"},[t("span",{staticClass:"el-animate-title-name"},[A._v("动画 "+A._s(n))]),t("div",{staticClass:"el-animate-title-type-wrapper"},[t("span",{staticClass:"el-animate-title-type",on:{click:function(e){return e.stopPropagation(),e.preventDefault(),A.handleShowChooseAnimatePanel(n)}}},[A._v(A._s(e.type)+" "),t("i",{staticClass:"el-icon-caret-right size-mini"})])]),t("span",{staticClass:"el-animate-title-btn",on:{click:function(e){return e.stopPropagation(),e.preventDefault(),A.runAnimate(n)}}},[t("i",{staticClass:"el-icon-caret-right"})]),t("span",{staticClass:"el-animate-title-btn",on:{click:function(e){return e.stopPropagation(),e.preventDefault(),A.handleDeleteAnimate(e)}}},[t("i",{staticClass:"el-icon-delete"})])]),t("div",{staticClass:"el-animate-item"},[t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("动画时长:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:0,step:.1},model:{value:e.duration,callback:function(t){A.$set(e,"duration",t)},expression:"item.duration"}})],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("动画延迟:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right",min:0,step:.1},model:{value:e.delay,callback:function(t){A.$set(e,"delay",t)},expression:"item.delay"}})],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("循环次数:")]),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-input-number",{attrs:{size:"mini","controls-position":"right"},model:{value:e.interationCount,callback:function(t){A.$set(e,"interationCount",t)},expression:"item.interationCount"}}),t("div",{staticClass:"attr-item-edit-input-des"},[A._v("次数")])],1),t("div",{staticClass:"col-2 attr-item-edit-input"},[t("el-checkbox",{attrs:{label:"infinite",border:"",size:"small"},model:{value:e.infinite,callback:function(t){A.$set(e,"infinite",t)},expression:"item.infinite"}},[A._v("循环播放")])],1)])])],2)})),1)],1)]):t("div",[t("p",{staticClass:"gray paddingT30 text-center"},[A._v("请在画板上选择需要编辑得元素")])])]),t("div",{staticClass:"components-attr-edit animate-choose-list-wrapper",class:{fadeInUp:A.showAnimatePanel,fadeInDown:!A.showAnimatePanel,animate:A.showAnimatePanel}},[t("el-tabs",{model:{value:A.activeName,callback:function(e){A.activeName=e},expression:"activeName"}},A._l(A.animateCssDatas,(function(e){return t("el-tab-pane",{key:e.label,attrs:{label:e.label,name:e.label}},[t("el-scrollbar",{staticClass:"animate-choose-item"},A._l(e.children,(function(n,r){return t("div",{key:r,staticClass:"animate-choose-item-inner",on:{mouseover:function(e){A.hoverPreviewAnimate=n.value},mouseleave:function(e){A.hoverPreviewAnimate=""},click:function(e){return A.handleChooseAnimate(n)}}},[t("span",{staticClass:"animate-choose-image",class:[A.hoverPreviewAnimate===n.value&&n.value+" animated"],style:{backgroundPosition:e.bg_X+"px "+e.bg_Y+"px"}}),t("p",[A._v(A._s(n.label))])])})),0)],1)})),1)],1)],1)},je=[],We=[{label:"进入",children:[{label:"渐显",value:"fadeIn",bg_X:360,bg_Y:0},{label:"向右移入",value:"fadeInRight",bg_X:120,bg_Y:-80},{label:"向左移入",value:"fadeInLeft",bg_X:160,bg_Y:-120},{label:"向上移入",value:"fadeInUp",bg_X:160,bg_Y:40},{label:"向下移入",value:"fadeInDown",bg_X:40,bg_Y:0},{label:"翻转进入",value:"rotateIn",bg_X:200,bg_Y:0},{label:"向右弹入",value:"bounceInLeft",bg_X:240,bg_Y:-80},{label:"向左弹入",value:"bounceInRight",bg_X:280,bg_Y:-120},{label:"向上弹入",value:"bounceInUp",bg_X:160,bg_Y:0},{label:"向下弹入",value:"bounceInDown",bg_X:280,bg_Y:40},{label:"向右翻滚",value:"rotateInLeft",bg_X:200,bg_Y:-80},{label:"向左翻滚",value:"rotateInRight",bg_X:240,bg_Y:-120},{label:"向上翻滚",value:"rotateInUp",bg_X:120,bg_Y:0},{label:"向下翻滚",value:"rotateInDown",bg_X:240,bg_Y:-40},{label:"中心弹入",value:"bounceIn",bg_X:280,bg_Y:-160},{label:"光速进入",value:"lightSpeedIn",bg_X:360,bg_Y:-120}]},{label:"强调",children:[{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"}]},{label:"退出",children:[{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"},{label:"aaaaa",value:"bbbbbb"}]}],Ye=We;function qe(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function $e(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?qe(t,!0).forEach((function(e){Object(c["a"])(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):qe(t).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}var Ze={data:function(){return{animateCssDatas:Ye,activeName:"进入",showAnimatePanel:!1,reSelectAnimateIndex:void 0,hoverPreviewAnimate:""}},computed:$e({},Object(pA["d"])({projectData:function(A){return A.editor.projectData},activePageUUID:function(A){return A.editor.activePageUUID},activeElementUUID:function(A){return A.editor.activeElementUUID}}),{},Object(pA["c"])(["currentPageIndex","activeElementIndex","activeElement"])),watch:{activePageUUID:function(){this.addAnimate(!1)},activeElementUUID:function(){this.addAnimate(!1)}},methods:{handleChooseAnimate:function(A){this.showAnimatePanel=!1,void 0===this.reSelectAnimateIndex?this.$store.dispatch("addElementAnimate",A.value):(this.activeElement.animations[this.reSelectAnimateIndex].type=A.value,this.$store.dispatch("addHistoryCache"))},handleDeleteAnimate:function(A){this.$store.dispatch("deleteElementAnimate",A)},addAnimate:function(){var A=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.showAnimatePanel=A,this.reSelectAnimateIndex=void 0},handleShowChooseAnimatePanel:function(A){this.reSelectAnimateIndex=A,this.showAnimatePanel=!0},runAnimate:function(A){var e=void 0===A?this.activeElement.animations:[this.activeElement.animations[A]];_A.$emit("RUN_ANIMATIONS",this.activeElement.uuid,e)}}},At=Ze,et=(t("7d5b"),t("576a"),Object(f["a"])(At,Je,je,!1,null,"593b3398",null)),tt=et.exports,nt=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"components-attr-edit"},[t("el-scrollbar",{staticClass:"components-attr-edit"},[A.activeElementUUID?t("div",{staticClass:"attr-edit-inner"},[t("div",{staticClass:"animate-edit-btn-wrapper"},[t("el-dropdown",[t("el-button",{attrs:{type:"primary",size:"small"}},[A._v("\n 添加事件"),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},A._l(A.eventTypeList,(function(e,n){return t("el-dropdown-item",{key:n},[t("div",{on:{click:function(t){return A.addEvent(e.value)}}},[A._v(A._s(e.label))])])})),1)],1),t("p",{staticClass:"gray inline-block fontsize-12 marginL10"},[A._v("事件在编辑模式下无效果")])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:A.activeElement.events.length,expression:"activeElement.events.length"}],staticClass:"el-animate-list-wrapper paddingT20"},[t("el-collapse",{attrs:{accordion:""}},A._l(A.activeElement.events,(function(e,n){return t("el-collapse-item",{key:n},[t("template",{slot:"title"},[t("span",{staticClass:"el-animate-title-name"},[A._v("事件 "+A._s(n+1))]),t("div",{staticClass:"el-animate-title-type-wrapper"},[t("span",{staticClass:"el-animate-title-type"},[A._v(A._s(A._f("getLabelText")(e.type,A.eventTypeList)))])]),t("span",{staticClass:"el-animate-title-btn",on:{click:function(e){return e.stopPropagation(),e.preventDefault(),A.deleteEvent(n)}}},[t("i",{staticClass:"el-icon-delete"})])]),t("div",{staticClass:"el-animate-item"},[t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("事件类型:")]),t("div",{staticClass:"col-1 attr-item-edit-input"},[t("el-select",{attrs:{size:"small",placeholder:"请选择"},model:{value:e.type,callback:function(t){A.$set(e,"type",t)},expression:"item.type"}},A._l(A.eventTypeList,(function(A){return t("el-option",{key:A.value,attrs:{label:A.label,value:A.value}})})),1)],1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:"share"!==e.type,expression:"item.type !== 'share'"}],staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("链接/接口url:")]),t("div",{staticClass:"col-1 attr-item-edit-input"},[t("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入url"},model:{value:e.url,callback:function(t){A.$set(e,"url",t)},expression:"item.url"}})],1)])])],2)})),1)],1)]):t("div",[t("p",{staticClass:"gray paddingT30 text-center"},[A._v("请在画板上选择需要编辑得元素")])])])],1)},rt=[];function it(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function at(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?it(t,!0).forEach((function(e){Object(c["a"])(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):it(t).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}var ot={name:"event-edit",data:function(){return{eventTypeList:[{label:"链接跳转",value:"link"},{label:"分享",value:"share"},{label:"表单提交",value:"submitForm"}]}},computed:at({},Object(pA["d"])({projectData:function(A){return A.editor.projectData},activePageUUID:function(A){return A.editor.activePageUUID},activeElementUUID:function(A){return A.editor.activeElementUUID}}),{},Object(pA["c"])(["currentPageIndex","activeElementIndex","activeElement","activePage"])),methods:{addEvent:function(A){this.$store.dispatch("addElementEvent",A)},deleteEvent:function(A){this.$store.dispatch("deleteElementEvent",A)}}},st=ot,ct=(t("6817"),Object(f["a"])(st,nt,rt,!1,null,"6045ef5e",null)),lt=ct.exports,Bt=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("el-scrollbar",{staticClass:"components-attr-edit"},[t("p",{staticClass:"page-title fontBold"},[A._v("当前页样式")]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("背景颜色:")]),t("div",{staticClass:"attr-item-edit-input no-top"},[t("el-color-picker",{attrs:{size:"mini","show-alpha":!0},model:{value:A.activePage.commonStyle.backgroundColor,callback:function(e){A.$set(A.activePage.commonStyle,"backgroundColor",e)},expression:"activePage.commonStyle.backgroundColor"}})],1)]),t("div",{staticClass:"attr-item-edit-wrapper"},[t("p",{staticClass:"attr-item-title"},[A._v("背景图片:")]),t("div",{staticClass:"col-1 attr-item-edit-input"},[t("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入背景图片地址"},model:{value:A.activePage.commonStyle.backgroundImage,callback:function(e){A.$set(A.activePage.commonStyle,"backgroundImage",e)},expression:"activePage.commonStyle.backgroundImage"}})],1)]),t("p",{staticClass:"page-title fontBold"},[A._v("页面设置")]),t("div",[t("p",{staticClass:"gray"},[A._v("待完善...")])]),t("p",{staticClass:"page-title fontBold"},[A._v("分享设置")]),t("div",[t("p",{staticClass:"gray"},[A._v("待完善...")])]),t("p",{staticClass:"page-title fontBold"},[A._v("页面音乐")]),t("div",[t("p",{staticClass:"gray"},[A._v("待完善...")])]),t("p",{staticClass:"page-title fontBold"},[A._v("页面数据")]),t("div",[t("p",{staticClass:"gray"},[A._v("待完善...")])])])},ut=[];function dt(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function Qt(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?dt(t,!0).forEach((function(e){Object(c["a"])(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):dt(t).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}var pt={computed:Qt({},Object(pA["d"])({projectData:function(A){return A.editor.projectData},activePageUUID:function(A){return A.editor.activePageUUID},activeElementUUID:function(A){return A.editor.activeElementUUID}}),{},Object(pA["c"])(["currentPageIndex","activeElementIndex","activeElement","activePage"]))},wt=pt,ht=(t("bd56"),Object(f["a"])(wt,Bt,ut,!1,null,"b40c5b68",null)),gt=ht.exports,ft=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"components-script-edit"},[t("p",{staticClass:"page-title fontBold"},[A._v("脚本编辑")]),t("p",{staticClass:"gray paddingL10 fontsize-12"},[A._v("js脚本在编辑模式下无效果")]),t("div",{staticClass:"paddingT20"},[t("el-input",{attrs:{type:"textarea",rows:20,placeholder:"请输入代码"},model:{value:A.projectData.script,callback:function(e){A.$set(A.projectData,"script",e)},expression:"projectData.script"}})],1)])},Ct=[];function Ut(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function Et(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Ut(t,!0).forEach((function(e){Object(c["a"])(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):Ut(t).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}var mt={computed:Et({},Object(pA["d"])({projectData:function(A){return A.editor.projectData},activePageUUID:function(A){return A.editor.activePageUUID},activeElementUUID:function(A){return A.editor.activeElementUUID}}),{},Object(pA["c"])(["currentPageIndex","activeElementIndex","activeElement","activePage"]))},Ft=mt,vt=Object(f["a"])(Ft,ft,Ct,!1,null,"77dfb324",null),bt=vt.exports,Ht=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"components-contrl-bar"},[t("div",{staticClass:"button-item scale-wrappper"},[t("span",{staticClass:"scale-btn",on:{click:function(e){return A.updateScale("reduce")}}},[t("i",{staticClass:"el-icon-zoom-out"})]),t("span",{staticClass:"scale-input"},[A._v(A._s(parseFloat(100*A.scaleValue).toFixed(0))+"%")]),t("span",{staticClass:"scale-btn",on:{click:function(e){return A.updateScale("plus")}}},[t("i",{staticClass:"el-icon-zoom-in"})])]),t("div",{staticClass:"button-item",class:{disabled:!A.canUndo},on:{click:A.editorUndo}},[t("i",{staticClass:"iconfont iconundo1"}),t("p",[A._v("撤销")])]),t("div",{staticClass:"button-item",class:{disabled:!A.canRedo},on:{click:A.editorRedo}},[t("i",{staticClass:"iconfont iconredo1"}),t("p",[A._v("重做")])]),t("div",{staticClass:"button-item",on:{click:A.showPreview}},[t("i",{staticClass:"iconfont iconyulan"}),t("p",[A._v("预览")])]),t("UploadPsd",{on:{"upload-success":A.uploadSuccessPsd}},[t("div",{staticClass:"button-item",on:{click:A.save}},[t("i",{staticClass:"iconfont iconps"}),t("p",[A._v("导入psd")])])]),t("div",{staticClass:"button-item",on:{click:A.save}},[t("i",{staticClass:"iconfont iconbaocun"}),t("p",[A._v("保存")])]),t("div",{staticClass:"button-item",on:{click:A.save}},[t("i",{staticClass:"iconfont iconfabu"}),t("p",[A._v("发布")])]),t("div",{staticClass:"button-item",on:{click:A.save}},[t("i",{staticClass:"iconfont icontuichu"}),t("p",[A._v("退出")])])],1)},Nt=[],yt=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"upload-psd-btn-wrapper"},[t("el-upload",{attrs:{action:"https://jsonplaceholder.typicode.com/posts/","before-upload":A.beforeUpload,accept:".psd","show-file-list":!1}},[A._t("default")],2)],1)},Kt=[],It={methods:{beforeUpload:function(A){if(!(A.size>20971520)){var e=A.name.split("."),t=e[e.length-1];return["psd"].includes(t)?(this.uploadPsd(A),!1):(this.$message.error("请上传psd文件"),!1)}this.$message.error("psd文件不能超过20M!")},uploadPsd:function(A){var e=this,t=new FormData;t.append("file",A),this.$axios.post("/common/psdPpload",t).then((function(A){e.$emit("upload-success",A.body||[])}))}}},Ot=It,Tt=(t("ae3b"),Object(f["a"])(Ot,yt,Kt,!1,null,"177e7667",null)),St=Tt.exports;function _t(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function Dt(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?_t(t,!0).forEach((function(e){Object(c["a"])(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):_t(t).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}var Rt={components:{UploadPsd:St},props:{loading:{type:Boolean,default:!1},scale:{type:Number,default:1}},data:function(){return{scaleValue:1}},computed:Dt({},Object(pA["c"])(["canUndo","canRedo"])),created:function(){this.scaleValue=this.scale},methods:Dt({},Object(pA["b"])(["editorUndo","editorRedo"]),{updateScale:function(A,e){"plus"===A?this.scaleValue=this.scaleValue+(e||.1)>2?2:this.scaleValue+(e||.1):"reduce"===A?this.scaleValue=this.scaleValue-(e||.1)>.5?this.scaleValue-(e||.1):.5:"reset"===A&&(this.scaleValue=e||1),this.$emit("update:scale",this.scaleValue)},uploadSuccessPsd:function(A){this.$emit("import-psd-data",A)},save:function(){this.$emit("save")},showPreview:function(){this.$emit("showPreview")}})},Lt=Rt,xt=(t("a863"),Object(f["a"])(Lt,Ht,Nt,!1,null,"a57ee174",null)),Pt=xt.exports,Mt=t("fe36"),kt=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("el-dialog",{staticClass:"components-image-libs-wrapper",attrs:{title:"我的图片",visible:A.dialogVisible,width:"600px"},on:{"update:visible":function(e){A.dialogVisible=e}}},[t("div",{staticClass:"components-image-libs"},[t("div",{staticClass:"image-lib-side-bar"}),t("div",{staticClass:"image-lib-inner"},[t("div",{staticClass:"image-lib-btn"},[t("el-upload",{attrs:{action:"https://jsonplaceholder.typicode.com/posts/","before-upload":A.beforeUpload,accept:"jpg,png,gif","show-file-list":!1}},[t("el-button",{attrs:{size:"small",type:"primary"}},[A._v("点击上传")]),t("span",{staticClass:"el-upload__tip marginL20",attrs:{slot:"tip"},slot:"tip"},[A._v("只能上传jpg/png/gif文件,且不超过2M")])],1)],1),A.imageList.length?t("ul",{staticClass:"image-list-wrapper"},A._l(A.imageList,(function(e,n){return t("li",{key:n,staticClass:"image-item",on:{click:function(t){return A.handleImageClick(e.url)}}},[t("img",{attrs:{src:e.url,alt:""}})])})),0):t("div",{staticClass:"padding60 text-center gray"},[A._v("暂无数据")])])])])},zt=[],Vt={name:"image-libs",data:function(){return{dialogVisible:!1,uploading:!1,hasLoadData:!1,imageList:[],selectId:""}},created:function(){var A=this;_A.$on("show-select-image",(function(e){A.dialogVisible=!0,A.selectId=e}))},watch:{dialogVisible:function(A){A&&!this.uploading&&this.getMyImages()}},methods:{beforeUpload:function(A){if(!(A.size>1048576)){var e=A.name.split("."),t=e[e.length-1];return["jpg","png","gif"].includes(t)?(this.uploadPsd(A),!1):(this.$message.error("请上传jpg/png/gif文件"),!1)}this.$message.error("psd文件不能超过1M!")},uploadPsd:function(A){var e=this,t=new FormData;t.append("file",A),this.uploading=!0,this.$axios.post("/common/uploadFile",t).then((function(A){e.uploading=!1,e.imageList.splice(0,0,A.body)})).catch((function(){e.uploading=!0}))},getMyImages:function(){var A=this;this.hasLoadData=!0,this.$axios.get("/person/images").then((function(e){A.imageList=e.body||[]}))},handleImageClick:function(A){_A.$emit("select-image",this.selectId,A),this.dialogVisible=!1}}},Xt=Vt,Gt=(t("af05"),t("16b2"),Object(f["a"])(Xt,kt,zt,!1,null,"78da1ec6",null)),Jt=Gt.exports;function jt(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function Wt(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?jt(t,!0).forEach((function(e){Object(c["a"])(A,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(t)):jt(t).forEach((function(e){Object.defineProperty(A,e,Object.getOwnPropertyDescriptor(t,e))}))}return A}var Yt={components:{componentLibs:uA,pageManage:UA,templateLibs:HA,imageLibs:Jt,editorPan:YA,attrEdit:Ge,animationEdit:tt,eventEdit:lt,pageAttrEdit:gt,scriptEdit:bt,controlBar:Pt,previewPage:Mt["a"]},data:function(){return{id:"",loading:!1,showPreview:!1,activeAttr:"属性",activeSideBar:"componentLibs",sidebarMenus:[{label:"组件列表",value:"componentLibs",elementUiIcon:"el-icon-s-operation"},{label:"页面管理",value:"pageManage",elementUiIcon:"el-icon-document"},{label:"模板库",value:"templateLibs",elementUiIcon:"el-icon-files"}],canvasConfig:{scale:1}}},computed:Wt({},Object(pA["d"])({projectData:function(A){return A.editor.projectData},activePageUUID:function(A){return A.editor.activePageUUID},activeElementUUID:function(A){return A.editor.activeElementUUID}})),created:function(){this.$store.dispatch("setPrjectData"),this.id=this.$route.query.id,this.initPageData()},methods:{initPageData:function(){var A=this;this.loading=!0,this.$axios.get("/page/detail/"+this.id).then((function(e){A.loading=!1,A.$store.dispatch("setPrjectData",Wt({},e.body))})).catch((function(){A.loading=!1}))},save:function(){var A=s(regeneratorRuntime.mark((function A(){return regeneratorRuntime.wrap((function(A){while(1)switch(A.prev=A.next){case 0:return A.next=2,this.screenshots();case 2:console.log(JSON.stringify(this.projectData));case 3:case"end":return A.stop()}}),A,this)})));function e(){return A.apply(this,arguments)}return e}(),showPreviewFn:function(){var A=s(regeneratorRuntime.mark((function A(){var e=this;return regeneratorRuntime.wrap((function(A){while(1)switch(A.prev=A.next){case 0:return A.next=2,this.screenshots();case 2:this.$axios.post("/page/update/"+this.id,this.projectData).then((function(A){e.showPreview=!0}));case 3:case"end":return A.stop()}}),A,this)})));function e(){return A.apply(this,arguments)}return e}(),screenshots:function(){var A=this,e=document.querySelector("#canvas-panel");return new Promise((function(t,n){VA()(e,{proxy:"http://localhost:4000/common/html2canvas/corsproxy"}).then((function(e){var r=e.toDataURL("image/jpeg",.6),i=A.$mUtils.dataURItoBlob(r),a=new window.File([i],+new Date+".png",{type:"image/png"}),o=new FormData;o.append("file",a),A.$axios.post("/page/update/cover/"+A.id,o).then((function(A){t(A)})).catch((function(A){n(A)}))}))}))},importPsdData:function(A){var e=this;A.forEach((function(A){var t=A.width,n=A.height,r=A.top,i=A.left,a=A.imageSrc,o=A.opacity,s=A.zIndex;setTimeout((function(){e.$store.dispatch("addElement",{elName:"qk-image",defaultStyle:{width:t/2,height:n/2,top:r/2,left:i/2,zIndex:s,opacity:o},needProps:{imageSrc:a}})}),10)}))}}},qt=Yt,$t=(t("51eb"),t("fed7"),Object(f["a"])(qt,n,r,!1,null,"941476de",null));e["default"]=$t.exports},fdef:function(A,e){A.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},fe36:function(A,e,t){"use strict";var n=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"components-preview"},[t("div",{staticClass:"setting-bg"}),t("div",{staticClass:"left-panel"},[t("div",{staticClass:"iframe-wrapper"},[t("iframe",{staticStyle:{"background-color":"transparent",width:"100%",height:"100%"},attrs:{src:"http://localhost:4000/page/"+A.pageId,frameborder:"0"}})])]),t("div",{staticClass:"right-panel"},[A._v("\n 预览信息 待完善\n ")]),t("span",{staticClass:"cloase-btn",on:{click:A.closePreview}},[t("i",{staticClass:"el-icon-close"})])])},r=[],i={name:"preview-page",props:{pageId:String},data:function(){return{}},created:function(){},methods:{closePreview:function(){this.$emit("closePreview",!1)}}},a=i,o=(t("cc66"),t("2877")),s=Object(o["a"])(a,n,r,!1,null,"4cee48d1",null);e["a"]=s.exports},fed7:function(A,e,t){"use strict";var n=t("8ad8"),r=t.n(n);r.a}}]); //# sourceMappingURL=chunk-361b1b6d.3df8d46b.js.map
11,066.086957
235,736
0.767614
15b04f8a3a8db4252fbea0a4bd0feddb70359359
5,479
psm1
PowerShell
SailPointIdentityNow.psm1
410sean/powershell_module_identitynow
8af438af4efa5f5f009ef976d682cea3bc1a8d80
[ "MIT" ]
25
2019-09-17T17:32:56.000Z
2022-03-04T00:32:38.000Z
SailPointIdentityNow.psm1
410sean/powershell_module_identitynow
8af438af4efa5f5f009ef976d682cea3bc1a8d80
[ "MIT" ]
40
2019-09-17T17:27:09.000Z
2021-12-23T14:51:40.000Z
SailPointIdentityNow.psm1
410sean/powershell_module_identitynow
8af438af4efa5f5f009ef976d682cea3bc1a8d80
[ "MIT" ]
8
2019-10-23T00:23:07.000Z
2022-01-30T19:32:18.000Z
$IdentityNowConfiguration = @{ orgName = $null v2 = $null v3 = $null AdminCredential = $null PAT = $null JWT = $null DefaultOrg = $null } $IdentityNowConfigurationFile = Join-Path $env:LOCALAPPDATA IdentityNowConfiguration.clixml if (Test-Path $IdentityNowConfigurationFile) { $IdentityNowConfiguration = Import-Clixml $IdentityNowConfigurationFile } [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Get-ChildItem "$PSScriptRoot/scripts/*.ps1" | ForEach-Object { . $_ } if ($null -ne $IdentityNowConfiguration.DefaultOrg){ Set-IdentityNowOrg -orgName $IdentityNowConfiguration.DefaultOrg } # SIG # Begin signature block # MIINSwYJKoZIhvcNAQcCoIINPDCCDTgCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR # AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU20DlLw8yEYSNpWkD6w0/usGg # wK+gggqNMIIFMDCCBBigAwIBAgIQBAkYG1/Vu2Z1U0O1b5VQCDANBgkqhkiG9w0B # AQsFADBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYD # VQQLExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVk # IElEIFJvb3QgQ0EwHhcNMTMxMDIyMTIwMDAwWhcNMjgxMDIyMTIwMDAwWjByMQsw # CQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cu # ZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFzc3VyZWQgSUQg # Q29kZSBTaWduaW5nIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA # +NOzHH8OEa9ndwfTCzFJGc/Q+0WZsTrbRPV/5aid2zLXcep2nQUut4/6kkPApfmJ # 1DcZ17aq8JyGpdglrA55KDp+6dFn08b7KSfH03sjlOSRI5aQd4L5oYQjZhJUM1B0 # sSgmuyRpwsJS8hRniolF1C2ho+mILCCVrhxKhwjfDPXiTWAYvqrEsq5wMWYzcT6s # cKKrzn/pfMuSoeU7MRzP6vIK5Fe7SrXpdOYr/mzLfnQ5Ng2Q7+S1TqSp6moKq4Tz # rGdOtcT3jNEgJSPrCGQ+UpbB8g8S9MWOD8Gi6CxR93O8vYWxYoNzQYIH5DiLanMg # 0A9kczyen6Yzqf0Z3yWT0QIDAQABo4IBzTCCAckwEgYDVR0TAQH/BAgwBgEB/wIB # ADAOBgNVHQ8BAf8EBAMCAYYwEwYDVR0lBAwwCgYIKwYBBQUHAwMweQYIKwYBBQUH # AQEEbTBrMCQGCCsGAQUFBzABhhhodHRwOi8vb2NzcC5kaWdpY2VydC5jb20wQwYI # KwYBBQUHMAKGN2h0dHA6Ly9jYWNlcnRzLmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEFz # c3VyZWRJRFJvb3RDQS5jcnQwgYEGA1UdHwR6MHgwOqA4oDaGNGh0dHA6Ly9jcmw0 # LmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEFzc3VyZWRJRFJvb3RDQS5jcmwwOqA4oDaG # NGh0dHA6Ly9jcmwzLmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEFzc3VyZWRJRFJvb3RD # QS5jcmwwTwYDVR0gBEgwRjA4BgpghkgBhv1sAAIEMCowKAYIKwYBBQUHAgEWHGh0 # dHBzOi8vd3d3LmRpZ2ljZXJ0LmNvbS9DUFMwCgYIYIZIAYb9bAMwHQYDVR0OBBYE # FFrEuXsqCqOl6nEDwGD5LfZldQ5YMB8GA1UdIwQYMBaAFEXroq/0ksuCMS1Ri6en # IZ3zbcgPMA0GCSqGSIb3DQEBCwUAA4IBAQA+7A1aJLPzItEVyCx8JSl2qB1dHC06 # GsTvMGHXfgtg/cM9D8Svi/3vKt8gVTew4fbRknUPUbRupY5a4l4kgU4QpO4/cY5j # DhNLrddfRHnzNhQGivecRk5c/5CxGwcOkRX7uq+1UcKNJK4kxscnKqEpKBo6cSgC # PC6Ro8AlEeKcFEehemhor5unXCBc2XGxDI+7qPjFEmifz0DLQESlE/DmZAwlCEIy # sjaKJAL+L3J+HNdJRZboWR3p+nRka7LrZkPas7CM1ekN3fYBIM6ZMWM9CBoYs4Gb # T8aTEAb8B4H6i9r5gkn3Ym6hU/oSlBiFLpKR6mhsRDKyZqHnGKSaZFHvMIIFVTCC # BD2gAwIBAgIQDOzRdXezgbkTF+1Qo8ZgrzANBgkqhkiG9w0BAQsFADByMQswCQYD # VQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGln # aWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFzc3VyZWQgSUQgQ29k # ZSBTaWduaW5nIENBMB4XDTIwMDYxNDAwMDAwMFoXDTIzMDYxOTEyMDAwMFowgZEx # CzAJBgNVBAYTAkFVMRgwFgYDVQQIEw9OZXcgU291dGggV2FsZXMxFDASBgNVBAcT # C0NoZXJyeWJyb29rMRowGAYDVQQKExFEYXJyZW4gSiBSb2JpbnNvbjEaMBgGA1UE # CxMRRGFycmVuIEogUm9iaW5zb24xGjAYBgNVBAMTEURhcnJlbiBKIFJvYmluc29u # MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwj7PLmjkknFA0MIbRPwc # T1JwU/xUZ6UFMy6AUyltGEigMVGxFEXoVybjQXwI9hhpzDh2gdxL3W8V5dTXyzqN # 8LUXa6NODjIzh+egJf/fkXOgzWOPD5fToL7mm4JWofuaAwv2DmI2UtgvQGwRhkUx # Y3hh0+MNDSyz28cqExf8H6mTTcuafgu/Nt4A0ddjr1hYBHU4g51ZJ96YcRsvMZSu # 8qycBUNEp8/EZJxBUmqCp7mKi72jojkhu+6ujOPi2xgG8IWE6GqlmuMVhRSUvF7F # 9PreiwPtGim92RG9Rsn8kg1tkxX/1dUYbjOIgXOmE1FAo/QU6nKVioJMNpNsVEBz # /QIDAQABo4IBxTCCAcEwHwYDVR0jBBgwFoAUWsS5eyoKo6XqcQPAYPkt9mV1Dlgw # HQYDVR0OBBYEFOh6QLkkiXXHi1nqeGozeiSEHADoMA4GA1UdDwEB/wQEAwIHgDAT # BgNVHSUEDDAKBggrBgEFBQcDAzB3BgNVHR8EcDBuMDWgM6Axhi9odHRwOi8vY3Js # My5kaWdpY2VydC5jb20vc2hhMi1hc3N1cmVkLWNzLWcxLmNybDA1oDOgMYYvaHR0 # cDovL2NybDQuZGlnaWNlcnQuY29tL3NoYTItYXNzdXJlZC1jcy1nMS5jcmwwTAYD # VR0gBEUwQzA3BglghkgBhv1sAwEwKjAoBggrBgEFBQcCARYcaHR0cHM6Ly93d3cu # ZGlnaWNlcnQuY29tL0NQUzAIBgZngQwBBAEwgYQGCCsGAQUFBwEBBHgwdjAkBggr # BgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQuY29tME4GCCsGAQUFBzAChkJo # dHRwOi8vY2FjZXJ0cy5kaWdpY2VydC5jb20vRGlnaUNlcnRTSEEyQXNzdXJlZElE # Q29kZVNpZ25pbmdDQS5jcnQwDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQsFAAOC # AQEANWoHDjN7Hg9QrOaZx0V8MK4c4nkYBeFDCYAyP/SqwYeAtKPA7F72mvmJV6E3 # YZnilv8b+YvZpFTZrw98GtwCnuQjcIj3OZMfepQuwV1n3S6GO3o30xpKGu6h0d4L # rJkIbmVvi3RZr7U8ruHqnI4TgbYaCWKdwfLb/CUffaUsRX7BOguFRnYShwJmZAzI # mgBx2r2vWcZePlKH/k7kupUAWSY8PF8O+lvdwzVPSVDW+PoTqfI4q9au/0U77UN0 # Fq/ohMyQ/CUX731xeC6Rb5TjlmDhdthFP3Iho1FX0GIu55Py5x84qW+Ou+OytQcA # FZx22DA8dAUbS3P7OIPamcU68TGCAigwggIkAgEBMIGGMHIxCzAJBgNVBAYTAlVT # MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j # b20xMTAvBgNVBAMTKERpZ2lDZXJ0IFNIQTIgQXNzdXJlZCBJRCBDb2RlIFNpZ25p # bmcgQ0ECEAzs0XV3s4G5ExftUKPGYK8wCQYFKw4DAhoFAKB4MBgGCisGAQQBgjcC # AQwxCjAIoAKAAKECgAAwGQYJKoZIhvcNAQkDMQwGCisGAQQBgjcCAQQwHAYKKwYB # BAGCNwIBCzEOMAwGCisGAQQBgjcCARUwIwYJKoZIhvcNAQkEMRYEFFD3MiliLw/I # rnnpYmEcJPirdL73MA0GCSqGSIb3DQEBAQUABIIBAKDTuQTiG4TsFQ/NujhMmxpa # CETvStNYuM6ey/oy3bQ5qcnvwtYuySHSNjVnB4WX9v3n/yiOmwf3hIjOhsUHOdPU # KoRiCzNzOmTdBew61k3WgLOsJOsgUhdGWhiYEb/m8oewXOB1dk4dqZ1wWQFbb+b+ # tY4pDlcHLldqB5LyAOHKm18PP8lE/UMd5c8SCxOIrOaQs1KCbw0osT81sv5ZlDO8 # rT+PBTRTVBlRw4c5EMcqbzSmycfHXJ5WeJrMMY5LGFDMEOqa/h5k3aidRiOLPuFa # 2iy401Y/o3wIcnZu58EbXxobbv+ngWBxvXfywb5lFfBlpX13fOyzDZrzz4aT+Q0= # SIG # End signature block
57.072917
91
0.9144
7aaed30790119b952066bfc44a29f8170fec921d
284
kt
Kotlin
core/src/main/kotlin/me/bramhaag/spleef/features/KitFeature.kt
bramhaag/minigame-framework-spleef
68eb258fa9a1d885c086de7f4f3d5ea6900a9cbb
[ "MIT" ]
null
null
null
core/src/main/kotlin/me/bramhaag/spleef/features/KitFeature.kt
bramhaag/minigame-framework-spleef
68eb258fa9a1d885c086de7f4f3d5ea6900a9cbb
[ "MIT" ]
null
null
null
core/src/main/kotlin/me/bramhaag/spleef/features/KitFeature.kt
bramhaag/minigame-framework-spleef
68eb258fa9a1d885c086de7f4f3d5ea6900a9cbb
[ "MIT" ]
null
null
null
package me.bramhaag.spleef.features import me.bramhaag.minigameframework.feature.AbstractFeature class KitFeature : AbstractFeature() { override fun enable() { phase.game.players.forEach { for(i in 0..8) { it.setItem(i, "diamond_shovel") }} } }
21.846154
60
0.661972
5cc138b1f5b01fcb87c0f8dc07b7e9ca5879f73d
1,188
kt
Kotlin
src/main/kotlin/io/github/deadshot465/owoify/utility/presets.kt
deadshot465/owoifyKt
ae7b0a6f2f7a2c9418d267b4666d840bdec3d95d
[ "MIT" ]
null
null
null
src/main/kotlin/io/github/deadshot465/owoify/utility/presets.kt
deadshot465/owoifyKt
ae7b0a6f2f7a2c9418d267b4666d840bdec3d95d
[ "MIT" ]
null
null
null
src/main/kotlin/io/github/deadshot465/owoify/utility/presets.kt
deadshot465/owoifyKt
ae7b0a6f2f7a2c9418d267b4666d840bdec3d95d
[ "MIT" ]
null
null
null
package io.github.deadshot465.owoify.utility import io.github.deadshot465.owoify.structures.Word val SPECIFIC_WORD_MAPPING_LIST = listOf<(Word) -> Word>( ::mapFucToFwuc, ::mapMomToMwom, ::mapTimeToTim, ::mapMeToMwe, ::mapNVowelToNy, ::mapOverToOwor, ::mapOveToUv, ::mapHahaToHeheXd, ::mapTheToTeh, ::mapYouToU, ::mapReadToWead, ::mapWorseToWose ) val UVU_MAPPING_LIST = listOf<(Word) -> Word>( ::mapOToOwO, ::mapEwToUwu, ::mapHeyToHay, ::mapDeadToDed, ::mapNVowelTToNd ) val UWU_MAPPING_LIST = listOf<(Word) -> Word>( ::mapBracketToStarTrails, ::mapPeriodCommaExclamationSemicolonToKaomojis, ::mapThatToDat, ::mapThToF, ::mapLeToWal, ::mapVeToWe, ::mapRyToWwy, ::mapROrLToW ) val OWO_MAPPING_LIST = listOf<(Word) -> Word>( ::mapLlToWw, ::mapVowelOrRExceptOLToWl, ::mapOldToOwld, ::mapOlToOwl, ::mapLOrROToWo, ::mapSpecificConsonantsOToLetterAndWo, ::mapVOrWLeToWal, ::mapFiToFwi, ::mapVerToWer, ::mapPoiToPwoi, ::mapSpecificConsonantsLeToLetterAndWal, ::mapConsonantsRToConsonantW, ::mapLyToWy, ::mapPleToPwe, ::mapNrToNw )
21.6
56
0.665825